(vl-package-arith-compare-check x ss) → new-x
Function:
(defun vl-package-arith-compare-check (x ss) (declare (xargs :guard (and (vl-package-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-package-arith-compare-check)) (declare (ignorable __function__)) (b* ((warnings (append (vl-ctxexprlist-arith-compare-check (vl-package-ctxexprs x ss)) (vl-package->warnings x)))) (change-vl-package x :warnings warnings))))
Theorem:
(defthm vl-package-p-of-vl-package-arith-compare-check (b* ((new-x (vl-package-arith-compare-check x ss))) (vl-package-p new-x)) :rule-classes :rewrite)