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