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