• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
              • Objdesign
                • Objdesign-fix
                • Objdesign-case
                • Objdesignp
                • Objdesign-count
                • Objdesign-equiv
                • Objdesign-auto
                • Objdesign-member
                • Objdesign-element
                • Objdesign-static
                • Objdesign-alloc
                • Objdesign-kind
                • Address
                • Object-disjointp
                • Objdesign-option
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Bytes
              • Keywords
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • 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
    • Objdesign

    Objdesign-kind

    Get the kind (tag) of a objdesign structure.

    Signature
    (objdesign-kind x) → kind
    Arguments
    x — Guard (objdesignp x).

    Definitions and Theorems

    Function: objdesign-kind$inline

    (defun objdesign-kind$inline (x)
      (declare (xargs :guard (objdesignp x)))
      (let ((__function__ 'objdesign-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :static))
                           :static)
                          ((eq (car x) :auto) :auto)
                          ((eq (car x) :alloc) :alloc)
                          ((eq (car x) :element) :element)
                          (t :member))
             :exec (car x))))

    Theorem: objdesign-kind-possibilities

    (defthm objdesign-kind-possibilities
      (or (equal (objdesign-kind x) :static)
          (equal (objdesign-kind x) :auto)
          (equal (objdesign-kind x) :alloc)
          (equal (objdesign-kind x) :element)
          (equal (objdesign-kind x) :member))
      :rule-classes
      ((:forward-chaining :trigger-terms ((objdesign-kind x)))))