• 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

    Vl-case-xcond-wrapper

    Signature
    (vl-case-xcond-wrapper x full-conservative config) → new-x
    Arguments
    x — Guard (sv::svstmtlist-p x).
    full-conservative — Guard (sv::svex-p full-conservative).
    config — Guard (svstmt-config-p config).
    Returns
    new-x — Type (sv::svstmtlist-p new-x).

    Definitions and Theorems

    Function: vl-case-xcond-wrapper

    (defun vl-case-xcond-wrapper (x full-conservative config)
     (declare (xargs :guard (and (sv::svstmtlist-p x)
                                 (sv::svex-p full-conservative)
                                 (svstmt-config-p config))))
     (let ((__function__ 'vl-case-xcond-wrapper))
       (declare (ignorable __function__))
       (b*
         ((conservative (svstmt-config->uniquecase-conservative config))
          ((unless (and (<= 3 (lnfix conservative))
                        (not (equal (sv::svex-fix full-conservative)
                                    0))))
           (sv::svstmtlist-fix x)))
         (list (sv::make-svstmt-xcond :cond full-conservative
                                      :body x)))))

    Theorem: svstmtlist-p-of-vl-case-xcond-wrapper

    (defthm svstmtlist-p-of-vl-case-xcond-wrapper
      (b* ((new-x (vl-case-xcond-wrapper x full-conservative config)))
        (sv::svstmtlist-p new-x))
      :rule-classes :rewrite)

    Theorem: svarlist-addr-p-of-vl-case-xcond-wrapper

    (defthm svarlist-addr-p-of-vl-case-xcond-wrapper
     (b* ((?new-x (vl-case-xcond-wrapper x full-conservative config)))
       (implies
            (and (sv::svarlist-addr-p (sv::svex-vars full-conservative))
                 (sv::svarlist-addr-p (sv::svstmtlist-vars x)))
            (sv::svarlist-addr-p (sv::svstmtlist-vars new-x)))))

    Theorem: vl-case-xcond-wrapper-of-svstmtlist-fix-x

    (defthm vl-case-xcond-wrapper-of-svstmtlist-fix-x
      (equal (vl-case-xcond-wrapper (sv::svstmtlist-fix x)
                                    full-conservative config)
             (vl-case-xcond-wrapper x full-conservative config)))

    Theorem: vl-case-xcond-wrapper-svstmtlist-equiv-congruence-on-x

    (defthm vl-case-xcond-wrapper-svstmtlist-equiv-congruence-on-x
     (implies
       (sv::svstmtlist-equiv x x-equiv)
       (equal (vl-case-xcond-wrapper x full-conservative config)
              (vl-case-xcond-wrapper x-equiv full-conservative config)))
     :rule-classes :congruence)

    Theorem: vl-case-xcond-wrapper-of-svex-fix-full-conservative

    (defthm vl-case-xcond-wrapper-of-svex-fix-full-conservative
      (equal (vl-case-xcond-wrapper x (sv::svex-fix full-conservative)
                                    config)
             (vl-case-xcond-wrapper x full-conservative config)))

    Theorem: vl-case-xcond-wrapper-svex-equiv-congruence-on-full-conservative

    (defthm
       vl-case-xcond-wrapper-svex-equiv-congruence-on-full-conservative
     (implies
       (sv::svex-equiv full-conservative
                       full-conservative-equiv)
       (equal (vl-case-xcond-wrapper x full-conservative config)
              (vl-case-xcond-wrapper x full-conservative-equiv config)))
     :rule-classes :congruence)

    Theorem: vl-case-xcond-wrapper-of-svstmt-config-fix-config

    (defthm vl-case-xcond-wrapper-of-svstmt-config-fix-config
      (equal (vl-case-xcond-wrapper x full-conservative
                                    (svstmt-config-fix config))
             (vl-case-xcond-wrapper x full-conservative config)))

    Theorem: vl-case-xcond-wrapper-svstmt-config-equiv-congruence-on-config

    (defthm
         vl-case-xcond-wrapper-svstmt-config-equiv-congruence-on-config
     (implies
       (svstmt-config-equiv config config-equiv)
       (equal (vl-case-xcond-wrapper x full-conservative config)
              (vl-case-xcond-wrapper x full-conservative config-equiv)))
     :rule-classes :congruence)