• 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-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

    Vttree-p

    Recognizer for vttree structures.

    Signature
    (vttree-p x) → *

    Definitions and Theorems

    Function: vttree-p

    (defun vttree-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'vttree-p))
        (declare (ignorable __function__))
        (cond ((atom x) (and (eq x nil) (b* nil t)))
              ((eq (car x) :warnings)
               (b* ((warnings (cdr x)))
                 (vl-warninglist-p warnings)))
              ((eq (car x) :constraints)
               (b* ((constraints (cdr x)))
                 (sv::constraintlist-p constraints)))
              ((eq (car x) :context)
               (and (consp (cdr x))
                    (b* ((acl2::?ctx (cadr x))
                         (subtree (cddr x)))
                      (vttree-p subtree))))
              (t (b* ((left (car x)) (right (cdr x)))
                   (and (vttree-p left)
                        (vttree-p right)))))))