• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Sdm-instruction-set-summary
        • Tlb
        • Running-linux
        • Introduction
        • Asmtest
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • X86isa-state
          • Syscalls
          • Cpuid
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
            • Two-byte-opcodes
            • One-byte-opcodes
            • Fp-opcodes
            • Instruction-semantic-functions
            • X86-illegal-instruction
            • Implemented-opcodes
            • Opcode-maps
              • Cpuid
              • Opcode-maps-structures
              • Implemented-opcodes
              • Chk-exc-fn
              • Filtering-instructions
              • Addressing-method-code-p
              • Operand-type-code-p
              • Eval-pre-map
              • X86-general-protection
              • X86-device-not-available
              • X86-step-unimplemented
              • Privileged-opcodes
              • Three-byte-opcodes
            • Register-readers-and-writers
            • X86-modes
            • Segmentation
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • To-do
          • Proof-utilities
          • Peripherals
          • Model-validation
          • Modelcalls
          • Concrete-simulation-examples
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Quote
    • Opcode-maps

    Eval-pre-map

    Signature
    (eval-pre-map x state) → (mv * * state)

    Definitions and Theorems

    Function: eval-pre-map

    (defun eval-pre-map (x state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard t))
      (let ((__function__ 'eval-pre-map))
        (declare (ignorable __function__))
        (if (atom x)
            (mv nil x state)
          (b* (((mv ?erp val state)
                (trans-eval (car x)
                            'eval-pre-map
                            state t))
               ((mv erp rest state)
                (eval-pre-map (cdr x) state))
               (all (cons (cdr val) rest))
               (erp (or erp (if (inst-list-p all) nil t))))
            (mv erp all state)))))