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