• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • 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
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defobject-info

    Make-defobject-info

    Basic constructor macro for defobject-info structures.

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

    This is the usual way to construct defobject-info structures. It simply conses together a structure with the specified fields.

    This macro generates a new defobject-info structure from scratch. See also change-defobject-info, which can "change" an existing structure, instead.

    Definition

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

    Macro: make-defobject-info

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

    Function: defobject-info

    (defun defobject-info
           (name-ident name-symbol
                       type init recognizer initializer call)
      (declare (xargs :guard (and (identp name-ident)
                                  (symbolp name-symbol)
                                  (typep type)
                                  (initer-optionp init)
                                  (symbolp recognizer)
                                  (symbolp initializer)
                                  (pseudo-event-formp call))))
      (declare (xargs :guard t))
      (let ((__function__ 'defobject-info))
        (declare (ignorable __function__))
        (b* ((name-ident (mbe :logic (ident-fix name-ident)
                              :exec name-ident))
             (name-symbol (mbe :logic (symbol-fix name-symbol)
                               :exec name-symbol))
             (type (mbe :logic (type-fix type) :exec type))
             (init (mbe :logic (initer-option-fix init)
                        :exec init))
             (recognizer (mbe :logic (symbol-fix recognizer)
                              :exec recognizer))
             (initializer (mbe :logic (symbol-fix initializer)
                               :exec initializer))
             (call (mbe :logic (acl2::pseudo-event-form-fix call)
                        :exec call)))
          (list (cons 'name-ident name-ident)
                (cons 'name-symbol name-symbol)
                (cons 'type type)
                (cons 'init init)
                (cons 'recognizer recognizer)
                (cons 'initializer initializer)
                (cons 'call call)))))