• 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
              • Feat-base
              • Feat-endian
                • Feat-endian-case
                • Feat-endian-fix
                • Feat-endian-equiv
                • Feat-endianp
                • Feat-endian-little
                • Feat-endian-big
                • Feat-endian-kind
                • Feat
                • Feat->xlen
                • Feat->ialign
                • Feat->xnum
                • Feat-64p
                • Feat-32p
                • Feat-little-endianp
                • Feat-big-endianp
                • Feat->ilen
                • Feat-embedp
                • Feat-mp
              • Instructions
              • 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
    • Feat-endian

    Feat-endian-kind

    Get the kind (tag) of a feat-endian structure.

    Signature
    (feat-endian-kind x) → kind
    Arguments
    x — Guard (feat-endianp x).

    Definitions and Theorems

    Function: feat-endian-kind$inline

    (defun feat-endian-kind$inline (x)
      (declare (xargs :guard (feat-endianp x)))
      (let ((__function__ 'feat-endian-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :little))
                           :little)
                          (t :big))
             :exec (car x))))

    Theorem: feat-endian-kind-possibilities

    (defthm feat-endian-kind-possibilities
      (or (equal (feat-endian-kind x) :little)
          (equal (feat-endian-kind x) :big))
      :rule-classes
      ((:forward-chaining :trigger-terms ((feat-endian-kind x)))))