• 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-table-lookup

    Retrieve information about a shallowly embedded C external object.

    Signature
    (defobject-table-lookup name wrld) → info?
    Arguments
    name — Guard (stringp name).
    wrld — Guard (plist-worldp wrld).
    Returns
    info? — Type (defobject-info-optionp info?).

    Definitions and Theorems

    Function: defobject-table-lookup

    (defun defobject-table-lookup (name wrld)
     (declare (xargs :guard (and (stringp name)
                                 (plist-worldp wrld))))
     (let ((__function__ 'defobject-table-lookup))
       (declare (ignorable __function__))
       (b*
         ((pair (assoc-equal name
                             (table-alist+ *defobject-table* wrld)))
          ((when (not (consp pair))) nil)
          (info (cdr pair))
          ((unless (defobject-infop info))
           (raise "Internal error: malformed DEFOBJECT information ~x0."
                  info)))
         info)))

    Theorem: defobject-info-optionp-of-defobject-table-lookup

    (defthm defobject-info-optionp-of-defobject-table-lookup
      (b* ((info? (defobject-table-lookup name wrld)))
        (defobject-info-optionp info?))
      :rule-classes :rewrite)