• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
        • Specification
        • Executable
        • Specialized
          • Specialized-features
          • Rv64im
          • Rv32im
          • Specialized-states
            • States32i
              • Stat32i
              • Memory32i
              • Xregs32i
              • Stat32i-iso
              • Stat-rv32i-p
              • Read32i-xreg-unsigned
              • Read32i-xreg-unsigned{2}
              • Read32i-xreg-unsigned{0}
              • Read32i-xreg-unsigned{1}
              • Stat32i-from-stat
              • Stat-from-stat32i
                • Read-xreg-unsigned-to-read32i-xreg-unsigned
              • States64i
              • States64e
              • States32e
          • Optimized
        • Taspi
        • Bitcoin
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • States32i

    Stat-from-stat32i

    Convert from stat32i to stat-rv32i-p.

    Signature
    (stat-from-stat32i stat32i) → stat
    Arguments
    stat32i — Guard (stat32ip stat32i).
    Returns
    stat — Type (stat-rv32i-p stat).

    Definitions and Theorems

    Function: stat-from-stat32i

    (defun stat-from-stat32i (stat32i)
      (declare (xargs :guard (stat32ip stat32i)))
      (let ((__function__ 'stat-from-stat32i))
        (declare (ignorable __function__))
        (make-stat :xregs (stat32i->xregs stat32i)
                   :pc (stat32i->pc stat32i)
                   :memory (stat32i->memory stat32i)
                   :error (stat32i->error stat32i))))

    Theorem: stat-rv32i-p-of-stat-from-stat32i

    (defthm stat-rv32i-p-of-stat-from-stat32i
      (b* ((stat (stat-from-stat32i stat32i)))
        (stat-rv32i-p stat))
      :rule-classes :rewrite)