• 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
          • Characterizing-undefined-behavior
          • Top-level-memory
          • App-view
          • X86-decoder
          • Physical-memory
          • Decoding-and-spec-utils
          • Instructions
          • Register-readers-and-writers
            • Zmms-reads-and-writes
            • Gprs-reads-and-writes
              • Wr08
              • Wr16
              • Rr08
              • Wr32
              • !rgfi-size
              • Rgfi-size
              • Rr64
              • Wr64
              • Rr32
                • Rr16
              • Mmx-registers-reads-and-writes
              • Xmms-reads-and-writes
              • Rflags-reads-and-writes
              • Gpr-indices
              • Vex-vvvv-reg-index
              • Msr-reads-and-writes
              • Ctr-reads-and-writes
            • 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
    • Gprs-reads-and-writes

    Rr32

    Read from doubleword general-purpose registers

    Signature
    (rr32 reg x86) → *

    Definitions and Theorems

    Function: rr32$inline

    (defun rr32$inline (reg x86)
      (declare (xargs :stobjs (x86)))
      (declare (type (unsigned-byte 4) reg))
      (n32 (the (signed-byte 64) (rgfi reg x86))))

    Theorem: n32p-rr32

    (defthm n32p-rr32
     (unsigned-byte-p 32 (rr32 reg x86))
     :rule-classes
     (:rewrite
      (:type-prescription
          :corollary (natp (rr32 reg x86))
          :hints
          (("Goal" :in-theory '(unsigned-byte-p integer-range-p natp))))
      (:linear
       :corollary (and (<= 0 (rr32 reg x86))
                       (< (rr32 reg x86) 4294967296))
       :hints
       (("Goal"
            :in-theory '(unsigned-byte-p integer-range-p (:e expt)))))))