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