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