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