Get the opcode field from a inst.
(inst->opcode x) → opcode
This is an ordinary field accessor created by defprod.
Function:
(defun inst->opcode$inline (x) (declare (xargs :guard (inst-p x))) (declare (xargs :guard t)) (let ((__function__ 'inst->opcode)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (strict-opcode-fix (std::prod-cdr (std::prod-car x)))) :exec (std::prod-cdr (std::prod-car x)))))
Theorem:
(defthm strict-opcode-p-of-inst->opcode (b* ((opcode (inst->opcode$inline x))) (strict-opcode-p opcode)) :rule-classes :rewrite)
Theorem:
(defthm inst->opcode$inline-of-inst-fix-x (equal (inst->opcode$inline (inst-fix x)) (inst->opcode$inline x)))
Theorem:
(defthm inst->opcode$inline-inst-equiv-congruence-on-x (implies (inst-equiv x x-equiv) (equal (inst->opcode$inline x) (inst->opcode$inline x-equiv))) :rule-classes :congruence)