Get the kind (tag) of a instruction structure.
(instruction-kind x) → kind
Function:
(defun instruction-kind$inline (x) (declare (xargs :guard (instructionp x))) (let ((__function__ 'instruction-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :unary)) :unary) ((eq (car x) :binary) :binary) ((eq (car x) :ternary) :ternary) ((eq (car x) :equal) :equal) ((eq (car x) :assert) :assert) ((eq (car x) :commit) :commit) ((eq (car x) :hash) :hash) ((eq (car x) :cast) :cast) (t :call)) :exec (car x))))
Theorem:
(defthm instruction-kind-possibilities (or (equal (instruction-kind x) :unary) (equal (instruction-kind x) :binary) (equal (instruction-kind x) :ternary) (equal (instruction-kind x) :equal) (equal (instruction-kind x) :assert) (equal (instruction-kind x) :commit) (equal (instruction-kind x) :hash) (equal (instruction-kind x) :cast) (equal (instruction-kind x) :call)) :rule-classes ((:forward-chaining :trigger-terms ((instruction-kind x)))))