Confident = confidence >= the LSP override floor (0.6). */
| 113 | |
| 114 | /* Confident = confidence >= the LSP override floor (0.6). */ |
| 115 | static int find_confident(const CBMResolvedCallArray *arr, const char *callerSub, |
| 116 | const char *calleeSub) { |
| 117 | for (int i = 0; i < arr->count; i++) { |
| 118 | const CBMResolvedCall *rc = &arr->items[i]; |
| 119 | if (rc->confidence >= 0.6f && rc->caller_qn && strstr(rc->caller_qn, callerSub) && |
| 120 | rc->callee_qn && strstr(rc->callee_qn, calleeSub)) { |
| 121 | return i; |
| 122 | } |
| 123 | } |
| 124 | return -1; |
| 125 | } |
| 126 | |
| 127 | static int count_confident_strategy(const CBMResolvedCallArray *arr, const char *strategy) { |
| 128 | int count = 0; |