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