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