Exact resolved-call probe: caller QN, callee QN and strategy all match. */
| 2151 | |
| 2152 | /* Exact resolved-call probe: caller QN, callee QN and strategy all match. */ |
| 2153 | static bool has_exact_resolved(const CBMResolvedCallArray *arr, const char *caller_qn, |
| 2154 | const char *callee_qn, const char *strategy) { |
| 2155 | for (int i = 0; i < arr->count; i++) { |
| 2156 | const CBMResolvedCall *rc = &arr->items[i]; |
| 2157 | if (rc->confidence > 0 && rc->caller_qn && rc->callee_qn && rc->strategy && |
| 2158 | strcmp(rc->caller_qn, caller_qn) == 0 && strcmp(rc->callee_qn, callee_qn) == 0 && |
| 2159 | strcmp(rc->strategy, strategy) == 0) |
| 2160 | return true; |
| 2161 | } |
| 2162 | return false; |
| 2163 | } |
| 2164 | |
| 2165 | /* Issue #1354: `new ImportedClass()` typed the instance as a phantom |
| 2166 | * CURRENT-module class (`test.main.Conn`), so every method call on it missed |