Make sure that the module port/port-declarations agree and that there are no unsupported constructs.
(vl-design-to-e-check-ports x) → new-x
Function:
(defun vl-design-to-e-check-ports (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-to-e-check-ports)) (declare (ignorable __function__)) (b* (((vl-design x) (vl-design-fix x)) (mods (vl-modulelist-check-port-bits x.mods))) (change-vl-design x :mods mods))))
Theorem:
(defthm vl-design-p-of-vl-design-to-e-check-ports (b* ((new-x (vl-design-to-e-check-ports x))) (vl-design-p new-x)) :rule-classes :rewrite)