• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Read-operands-and-write-results
            • Effective-address-computations
            • Select-operand-size
            • Instruction-pointer-operations
            • Stack-pointer-operations
            • Select-segment-register
            • Prefix-modrm-sib-decoding
              • Modr/m-decoding
                • Modr/m-structures
                • Three-byte-opcode-modr/m-p
                • 64-bit-mode-0f-3a-three-byte-opcode-modr/m-p
                • 64-bit-mode-0f-38-three-byte-opcode-modr/m-p
                • 32-bit-mode-0f-3a-three-byte-opcode-modr/m-p
                • 32-bit-mode-0f-38-three-byte-opcode-modr/m-p
                • 64-bit-mode-two-byte-opcode-modr/m-p
                • 32-bit-mode-two-byte-opcode-modr/m-p
                • Two-byte-opcode-modr/m-p
                • Show-no-modr/m-insts
                  • 64-bit-mode-one-byte-opcode-modr/m-p
                  • 32-bit-mode-one-byte-opcode-modr/m-p
                  • Vex-opcode-modr/m-p
                  • One-byte-opcode-modr/m-p
                • Mandatory-prefixes-computation
                • Modr/m-detection
                • Legacy-prefixes-decoding
                • Compute-mandatory-prefix-for-three-byte-opcode
                • 64-bit-compute-mandatory-prefix-for-0f-3a-three-byte-opcode
                • 64-bit-compute-mandatory-prefix-for-0f-38-three-byte-opcode
                • 32-bit-compute-mandatory-prefix-for-0f-3a-three-byte-opcode
                • 32-bit-compute-mandatory-prefix-for-0f-38-three-byte-opcode
                • 64-bit-compute-mandatory-prefix-for-two-byte-opcode
                • 32-bit-compute-mandatory-prefix-for-two-byte-opcode
                • Instructions-with-mandatory-prefixes
                • Compute-mandatory-prefix-for-0f-3a-three-byte-opcode
                • Compute-mandatory-prefix-for-0f-38-three-byte-opcode
                • Compute-mandatory-prefix-for-two-byte-opcode
              • Select-address-size
              • Rex-byte-from-vex-prefixes
              • Check-instruction-length
              • Error-objects
              • Rip-guard-okp
              • Sib-decoding
            • Instructions
            • 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
    • Modr/m-decoding

    Show-no-modr/m-insts

    Show all the instructions in inst-lst which don't require a ModR/M byte

    Signature
    (show-no-modr/m-insts inst-lst) → no-modr/m-insts
    Arguments
    inst-lst — Guard (inst-list-p inst-lst).
    Returns
    no-modr/m-insts — Type (inst-list-p no-modr/m-insts), given (inst-list-p inst-lst).

    Definitions and Theorems

    Function: show-no-modr/m-insts

    (defun show-no-modr/m-insts (inst-lst)
      (declare (xargs :guard (inst-list-p inst-lst)))
      (let ((__function__ 'show-no-modr/m-insts))
        (declare (ignorable __function__))
        (b* (((when (endp inst-lst)) nil)
             (inst (car inst-lst))
             (rest (show-no-modr/m-insts (cdr inst-lst))))
          (if (inst-needs-modr/m-p inst)
              rest
            (cons inst rest)))))

    Theorem: inst-list-p-of-show-no-modr/m-insts

    (defthm inst-list-p-of-show-no-modr/m-insts
      (implies (inst-list-p inst-lst)
               (b* ((no-modr/m-insts (show-no-modr/m-insts inst-lst)))
                 (inst-list-p no-modr/m-insts)))
      :rule-classes :rewrite)