Rewrite operators throughout a vl-delaycontrol-p
(vl-delaycontrol-oprewrite x warnings) → (mv warnings new-x)
Function:
(defun vl-delaycontrol-oprewrite (x warnings) (declare (xargs :guard (and (vl-delaycontrol-p x) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-delaycontrol-oprewrite)) (declare (ignorable __function__)) (b* ((x (vl-delaycontrol-fix x))) (b* (((vl-delaycontrol x) x) ((mv warnings value-prime) (vl-expr-oprewrite x.value warnings))) (mv warnings (change-vl-delaycontrol x :value value-prime))))))
Theorem:
(defthm vl-warninglist-p-of-vl-delaycontrol-oprewrite.warnings (b* (((mv ?warnings ?new-x) (vl-delaycontrol-oprewrite x warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-delaycontrol-p-of-vl-delaycontrol-oprewrite.new-x (b* (((mv ?warnings ?new-x) (vl-delaycontrol-oprewrite x warnings))) (vl-delaycontrol-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-delaycontrol-oprewrite-of-vl-delaycontrol-fix-x (equal (vl-delaycontrol-oprewrite (vl-delaycontrol-fix x) warnings) (vl-delaycontrol-oprewrite x warnings)))
Theorem:
(defthm vl-delaycontrol-oprewrite-vl-delaycontrol-equiv-congruence-on-x (implies (vl-delaycontrol-equiv x x-equiv) (equal (vl-delaycontrol-oprewrite x warnings) (vl-delaycontrol-oprewrite x-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-delaycontrol-oprewrite-of-vl-warninglist-fix-warnings (equal (vl-delaycontrol-oprewrite x (vl-warninglist-fix warnings)) (vl-delaycontrol-oprewrite x warnings)))
Theorem:
(defthm vl-delaycontrol-oprewrite-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-delaycontrol-oprewrite x warnings) (vl-delaycontrol-oprewrite x warnings-equiv))) :rule-classes :congruence)