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