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