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