Eliminate
(vl-always-wildelim x warnings) → (mv warnings new-x)
Function:
(defun vl-always-wildelim (x warnings) (declare (xargs :guard (and (vl-always-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-always-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-always-fix x)) (warnings (vl-warninglist-fix warnings))) (b* (((vl-always x) x) (ctx x) ((mv warnings stmt-prime) (vl-stmt-wildelim x.stmt ctx warnings)) (x-prime (change-vl-always x :stmt stmt-prime))) (mv warnings x-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-always-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-always-wildelim x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-always-p-of-vl-always-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-always-wildelim x warnings))) (vl-always-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-always-wildelim-of-vl-always-fix-x (equal (vl-always-wildelim (vl-always-fix x) warnings) (vl-always-wildelim x warnings)))
Theorem:
(defthm vl-always-wildelim-vl-always-equiv-congruence-on-x (implies (vl-always-equiv x x-equiv) (equal (vl-always-wildelim x warnings) (vl-always-wildelim x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-always-wildelim-of-vl-warninglist-fix-warnings (equal (vl-always-wildelim x (vl-warninglist-fix warnings)) (vl-always-wildelim x warnings)))
Theorem:
(defthm vl-always-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-always-wildelim x warnings) (vl-always-wildelim x warnings-equiv))) :rule-classes :congruence)