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