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