(vl-interface-resolve-nonansi-interfaceports x ss) → new-x
Function:
(defun vl-interface-resolve-nonansi-interfaceports (x ss) (declare (xargs :guard (and (vl-interface-p x) (vl-scopestack-p ss)))) (let ((__function__ 'vl-interface-resolve-nonansi-interfaceports)) (declare (ignorable __function__)) (b* (((vl-interface x) (vl-interface-fix x)) ((unless (and x.parse-temps (not (vl-parse-temps->ansi-p x.parse-temps)))) x) (ss (vl-scopestack-push x ss)) (loaditems (vl-parse-temps->loaditems x.parse-temps)) ((mv warnings new-loaditems ifport-alist) (vl-loaditems-remove-interfaceport-decls loaditems ss)) (ifport-alist (make-fast-alist ifport-alist)) (vardecls (with-local-nrev (vl-fast-delete-vardecls (alist-keys ifport-alist) ifport-alist x.vardecls nrev))) (ports (vl-ports-resolve-interfaces x.ports ifport-alist))) (change-vl-interface x :vardecls vardecls :ports ports :parse-temps (change-vl-parse-temps x.parse-temps :loaditems new-loaditems) :warnings (append-without-guard warnings x.warnings)))))
Theorem:
(defthm vl-interface-p-of-vl-interface-resolve-nonansi-interfaceports (b* ((new-x (vl-interface-resolve-nonansi-interfaceports x ss))) (vl-interface-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm vl-interface-resolve-nonansi-interfaceports-of-vl-interface-fix-x (equal (vl-interface-resolve-nonansi-interfaceports (vl-interface-fix x) ss) (vl-interface-resolve-nonansi-interfaceports x ss)))
Theorem:
(defthm vl-interface-resolve-nonansi-interfaceports-vl-interface-equiv-congruence-on-x (implies (vl-interface-equiv x x-equiv) (equal (vl-interface-resolve-nonansi-interfaceports x ss) (vl-interface-resolve-nonansi-interfaceports x-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-interface-resolve-nonansi-interfaceports-of-vl-scopestack-fix-ss (equal (vl-interface-resolve-nonansi-interfaceports x (vl-scopestack-fix ss)) (vl-interface-resolve-nonansi-interfaceports x ss)))
Theorem:
(defthm vl-interface-resolve-nonansi-interfaceports-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-interface-resolve-nonansi-interfaceports x ss) (vl-interface-resolve-nonansi-interfaceports x ss-equiv))) :rule-classes :congruence)