• 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
              • Svstate-p
              • Svstate-fix
              • Svstate-equiv
              • Make-svstate
              • Svstate->nonblkst
              • Svstate->blkst
                • Change-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
    • Svstate

    Svstate->blkst

    Get the blkst field from a svstate.

    Signature
    (svstate->blkst x) → blkst
    Arguments
    x — Guard (svstate-p x).
    Returns
    blkst — Type (svstack-p blkst).

    This is an ordinary field accessor created by defprod.

    Definitions and Theorems

    Function: svstate->blkst$inline

    (defun svstate->blkst$inline (x)
      (declare (xargs :guard (svstate-p x)))
      (declare (xargs :guard t))
      (let ((__function__ 'svstate->blkst))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x))
                  (blkst (svstack-fix (std::prod-car x)))
                  (nonblkst (svex-alist-fix (std::prod-cdr x))))
               (svstack-nonempty-fix blkst))
             :exec (std::prod-car x))))

    Theorem: svstack-p-of-svstate->blkst

    (defthm svstack-p-of-svstate->blkst
      (b* ((blkst (svstate->blkst$inline x)))
        (svstack-p blkst))
      :rule-classes :rewrite)

    Theorem: svstate->blkst$inline-of-svstate-fix-x

    (defthm svstate->blkst$inline-of-svstate-fix-x
      (equal (svstate->blkst$inline (svstate-fix x))
             (svstate->blkst$inline x)))

    Theorem: svstate->blkst$inline-svstate-equiv-congruence-on-x

    (defthm svstate->blkst$inline-svstate-equiv-congruence-on-x
      (implies (svstate-equiv x x-equiv)
               (equal (svstate->blkst$inline x)
                      (svstate->blkst$inline x-equiv)))
      :rule-classes :congruence)