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