Check well-formedness of lvalues in a vl-modinst-p.
(vl-modinst-lvaluecheck x warnings) → new-warnings
We check the lvalues throughout
Function:
(defun vl-modinst-lvaluecheck (x warnings) (declare (xargs :guard (and (vl-modinst-p x) (vl-warninglist-p warnings)))) (declare (xargs :guard t)) (let ((__function__ 'vl-modinst-lvaluecheck)) (declare (ignorable __function__)) (vl-arguments-lvaluecheck (vl-modinst->portargs x) (vl-modinst->loc x) (vl-modinst->instname x) warnings)))
Theorem:
(defthm vl-warninglist-p-of-vl-modinst-lvaluecheck (b* ((new-warnings (vl-modinst-lvaluecheck x warnings))) (vl-warninglist-p new-warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinst-lvaluecheck-of-vl-modinst-fix-x (equal (vl-modinst-lvaluecheck (vl-modinst-fix x) warnings) (vl-modinst-lvaluecheck x warnings)))
Theorem:
(defthm vl-modinst-lvaluecheck-vl-modinst-equiv-congruence-on-x (implies (vl-modinst-equiv x x-equiv) (equal (vl-modinst-lvaluecheck x warnings) (vl-modinst-lvaluecheck x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-modinst-lvaluecheck-of-vl-warninglist-fix-warnings (equal (vl-modinst-lvaluecheck x (vl-warninglist-fix warnings)) (vl-modinst-lvaluecheck x warnings)))
Theorem:
(defthm vl-modinst-lvaluecheck-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-modinst-lvaluecheck x warnings) (vl-modinst-lvaluecheck x warnings-equiv))) :rule-classes :congruence)