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