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