(vl-module-lint-stmt-rewrite x) → new-x
Function:
(defun vl-module-lint-stmt-rewrite (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-lint-stmt-rewrite)) (declare (ignorable __function__)) (b* ((x (vl-module-fix x)) ((vl-module x) x) ((unless (or x.alwayses x.initials)) x) (alwayses (vl-alwayslist-lint-stmt-rewrite x.alwayses)) (initials (vl-initiallist-lint-stmt-rewrite x.initials))) (change-vl-module x :alwayses alwayses :initials initials))))
Theorem:
(defthm vl-module-p-of-vl-module-lint-stmt-rewrite (b* ((new-x (vl-module-lint-stmt-rewrite x))) (vl-module-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-module-lint-stmt-rewrite-of-vl-module-fix-x (equal (vl-module-lint-stmt-rewrite (vl-module-fix x)) (vl-module-lint-stmt-rewrite x)))
Theorem:
(defthm vl-module-lint-stmt-rewrite-vl-module-equiv-congruence-on-x (implies (vl-module-equiv x x-equiv) (equal (vl-module-lint-stmt-rewrite x) (vl-module-lint-stmt-rewrite x-equiv))) :rule-classes :congruence)