Apply the argresolve transformation to a vl-interface-p.
(vl-interface-argresolve x ss) → new-x
This is just glue-code to apply vl-modinst-argresolve to all of the interface instances, and vl-gateinst-dirassign to all of the gate instances in the interface.
Function:
(defun vl-interface-argresolve (x ss) (declare (xargs :guard (and (vl-interface-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-interface-argresolve)) (declare (ignorable __function__)) (b* (((mv warnings genblob) (vl-genblob-argresolve (vl-interface->genblob x) ss (vl-interface->warnings x))) (x-warn (change-vl-interface x :warnings warnings))) (vl-genblob->interface genblob x-warn))))
Theorem:
(defthm vl-interface-p-of-vl-interface-argresolve (b* ((new-x (vl-interface-argresolve x ss))) (vl-interface-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-interface-argresolve-of-vl-interface-fix-x (equal (vl-interface-argresolve (vl-interface-fix x) ss) (vl-interface-argresolve x ss)))
Theorem:
(defthm vl-interface-argresolve-vl-interface-equiv-congruence-on-x (implies (vl-interface-equiv x x-equiv) (equal (vl-interface-argresolve x ss) (vl-interface-argresolve x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-interface-argresolve-of-vl-scopestack-fix-ss (equal (vl-interface-argresolve x (vl-scopestack-fix ss)) (vl-interface-argresolve x ss)))
Theorem:
(defthm vl-interface-argresolve-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-interface-argresolve x ss) (vl-interface-argresolve x ss-equiv))) :rule-classes :congruence)