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