• 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-init-terms

    Process the list :init.

    Signature
    (defobject-process-init-terms terms required-type wrld) 
      → 
    (mv erp exprs)
    Arguments
    terms — Guard (true-listp terms).
    required-type — Guard (typep required-type).
    wrld — Guard (plist-worldp wrld).
    Returns
    exprs — An expr-listp.

    We process each item, returning the corresponding list of expressions if successful.

    Definitions and Theorems

    Function: defobject-process-init-terms

    (defun defobject-process-init-terms (terms required-type wrld)
      (declare (xargs :guard (and (true-listp terms)
                                  (typep required-type)
                                  (plist-worldp wrld))))
      (let ((__function__ 'defobject-process-init-terms))
        (declare (ignorable __function__))
        (b* (((reterr) nil)
             ((when (endp terms)) (retok nil))
             ((erp expr)
              (defobject-process-init-term (car terms)
                                           required-type wrld))
             ((erp exprs)
              (defobject-process-init-terms (cdr terms)
                                            required-type wrld)))
          (retok (cons expr exprs)))))