• 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
          • 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-write-fix
              • Svstmt-write-equiv
              • Make-svstmt-write
              • Svstmt-write->lhs
              • Change-svstmt-write
              • Svstmt-write->rhs
                • Svstmt-write-p
              • 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-write

    Svstmt-write->rhs

    Get the rhs field from a svstmt-write.

    Signature
    (svstmt-write->rhs x) → rhs
    Arguments
    x — Guard (svstmt-write-p x).
    Returns
    rhs — Type (svex-p rhs).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: svstmt-write->rhs$inline

    (defun svstmt-write->rhs$inline (x)
      (declare (xargs :guard (svstmt-write-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'svstmt-write->rhs))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (svex-fix (std::prod-cdr x)))
             :exec (std::prod-cdr x))))

    Theorem: svex-p-of-svstmt-write->rhs

    (defthm svex-p-of-svstmt-write->rhs
      (b* ((rhs (svstmt-write->rhs$inline x)))
        (svex-p rhs))
      :rule-classes :rewrite)

    Theorem: svstmt-write->rhs$inline-of-svstmt-write-fix-x

    (defthm svstmt-write->rhs$inline-of-svstmt-write-fix-x
      (equal (svstmt-write->rhs$inline (svstmt-write-fix x))
             (svstmt-write->rhs$inline x)))

    Theorem: svstmt-write->rhs$inline-svstmt-write-equiv-congruence-on-x

    (defthm svstmt-write->rhs$inline-svstmt-write-equiv-congruence-on-x
      (implies (svstmt-write-equiv x x-equiv)
               (equal (svstmt-write->rhs$inline x)
                      (svstmt-write->rhs$inline x-equiv)))
      :rule-classes :congruence)