Get the arg2 field from a instruction-binary.
(instruction-binary->arg2 x) → arg2
This is an ordinary field accessor created by fty::defprod.
Function:
(defun instruction-binary->arg2$inline (x) (declare (xargs :guard (instructionp x))) (declare (xargs :guard (equal (instruction-kind x) :binary))) (let ((__function__ 'instruction-binary->arg2)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (instruction-kind x) :binary) x))) (operand-fix (std::da-nth 2 (cdr x)))) :exec (std::da-nth 2 (cdr x)))))
Theorem:
(defthm operandp-of-instruction-binary->arg2 (b* ((arg2 (instruction-binary->arg2$inline x))) (operandp arg2)) :rule-classes :rewrite)
Theorem:
(defthm instruction-binary->arg2$inline-of-instruction-fix-x (equal (instruction-binary->arg2$inline (instruction-fix x)) (instruction-binary->arg2$inline x)))
Theorem:
(defthm instruction-binary->arg2$inline-instruction-equiv-congruence-on-x (implies (instruction-equiv x x-equiv) (equal (instruction-binary->arg2$inline x) (instruction-binary->arg2$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm instruction-binary->arg2-when-wrong-kind (implies (not (equal (instruction-kind x) :binary)) (equal (instruction-binary->arg2 x) (operand-fix nil))))