Get the kind (tag) of a declspec structure.
(declspec-kind x) → kind
Function:
(defun declspec-kind$inline (x) (declare (xargs :guard (declspecp x))) (let ((__function__ 'declspec-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :stocla)) :stocla) ((eq (car x) :tyspec) :tyspec) ((eq (car x) :tyqual) :tyqual) ((eq (car x) :funspec) :funspec) (t :align)) :exec (car x))))
Theorem:
(defthm declspec-kind-possibilities (or (equal (declspec-kind x) :stocla) (equal (declspec-kind x) :tyspec) (equal (declspec-kind x) :tyqual) (equal (declspec-kind x) :funspec) (equal (declspec-kind x) :align)) :rule-classes ((:forward-chaining :trigger-terms ((declspec-kind x)))))