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