• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
          • Executable
          • Specialized
            • Specialized-features
            • Rv64im
            • Rv32im
            • Specialized-states
              • States32i
                • Stat32i
                  • Stat32ip
                  • Stat32i-fix
                  • Stat32i-equiv
                  • Make-stat32i
                  • Change-stat32i
                  • Stat32i->xregs
                    • Stat32i->memory
                    • Stat32i->error
                    • Stat32i->pc
                  • Memory32i
                  • Xregs32i
                  • Stat32i-iso
                  • Stat-rv32i-p
                  • Read32i-xreg-unsigned
                  • Read32i-xreg-unsigned{2}
                  • Read32i-xreg-unsigned{0}
                  • Read32i-xreg-unsigned{1}
                  • Stat32i-from-stat
                  • Stat-from-stat32i
                  • Read-xreg-unsigned-to-read32i-xreg-unsigned
                • States64i
                • States64e
                • States32e
            • Optimized
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Stat32i

    Stat32i->xregs

    Get the xregs field from a stat32i.

    Signature
    (stat32i->xregs x) → xregs
    Arguments
    x — Guard (stat32ip x).
    Returns
    xregs — Type (xregs32ip xregs).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: stat32i->xregs$inline

    (defun stat32i->xregs$inline (x)
      (declare (xargs :guard (stat32ip x)))
      (declare (xargs :guard t))
      (let ((__function__ 'stat32i->xregs))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (xregs32i-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: xregs32ip-of-stat32i->xregs

    (defthm xregs32ip-of-stat32i->xregs
      (b* ((xregs (stat32i->xregs$inline x)))
        (xregs32ip xregs))
      :rule-classes :rewrite)

    Theorem: stat32i->xregs$inline-of-stat32i-fix-x

    (defthm stat32i->xregs$inline-of-stat32i-fix-x
      (equal (stat32i->xregs$inline (stat32i-fix x))
             (stat32i->xregs$inline x)))

    Theorem: stat32i->xregs$inline-stat32i-equiv-congruence-on-x

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