• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
        • Specification
          • Semantics
          • Features
          • States
            • Stat
              • Statp
              • Stat-fix
              • Stat-equiv
              • Make-stat
                • Change-stat
                • Stat->memory
                • Stat->error
                • Stat->xregs
                • Stat->pc
              • Stat-validp
              • Write-memory-unsigned64
              • Write-memory-unsigned32
              • Write-memory-unsigned8
              • Write-memory-unsigned16
              • Write-xreg-32
              • Write-xreg
              • Read-xreg-unsigned
              • Read-memory-unsigned64
              • Read-memory-unsigned8
              • Read-memory-unsigned32
              • Read-xreg-signed
              • Read-memory-unsigned16
              • Read-instruction
              • Read-xreg-unsigned32
              • Write-pc
              • Read-xreg-signed32
              • Inc4-pc
              • Read-pc
              • Errorp
              • Error
              • Stat-rv64i-p
              • Stat-rv64e-p
              • Stat-rv32i-p
              • Stat-rv32e-p
            • Instructions
            • Encoding
            • Reads-over-writes
            • Execution
            • Decoding
          • Executable
          • Specialized
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Stat

    Make-stat

    Basic constructor macro for stat structures.

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

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

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

    Definition

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

    Macro: make-stat

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

    Function: stat

    (defun stat (xregs pc memory error)
      (declare (xargs :guard (and (ubyte8-listp memory)
                                  (booleanp error))))
      (declare (xargs :guard t))
      (let ((__function__ 'stat))
        (declare (ignorable __function__))
        (b* ((memory (mbe :logic (acl2::ubyte8-list-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)))))