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