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