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