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

    Signature
    (vl-caselist->caseexprs x) → caseexprs
    Arguments
    x — Guard (vl-caselist-p x).
    Returns
    caseexprs — Type (vl-exprlist-p caseexprs).

    Definitions and Theorems

    Function: vl-caselist->caseexprs

    (defun vl-caselist->caseexprs (x)
      (declare (xargs :guard (vl-caselist-p x)))
      (let ((__function__ 'vl-caselist->caseexprs))
        (declare (ignorable __function__))
        (b* ((x (vl-caselist-fix x)))
          (if (atom x)
              nil
            (append (caar x)
                    (vl-caselist->caseexprs (cdr x)))))))

    Theorem: vl-exprlist-p-of-vl-caselist->caseexprs

    (defthm vl-exprlist-p-of-vl-caselist->caseexprs
      (b* ((caseexprs (vl-caselist->caseexprs x)))
        (vl-exprlist-p caseexprs))
      :rule-classes :rewrite)

    Theorem: vl-caselist->caseexprs-of-vl-caselist-fix-x

    (defthm vl-caselist->caseexprs-of-vl-caselist-fix-x
      (equal (vl-caselist->caseexprs (vl-caselist-fix x))
             (vl-caselist->caseexprs x)))

    Theorem: vl-caselist->caseexprs-vl-caselist-equiv-congruence-on-x

    (defthm vl-caselist->caseexprs-vl-caselist-equiv-congruence-on-x
      (implies (vl-caselist-equiv x x-equiv)
               (equal (vl-caselist->caseexprs x)
                      (vl-caselist->caseexprs x-equiv)))
      :rule-classes :congruence)