• 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
                • Load-funct-fix
                • Load-funct-case
                • Load-funct-equiv
                • Load-funct-p
                • Load-funct-kind
                  • Load-funct-lwu
                  • Load-funct-lw
                  • Load-funct-lhu
                  • Load-funct-lh
                  • Load-funct-ld
                  • Load-funct-lbu
                  • Load-funct-lb
                • Instr-validp
                • Branch-funct
                • Op-imms-funct
                • Store-funct
                • 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
    • Load-funct

    Load-funct-kind

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

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

    Definitions and Theorems

    Function: load-funct-kind$inline

    (defun load-funct-kind$inline (x)
      (declare (xargs :guard (load-funct-p x)))
      (let ((__function__ 'load-funct-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :lb)) :lb)
                          ((eq (car x) :lbu) :lbu)
                          ((eq (car x) :lh) :lh)
                          ((eq (car x) :lhu) :lhu)
                          ((eq (car x) :lw) :lw)
                          ((eq (car x) :lwu) :lwu)
                          (t :ld))
             :exec (car x))))

    Theorem: load-funct-kind-possibilities

    (defthm load-funct-kind-possibilities
      (or (equal (load-funct-kind x) :lb)
          (equal (load-funct-kind x) :lbu)
          (equal (load-funct-kind x) :lh)
          (equal (load-funct-kind x) :lhu)
          (equal (load-funct-kind x) :lw)
          (equal (load-funct-kind x) :lwu)
          (equal (load-funct-kind x) :ld))
      :rule-classes
      ((:forward-chaining :trigger-terms ((load-funct-kind x)))))