Confident = confidence >= the LSP override floor (0.6). */
| 72 | |
| 73 | /* Confident = confidence >= the LSP override floor (0.6). */ |
| 74 | static int find_confident(const CBMResolvedCallArray *arr, const char *callerSub, |
| 75 | const char *calleeSub) { |
| 76 | for (int i = 0; i < arr->count; i++) { |
| 77 | const CBMResolvedCall *rc = &arr->items[i]; |
| 78 | if (rc->confidence >= 0.6f && rc->caller_qn && strstr(rc->caller_qn, callerSub) && |
| 79 | rc->callee_qn && strstr(rc->callee_qn, calleeSub)) { |
| 80 | return i; |
| 81 | } |
| 82 | } |
| 83 | return -1; |
| 84 | } |
| 85 | |
| 86 | /* ── Category 1: Free function calls + module path ─────────────── */ |
| 87 |