• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
      • X86isa
        • Program-execution
        • Introduction
        • X86isa-build-instructions
        • Publications
        • Contributors
        • Machine
          • Syscalls
          • Cpuid
          • X86isa-state
          • Linear-memory
          • Rflag-specifications
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
            • Effective-address-computations
            • Read-operands-and-write-results
            • Instruction-pointer-operations
            • Select-operand-size
            • Stack-pointer-operations
            • Select-segment-register
            • Prefix-modrm-sib-decoding
              • Modr/m-decoding
              • Mandatory-prefixes-computation
              • Modr/m-detection
              • Legacy-prefixes-decoding
                • Inst-list-prefix-byte-group-code
                • Inst-prefix-byte-group-code
                • Get-one-byte-prefix-array-code
                • 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
              • Check-instruction-length
              • Error-objects
              • Rip-guard-okp
              • Sib-decoding
            • Instructions
            • X86-modes
            • Segmentation
            • Register-readers-and-writers
            • Other-non-deterministic-computations
            • Environment
            • Paging
          • Implemented-opcodes
          • Proof-utilities
          • To-do
          • Concrete-simulation-examples
          • Model-validation
          • Utils
          • Debugging-code-proofs
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Legacy-prefixes-decoding

    Get-one-byte-prefix-array-code

    Signature
    (get-one-byte-prefix-array-code byte) → code
    Returns
    code — Type (natp code).

    Definitions and Theorems

    Function: get-one-byte-prefix-array-code

    (defun get-one-byte-prefix-array-code (byte)
      (declare (type (unsigned-byte 8) byte))
      (let ((__function__ 'get-one-byte-prefix-array-code))
        (declare (ignorable __function__))
        (aref1 'one-byte-prefixes-group-code-info
               *one-byte-prefixes-group-code-info-ar*
               (mbe :logic (loghead 8 byte)
                    :exec byte))))

    Theorem: natp-of-get-one-byte-prefix-array-code

    (defthm natp-of-get-one-byte-prefix-array-code
      (b* ((code (get-one-byte-prefix-array-code byte)))
        (natp code))
      :rule-classes (:rewrite :type-prescription))

    Theorem: upper-bound-get-one-byte-prefix-array-code

    (defthm upper-bound-get-one-byte-prefix-array-code
      (<= (get-one-byte-prefix-array-code x)
          4))