Find a __definition__, as well as info about where it was found.
(vl-scopestack-find-definition/ss name ss) → (mv definition definition-ss)
Function:
(defun vl-scopestack-find-definition/ss (name ss) (declare (xargs :guard (and (stringp name) (vl-scopestack-p ss)))) (let ((__function__ 'vl-scopestack-find-definition/ss)) (declare (ignorable __function__)) (b* ((ss (vl-scopestack-fix ss))) (vl-scopestack-case ss :null (mv nil nil) :global (b* ((definition (vl-scope-find-definition-fast name ss.design))) (mv definition (vl-scopestack-fix ss))) :local (b* ((definition (vl-scope-find-definition-fast name ss.top)) ((when definition) (mv definition ss))) (vl-scopestack-find-definition/ss name ss.super))))))
Theorem:
(defthm return-type-of-vl-scopestack-find-definition/ss.definition (b* (((mv ?definition ?definition-ss) (vl-scopestack-find-definition/ss name ss))) (iff (vl-scopedef-p definition) definition)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-p-of-vl-scopestack-find-definition/ss.definition-ss (b* (((mv ?definition ?definition-ss) (vl-scopestack-find-definition/ss name ss))) (vl-scopestack-p definition-ss)) :rule-classes :rewrite)
Theorem:
(defthm vl-scopestack-find-definition/ss-of-str-fix-name (equal (vl-scopestack-find-definition/ss (str-fix name) ss) (vl-scopestack-find-definition/ss name ss)))
Theorem:
(defthm vl-scopestack-find-definition/ss-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-scopestack-find-definition/ss name ss) (vl-scopestack-find-definition/ss name-equiv ss))) :rule-classes :congruence)
Theorem:
(defthm vl-scopestack-find-definition/ss-of-vl-scopestack-fix-ss (equal (vl-scopestack-find-definition/ss name (vl-scopestack-fix ss)) (vl-scopestack-find-definition/ss name ss)))
Theorem:
(defthm vl-scopestack-find-definition/ss-vl-scopestack-equiv-congruence-on-ss (implies (vl-scopestack-equiv ss ss-equiv) (equal (vl-scopestack-find-definition/ss name ss) (vl-scopestack-find-definition/ss name ss-equiv))) :rule-classes :congruence)