(vl-shadowcheck-declare-name name decl st warnings) → (mv st warnings)
Function:
(defun vl-shadowcheck-declare-name (name decl st warnings) (declare (xargs :guard (and (stringp name) (acl2::any-p decl) (vl-shadowcheck-state-p st) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-shadowcheck-declare-name)) (declare (ignorable __function__)) (b* (((vl-shadowcheck-state st)) (- (vl-shadowcheck-debug " vl-shadowcheck-declare-name: ~s0 for ~a1.~%" name decl)) ((mv lexscopes warnings) (vl-lexscopes-declare-name name decl st.lexscopes warnings)) (st (change-vl-shadowcheck-state st :lexscopes lexscopes))) (mv st warnings))))
Theorem:
(defthm vl-shadowcheck-state-p-of-vl-shadowcheck-declare-name.st (b* (((mv ?st ?warnings) (vl-shadowcheck-declare-name name decl st warnings))) (vl-shadowcheck-state-p st)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-p-of-vl-shadowcheck-declare-name.warnings (b* (((mv ?st ?warnings) (vl-shadowcheck-declare-name name decl st warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-shadowcheck-declare-name-of-str-fix-name (equal (vl-shadowcheck-declare-name (str-fix name) decl st warnings) (vl-shadowcheck-declare-name name decl st warnings)))
Theorem:
(defthm vl-shadowcheck-declare-name-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-shadowcheck-declare-name name decl st warnings) (vl-shadowcheck-declare-name name-equiv decl st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-of-identity-decl (equal (vl-shadowcheck-declare-name name (identity decl) st warnings) (vl-shadowcheck-declare-name name decl st warnings)))
Theorem:
(defthm vl-shadowcheck-declare-name-equal-congruence-on-decl (implies (equal decl decl-equiv) (equal (vl-shadowcheck-declare-name name decl st warnings) (vl-shadowcheck-declare-name name decl-equiv st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-of-vl-shadowcheck-state-fix-st (equal (vl-shadowcheck-declare-name name decl (vl-shadowcheck-state-fix st) warnings) (vl-shadowcheck-declare-name name decl st warnings)))
Theorem:
(defthm vl-shadowcheck-declare-name-vl-shadowcheck-state-equiv-congruence-on-st (implies (vl-shadowcheck-state-equiv st st-equiv) (equal (vl-shadowcheck-declare-name name decl st warnings) (vl-shadowcheck-declare-name name decl st-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-of-vl-warninglist-fix-warnings (equal (vl-shadowcheck-declare-name name decl st (vl-warninglist-fix warnings)) (vl-shadowcheck-declare-name name decl st warnings)))
Theorem:
(defthm vl-shadowcheck-declare-name-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-shadowcheck-declare-name name decl st warnings) (vl-shadowcheck-declare-name name decl st warnings-equiv))) :rule-classes :congruence)