(vl-design-scope-find-class name scope) → item
Function:
(defun vl-design-scope-find-class (name scope) (declare (xargs :guard (and (stringp name) (vl-design-p scope)))) (let ((__function__ 'vl-design-scope-find-class)) (declare (ignorable __function__)) (b* (((vl-design scope)) (?name (string-fix name))) (or (vl-find-class name scope.classes)))))
Theorem:
(defthm return-type-of-vl-design-scope-find-class (b* ((item (vl-design-scope-find-class name scope))) (iff (vl-class-p item) item)) :rule-classes :rewrite)
Theorem:
(defthm vl-design-scope-find-class-of-str-fix-name (equal (vl-design-scope-find-class (str-fix name) scope) (vl-design-scope-find-class name scope)))
Theorem:
(defthm vl-design-scope-find-class-streqv-congruence-on-name (implies (streqv name name-equiv) (equal (vl-design-scope-find-class name scope) (vl-design-scope-find-class name-equiv scope))) :rule-classes :congruence)
Theorem:
(defthm vl-design-scope-find-class-of-vl-design-fix-scope (equal (vl-design-scope-find-class name (vl-design-fix scope)) (vl-design-scope-find-class name scope)))
Theorem:
(defthm vl-design-scope-find-class-vl-design-equiv-congruence-on-scope (implies (vl-design-equiv scope scope-equiv) (equal (vl-design-scope-find-class name scope) (vl-design-scope-find-class name scope-equiv))) :rule-classes :congruence)