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