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