• 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
      • Taspi
      • Bitcoin
      • Riscv
        • Instructions
          • Instr
          • Op-funct
          • Op-32-funct
          • Op-imm-funct
          • Load-funct
          • Branch-funct
          • Op-imms-funct
          • Store-funct
            • Store-funct-fix
            • Store-funct-case
            • Store-funct-equiv
            • Store-funct-p
            • Store-funct-sw
            • Store-funct-sh
            • Store-funct-sd
            • Store-funct-sb
            • Store-funct-kind
            • Op-imms-32-funct
            • Instr-validp
            • Instr-option
            • Op-imm-32-funct
          • States
          • Decoding
          • Encoding
          • Features
          • Semantics
          • Execution
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Store-funct

    Store-funct-kind

    Get the kind (tag) of a store-funct structure.

    Signature
    (store-funct-kind x) → kind
    Arguments
    x — Guard (store-funct-p x).

    Definitions and Theorems

    Function: store-funct-kind$inline

    (defun store-funct-kind$inline (x)
      (declare (xargs :guard (store-funct-p x)))
      (let ((__function__ 'store-funct-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :sb)) :sb)
                          ((eq (car x) :sh) :sh)
                          ((eq (car x) :sw) :sw)
                          (t :sd))
             :exec (car x))))

    Theorem: store-funct-kind-possibilities

    (defthm store-funct-kind-possibilities
      (or (equal (store-funct-kind x) :sb)
          (equal (store-funct-kind x) :sh)
          (equal (store-funct-kind x) :sw)
          (equal (store-funct-kind x) :sd))
      :rule-classes
      ((:forward-chaining :trigger-terms ((store-funct-kind x)))))