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