(vl-shadowcheck-modelement x st warnings) → (mv st warnings)
Function:
(defun vl-shadowcheck-modelement (x st warnings) (declare (xargs :guard (and (vl-modelement-p x) (vl-shadowcheck-state-p st) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-shadowcheck-modelement)) (declare (ignorable __function__)) (b* ((item (vl-modelement-fix x)) (st (vl-shadowcheck-state-fix st)) (warnings (vl-warninglist-fix warnings)) (tag (tag item)) (- (vl-shadowcheck-debug " ---- ~a0 ---- ~%" item)) ((when (or (eq tag :vl-interfaceport) (eq tag :vl-regularport))) (mv st (fatal :type :vl-programming-error :msg "We shouldn't see ports here, but found ~a0.~%" :args (list item)))) ((when (eq tag :vl-genvar)) (b* (((vl-genvar item)) ((mv st warnings) (vl-shadowcheck-declare-name item.name item st warnings))) (mv st warnings))) ((when (eq tag :vl-portdecl)) (vl-shadowcheck-portdecl item st warnings)) ((when (eq tag :vl-vardecl)) (vl-shadowcheck-vardecl item st warnings)) ((when (eq tag :vl-paramdecl)) (vl-shadowcheck-paramdecl item st warnings)) ((when (eq tag :vl-assign)) (vl-shadowcheck-assign item st warnings)) ((when (eq tag :vl-gateinst)) (vl-shadowcheck-gateinst item st warnings)) ((when (eq tag :vl-modinst)) (vl-shadowcheck-modinst item st warnings)) ((when (eq tag :vl-always)) (vl-shadowcheck-always item st warnings)) ((when (eq tag :vl-initial)) (vl-shadowcheck-initial item st warnings)) ((when (eq tag :vl-final)) (vl-shadowcheck-final item st warnings)) ((when (eq tag :vl-fundecl)) (vl-shadowcheck-fundecl item st warnings)) ((when (eq tag :vl-taskdecl)) (vl-shadowcheck-taskdecl item st warnings)) ((when (eq tag :vl-dpiimport)) (vl-shadowcheck-dpiimport item st warnings)) ((when (eq tag :vl-import)) (vl-shadowcheck-import item st warnings)) ((when (eq tag :vl-typedef)) (vl-shadowcheck-typedef item st warnings)) ((when (eq tag :vl-alias)) (vl-shadowcheck-alias item st warnings)) ((when (eq tag :vl-modport)) (vl-shadowcheck-modport item st warnings)) ((when (eq tag :vl-assertion)) (mv st warnings)) ((when (eq tag :vl-cassertion)) (mv st warnings)) ((when (eq tag :vl-property)) (mv st warnings)) ((when (eq tag :vl-sequence)) (mv st warnings)) ((when (eq tag :vl-clkdecl)) (mv st warnings)) ((when (eq tag :vl-gclkdecl)) (mv st warnings)) ((when (eq tag :vl-defaultdisable)) (mv st warnings)) ((when (eq tag :vl-dpiexport)) (mv st warnings)) ((when (eq tag :vl-fwdtypedef)) (mv st warnings)) ((when (eq tag :vl-bind)) (mv st warnings)) ((when (eq tag :vl-class)) (mv st warnings)) ((when (eq tag :vl-covergroup)) (mv st warnings)) ((when (eq tag :vl-elabtask)) (mv st warnings)) ((when (eq tag :vl-letdecl)) (mv st warnings))) (impossible) (mv st warnings))))
Theorem:
(defthm vl-shadowcheck-state-p-of-vl-shadowcheck-modelement.st (b* (((mv ?st ?warnings) (vl-shadowcheck-modelement x st warnings))) (vl-shadowcheck-state-p st)) :rule-classes :rewrite)
Theorem:
(defthm vl-warninglist-p-of-vl-shadowcheck-modelement.warnings (b* (((mv ?st ?warnings) (vl-shadowcheck-modelement x st warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-shadowcheck-modelement-of-vl-modelement-fix-x (equal (vl-shadowcheck-modelement (vl-modelement-fix x) st warnings) (vl-shadowcheck-modelement x st warnings)))
Theorem:
(defthm vl-shadowcheck-modelement-vl-modelement-equiv-congruence-on-x (implies (vl-modelement-equiv x x-equiv) (equal (vl-shadowcheck-modelement x st warnings) (vl-shadowcheck-modelement x-equiv st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-modelement-of-vl-shadowcheck-state-fix-st (equal (vl-shadowcheck-modelement x (vl-shadowcheck-state-fix st) warnings) (vl-shadowcheck-modelement x st warnings)))
Theorem:
(defthm vl-shadowcheck-modelement-vl-shadowcheck-state-equiv-congruence-on-st (implies (vl-shadowcheck-state-equiv st st-equiv) (equal (vl-shadowcheck-modelement x st warnings) (vl-shadowcheck-modelement x st-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-shadowcheck-modelement-of-vl-warninglist-fix-warnings (equal (vl-shadowcheck-modelement x st (vl-warninglist-fix warnings)) (vl-shadowcheck-modelement x st warnings)))
Theorem:
(defthm vl-shadowcheck-modelement-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-shadowcheck-modelement x st warnings) (vl-shadowcheck-modelement x st warnings-equiv))) :rule-classes :congruence)