(vl-elabtask-elaborate x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-elabtask-elaborate-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-elabtask-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-elabtask-elaborate)) (declare (ignorable __function__)) (b* (((vl-elabtask x) (vl-elabtask-fix x))) (b* (((mv ok warnings stmt elabindex) (vl-stmt-elaborate-fn x.stmt elabindex reclimit config))) (mv ok warnings (change-vl-elabtask x :stmt stmt) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-elabtask-elaborate.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-elabtask-elaborate-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-elabtask-p-of-vl-elabtask-elaborate.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-elabtask-elaborate-fn x elabindex reclimit config))) (vl-elabtask-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-elabtask-elaborate-fn-of-vl-elabtask-fix-x (equal (vl-elabtask-elaborate-fn (vl-elabtask-fix x) elabindex reclimit config) (vl-elabtask-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-elabtask-elaborate-fn-vl-elabtask-equiv-congruence-on-x (implies (vl-elabtask-equiv x x-equiv) (equal (vl-elabtask-elaborate-fn x elabindex reclimit config) (vl-elabtask-elaborate-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-elabtask-elaborate-fn-of-nfix-reclimit (equal (vl-elabtask-elaborate-fn x elabindex (nfix reclimit) config) (vl-elabtask-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-elabtask-elaborate-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-elabtask-elaborate-fn x elabindex reclimit config) (vl-elabtask-elaborate-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-elabtask-elaborate-fn-of-vl-simpconfig-fix-config (equal (vl-elabtask-elaborate-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-elabtask-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-elabtask-elaborate-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-elabtask-elaborate-fn x elabindex reclimit config) (vl-elabtask-elaborate-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)