(vl-taskdecl-elaborate x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-taskdecl-elaborate-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-taskdecl-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-taskdecl-elaborate)) (declare (ignorable __function__)) (b* (((vl-taskdecl x) (vl-taskdecl-fix x))) (b* (((mv ok warnings body elabindex) (vl-stmt-elaborate-fn x.body elabindex reclimit config)) ((mv ok1 warnings1 portdecls elabindex) (vl-portdecllist-elaborate-fn x.portdecls 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 paramdecls elabindex) (vl-paramdecllist-elaborate-fn x.paramdecls elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings)) ((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 loaditems elabindex) (vl-portdecl-or-blockitem-list-elaborate-fn x.loaditems elabindex reclimit config)) (ok (and ok1 ok)) (warnings (append-without-guard warnings1 warnings))) (mv ok warnings (change-vl-taskdecl x :body body :portdecls portdecls :vardecls vardecls :paramdecls paramdecls :typedefs typedefs :loaditems loaditems) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-taskdecl-elaborate.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-taskdecl-elaborate-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-taskdecl-p-of-vl-taskdecl-elaborate.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-taskdecl-elaborate-fn x elabindex reclimit config))) (vl-taskdecl-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-taskdecl-elaborate-fn-of-vl-taskdecl-fix-x (equal (vl-taskdecl-elaborate-fn (vl-taskdecl-fix x) elabindex reclimit config) (vl-taskdecl-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-taskdecl-elaborate-fn-vl-taskdecl-equiv-congruence-on-x (implies (vl-taskdecl-equiv x x-equiv) (equal (vl-taskdecl-elaborate-fn x elabindex reclimit config) (vl-taskdecl-elaborate-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-taskdecl-elaborate-fn-of-nfix-reclimit (equal (vl-taskdecl-elaborate-fn x elabindex (nfix reclimit) config) (vl-taskdecl-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-taskdecl-elaborate-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-taskdecl-elaborate-fn x elabindex reclimit config) (vl-taskdecl-elaborate-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-taskdecl-elaborate-fn-of-vl-simpconfig-fix-config (equal (vl-taskdecl-elaborate-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-taskdecl-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-taskdecl-elaborate-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-taskdecl-elaborate-fn x elabindex reclimit config) (vl-taskdecl-elaborate-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)