• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
      • Apt
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Prime-field-constraint-systems
      • Proof-checker-array
      • Soft
      • Rp-rewriter
      • Farray
      • Instant-runoff-voting
      • Imp-language
        • Semantics
        • Abstract-syntax
        • Interpreter
          • Exec
        • Sidekick
        • Leftist-trees
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Bigmem
        • Regex
        • ACL2-programming-language
        • Java
        • C
        • Jfkr
        • X86isa
        • Equational
        • Cryptography
        • Where-do-i-place-my-book
        • Json
        • Built-ins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Interpreter

    Exec

    Program-mode interpreter for Imp.

    Signature
    (exec cfg) → *
    Arguments
    cfg — Guard (configp cfg).

    If the configuration has no commands, we return the final environment. Otherwise, we step the configuration and we recursively call the interprete.

    Definitions and Theorems

    Function: exec

    (defun exec (cfg)
           (declare (xargs :guard (configp cfg)))
           (if (consp (config->comms cfg))
               (exec (step cfg))
               (config->env cfg)))