(vl-module-add-svbad-warnings x good bad) → (mv good bad)
Function:
(defun vl-module-add-svbad-warnings (x good bad) (declare (xargs :guard (and (vl-module-p x) (vl-modulelist-p good) (vl-modulelist-p bad)))) (let ((__function__ 'vl-module-add-svbad-warnings)) (declare (ignorable __function__)) (b* (((vl-module x) (vl-module-fix x)) (good (vl-modulelist-fix good)) (bad (vl-modulelist-fix bad)) (warnings (vl-vardecllist-svbad-warnings x.vardecls nil)) ((unless warnings) (mv (cons x good) bad)) (new-x (change-vl-module x :warnings (append-without-guard warnings x.warnings)))) (mv good (cons new-x bad)))))
Theorem:
(defthm vl-modulelist-p-of-vl-module-add-svbad-warnings.good (b* (((mv ?good ?bad) (vl-module-add-svbad-warnings x good bad))) (vl-modulelist-p good)) :rule-classes :rewrite)
Theorem:
(defthm vl-modulelist-p-of-vl-module-add-svbad-warnings.bad (b* (((mv ?good ?bad) (vl-module-add-svbad-warnings x good bad))) (vl-modulelist-p bad)) :rule-classes :rewrite)