• 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
      • 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
        • Primitive-functions
        • Translated-terms
        • Values
        • Evaluation
        • Program-equivalence
        • Functions
        • Packages
        • Programs
        • Interpreter
          • Interpret-loop
          • Interpret
          • Evaluation-states
        • 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
    • 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)))