Scopesubstitute into a vl-delayoreventcontrol-p.
(vl-delayoreventcontrol-scopesubst x ss) → new-x
Function:
(defun vl-delayoreventcontrol-scopesubst (x ss) (declare (xargs :guard (and (vl-delayoreventcontrol-p x) (vl-scopestack-p ss)))) (declare (ignorable x ss)) (let ((__function__ 'vl-delayoreventcontrol-scopesubst)) (declare (ignorable __function__)) (b* ((x (vl-delayoreventcontrol-fix x))) (case (tag x) (:vl-delaycontrol (vl-delaycontrol-scopesubst x ss)) (:vl-eventcontrol (vl-eventcontrol-scopesubst x ss)) (otherwise (vl-repeateventcontrol-scopesubst x ss))))))
Theorem:
(defthm vl-delayoreventcontrol-p-of-vl-delayoreventcontrol-scopesubst (b* ((new-x (vl-delayoreventcontrol-scopesubst x ss))) (vl-delayoreventcontrol-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-delayoreventcontrol-scopesubst-of-vl-delayoreventcontrol-fix-x (equal (vl-delayoreventcontrol-scopesubst (vl-delayoreventcontrol-fix x) ss) (vl-delayoreventcontrol-scopesubst x ss)))
Theorem:
(defthm vl-delayoreventcontrol-scopesubst-vl-delayoreventcontrol-equiv-congruence-on-x (implies (vl-delayoreventcontrol-equiv x x-equiv) (equal (vl-delayoreventcontrol-scopesubst x ss) (vl-delayoreventcontrol-scopesubst x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-delayoreventcontrol-scopesubst-of-vl-scopestack-fix-ss (equal (vl-delayoreventcontrol-scopesubst x (vl-scopestack-fix ss)) (vl-delayoreventcontrol-scopesubst x ss)))
Theorem:
(defthm vl-delayoreventcontrol-scopesubst-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-delayoreventcontrol-scopesubst x ss) (vl-delayoreventcontrol-scopesubst x ss-equiv))) :rule-classes :congruence)