• 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-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
        • Bitcoin
        • Riscv
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)