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