• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
          • Process-syntheto-toplevel-fn
          • Translation
            • Trans-state
              • Trans-state-fix
              • Extend-trans-state
              • Trans-state-equiv
              • Extend-trans-state-list
              • Make-trans-state
              • Trans-state->tops
              • Change-trans-state
                • Trans-statep
                • Get-trans-state
                • Init-trans-state
                • Trans-state-table
              • Translate-to-ACL2-fn
              • Translate-to-ACL2
              • Set-trans-state
            • Language
            • Process-syntheto-toplevel
            • Shallow-embedding
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Trans-state

    Change-trans-state

    Modifying constructor for trans-state structures.

    Syntax
    (change-trans-state x 
                        [:tops <tops>]) 
    

    This is an often useful alternative to make-trans-state.

    We construct a new trans-state 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-trans-state

    (defmacro change-trans-state (x &rest args)
      (std::change-aggregate 'trans-state
                             x args '((:tops . trans-state->tops))
                             'change-trans-state
                             'nil))