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