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