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