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