Get the kind (tag) of a vl-select structure.
(vl-select-kind x) → kind
Function:
(defun vl-select-kind$inline (x) (declare (xargs :guard (vl-select-p x))) (let ((__function__ 'vl-select-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :field)) :field) (t :index)) :exec (car x))))
Theorem:
(defthm vl-select-kind-possibilities (or (equal (vl-select-kind x) :field) (equal (vl-select-kind x) :index)) :rule-classes ((:forward-chaining :trigger-terms ((vl-select-kind x)))))