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