Resolve
(vl-fundecl-resolve-indexing x ss warnings) → (mv warnings new-x)
Function:
(defun vl-fundecl-resolve-indexing (x ss warnings) (declare (xargs :guard (and (vl-fundecl-p x) (vl-scopestack-p ss) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-fundecl-resolve-indexing)) (declare (ignorable __function__)) (b* ((x (vl-fundecl-fix x)) (warnings (vl-warninglist-fix warnings))) (b* (((vl-fundecl x) x) (ss (vl-scopestack-push (vl-fundecl->blockscope x) ss)) ((mv warnings new-body) (vl-stmt-resolve-indexing x.body ss warnings)) (new-x (change-vl-fundecl x :body new-body))) (mv warnings new-x)))))
Theorem:
(defthm vl-warninglist-p-of-vl-fundecl-resolve-indexing.warnings (b* (((mv ?warnings ?new-x) (vl-fundecl-resolve-indexing x ss warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-fundecl-p-of-vl-fundecl-resolve-indexing.new-x (b* (((mv ?warnings ?new-x) (vl-fundecl-resolve-indexing x ss warnings))) (vl-fundecl-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-fundecl-resolve-indexing-of-vl-fundecl-fix-x (equal (vl-fundecl-resolve-indexing (vl-fundecl-fix x) ss warnings) (vl-fundecl-resolve-indexing x ss warnings)))
Theorem:
(defthm vl-fundecl-resolve-indexing-vl-fundecl-equiv-congruence-on-x (implies (vl-fundecl-equiv x x-equiv) (equal (vl-fundecl-resolve-indexing x ss warnings) (vl-fundecl-resolve-indexing x-equiv ss warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-fundecl-resolve-indexing-of-vl-scopestack-fix-ss (equal (vl-fundecl-resolve-indexing x (vl-scopestack-fix ss) warnings) (vl-fundecl-resolve-indexing x ss warnings)))
Theorem:
(defthm vl-fundecl-resolve-indexing-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-fundecl-resolve-indexing x ss warnings) (vl-fundecl-resolve-indexing x ss-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-fundecl-resolve-indexing-of-vl-warninglist-fix-warnings (equal (vl-fundecl-resolve-indexing x ss (vl-warninglist-fix warnings)) (vl-fundecl-resolve-indexing x ss warnings)))
Theorem:
(defthm vl-fundecl-resolve-indexing-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-fundecl-resolve-indexing x ss warnings) (vl-fundecl-resolve-indexing x ss warnings-equiv))) :rule-classes :congruence)