(vl-module-leftright-check x) carries our our leftright-check on all the expressions in a module, and adds any resulting warnings to the module.
(vl-module-leftright-check x) → new-x
Function:
(defun vl-module-leftright-check (x) (declare (xargs :guard (vl-module-p x))) (let ((__function__ 'vl-module-leftright-check)) (declare (ignorable __function__)) (b* ((ctxexprs (vl-module-ctxexprs x)) (new-warnings (vl-exprctxalist-leftright-check ctxexprs))) (change-vl-module x :warnings (append new-warnings (vl-module->warnings x))))))
Theorem:
(defthm vl-module-p-of-vl-module-leftright-check (implies (and (force (vl-module-p x))) (b* ((new-x (vl-module-leftright-check x))) (vl-module-p new-x))) :rule-classes :rewrite)