(vl-gateinst-elaborate x elabindex &key (reclimit 'reclimit) (config 'config)) → (mv ok warnings new-x new-elabindex)
Function:
(defun vl-gateinst-elaborate-fn (x elabindex reclimit config) (declare (xargs :stobjs (elabindex))) (declare (xargs :guard (and (vl-gateinst-p x) (natp reclimit) (vl-simpconfig-p config)))) (let ((__function__ 'vl-gateinst-elaborate)) (declare (ignorable __function__)) (b* (((vl-gateinst x) (vl-gateinst-fix x))) (b* (((mv ok warnings args elabindex) (vl-plainarglist-elaborate-fn x.args elabindex reclimit config)) ((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-gateinst x :args args :range range :delay delay) elabindex)))))
Theorem:
(defthm vl-warninglist-p-of-vl-gateinst-elaborate.warnings (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-gateinst-elaborate-fn x elabindex reclimit config))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-gateinst-p-of-vl-gateinst-elaborate.new-x (b* (((mv ?ok ?warnings ?new-x ?new-elabindex) (vl-gateinst-elaborate-fn x elabindex reclimit config))) (vl-gateinst-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-gateinst-elaborate-fn-of-vl-gateinst-fix-x (equal (vl-gateinst-elaborate-fn (vl-gateinst-fix x) elabindex reclimit config) (vl-gateinst-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-gateinst-elaborate-fn-vl-gateinst-equiv-congruence-on-x (implies (vl-gateinst-equiv x x-equiv) (equal (vl-gateinst-elaborate-fn x elabindex reclimit config) (vl-gateinst-elaborate-fn x-equiv elabindex reclimit config))) :rule-classes :congruence)
Theorem:
(defthm vl-gateinst-elaborate-fn-of-nfix-reclimit (equal (vl-gateinst-elaborate-fn x elabindex (nfix reclimit) config) (vl-gateinst-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-gateinst-elaborate-fn-nat-equiv-congruence-on-reclimit (implies (acl2::nat-equiv reclimit reclimit-equiv) (equal (vl-gateinst-elaborate-fn x elabindex reclimit config) (vl-gateinst-elaborate-fn x elabindex reclimit-equiv config))) :rule-classes :congruence)
Theorem:
(defthm vl-gateinst-elaborate-fn-of-vl-simpconfig-fix-config (equal (vl-gateinst-elaborate-fn x elabindex reclimit (vl-simpconfig-fix config)) (vl-gateinst-elaborate-fn x elabindex reclimit config)))
Theorem:
(defthm vl-gateinst-elaborate-fn-vl-simpconfig-equiv-congruence-on-config (implies (vl-simpconfig-equiv config config-equiv) (equal (vl-gateinst-elaborate-fn x elabindex reclimit config) (vl-gateinst-elaborate-fn x elabindex reclimit config-equiv))) :rule-classes :congruence)