(vl-module-remove-toohard x) → new-x
Function:
(defun vl-module-remove-toohard (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-remove-toohard)) (declare (ignorable __function__)) (b* (((vl-module x) x) (warnings x.warnings) ((mv warnings assigns) (vl-assignlist-remove-toohard x.assigns warnings)) ((mv warnings modinsts) (vl-modinstlist-remove-toohard x.modinsts warnings)) ((mv warnings gateinsts) (vl-gateinstlist-remove-toohard x.gateinsts warnings)) ((mv warnings initials) (vl-initiallist-remove-toohard x.initials warnings)) ((mv warnings alwayses) (vl-alwayslist-remove-toohard x.alwayses warnings))) (change-vl-module x :warnings warnings :assigns assigns :modinsts modinsts :gateinsts gateinsts :initials initials :alwayses alwayses))))
Theorem:
(defthm vl-module-p-of-vl-module-remove-toohard (b* ((new-x (vl-module-remove-toohard x))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-remove-toohard-of-vl-module-fix-x (equal (vl-module-remove-toohard (vl-module-fix x)) (vl-module-remove-toohard x)))
Theorem:
(defthm vl-module-remove-toohard-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-remove-toohard x) (vl-module-remove-toohard x-equiv))) :rule-classes :congruence)