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