Eliminate
(vl-delayoreventcontrol-wildelim x ctx warnings) → (mv warnings new-x)
Function:
(defun vl-delayoreventcontrol-wildelim (x ctx warnings) (declare (xargs :guard (and (vl-delayoreventcontrol-p x) (vl-context-p ctx) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-delayoreventcontrol-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-delayoreventcontrol-fix x)) (warnings (vl-warninglist-fix warnings))) (case (tag x) (:vl-delaycontrol (vl-delaycontrol-wildelim x ctx warnings)) (:vl-eventcontrol (vl-eventcontrol-wildelim x ctx warnings)) (otherwise (vl-repeateventcontrol-wildelim x ctx warnings))))))
Theorem:
(defthm vl-warninglist-p-of-vl-delayoreventcontrol-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-delayoreventcontrol-wildelim x ctx warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-delayoreventcontrol-p-of-vl-delayoreventcontrol-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-delayoreventcontrol-wildelim x ctx warnings))) (vl-delayoreventcontrol-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-delayoreventcontrol-wildelim-of-vl-delayoreventcontrol-fix-x (equal (vl-delayoreventcontrol-wildelim (vl-delayoreventcontrol-fix x) ctx warnings) (vl-delayoreventcontrol-wildelim x ctx warnings)))
Theorem:
(defthm vl-delayoreventcontrol-wildelim-vl-delayoreventcontrol-equiv-congruence-on-x (implies (vl-delayoreventcontrol-equiv x x-equiv) (equal (vl-delayoreventcontrol-wildelim x ctx warnings) (vl-delayoreventcontrol-wildelim x-equiv ctx warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-delayoreventcontrol-wildelim-of-vl-context-fix-ctx (equal (vl-delayoreventcontrol-wildelim x (vl-context-fix ctx) warnings) (vl-delayoreventcontrol-wildelim x ctx warnings)))
Theorem:
(defthm vl-delayoreventcontrol-wildelim-vl-context-equiv-congruence-on-ctx (implies (vl-context-equiv ctx ctx-equiv) (equal (vl-delayoreventcontrol-wildelim x ctx warnings) (vl-delayoreventcontrol-wildelim x ctx-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-delayoreventcontrol-wildelim-of-vl-warninglist-fix-warnings (equal (vl-delayoreventcontrol-wildelim x ctx (vl-warninglist-fix warnings)) (vl-delayoreventcontrol-wildelim x ctx warnings)))
Theorem:
(defthm vl-delayoreventcontrol-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-delayoreventcontrol-wildelim x ctx warnings) (vl-delayoreventcontrol-wildelim x ctx warnings-equiv))) :rule-classes :congruence)