Top-level expression-sizing transform.
(vl-design-exprsize x) → new-x
Function:
(defun vl-design-exprsize (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-exprsize)) (declare (ignorable __function__)) (b* (((vl-design x) x) (ss (vl-scopestack-init x)) (mods (vl-modulelist-exprsize x.mods ss)) (warnings x.warnings) ((mv ?ok warnings fundecls) (vl-fundecllist-exprsize x.fundecls ss warnings)) ((mv ?ok warnings paramdecls) (vl-paramdecllist-exprsize x.paramdecls ss warnings)) ((mv ?ok warnings vardecls) (vl-vardecllist-exprsize x.vardecls ss warnings))) (vl-scopestacks-free) (change-vl-design x :mods mods :fundecls fundecls :warnings warnings :paramdecls paramdecls :vardecls vardecls))))
Theorem:
(defthm vl-design-p-of-vl-design-exprsize (b* ((new-x (vl-design-exprsize x))) (vl-design-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-design-exprsize-of-vl-design-fix-x (equal (vl-design-exprsize (vl-design-fix x)) (vl-design-exprsize x)))
Theorem:
(defthm vl-design-exprsize-vl-design-equiv-congruence-on-x (implies (vl-design-equiv x x-equiv) (equal (vl-design-exprsize x) (vl-design-exprsize x-equiv))) :rule-classes :congruence)