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