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