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