(vl-module-eliminitial x) → new-x
Function:
(defun vl-module-eliminitial (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-eliminitial)) (declare (ignorable __function__)) (b* ((x (vl-module-fix x)) ((when (vl-module->hands-offp x)) x) (genblob (vl-module->genblob x)) ((mv warnings new-genblob) (vl-genblob-eliminitial genblob (vl-module->name x) (vl-module->warnings x))) (x-warn (change-vl-module x :warnings warnings))) (vl-genblob->module new-genblob x-warn))))
Theorem:
(defthm vl-module-p-of-vl-module-eliminitial (b* ((new-x (vl-module-eliminitial x))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-eliminitial-of-vl-module-fix-x (equal (vl-module-eliminitial (vl-module-fix x)) (vl-module-eliminitial x)))
Theorem:
(defthm vl-module-eliminitial-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-eliminitial x) (vl-module-eliminitial x-equiv))) :rule-classes :congruence)