(vl-package-scope-find-item name scope) → item
Function:
(defun vl-package-scope-find-item (name scope) (declare (xargs :guard (and (stringp name) (vl-package-p scope)))) (let ((__function__ 'vl-package-scope-find-item)) (declare (ignorable __function__)) (b* (((vl-package 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)))))
Theorem:
(defthm return-type-of-vl-package-scope-find-item (b* ((item (vl-package-scope-find-item name scope))) (iff (vl-scopeitem-p item) item)) :rule-classes :rewrite)
Theorem:
(defthm vl-package-scope-find-item-of-str-fix-name (equal (vl-package-scope-find-item (str-fix name) scope) (vl-package-scope-find-item name scope)))
Theorem:
(defthm vl-package-scope-find-item-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-package-scope-find-item name scope) (vl-package-scope-find-item name-equiv scope))) :rule-classes :congruence)
Theorem:
(defthm vl-package-scope-find-item-of-vl-package-fix-scope (equal (vl-package-scope-find-item name (vl-package-fix scope)) (vl-package-scope-find-item name scope)))
Theorem:
(defthm vl-package-scope-find-item-vl-package-equiv-congruence-on-scope (implies (vl-package-equiv scope scope-equiv) (equal (vl-package-scope-find-item name scope) (vl-package-scope-find-item name scope-equiv))) :rule-classes :congruence)