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