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