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