Search cross-file resolved calls array */
| 63 | |
| 64 | /* Search cross-file resolved calls array */ |
| 65 | static int find_resolved_arr(const CBMResolvedCallArray *arr, const char *callerSub, |
| 66 | const char *calleeSub) { |
| 67 | for (int i = 0; i < arr->count; i++) { |
| 68 | const CBMResolvedCall *rc = &arr->items[i]; |
| 69 | if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && rc->callee_qn && |
| 70 | strstr(rc->callee_qn, calleeSub)) |
| 71 | return i; |
| 72 | } |
| 73 | return -1; |
| 74 | } |
| 75 | |
| 76 | static int find_resolved_arr_confident(const CBMResolvedCallArray *arr, const char *callerSub, |
| 77 | const char *calleeSub) { |