• 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
              • Atc-process-inputs-and-gen-everything
              • Atc-table
                • Atc-call-infop
                • Atc-table-record-event
                • Atc-table-lookup
                  • Atc-maybe-call-infop
                  • Atc-table-definition
                  • *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
    • Atc-table

    Atc-table-lookup

    Look up an atc call in the table.

    Signature
    (atc-table-lookup call wrld) → info?
    Arguments
    call — Guard (pseudo-event-formp call).
    wrld — Guard (plist-worldp wrld).
    Returns
    info? — Type (atc-maybe-call-infop info?).

    Definitions and Theorems

    Function: atc-table-lookup

    (defun atc-table-lookup (call wrld)
     (declare (xargs :guard (and (pseudo-event-formp call)
                                 (plist-worldp wrld))))
     (let ((__function__ 'atc-table-lookup))
      (declare (ignorable __function__))
      (b* ((table (table-alist+ *atc-table* wrld))
           (info? (cdr (assoc-equal call table))))
       (if (atc-maybe-call-infop info?)
           info?
        (raise
         "Internal error: malformed value ~x0 of key ~x1 in the ATC table."
         info? call)))))

    Theorem: atc-maybe-call-infop-of-atc-table-lookup

    (defthm atc-maybe-call-infop-of-atc-table-lookup
      (b* ((info? (atc-table-lookup call wrld)))
        (atc-maybe-call-infop info?))
      :rule-classes :rewrite)