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