(vl-design-scope-find-package name scope) → item
Function:
(defun vl-design-scope-find-package (name scope) (declare (xargs :guard (and (stringp name) (vl-design-p scope)))) (let ((__function__ 'vl-design-scope-find-package)) (declare (ignorable __function__)) (b* (((vl-design scope)) (?name (string-fix name))) (or (vl-find-package name scope.packages)))))
Theorem:
(defthm return-type-of-vl-design-scope-find-package (b* ((item (vl-design-scope-find-package name scope))) (iff (vl-package-p item) item)) :rule-classes :rewrite)
Theorem:
(defthm vl-design-scope-find-package-of-str-fix-name (equal (vl-design-scope-find-package (str-fix name) scope) (vl-design-scope-find-package name scope)))
Theorem:
(defthm vl-design-scope-find-package-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-design-scope-find-package name scope) (vl-design-scope-find-package name-equiv scope))) :rule-classes :congruence)
Theorem:
(defthm vl-design-scope-find-package-of-vl-design-fix-scope (equal (vl-design-scope-find-package name (vl-design-fix scope)) (vl-design-scope-find-package name scope)))
Theorem:
(defthm vl-design-scope-find-package-vl-design-equiv-congruence-on-scope (implies (vl-design-equiv scope scope-equiv) (equal (vl-design-scope-find-package name scope) (vl-design-scope-find-package name scope-equiv))) :rule-classes :congruence)