Look up a plain identifier in the current scope stack.
(vl-scopestack-find-item/ss name ss) → (mv item item-ss)
Function:
(defun vl-scopestack-find-item/ss (name ss) (declare (xargs :guard (and (stringp name) (vl-scopestack-p ss)))) (let ((__function__ 'vl-scopestack-find-item/ss)) (declare (ignorable __function__)) (b* (((mv item context-ss pkg-name) (vl-scopestack-find-item/context name ss)) ((unless pkg-name) (mv item context-ss)) (design (vl-scopestack->design context-ss)) (pkg (and design (cdr (hons-get pkg-name (vl-design-scope-package-alist-top design))))) ((unless pkg) (mv item nil)) (pkg-ss (vl-scopestack-push pkg (vl-scopestack-init design)))) (mv item pkg-ss))))
Theorem:
(defthm return-type-of-vl-scopestack-find-item/ss.item (b* (((mv ?item ?item-ss) (vl-scopestack-find-item/ss name ss))) (iff (vl-scopeitem-p item) item)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-p-of-vl-scopestack-find-item/ss.item-ss (b* (((mv ?item ?item-ss) (vl-scopestack-find-item/ss name ss))) (vl-scopestack-p item-ss)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-find-item/ss-of-str-fix-name (equal (vl-scopestack-find-item/ss (str-fix name) ss) (vl-scopestack-find-item/ss name ss)))
Theorem:
(defthm vl-scopestack-find-item/ss-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-scopestack-find-item/ss name ss) (vl-scopestack-find-item/ss name-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-scopestack-find-item/ss-of-vl-scopestack-fix-ss (equal (vl-scopestack-find-item/ss name (vl-scopestack-fix ss)) (vl-scopestack-find-item/ss name ss)))
Theorem:
(defthm vl-scopestack-find-item/ss-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-scopestack-find-item/ss name ss) (vl-scopestack-find-item/ss name ss-equiv))) :rule-classes :congruence)