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