(vl-shadowcheck-push-scope x st warnings) → (mv st warnings)
Function:
(defun vl-shadowcheck-push-scope (x st warnings) (declare (xargs :guard (and (vl-scope-p x) (vl-shadowcheck-state-p st) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-shadowcheck-push-scope)) (declare (ignorable __function__)) (b* (((vl-shadowcheck-state st)) (st (change-vl-shadowcheck-state st :lexscopes (vl-lexscopes-enter-new-scope st.lexscopes) :ss (vl-scopestack-push x st.ss))) (warnings (vl-scope-nameclash-warnings x (vl-shadowcheck-state->design st) warnings))) (mv st warnings))))
Theorem:
(defthm vl-shadowcheck-state-p-of-vl-shadowcheck-push-scope.st (b* (((mv ?st ?warnings) (vl-shadowcheck-push-scope x st warnings))) (vl-shadowcheck-state-p st)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-p-of-vl-shadowcheck-push-scope.warnings (b* (((mv ?st ?warnings) (vl-shadowcheck-push-scope x st warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-shadowcheck-push-scope-of-vl-scope-fix-x (equal (vl-shadowcheck-push-scope (vl-scope-fix x) st warnings) (vl-shadowcheck-push-scope x st warnings)))
Theorem:
(defthm vl-shadowcheck-push-scope-vl-scope-equiv-congruence-on-x (implies (vl-scope-equiv x x-equiv) (equal (vl-shadowcheck-push-scope x st warnings) (vl-shadowcheck-push-scope x-equiv st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-push-scope-of-vl-shadowcheck-state-fix-st (equal (vl-shadowcheck-push-scope x (vl-shadowcheck-state-fix st) warnings) (vl-shadowcheck-push-scope x st warnings)))
Theorem:
(defthm vl-shadowcheck-push-scope-vl-shadowcheck-state-equiv-congruence-on-st (implies (vl-shadowcheck-state-equiv st st-equiv) (equal (vl-shadowcheck-push-scope x st warnings) (vl-shadowcheck-push-scope x st-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-push-scope-of-vl-warninglist-fix-warnings (equal (vl-shadowcheck-push-scope x st (vl-warninglist-fix warnings)) (vl-shadowcheck-push-scope x st warnings)))
Theorem:
(defthm vl-shadowcheck-push-scope-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-shadowcheck-push-scope x st warnings) (vl-shadowcheck-push-scope x st warnings-equiv))) :rule-classes :congruence)