Look up a plain identifier to find a definition in a scope.
(vl-scope-find-definition name scope) → definition
Function:
(defun vl-scope-find-definition (name scope) (declare (xargs :guard (and (stringp name) (vl-scope-p scope)))) (let ((__function__ 'vl-scope-find-definition)) (declare (ignorable __function__)) (b* ((scope (vl-scope-fix scope))) (case (tag scope) (:vl-design (vl-design-scope-find-definition name scope)) (otherwise nil)))))
Theorem:
(defthm return-type-of-vl-scope-find-definition (b* ((definition (vl-scope-find-definition name scope))) (iff (vl-scopedef-p definition) definition)) :rule-classes :rewrite)
Theorem:
(defthm vl-scope-find-definition-of-str-fix-name (equal (vl-scope-find-definition (str-fix name) scope) (vl-scope-find-definition name scope)))
Theorem:
(defthm vl-scope-find-definition-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-scope-find-definition name scope) (vl-scope-find-definition name-equiv scope))) :rule-classes :congruence)
Theorem:
(defthm vl-scope-find-definition-of-vl-scope-fix-scope (equal (vl-scope-find-definition name (vl-scope-fix scope)) (vl-scope-find-definition name scope)))
Theorem:
(defthm vl-scope-find-definition-vl-scope-equiv-congruence-on-scope (implies (vl-scope-equiv scope scope-equiv) (equal (vl-scope-find-definition name scope) (vl-scope-find-definition name scope-equiv))) :rule-classes :congruence)