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