• 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
        • C
        • Soft
        • Bv
        • Imp-language
          • Semantics
            • Step
            • Write-var
            • Outcome
              • Outcome-case
              • Outcome-fix
              • Outcome-equiv
              • Outcome-terminated
                • Outcome-terminated->env
                • Make-outcome-terminated
                • Change-outcome-terminated
                • Outcomep
                • Outcome-nonterminating
                • Outcome-kind
              • Beval
              • Read-var
              • Config
              • Terminatingp
              • Aeval
              • Step*
              • Stepn
              • Env
            • Abstract-syntax
            • Interpreter
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Outcome-terminated

    Change-outcome-terminated

    Modifying constructor for outcome-terminated structures.

    Syntax
    (change-outcome-terminated x 
                               [:env <env>]) 
    

    This is an often useful alternative to make-outcome-terminated.

    We construct a new outcome-terminated 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-outcome-terminated

    (defmacro change-outcome-terminated (x &rest args)
      (std::change-aggregate 'outcome-terminated
                             x
                             args '((:env . outcome-terminated->env))
                             'change-outcome-terminated
                             'nil))