• 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-constraints
          • Svstmt-jump
          • Svstmtlist
          • Svstmt-kind
          • Svstmt.lisp
            • Svstmt-write
            • Svstmt-writelist-vars
            • Svstmt-write-vars
              • Svstmt-writelist
              • Svjump-p
            • 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.lisp

    Svstmt-write-vars

    Signature
    (svstmt-write-vars x) → vars
    Arguments
    x — Guard (svstmt-write-p x).
    Returns
    vars — Type (svarlist-p vars).

    Definitions and Theorems

    Function: svstmt-write-vars

    (defun svstmt-write-vars (x)
      (declare (xargs :guard (svstmt-write-p x)))
      (let ((__function__ 'svstmt-write-vars))
        (declare (ignorable __function__))
        (b* (((svstmt-write x)))
          (append-without-guard (svex-select-vars x.lhs)
                                (svex-vars x.rhs)))))

    Theorem: svarlist-p-of-svstmt-write-vars

    (defthm svarlist-p-of-svstmt-write-vars
      (b* ((vars (svstmt-write-vars x)))
        (svarlist-p vars))
      :rule-classes :rewrite)

    Theorem: svstmt-write-vars-of-svstmt-write-fix-x

    (defthm svstmt-write-vars-of-svstmt-write-fix-x
      (equal (svstmt-write-vars (svstmt-write-fix x))
             (svstmt-write-vars x)))

    Theorem: svstmt-write-vars-svstmt-write-equiv-congruence-on-x

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