Look up a plain identifier in the current scope stack.
(vl-scopestack-find-package name ss) → package
Function:
(defun vl-scopestack-find-package (name ss) (declare (xargs :guard (and (stringp name) (vl-scopestack-p ss)))) (let ((__function__ 'vl-scopestack-find-package)) (declare (ignorable __function__)) (b* (((mv package &) (vl-scopestack-find-package/ss name ss))) package)))
Theorem:
(defthm return-type-of-vl-scopestack-find-package (b* ((package (vl-scopestack-find-package name ss))) (iff (vl-package-p package) package)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-find-package-of-str-fix-name (equal (vl-scopestack-find-package (str-fix name) ss) (vl-scopestack-find-package name ss)))
Theorem:
(defthm vl-scopestack-find-package-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-scopestack-find-package name ss) (vl-scopestack-find-package name-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-scopestack-find-package-of-vl-scopestack-fix-ss (equal (vl-scopestack-find-package name (vl-scopestack-fix ss)) (vl-scopestack-find-package name ss)))
Theorem:
(defthm vl-scopestack-find-package-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-scopestack-find-package name ss) (vl-scopestack-find-package name ss-equiv))) :rule-classes :congruence)