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