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