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