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