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