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