• 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
        • Executable
        • Specialized
          • Rv64im
          • Rv32im
            • Semantics32
            • States32
              • Write32-xreg
              • Xregfile32
              • Write32-mem-ubyte16-lendian
              • State32
                • State32p
                • State32-fix
                • State32-equiv
                • Make-state32
                • State32->xregfile
                • Change-state32
                  • State32->error
                  • State32->pc
                  • State32->mem
                • Memory32
                • Write32-mem-ubyte32-lendian
                • Write32-pc
                • Write32-mem-ubyte8
                • Read32-mem-ubyte16-lendian
                • Read32-xreg-unsigned
                • Read32-mem-ubyte8
                • Read32-mem-ubyte32-lendian
                • Read32-xreg-signed
                • Inc32-pc
                • Read32-pc
                • Error32p
                • Error32
                • *mem32-size*
              • Execution32
        • 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
    • State32

    Change-state32

    Modifying constructor for state32 structures.

    Syntax
    (change-state32 x 
                    [:xregfile <xregfile>] 
                    [:pc <pc>] 
                    [:mem <mem>] 
                    [:error <error>]) 
    

    This is an often useful alternative to make-state32.

    We construct a new state32 structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

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

    Macro: change-state32

    (defmacro change-state32 (x &rest args)
      (std::change-aggregate 'state32
                             x args
                             '((:xregfile . state32->xregfile)
                               (:pc . state32->pc)
                               (:mem . state32->mem)
                               (:error . state32->error))
                             'change-state32
                             'nil))