Top-level duplicate-detect check.
(vl-design-duplicate-detect x) → new-x
Function:
(defun vl-design-duplicate-detect (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-duplicate-detect)) (declare (ignorable __function__)) (b* ((x (vl-design-fix x)) ((vl-design x) x)) (change-vl-design x :mods (vl-modulelist-duplicate-detect x.mods)))))
Theorem:
(defthm vl-design-p-of-vl-design-duplicate-detect (b* ((new-x (vl-design-duplicate-detect x))) (vl-design-p new-x)) :rule-classes :rewrite)