• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
          • Specification
            • Semantics
            • Features
            • Instructions
            • Encoding
            • States
            • Reads-over-writes
              • Read-memory-of-write-memory-theorems
              • Read-xreg-of-write-memory-theorems
              • Read-xreg-of-write-xreg-theorems
              • Read-xreg-of-write-pc-theorems
                • Read-memory-of-write-pc-theorems
                • Read-memory-of-write-xreg-theorems
                • Read-pc-of-write-pc-theorems
                • Read-pc-of-write-memory-theorems
                • Read-instr-of-write-pc-theorems
                • Read-instr-of-write-memory-theorems
                • Read-pc-of-write-xreg-theorems
                • Read-instr-of-write-xreg-theorems
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Reads-over-writes

    Read-xreg-of-write-pc-theorems

    Theorems about reads of registers over writes of program counter.

    The writes of program counter include not only write-pc but also inc4-pc.

    These theorems are all enabled by default because they always clearly simplify the term.

    Definitions and Theorems

    Theorem: read-xreg-unsigned-of-write-pc

    (defthm read-xreg-unsigned-of-write-pc
      (equal (read-xreg-unsigned reg (write-pc pc stat feat)
                                 feat)
             (read-xreg-unsigned reg stat feat)))

    Theorem: read-xreg-signed-of-write-pc

    (defthm read-xreg-signed-of-write-pc
      (equal (read-xreg-signed reg (write-pc pc stat feat)
                               feat)
             (read-xreg-signed reg stat feat)))

    Theorem: read-xreg-unsigned32-of-write-pc

    (defthm read-xreg-unsigned32-of-write-pc
      (equal (read-xreg-unsigned32 reg (write-pc pc stat feat)
                                   feat)
             (read-xreg-unsigned32 reg stat feat)))

    Theorem: read-xreg-signed32-of-write-pc

    (defthm read-xreg-signed32-of-write-pc
      (equal (read-xreg-signed32 reg (write-pc pc stat feat)
                                 feat)
             (read-xreg-signed32 reg stat feat)))

    Theorem: read-xreg-unsigned-of-inc4-pc

    (defthm read-xreg-unsigned-of-inc4-pc
      (equal (read-xreg-unsigned reg (inc4-pc stat feat)
                                 feat)
             (read-xreg-unsigned reg stat feat)))

    Theorem: read-xreg-signed-of-inc4-pc

    (defthm read-xreg-signed-of-inc4-pc
      (equal (read-xreg-signed reg (inc4-pc stat feat)
                               feat)
             (read-xreg-signed reg stat feat)))

    Theorem: read-xreg-unsigned32-of-inc4-pc

    (defthm read-xreg-unsigned32-of-inc4-pc
      (equal (read-xreg-unsigned32 reg (inc4-pc stat feat)
                                   feat)
             (read-xreg-unsigned32 reg stat feat)))

    Theorem: read-xreg-signed32-of-inc4-pc

    (defthm read-xreg-signed32-of-inc4-pc
      (equal (read-xreg-signed32 reg (inc4-pc stat feat)
                                 feat)
             (read-xreg-signed32 reg stat feat)))