• 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
          • App-view
          • Top-level-memory
          • 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
                • Select-insts
                • Remove-insts-with-feat
                • Keep-insts-with-feat
                • Select-opcode-map
                • 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
    • Filtering-instructions

    Select-opcode-map

    Signature
    (select-opcode-map map-key) → inst-lst
    Arguments
    map-key — Guard (keywordp map-key).
    Returns
    inst-lst — Type (inst-list-p inst-lst), given the guard.

    Definitions and Theorems

    Function: select-opcode-map

    (defun select-opcode-map (map-key)
     (declare (xargs :guard (keywordp map-key)))
     (declare
      (xargs
           :guard
           (member-equal map-key
                         '(:one-byte :two-byte
                                     :0f-38-three-byte :0f-3a-three-byte
                                     :vex-0f :vex-0f-38
                                     :vex-0f-3a :evex-0f
                                     :evex-0f-38 :evex-0f-3a))))
     (let ((__function__ 'select-opcode-map))
       (declare (ignorable __function__))
       (case map-key
         (:one-byte *one-byte-opcode-map*)
         ((:two-byte :vex-0f :evex-0f)
          *two-byte-opcode-map*)
         ((:0f-38-three-byte :vex-0f-38 :evex-0f-38)
          *0f-38-three-byte-opcode-map*)
         ((:0f-3a-three-byte :vex-0f-3a :evex-0f-3a)
          *0f-3a-three-byte-opcode-map*))))

    Theorem: inst-list-p-of-select-opcode-map

    (defthm inst-list-p-of-select-opcode-map
     (implies
      (and (keywordp map-key)
           (member-equal map-key
                         '(:one-byte :two-byte
                                     :0f-38-three-byte :0f-3a-three-byte
                                     :vex-0f :vex-0f-38
                                     :vex-0f-3a :evex-0f
                                     :evex-0f-38 :evex-0f-3a)))
      (b* ((inst-lst (select-opcode-map map-key)))
        (inst-list-p inst-lst)))
     :rule-classes :rewrite)