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