Add
(vl-delayoreventcontrol-origexprs x) → new-x
Function:
(defun vl-delayoreventcontrol-origexprs (x) (declare (xargs :guard (vl-delayoreventcontrol-p x))) (let ((__function__ 'vl-delayoreventcontrol-origexprs)) (declare (ignorable __function__)) (let ((x (vl-delayoreventcontrol-fix x))) (case (tag x) (:vl-delaycontrol (vl-delaycontrol-origexprs x)) (:vl-eventcontrol (vl-eventcontrol-origexprs x)) (otherwise (vl-repeateventcontrol-origexprs x))))))
Theorem:
(defthm vl-delayoreventcontrol-p-of-vl-delayoreventcontrol-origexprs (b* ((new-x (vl-delayoreventcontrol-origexprs x))) (vl-delayoreventcontrol-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-delayoreventcontrol-origexprs-of-vl-delayoreventcontrol-fix-x (equal (vl-delayoreventcontrol-origexprs (vl-delayoreventcontrol-fix x)) (vl-delayoreventcontrol-origexprs x)))
Theorem:
(defthm vl-delayoreventcontrol-origexprs-vl-delayoreventcontrol-equiv-congruence-on-x (implies (vl-delayoreventcontrol-equiv x x-equiv) (equal (vl-delayoreventcontrol-origexprs x) (vl-delayoreventcontrol-origexprs x-equiv))) :rule-classes :congruence)