Eliminate
(vl-port-wildelim x warnings) → (mv warnings new-x)
Function:
(defun vl-port-wildelim (x warnings) (declare (xargs :guard (and (vl-port-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-port-wildelim)) (declare (ignorable __function__)) (b* ((x (vl-port-fix x)) (warnings (vl-warninglist-fix warnings))) (b* ((x (vl-port-fix x)) (ctx (vl-context x)) ((when (eq (tag x) :vl-interfaceport)) (b* (((vl-interfaceport x)) ((mv warnings udims-prime) (vl-packeddimensionlist-wildelim x.udims ctx warnings))) (mv warnings (change-vl-interfaceport x :udims udims-prime)))) ((vl-regularport x) x) ((mv warnings expr-prime) (vl-maybe-expr-wildelim x.expr ctx warnings)) (x-prime (change-vl-regularport x :expr expr-prime))) (mv warnings x-prime)))))
Theorem:
(defthm vl-warninglist-p-of-vl-port-wildelim.warnings (b* (((mv ?warnings ?new-x) (vl-port-wildelim x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-port-p-of-vl-port-wildelim.new-x (b* (((mv ?warnings ?new-x) (vl-port-wildelim x warnings))) (vl-port-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-port-wildelim-of-vl-port-fix-x (equal (vl-port-wildelim (vl-port-fix x) warnings) (vl-port-wildelim x warnings)))
Theorem:
(defthm vl-port-wildelim-vl-port-equiv-congruence-on-x (implies (vl-port-equiv x x-equiv) (equal (vl-port-wildelim x warnings) (vl-port-wildelim x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-port-wildelim-of-vl-warninglist-fix-warnings (equal (vl-port-wildelim x (vl-warninglist-fix warnings)) (vl-port-wildelim x warnings)))
Theorem:
(defthm vl-port-wildelim-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-port-wildelim x warnings) (vl-port-wildelim x warnings-equiv))) :rule-classes :congruence)