• 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

    Make-stat32i

    Basic constructor macro for stat32i structures.

    Syntax
    (make-stat32i [:xregs <xregs>] 
                  [:pc <pc>] 
                  [:memory <memory>] 
                  [:error <error>]) 
    

    This is the usual way to construct stat32i structures. It simply conses together a structure with the specified fields.

    This macro generates a new stat32i structure from scratch. See also change-stat32i, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-stat32i

    (defmacro make-stat32i (&rest args)
      (std::make-aggregate 'stat32i
                           args
                           '((:xregs) (:pc) (:memory) (:error))
                           'make-stat32i
                           nil))

    Function: stat32i

    (defun stat32i (xregs pc memory error)
      (declare (xargs :guard (and (xregs32ip xregs)
                                  (ubyte32p pc)
                                  (memory32ip memory)
                                  (booleanp error))))
      (declare (xargs :guard t))
      (let ((__function__ 'stat32i))
        (declare (ignorable __function__))
        (b* ((xregs (mbe :logic (xregs32i-fix xregs)
                         :exec xregs))
             (pc (mbe :logic (ubyte32-fix pc) :exec pc))
             (memory (mbe :logic (memory32i-fix memory)
                          :exec memory))
             (error (mbe :logic (acl2::bool-fix error)
                         :exec error)))
          (list (cons 'xregs xregs)
                (cons 'pc pc)
                (cons 'memory memory)
                (cons 'error error)))))