Clean warnings in a vl-package-p.
(vl-package-clean-warnings x) → new-x
Function:
(defun vl-package-clean-warnings (x) (declare (xargs :guard (vl-package-p x))) (let ((__function__ 'vl-package-clean-warnings)) (declare (ignorable __function__)) (mbe :logic (b* (((vl-package x) x)) (change-vl-package x :warnings (vl-clean-warnings x.warnings))) :exec (b* (((vl-package x) x) ((unless x.warnings) x)) (change-vl-package x :warnings (vl-clean-warnings x.warnings))))))
Theorem:
(defthm vl-package-p-of-vl-package-clean-warnings (b* ((new-x (vl-package-clean-warnings x))) (vl-package-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-package-clean-warnings-of-vl-package-fix-x (equal (vl-package-clean-warnings (vl-package-fix x)) (vl-package-clean-warnings x)))
Theorem:
(defthm vl-package-clean-warnings-vl-package-equiv-congruence-on-x (implies (vl-package-equiv x x-equiv) (equal (vl-package-clean-warnings x) (vl-package-clean-warnings x-equiv))) :rule-classes :congruence)