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