• 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
          • Primitive-functions
          • Translated-terms
            • Tterm-constant-list->value-list
            • Tterm-free-vars
            • Tterm-option
            • Tterm-constant-list
            • Tterm-case-constant-listp
            • Lift-term
            • Tterms
              • Tterm
                • Tterm-case
                • Tterm-equiv
                • Tterm-call
                • Ttermp
                • Tterm-constant
                • Tterm-variable
                  • Tterm-variable->name
                  • Make-tterm-variable
                  • Change-tterm-variable
                  • Tterm-kind
                  • Tterm-fix
                  • Tterm-count
                • Tfunction
                • Tterm-list
            • Values
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • 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
    • Tterm-variable

    Change-tterm-variable

    Modifying constructor for tterm-variable structures.

    Syntax
    (change-tterm-variable x 
                           [:name <name>]) 
    

    This is an often useful alternative to make-tterm-variable.

    We construct a new tterm-variable 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-tterm-variable

    (defmacro change-tterm-variable (x &rest args)
      (std::change-aggregate 'tterm-variable
                             x args '((:name . tterm-variable->name))
                             'change-tterm-variable
                             'nil))