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