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