• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
        • Symbolic-test-vector
        • Vl-to-svex
          • Vl-to-sv
          • Vl-design->sv-design
            • Vl-simpconfig
            • Vl-hierarchy-sv-translation
            • Vl-expr-svex-translation
              • Sv::vl-expr.lisp
              • Vttree
                • Vttree-p
                • Vttree-fix
                • Vttree-count
                • Vttree-equiv
                • Vttree-context
                • Vttree-branch
                  • Vttree-branch->right
                  • Make-vttree-branch
                    • Vttree-branch->left
                    • Change-vttree-branch
                  • Vttree-warnings
                  • Vttree-constraints
                  • Vttree-none
                  • Vttree-kind
                  • Patbind-wvmv
                  • Patbind-vwmv
                  • Patbind-vmv
              • Vl-design->svex-modalist
              • Vl-svstmt
            • Vl-to-sv-main
            • Vl-simplify-sv
            • Vl-user-paramsettings->unparam-names
            • Vl-user-paramsettings->modnames
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vttree-branch

    Make-vttree-branch

    Basic constructor macro for vttree-branch structures.

    Syntax
    (make-vttree-branch [:left <left>] 
                        [:right <right>]) 
    

    This is the usual way to construct vttree-branch structures. It simply conses together a structure with the specified fields.

    This macro generates a new vttree-branch structure from scratch. See also change-vttree-branch, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-vttree-branch

    (defmacro make-vttree-branch (&rest args)
      (std::make-aggregate 'vttree-branch
                           args '((:left) (:right))
                           'make-vttree-branch
                           nil))

    Function: vttree-branch

    (defun vttree-branch (left right)
      (declare (xargs :guard (and (vttree-p left) (vttree-p right))))
      (declare (xargs :guard t))
      (let ((__function__ 'vttree-branch))
        (declare (ignorable __function__))
        (b* ((left (mbe :logic (vttree-fix left)
                        :exec left))
             (right (mbe :logic (vttree-fix right)
                         :exec right)))
          (cons left right))))