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