Clean warnings everywhere throughout a design.
(vl-design-clean-warnings x) → new-x
We apply vl-clean-warnings everywhere throughout the design. It may occasionally be useful to run this transformation to clean up any redundant warnings.
Function:
(defun vl-design-clean-warnings (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-clean-warnings)) (declare (ignorable __function__)) (b* (((vl-design x) x)) (change-vl-design x :mods (vl-modulelist-clean-warnings x.mods) :udps (vl-udplist-clean-warnings x.udps) :interfaces (vl-interfacelist-clean-warnings x.interfaces) :programs (vl-programlist-clean-warnings x.programs) :classes (vl-classlist-clean-warnings x.classes) :packages (vl-packagelist-clean-warnings x.packages) :configs (vl-configlist-clean-warnings x.configs)))))
Theorem:
(defthm vl-design-p-of-vl-design-clean-warnings (b* ((new-x (vl-design-clean-warnings x))) (vl-design-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-design-clean-warnings-of-vl-design-fix-x (equal (vl-design-clean-warnings (vl-design-fix x)) (vl-design-clean-warnings x)))
Theorem:
(defthm vl-design-clean-warnings-vl-design-equiv-congruence-on-x (implies (vl-design-equiv x x-equiv) (equal (vl-design-clean-warnings x) (vl-design-clean-warnings x-equiv))) :rule-classes :congruence)