Top-level expand-functions transform.
(vl-design-expand-functions x) → new-x
Function:
(defun vl-design-expand-functions (x) (declare (xargs :guard (vl-design-p x))) (let ((__function__ 'vl-design-expand-functions)) (declare (ignorable __function__)) (b* (((vl-design x) x) (ss (vl-scopestack-init x)) (res (change-vl-design x :mods (vl-modulelist-expand-functions x.mods ss)))) (vl-scopestacks-free) res)))
Theorem:
(defthm vl-design-p-of-vl-design-expand-functions (b* ((new-x (vl-design-expand-functions x))) (vl-design-p new-x)) :rule-classes :rewrite)