• 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-scope->locals
            • Make-svstmt-scope
            • Svstmt-scope->body
              • Change-svstmt-scope
            • Svstmt-assign
            • Svstmt-compile
            • 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-scope

    Svstmt-scope->body

    Get the body field from a svstmt-scope.

    Signature
    (svstmt-scope->body x) → body
    Arguments
    x — Guard (svstmt-p x).
    Returns
    body — Type (svstmtlist-p body).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: svstmt-scope->body$inline

    (defun svstmt-scope->body$inline (x)
      (declare (xargs :guard (svstmt-p x)))
      (declare (xargs :guard (equal (svstmt-kind x) :scope)))
      (let ((__function__ 'svstmt-scope->body))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and (equal (svstmt-kind x) :scope) x)))
               (svstmtlist-fix (std::da-nth 1 (cdr x))))
             :exec (std::da-nth 1 (cdr x)))))

    Theorem: svstmtlist-p-of-svstmt-scope->body

    (defthm svstmtlist-p-of-svstmt-scope->body
      (b* ((body (svstmt-scope->body$inline x)))
        (svstmtlist-p body))
      :rule-classes :rewrite)

    Theorem: svstmt-scope->body$inline-of-svstmt-fix-x

    (defthm svstmt-scope->body$inline-of-svstmt-fix-x
      (equal (svstmt-scope->body$inline (svstmt-fix x))
             (svstmt-scope->body$inline x)))

    Theorem: svstmt-scope->body$inline-svstmt-equiv-congruence-on-x

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

    Theorem: svstmt-scope->body-when-wrong-kind

    (defthm svstmt-scope->body-when-wrong-kind
      (implies (not (equal (svstmt-kind x) :scope))
               (equal (svstmt-scope->body x)
                      (svstmtlist-fix nil))))