• 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
            • Semantics
            • Features
            • Instructions
              • Instr
              • Op-funct
              • Op-32-funct
              • Op-imm-funct
              • Load-funct
              • Instr-validp
              • 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-option
                • Op-imm-32-funct
              • Encoding
              • States
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • 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)))))