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