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