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