Get the kind (tag) of a op-imm-funct structure.
(op-imm-funct-kind x) → kind
Function:
(defun op-imm-funct-kind$inline (x) (declare (xargs :guard (op-imm-funct-p x))) (let ((__function__ 'op-imm-funct-kind)) (declare (ignorable __function__)) (mbe :logic (cond ((or (atom x) (eq (car x) :addi)) :addi) ((eq (car x) :slti) :slti) ((eq (car x) :sltiu) :sltiu) ((eq (car x) :andi) :andi) ((eq (car x) :ori) :ori) (t :xori)) :exec (car x))))
Theorem:
(defthm op-imm-funct-kind-possibilities (or (equal (op-imm-funct-kind x) :addi) (equal (op-imm-funct-kind x) :slti) (equal (op-imm-funct-kind x) :sltiu) (equal (op-imm-funct-kind x) :andi) (equal (op-imm-funct-kind x) :ori) (equal (op-imm-funct-kind x) :xori)) :rule-classes ((:forward-chaining :trigger-terms ((op-imm-funct-kind x)))))