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