(vl-module-elim-useless-params x map) → new-x
Function:
(defun vl-module-elim-useless-params (x map) (declare (xargs :guard (and (vl-module-p x) (vl-useless-params-map-p map)))) (let ((__function__ 'vl-module-elim-useless-params)) (declare (ignorable __function__)) (let* ((modinsts (vl-module->modinsts x)) (modinsts (vl-modinstlist-elim-useless-params modinsts map))) (change-vl-module x :modinsts modinsts))))
Theorem:
(defthm vl-module-p-of-vl-module-elim-useless-params (implies (and (force (vl-module-p x)) (force (vl-useless-params-map-p map))) (b* ((new-x (vl-module-elim-useless-params x map))) (vl-module-p new-x))) :rule-classes :rewrite)
Theorem:
(defthm vl-module->name-of-vl-module-elim-useless-params (equal (vl-module->name (vl-module-elim-useless-params x map)) (vl-module->name x)))