• 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
          • Svstmt-case
          • Svstmt-while
          • Svstmt-p
          • Svstmt-if
          • Svstmt-equiv
          • Svstmt-xcond
          • Svstmt-scope
          • Svstmt-assign
          • Svstmt-compile
            • Svstmt-compile.lisp
              • Svstate-merge-branches
              • Svex-alist-merge-branches
              • Svstmt-assign->subst
              • Svstack-merge-branches
              • Svstacks-compatible
              • Svjumpstate-merge-svstate-branches
              • Svjumpstate-svstate-compatible
              • Svstmt-lhs-check-masks
              • Svjumpstate
              • Svjumpstates-compatible
              • Svstmtlist-compile-top
              • Svjumpstate-sequence-svstates
              • Constraintlist-merge-branches
              • Svjumpstate-merge-branches
              • Svex-replace-range
              • Svex-svstmt-ite
              • Svstmt-process-write
              • Svjumpstate-sequence
              • Svstmt-process-writelist
              • Svstack-assign
              • Svstmt-writelist-var-sizes
              • Svstates-compatible
              • 4vec-replace-range
              • Svstmt-write-var-sizes
              • Make-empty-svjumpstate
              • Constraintlist-add-pathcond
              • Svjumpstate-pop-scope
              • Constraintlist-compose-svstack
              • Svstack-to-svex-alist
              • Svstack-filter-global-lhs-vars
              • Svjumpstate-vars
                • Svex-svstmt-or
                • Svex-svstmt-andc1
                • Svstate-push-scope
                • Svstate-pop-scope
                • Svstate-vars
                • Svstack-lookup
                • Svar-subtract-delay
                • Svstmt-initialize-locals
                • Svstack-fork
                • Svstack-clean
                • Svstack-nonempty-fix
                • Svstate-fork
                • Svstate-clean
                • Svstack-globalp
                • Svjumpstate-fork
                • Svar-delayed-member
                • Svjumpstate-levels
                • Svjumpstate-free
                • Svstate-free
                • Svstack-free
                • Svstack
                • Svar-size-alist
              • Svstate
            • Svstmt-constraints
            • Svstmt-jump
            • Svstmtlist
            • Svstmt-kind
            • Svstmt.lisp
            • Svstmt-fix
            • Svstmt-count
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svstmt-compile.lisp

    Svjumpstate-vars

    Signature
    (svjumpstate-vars x) → vars
    Arguments
    x — Guard (svjumpstate-p x).
    Returns
    vars — Type (and (svarlist-p vars) (setp vars)).

    Definitions and Theorems

    Function: svjumpstate-vars

    (defun svjumpstate-vars (x)
     (declare (xargs :guard (svjumpstate-p x)))
     (let ((__function__ 'svjumpstate-vars))
      (declare (ignorable __function__))
      (b* (((svjumpstate x)))
       (union
        (union (svex-vars x.breakcond)
               (svstate-vars x.breakst))
        (union
         (union (svex-vars x.continuecond)
                (svstate-vars x.continuest))
         (union
           (svex-vars x.returncond)
           (union (svstate-vars x.returnst)
                  (mergesort (constraintlist-vars x.constraints)))))))))

    Theorem: return-type-of-svjumpstate-vars

    (defthm return-type-of-svjumpstate-vars
      (b* ((vars (svjumpstate-vars x)))
        (and (svarlist-p vars) (setp vars)))
      :rule-classes :rewrite)

    Theorem: svjumpstate-vars-of-svjumpstate

    (defthm svjumpstate-vars-of-svjumpstate
     (equal
      (svjumpstate-vars (svjumpstate constraints
                                     breakcond breakst continuecond
                                     continuest returncond returnst))
      (union
       (union (svex-vars breakcond)
              (svstate-vars breakst))
       (union
         (union (svex-vars continuecond)
                (svstate-vars continuest))
         (union
              (svex-vars returncond)
              (union (svstate-vars returnst)
                     (mergesort (constraintlist-vars constraints))))))))

    Theorem: vars-of-accessors-of-svjumpstate-vars

    (defthm vars-of-accessors-of-svjumpstate-vars
     (b* ((?vars (svjumpstate-vars x)))
      (implies
          (not (member v vars))
          (b* (((svjumpstate x)))
            (and (not (member v (svex-vars x.breakcond)))
                 (not (member v (svstate-vars x.breakst)))
                 (not (member v (svex-vars x.continuecond)))
                 (not (member v (svstate-vars x.continuest)))
                 (not (member v (svex-vars x.returncond)))
                 (not (member v (svstate-vars x.returnst)))
                 (not (member v
                              (constraintlist-vars x.constraints))))))))

    Theorem: svjumpstate-vars-of-svjumpstate-fix-x

    (defthm svjumpstate-vars-of-svjumpstate-fix-x
      (equal (svjumpstate-vars (svjumpstate-fix x))
             (svjumpstate-vars x)))

    Theorem: svjumpstate-vars-svjumpstate-equiv-congruence-on-x

    (defthm svjumpstate-vars-svjumpstate-equiv-congruence-on-x
      (implies (svjumpstate-equiv x x-equiv)
               (equal (svjumpstate-vars x)
                      (svjumpstate-vars x-equiv)))
      :rule-classes :congruence)