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