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