• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
            • Interpret-loop
            • Interpret
            • Evaluation-states
          • Prime-fields
          • Java
          • C
          • Syntheto
          • Number-theory
          • Cryptography
          • Lists-light
          • File-io-light
          • Json
          • Built-ins
          • Solidity
          • Axe
          • Std-extensions
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Execloader
        • Axe
      • Testing-utilities
      • Math
    • Interpreter

    Interpret

    Exhaustively execute a function call.

    Signature
    (interpret function arguments program) → value?
    Arguments
    function — Guard (symbol-valuep function).
    arguments — Guard (value-listp arguments).
    program — Guard (programp program).
    Returns
    value? — A value-optionp.

    This is a program-mode executable counterpart of the logic-mode non-executable function exec-call. It is a possibly non-terminating interpreter.

    Definitions and Theorems

    Function: interpret

    (defun interpret (function arguments program)
           (declare (xargs :guard (and (symbol-valuep function)
                                       (value-listp arguments)
                                       (programp program))))
           (let ((__function__ 'interpret))
                (declare (ignorable __function__))
                (interpret-loop (eval-state-init function arguments)
                                program)))