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