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