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