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