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