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