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