• 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
                • Defstruct
                • Defobject
                  • Defobject-implementation
                    • Defobject-info
                      • Defobject-info-fix
                      • Make-defobject-info
                      • Defobject-info-equiv
                      • Defobject-infop
                      • Defobject-info->recognizer
                      • Defobject-info->name-symbol
                      • Defobject-info->name-ident
                      • Defobject-info->initializer
                      • Change-defobject-info
                        • Defobject-info->init
                        • Defobject-info->call
                        • Defobject-info->type
                      • Defobject-gen-everything
                      • Defobject-process-name
                      • Defobject-info-option
                      • Defobject-term-to-expr
                      • Term-checkers-common
                      • Defobject-process-init
                      • Defobject-process-init-term
                      • Defobject-table-record-event
                      • Defobject-process-type
                      • Defobject-process-inputs
                      • Defobject-table-lookup
                      • Defobject-process-init-terms
                      • Defobject-process-inputs-and-gen-everything
                      • Defobject-fn
                      • Defobject-table-definition
                      • *defobject-table*
                      • Defobject-macro-definition
                  • Atc-let-designations
                  • Pointer-types
                  • Atc-conditional-expressions
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • 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
    • Defobject-info

    Change-defobject-info

    Modifying constructor for defobject-info structures.

    Syntax
    (change-defobject-info x 
                           [:name-ident <name-ident>] 
                           [:name-symbol <name-symbol>] 
                           [:type <type>] 
                           [:init <init>] 
                           [:recognizer <recognizer>] 
                           [:initializer <initializer>] 
                           [:call <call>]) 
    

    This is an often useful alternative to make-defobject-info.

    We construct a new defobject-info 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-defobject-info

    (defmacro change-defobject-info (x &rest args)
      (std::change-aggregate
           'defobject-info
           x args
           '((:name-ident . defobject-info->name-ident)
             (:name-symbol . defobject-info->name-symbol)
             (:type . defobject-info->type)
             (:init . defobject-info->init)
             (:recognizer . defobject-info->recognizer)
             (:initializer . defobject-info->initializer)
             (:call . defobject-info->call))
           'change-defobject-info
           'nil))