(vl-modinst-elaborate-aux x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-modinst-elaborate-aux-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-modinst-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-modinst-elaborate-aux)) (declare (ignorable __function__)) (b* (((vl-modinst x) (vl-modinst-fix x))) (b* (((mv ok warnings portargs elabindex) (vl-arguments-elaborate-fn x.portargs elabindex reclimit config)) ((mv ok1 warnings1 paramargs elabindex) (vl-paramargs-elaborate-fn x.paramargs elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 range elabindex) (vl-maybe-range-elaborate-fn x.range elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((mv ok1 warnings1 delay elabindex) (vl-maybe-gatedelay-elaborate-fn x.delay elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings))) (mv ok warnings (change-vl-modinst x :portargs portargs :paramargs paramargs :range range :delay delay) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-modinst-elaborate-aux.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-modinst-elaborate-aux-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinst-p-of-vl-modinst-elaborate-aux.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-modinst-elaborate-aux-fn x elabindex reclimit config))) (vl-modinst-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-modinst-elaborate-aux-fn-of-vl-modinst-fix-x (equal (vl-modinst-elaborate-aux-fn (vl-modinst-fix x) elabindex reclimit config) (vl-modinst-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-modinst-elaborate-aux-fn-vl-modinst-equiv-congruence-on-x (implies (vl-modinst-equiv x x-equiv) (equal (vl-modinst-elaborate-aux-fn x elabindex reclimit config) (vl-modinst-elaborate-aux-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-modinst-elaborate-aux-fn-of-nfix-reclimit (equal (vl-modinst-elaborate-aux-fn x elabindex (nfix reclimit) config) (vl-modinst-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-modinst-elaborate-aux-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-modinst-elaborate-aux-fn x elabindex reclimit config) (vl-modinst-elaborate-aux-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-modinst-elaborate-aux-fn-of-vl-simpconfig-fix-config (equal (vl-modinst-elaborate-aux-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-modinst-elaborate-aux-fn x elabindex reclimit config)))
Theorem:
(defthm vl-modinst-elaborate-aux-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-modinst-elaborate-aux-fn x elabindex reclimit config) (vl-modinst-elaborate-aux-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)