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