(vl-interface-scope-find-item name scope) → item
Function:
(defun vl-interface-scope-find-item (name scope) (declare (xargs :guard (and (stringp name) (vl-interface-p scope)))) (let ((__function__ 'vl-interface-scope-find-item)) (declare (ignorable __function__)) (b* (((vl-interface scope)) (?name (string-fix name))) (or (vl-find-paramdecl name scope.paramdecls) (vl-find-vardecl name scope.vardecls) (vl-find-fundecl name scope.fundecls) (vl-find-taskdecl name scope.taskdecls) (vl-find-typedef name scope.typedefs) (vl-find-dpiimport name scope.dpiimports) (vl-find-modinst name scope.modinsts) (vl-find-genvar name scope.genvars) (vl-find-genelement name scope.generates) (vl-find-interfaceport name scope.ifports) (vl-find-modport name scope.modports)))))
Theorem:
(defthm return-type-of-vl-interface-scope-find-item (b* ((item (vl-interface-scope-find-item name scope))) (iff (vl-scopeitem-p item) item)) :rule-classes :rewrite)
Theorem:
(defthm vl-interface-scope-find-item-of-str-fix-name (equal (vl-interface-scope-find-item (str-fix name) scope) (vl-interface-scope-find-item name scope)))
Theorem:
(defthm vl-interface-scope-find-item-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-interface-scope-find-item name scope) (vl-interface-scope-find-item name-equiv scope))) :rule-classes :congruence)
Theorem:
(defthm vl-interface-scope-find-item-of-vl-interface-fix-scope (equal (vl-interface-scope-find-item name (vl-interface-fix scope)) (vl-interface-scope-find-item name scope)))
Theorem:
(defthm vl-interface-scope-find-item-vl-interface-equiv-congruence-on-scope (implies (vl-interface-equiv scope scope-equiv) (equal (vl-interface-scope-find-item name scope) (vl-interface-scope-find-item name scope-equiv))) :rule-classes :congruence)