(vl-module-ifmerge x) → new-x
Function:
(defun vl-module-ifmerge (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-ifmerge)) (declare (ignorable __function__)) (b* (((vl-module x) x) ((when (vl-module->hands-offp x)) (vl-module-fix x)) ((unless x.alwayses) (vl-module-fix x)) ((mv warnings alwayses) (vl-alwayslist-ifmerge x.alwayses x.warnings))) (change-vl-module x :warnings warnings :alwayses alwayses))))
Theorem:
(defthm vl-module-p-of-vl-module-ifmerge (b* ((new-x (vl-module-ifmerge x))) (vl-module-p new-x)) :rule-classes :rewrite)