| 508 | /* ── Phase 9 — cross-file resolution ──────────────────────────── */ |
| 509 | |
| 510 | static int find_resolved_arr(const CBMResolvedCallArray *arr, const char *callerSub, |
| 511 | const char *calleeSub) { |
| 512 | for (int i = 0; i < arr->count; i++) { |
| 513 | const CBMResolvedCall *rc = &arr->items[i]; |
| 514 | if (rc->caller_qn && strstr(rc->caller_qn, callerSub) && |
| 515 | rc->callee_qn && strstr(rc->callee_qn, calleeSub)) |
| 516 | return i; |
| 517 | } |
| 518 | return -1; |
| 519 | } |
| 520 | |
| 521 | typedef struct { |
| 522 | int target_count; |