• 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-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-implementation

    Defobject-process-inputs

    Process the inputs of defobject.

    Signature
    (defobject-process-inputs name type init call wrld) 
      → 
    (mv erp name-string name-ident type initer? redundantp)
    Arguments
    call — Guard (pseudo-event-formp call).
    wrld — Guard (plist-worldp wrld).
    Returns
    name-string — A stringp.
    name-ident — An identp.
    type — A typep.
    initer? — An initer-optionp.
    redundantp — A booleanp.

    Definitions and Theorems

    Function: defobject-process-inputs

    (defun defobject-process-inputs (name type init call wrld)
      (declare (xargs :guard (and (pseudo-event-formp call)
                                  (plist-worldp wrld))))
      (let ((__function__ 'defobject-process-inputs))
        (declare (ignorable __function__))
        (b* (((reterr)
              "" (irr-ident)
              (irr-type)
              nil nil)
             ((erp name-string name-ident redundantp)
              (defobject-process-name name call wrld))
             ((when redundantp)
              (retok name-string name-ident (irr-type)
                     nil t))
             ((erp type)
              (defobject-process-type type))
             ((erp initer?)
              (defobject-process-init init type wrld)))
          (retok name-string
                 name-ident type initer? nil))))