• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Vl-design->svex-modalist
            • Vl-svstmt
              • Vl-svstmt.lisp
                • Vl-casestmt-violation-conds
                • Vl-caselist-none/multiple
                • Vl-elaborated-expr-consteval
                • Vl-always->svex
                • Vl-caseexprs->svex-test
                • Vl-always->svex-checks
                • Vl-implicitvalueparam-final-type
                • Vl-assignstmt->svstmts
                • Vl-fundecl-to-svex
                • Vl-evatomlist-delay-substitution
                • Vl-consteval
                • Vl-alwayslist->svex
                • Vl-index-expr-svex/size/type
                • Vl-vardecllist->svstmts
                • Sv::svex-alist->assigns
                • Vl-case-conservative-test-expr
                • Vl-evatomlist->svex
                • Vl-case-xcond-wrapper
                • Sv::constraintlist-maybe-rewrite-fixpoint
                • Vl-always-apply-trigger-to-updates
                • Vl-initiallist-size-warnings
                • Vl-initial-size-warnings
                • Vl-finallist-size-warnings
                • Vl-always->svex-latch-warnings
                • Vl-final-size-warnings
                • Sv::svarlist-masked-x-subst
                • Sv::svar->lhs-by-mask
                • Svstmt-config
                • Sv::svex-alist-unset-nonblocking
                • Sv::svar->lhs-by-size
                • Combine-mask-alists
                • Sv::svarlist-delay-subst
                • Vttree-constraints-to-svstmts
                  • Sv::4vmask-alist-unset-nonblocking
                  • Sv::svarlist-remove-delays
                  • Vl-caselist->caseexprs
                  • Vl-evatomlist-has-edge
            • 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
    • Vl-svstmt.lisp

    Vttree-constraints-to-svstmts

    Signature
    (vttree-constraints-to-svstmts x) → svstmts
    Arguments
    x — Guard (vttree-p x).
    Returns
    svstmts — Type (sv::svstmtlist-p svstmts).

    Definitions and Theorems

    Function: vttree-constraints-to-svstmts

    (defun vttree-constraints-to-svstmts (x)
     (declare (xargs :guard (vttree-p x)))
     (let ((__function__ 'vttree-constraints-to-svstmts))
      (declare (ignorable __function__))
      (b* ((constraints (vttree->constraints x)))
       (if (atom constraints)
           nil
        (list
             (sv::make-svstmt-constraints :constraints constraints))))))

    Theorem: svstmtlist-p-of-vttree-constraints-to-svstmts

    (defthm svstmtlist-p-of-vttree-constraints-to-svstmts
      (b* ((svstmts (vttree-constraints-to-svstmts x)))
        (sv::svstmtlist-p svstmts))
      :rule-classes :rewrite)

    Theorem: vars-of-vttree-constraints-to-svstmts

    (defthm vars-of-vttree-constraints-to-svstmts
     (b* ((?svstmts (vttree-constraints-to-svstmts x)))
      (implies
        (not (member v
                     (sv::constraintlist-vars (vttree->constraints x))))
        (not (member v (sv::svstmtlist-vars svstmts))))))

    Theorem: vttree-constraints-to-svstmts-of-vttree-fix-x

    (defthm vttree-constraints-to-svstmts-of-vttree-fix-x
      (equal (vttree-constraints-to-svstmts (vttree-fix x))
             (vttree-constraints-to-svstmts x)))

    Theorem: vttree-constraints-to-svstmts-vttree-equiv-congruence-on-x

    (defthm vttree-constraints-to-svstmts-vttree-equiv-congruence-on-x
      (implies (vttree-equiv x x-equiv)
               (equal (vttree-constraints-to-svstmts x)
                      (vttree-constraints-to-svstmts x-equiv)))
      :rule-classes :congruence)