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