Get the next field from a stmt-for-decl.
(stmt-for-decl->next x) → next
This is an ordinary field accessor created by fty::defprod.
Function:
(defun stmt-for-decl->next$inline (x) (declare (xargs :guard (stmtp x))) (declare (xargs :guard (equal (stmt-kind x) :for-decl))) (mbe :logic (b* ((x (and (equal (stmt-kind x) :for-decl) x))) (expr-option-fix (car (cdr (cdr x))))) :exec (car (cdr (cdr x)))))
Theorem:
(defthm expr-optionp-of-stmt-for-decl->next (b* ((next (stmt-for-decl->next$inline x))) (expr-optionp next)) :rule-classes :rewrite)
Theorem:
(defthm stmt-for-decl->next$inline-of-stmt-fix-x (equal (stmt-for-decl->next$inline (stmt-fix x)) (stmt-for-decl->next$inline x)))
Theorem:
(defthm stmt-for-decl->next$inline-stmt-equiv-congruence-on-x (implies (stmt-equiv x x-equiv) (equal (stmt-for-decl->next$inline x) (stmt-for-decl->next$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm stmt-for-decl->next-when-wrong-kind (implies (not (equal (stmt-kind x) :for-decl)) (equal (stmt-for-decl->next x) (expr-option-fix nil))))