(vl-shadowcheck-fundecl x st warnings) → (mv st warnings)
Function:
(defun vl-shadowcheck-fundecl (x st warnings) (declare (xargs :guard (and (vl-fundecl-p x) (vl-shadowcheck-state-p st) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-shadowcheck-fundecl)) (declare (ignorable __function__)) (b* (((vl-fundecl x) (vl-fundecl-fix x)) (- (vl-shadowcheck-debug " >> shadowcheck in function ~s0.~%" x.name)) (- (vl-shadowcheck-debug " >> checking return type in outer scope:~%")) ((mv st warnings) (vl-shadowcheck-datatype x.rettype x st warnings)) (- (vl-shadowcheck-debug " >> pushing into function ~x0.~%" x.name)) ((mv st warnings) (vl-shadowcheck-push-scope (vl-fundecl->blockscope x) st warnings)) (- (vl-shadowcheck-debug " >> declaring function name in the inner scope: ~x0.~%" x.name)) ((mv st warnings) (vl-shadowcheck-declare-name x.name x st warnings)) ((mv st warnings) (vl-shadowcheck-fun/task-loaditems x.loaditems st warnings)) ((mv st warnings) (vl-shadowcheck-stmt x.body x st warnings)) (- (vl-shadowcheck-debug " >> popping out of function ~x0.~%" x.name)) (st (vl-shadowcheck-pop-scope st)) (- (vl-shadowcheck-debug " >> declaring function name in the outer scope: ~x0.~%" x.name)) ((mv st warnings) (vl-shadowcheck-declare-name x.name x st warnings))) (mv st warnings))))
Theorem:
(defthm vl-shadowcheck-state-p-of-vl-shadowcheck-fundecl.st (b* (((mv ?st ?warnings) (vl-shadowcheck-fundecl x st warnings))) (vl-shadowcheck-state-p st)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-p-of-vl-shadowcheck-fundecl.warnings (b* (((mv ?st ?warnings) (vl-shadowcheck-fundecl x st warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-shadowcheck-fundecl-of-vl-fundecl-fix-x (equal (vl-shadowcheck-fundecl (vl-fundecl-fix x) st warnings) (vl-shadowcheck-fundecl x st warnings)))
Theorem:
(defthm vl-shadowcheck-fundecl-vl-fundecl-equiv-congruence-on-x (implies (vl-fundecl-equiv x x-equiv) (equal (vl-shadowcheck-fundecl x st warnings) (vl-shadowcheck-fundecl x-equiv st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-fundecl-of-vl-shadowcheck-state-fix-st (equal (vl-shadowcheck-fundecl x (vl-shadowcheck-state-fix st) warnings) (vl-shadowcheck-fundecl x st warnings)))
Theorem:
(defthm vl-shadowcheck-fundecl-vl-shadowcheck-state-equiv-congruence-on-st (implies (vl-shadowcheck-state-equiv st st-equiv) (equal (vl-shadowcheck-fundecl x st warnings) (vl-shadowcheck-fundecl x st-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-fundecl-of-vl-warninglist-fix-warnings (equal (vl-shadowcheck-fundecl x st (vl-warninglist-fix warnings)) (vl-shadowcheck-fundecl x st warnings)))
Theorem:
(defthm vl-shadowcheck-fundecl-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-shadowcheck-fundecl x st warnings) (vl-shadowcheck-fundecl x st warnings-equiv))) :rule-classes :congruence)