(vl-assign-lvaluecheck x warnings) → warnings
Function:
(defun vl-assign-lvaluecheck (x warnings) (declare (xargs :guard (and (vl-assign-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-assign-lvaluecheck)) (declare (ignorable __function__)) (b* (((vl-assign x)) ((when (vl-expr-variable-lvalue-p x.lvalue)) (ok))) (warn :type :vl-bad-lvalue :msg "~a0: assignment to bad lvalue ~a1." :args (list x.loc x.lvalue)))))
Theorem:
(defthm vl-warninglist-p-of-vl-assign-lvaluecheck (b* ((warnings (vl-assign-lvaluecheck x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-assign-lvaluecheck-of-vl-assign-fix-x (equal (vl-assign-lvaluecheck (vl-assign-fix x) warnings) (vl-assign-lvaluecheck x warnings)))
Theorem:
(defthm vl-assign-lvaluecheck-vl-assign-equiv-congruence-on-x (implies (vl-assign-equiv x x-equiv) (equal (vl-assign-lvaluecheck x warnings) (vl-assign-lvaluecheck x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-assign-lvaluecheck-of-vl-warninglist-fix-warnings (equal (vl-assign-lvaluecheck x (vl-warninglist-fix warnings)) (vl-assign-lvaluecheck x warnings)))
Theorem:
(defthm vl-assign-lvaluecheck-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-assign-lvaluecheck x warnings) (vl-assign-lvaluecheck x warnings-equiv))) :rule-classes :congruence)