Scopesubstitute into a vl-assign-p.
(vl-assign-scopesubst x ss) → new-x
Function:
(defun vl-assign-scopesubst (x ss) (declare (xargs :guard (and (vl-assign-p x) (vl-scopestack-p ss)))) (declare (ignorable x ss)) (let ((__function__ 'vl-assign-scopesubst)) (declare (ignorable __function__)) (change-vl-assign x :lvalue (vl-expr-scopesubst (vl-assign->lvalue x) ss) :expr (vl-expr-scopesubst (vl-assign->expr x) ss) :delay (vl-maybe-gatedelay-scopesubst (vl-assign->delay x) ss))))
Theorem:
(defthm vl-assign-p-of-vl-assign-scopesubst (b* ((new-x (vl-assign-scopesubst x ss))) (vl-assign-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-assign-scopesubst-of-vl-assign-fix-x (equal (vl-assign-scopesubst (vl-assign-fix x) ss) (vl-assign-scopesubst x ss)))
Theorem:
(defthm vl-assign-scopesubst-vl-assign-equiv-congruence-on-x (implies (vl-assign-equiv x x-equiv) (equal (vl-assign-scopesubst x ss) (vl-assign-scopesubst x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-assign-scopesubst-of-vl-scopestack-fix-ss (equal (vl-assign-scopesubst x (vl-scopestack-fix ss)) (vl-assign-scopesubst x ss)))
Theorem:
(defthm vl-assign-scopesubst-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-assign-scopesubst x ss) (vl-assign-scopesubst x ss-equiv))) :rule-classes :congruence)