• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
              • Svex-select-staticify-assignment
              • Svex-select-fix
              • Svex-select-case
              • Svex-select-split-static
              • Svex-select-p
              • Svex-selects-merge
              • Svex-select-replace-indices
              • Svex-select-vars
              • Svex-select-to-svex-with-substitution
              • Svex-select-equiv
              • Svex-select-part
              • Svex-select-count
              • Svex-select-var
              • Svex-select-to-lhs
              • Svex-select-staticp
              • Svex-select-inner-var
              • Svex-select->indices
              • Svex-select-to-svex
              • Svex-select-inner-width
              • Svex-select->width
              • Svex-select-kind
              • Svex-alist
              • Svex-equiv
              • Svexlist
              • Svex-call
              • Fnsym
              • Svex-quote
              • Svex-var
              • Svcall-rw
              • Svcall
              • Svex-kind
              • Svcall*
              • Svex-fix
              • Svex-count
              • Svex-1z
              • Svex-1x
              • Svex-z
              • Svex-x
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svex-select

    Svex-select-kind

    Get the kind (tag) of a svex-select structure.

    Signature
    (svex-select-kind x) → kind
    Arguments
    x — Guard (svex-select-p x).

    Definitions and Theorems

    Function: svex-select-kind$inline

    (defun svex-select-kind$inline (x)
      (declare (xargs :guard (svex-select-p x)))
      (let ((__function__ 'svex-select-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :var)) :var)
                          (t :part))
             :exec (car x))))

    Theorem: svex-select-kind-possibilities

    (defthm svex-select-kind-possibilities
      (or (equal (svex-select-kind x) :var)
          (equal (svex-select-kind x) :part))
      :rule-classes
      ((:forward-chaining :trigger-terms ((svex-select-kind x)))))