Check well-formedness of lvalues in a vl-arguments-p.
(vl-arguments-lvaluecheck x loc instname warnings) → new-warnings
We check the lvalues throughout
Function:
(defun vl-arguments-lvaluecheck (x loc instname warnings) (declare (xargs :guard (and (vl-arguments-p x) (vl-warninglist-p warnings)))) (declare (xargs :guard (and (vl-location-p loc) (maybe-stringp instname)))) (let ((__function__ 'vl-arguments-lvaluecheck)) (declare (ignorable __function__)) (if (eq (vl-arguments-kind x) :vl-arguments-named) (warn :type :vl-programming-error :msg "~l0: expected arguments of instance ~s1 to be resolved, but ~ args are still named." :args (list loc instname)) (vl-plainarglist-lvaluecheck (vl-arguments-plain->args x) loc instname warnings))))
Theorem:
(defthm vl-warninglist-p-of-vl-arguments-lvaluecheck (b* ((new-warnings (vl-arguments-lvaluecheck x loc instname warnings))) (vl-warninglist-p new-warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-arguments-lvaluecheck-of-vl-arguments-fix-x (equal (vl-arguments-lvaluecheck (vl-arguments-fix x) loc instname warnings) (vl-arguments-lvaluecheck x loc instname warnings)))
Theorem:
(defthm vl-arguments-lvaluecheck-vl-arguments-equiv-congruence-on-x (implies (vl-arguments-equiv x x-equiv) (equal (vl-arguments-lvaluecheck x loc instname warnings) (vl-arguments-lvaluecheck x-equiv loc instname warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-arguments-lvaluecheck-of-vl-warninglist-fix-warnings (equal (vl-arguments-lvaluecheck x loc instname (vl-warninglist-fix warnings)) (vl-arguments-lvaluecheck x loc instname warnings)))
Theorem:
(defthm vl-arguments-lvaluecheck-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-arguments-lvaluecheck x loc instname warnings) (vl-arguments-lvaluecheck x loc instname warnings-equiv))) :rule-classes :congruence)