• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • Rflags-reads-and-writes
              • Write-user-rflags
              • Undef-flg-logic
              • Undef-flg
              • General-sf-spec-fn
              • General-cf-spec-fn
              • General-pf-spec-fn
              • General-of-spec-fn
              • Zf-spec
              • Sbb-af-spec8
              • Sbb-af-spec64
              • Sbb-af-spec32
              • Sbb-af-spec16
              • Adc-af-spec8
              • Adc-af-spec64
              • Adc-af-spec32
              • Adc-af-spec16
              • Sub-af-spec8
              • Sub-af-spec64
              • Sub-af-spec32
              • Sub-af-spec16
              • Add-af-spec8
              • Add-af-spec64
              • Add-af-spec32
              • Add-af-spec16
              • Pf-spec64
              • Pf-spec32
              • Pf-spec16
              • Of-spec64
              • Sf-spec64
              • Sf-spec32
              • Sf-spec16
              • Pf-spec8
              • Of-spec8
              • Of-spec32
              • Of-spec16
              • Cf-spec8
              • Cf-spec64
              • Cf-spec32
              • Cf-spec16
              • Sf-spec8
            • Characterizing-undefined-behavior
            • Top-level-memory
            • App-view
            • X86-decoder
            • Physical-memory
            • Decoding-and-spec-utils
            • 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
    • Rflags-reads-and-writes

    Undef-flg

    Signature
    (undef-flg x86) → (mv unknown-bit x86)
    Returns
    unknown-bit — Type (bitp unknown-bit).
    x86 — Type (x86p x86), given (x86p x86).

    Definitions and Theorems

    Function: undef-flg$notinline

    (defun undef-flg$notinline (x86)
      (declare (xargs :stobjs (x86)))
      (declare (xargs :guard t))
      (let ((__function__ 'undef-flg))
        (declare (ignorable __function__))
        (b* (((mv val x86) (undef-flg-logic x86)))
          (mv (n01 val) x86))))

    Theorem: bitp-of-undef-flg.unknown-bit

    (defthm bitp-of-undef-flg.unknown-bit
      (b* (((mv ?unknown-bit ?x86)
            (undef-flg$notinline x86)))
        (bitp unknown-bit))
      :rule-classes :type-prescription)

    Theorem: x86p-of-undef-flg.x86

    (defthm x86p-of-undef-flg.x86
      (implies (x86p x86)
               (b* (((mv ?unknown-bit ?x86)
                     (undef-flg$notinline x86)))
                 (x86p x86)))
      :rule-classes :rewrite)