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