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