(vl-shadowcheck-declare-name name decl st warnings &key genblockp) → (mv st warnings)
Function:
(defun vl-shadowcheck-declare-name-fn (name decl st warnings genblockp) (declare (xargs :guard (and (stringp name) (any-p decl) (vl-shadowcheck-state-p st) (vl-warninglist-p warnings) (booleanp genblockp)))) (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 :genblockp genblockp)) (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-fn name decl st warnings genblockp))) (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-fn name decl st warnings genblockp))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-shadowcheck-declare-name-fn-of-str-fix-name (equal (vl-shadowcheck-declare-name-fn (str-fix name) decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp)))
Theorem:
(defthm vl-shadowcheck-declare-name-fn-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-shadowcheck-declare-name-fn name decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name-equiv decl st warnings genblockp))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-fn-of-identity-decl (equal (vl-shadowcheck-declare-name-fn name (identity decl) st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp)))
Theorem:
(defthm vl-shadowcheck-declare-name-fn-equal-congruence-on-decl (implies (equal decl decl-equiv) (equal (vl-shadowcheck-declare-name-fn name decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl-equiv st warnings genblockp))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-fn-of-vl-shadowcheck-state-fix-st (equal (vl-shadowcheck-declare-name-fn name decl (vl-shadowcheck-state-fix st) warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp)))
Theorem:
(defthm vl-shadowcheck-declare-name-fn-vl-shadowcheck-state-equiv-congruence-on-st (implies (vl-shadowcheck-state-equiv st st-equiv) (equal (vl-shadowcheck-declare-name-fn name decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st-equiv warnings genblockp))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-fn-of-vl-warninglist-fix-warnings (equal (vl-shadowcheck-declare-name-fn name decl st (vl-warninglist-fix warnings) genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp)))
Theorem:
(defthm vl-shadowcheck-declare-name-fn-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-shadowcheck-declare-name-fn name decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings-equiv genblockp))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-declare-name-fn-of-bool-fix-genblockp (equal (vl-shadowcheck-declare-name-fn name decl st warnings (acl2::bool-fix genblockp)) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp)))
Theorem:
(defthm vl-shadowcheck-declare-name-fn-iff-congruence-on-genblockp (implies (iff genblockp genblockp-equiv) (equal (vl-shadowcheck-declare-name-fn name decl st warnings genblockp) (vl-shadowcheck-declare-name-fn name decl st warnings genblockp-equiv))) :rule-classes :congruence)