(vl-package-elaborate-aux x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-package-elaborate-aux-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-package-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-package-elaborate-aux)) (declare (ignorable __function__)) (b* (((vl-package x) (vl-package-fix x))) (b* (((mv ok warnings paramdecls elabindex) (vl-paramdecllist-elaborate-fn x.paramdecls elabindex reclimit config)) ((mv ok1 warnings1 typedefs elabindex) (vl-typedeflist-elaborate-fn x.typedefs elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 fundecls elabindex) (vl-fundecllist-elaborate-fn x.fundecls elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 taskdecls elabindex) (vl-taskdecllist-elaborate-fn x.taskdecls elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 vardecls elabindex) (vl-vardecllist-elaborate-fn x.vardecls elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 dpiimports elabindex) (vl-dpiimportlist-elaborate-fn x.dpiimports elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings))) (mv ok warnings (change-vl-package x :paramdecls paramdecls :typedefs typedefs :fundecls fundecls :taskdecls taskdecls :vardecls vardecls :dpiimports dpiimports) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-package-elaborate-aux.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-package-elaborate-aux-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-package-p-of-vl-package-elaborate-aux.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-package-elaborate-aux-fn x elabindex reclimit config))) (vl-package-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-package-elaborate-aux-fn-of-vl-package-fix-x (equal (vl-package-elaborate-aux-fn (vl-package-fix x) elabindex reclimit config) (vl-package-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-package-elaborate-aux-fn-vl-package-equiv-congruence-on-x (implies (vl-package-equiv x x-equiv) (equal (vl-package-elaborate-aux-fn x elabindex reclimit config) (vl-package-elaborate-aux-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-package-elaborate-aux-fn-of-nfix-reclimit (equal (vl-package-elaborate-aux-fn x elabindex (nfix reclimit) config) (vl-package-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-package-elaborate-aux-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-package-elaborate-aux-fn x elabindex reclimit config) (vl-package-elaborate-aux-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-package-elaborate-aux-fn-of-vl-simpconfig-fix-config (equal (vl-package-elaborate-aux-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-package-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-package-elaborate-aux-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-package-elaborate-aux-fn x elabindex reclimit config) (vl-package-elaborate-aux-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)