(vl-port-selresolve x ss warnings) → (mv warnings new-x)
Function:
(defun vl-port-selresolve (x ss warnings) (declare (xargs :guard (and (vl-port-p x) (vl-scopestack-p ss) (vl-warninglist-p warnings)))) (declare (ignorable ss)) (let ((__function__ 'vl-port-selresolve)) (declare (ignorable __function__)) (b* ((x (vl-port-fix x)) (warnings (vl-warninglist-fix warnings))) (b* ((x (vl-port-fix x)) ((when (eq (tag x) :vl-interfaceport)) (mv warnings x)) ((vl-regularport x) x) ((mv warnings expr) (vl-maybe-expr-selresolve x.expr ss warnings))) (mv warnings (change-vl-regularport x :expr expr))))))
Theorem:
(defthm vl-warninglist-p-of-vl-port-selresolve.warnings (b* (((mv ?warnings ?new-x) (vl-port-selresolve x ss warnings))) (vl-warninglist-p warnings)) :rule-classes :rewrite)
Theorem:
(defthm vl-port-p-of-vl-port-selresolve.new-x (b* (((mv ?warnings ?new-x) (vl-port-selresolve x ss warnings))) (vl-port-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-port-selresolve-of-vl-port-fix-x (equal (vl-port-selresolve (vl-port-fix x) ss warnings) (vl-port-selresolve x ss warnings)))
Theorem:
(defthm vl-port-selresolve-vl-port-equiv-congruence-on-x (implies (vl-port-equiv x x-equiv) (equal (vl-port-selresolve x ss warnings) (vl-port-selresolve x-equiv ss warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-port-selresolve-of-vl-scopestack-fix-ss (equal (vl-port-selresolve x (vl-scopestack-fix ss) warnings) (vl-port-selresolve x ss warnings)))
Theorem:
(defthm vl-port-selresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-port-selresolve x ss warnings) (vl-port-selresolve x ss-equiv warnings))) :rule-classes :congruence)
Theorem:
(defthm vl-port-selresolve-of-vl-warninglist-fix-warnings (equal (vl-port-selresolve x ss (vl-warninglist-fix warnings)) (vl-port-selresolve x ss warnings)))
Theorem:
(defthm vl-port-selresolve-vl-warninglist-equiv-congruence-on-warnings (implies (vl-warninglist-equiv warnings warnings-equiv) (equal (vl-port-selresolve x ss warnings) (vl-port-selresolve x ss warnings-equiv))) :rule-classes :congruence)