(vl-import-update-implicit x st warnings) → (mv new-warnings new-st)
Function:
(defun vl-import-update-implicit (x st warnings) (declare (xargs :guard (and (vl-import-p x) (vl-implicitst-p st) (vl-warninglist-p warnings)))) (let ((__function__ 'vl-import-update-implicit)) (declare (ignorable __function__)) (b* (((vl-import x) (vl-import-fix x)) ((vl-implicitst st)) (package (vl-scopestack-find-package x.pkg st.ss)) (warnings (if package (ok) (fatal :type :vl-bad-import :msg "~a0: trying to import from undefined package ~s1." :args (list x x.pkg)))) ((when (eq x.part :vl-import*)) (b* ((wildpkgs (cons (cons x.pkg (and package (vl-package-scope-item-alist-top package))) st.wildpkgs))) (mv warnings (change-vl-implicitst st :wildpkgs wildpkgs)))) (decls (hons-acons (the string x.part) nil st.decls))) (mv warnings (change-vl-implicitst st :decls decls)))))
Theorem:
(defthm vl-warninglist-p-of-vl-import-update-implicit.new-warnings (b* (((mv ?new-warnings ?new-st) (vl-import-update-implicit x st warnings))) (vl-warninglist-p new-warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-implicitst-p-of-vl-import-update-implicit.new-st (b* (((mv ?new-warnings ?new-st) (vl-import-update-implicit x st warnings))) (vl-implicitst-p new-st)) :rule-classes :rewrite)
Theorem:
(defthm vl-import-update-implicit-of-vl-import-fix-x (equal (vl-import-update-implicit (vl-import-fix x) st warnings) (vl-import-update-implicit x st warnings)))
Theorem:
(defthm vl-import-update-implicit-vl-import-equiv-congruence-on-x (implies (vl-import-equiv x x-equiv) (equal (vl-import-update-implicit x st warnings) (vl-import-update-implicit x-equiv st warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-import-update-implicit-of-vl-implicitst-fix-st (equal (vl-import-update-implicit x (vl-implicitst-fix st) warnings) (vl-import-update-implicit x st warnings)))
Theorem:
(defthm vl-import-update-implicit-vl-implicitst-equiv-congruence-on-st (implies (vl-implicitst-equiv st st-equiv) (equal (vl-import-update-implicit x st warnings) (vl-import-update-implicit x st-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-import-update-implicit-of-vl-warninglist-fix-warnings (equal (vl-import-update-implicit x st (vl-warninglist-fix warnings)) (vl-import-update-implicit x st warnings)))
Theorem:
(defthm vl-import-update-implicit-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-import-update-implicit x st warnings) (vl-import-update-implicit x st warnings-equiv))) :rule-classes :congruence)