• 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
                • Stat32ip
                  • Stat32i-fix
                  • Stat32i-equiv
                  • Make-stat32i
                  • Change-stat32i
                  • Stat32i->xregs
                  • Stat32i->memory
                  • Stat32i->error
                  • Stat32i->pc
                • Memory32i
                • Xregs32i
                • Stat32i-iso
                • Stat-rv32i-p
                • Read32i-xreg-unsigned{2}
                • Read32i-xreg-unsigned{0}
                • Read32i-xreg-unsigned{1}
                • Stat32i-from-stat
                • Stat-from-stat32i
              • 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
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Stat32i

    Stat32ip

    Recognizer for stat32i structures.

    Signature
    (stat32ip x) → *

    Definitions and Theorems

    Function: stat32ip

    (defun stat32ip (x)
     (declare (xargs :guard t))
     (let ((__function__ 'stat32ip))
      (declare (ignorable __function__))
      (and
          (mbe :logic (and (alistp x)
                           (equal (strip-cars x)
                                  '(xregs pc memory error)))
               :exec (fty::alist-with-carsp x '(xregs pc memory error)))
          (b* ((xregs (cdr (std::da-nth 0 x)))
               (pc (cdr (std::da-nth 1 x)))
               (memory (cdr (std::da-nth 2 x)))
               (error (cdr (std::da-nth 3 x))))
            (and (xregs32ip xregs)
                 (ubyte32p pc)
                 (memory32ip memory)
                 (booleanp error))))))

    Theorem: consp-when-stat32ip

    (defthm consp-when-stat32ip
      (implies (stat32ip x) (consp x))
      :rule-classes :compound-recognizer)