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