Find an in-body call by its raw callee text; returns the call or NULL. */
| 3192 | |
| 3193 | /* Find an in-body call by its raw callee text; returns the call or NULL. */ |
| 3194 | static const CBMCall *find_call_by_callee(CBMFileResult *r, const char *callee) { |
| 3195 | for (int i = 0; i < r->calls.count; i++) { |
| 3196 | if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, callee) == 0) { |
| 3197 | return &r->calls.items[i]; |
| 3198 | } |
| 3199 | } |
| 3200 | return NULL; |
| 3201 | } |
| 3202 | |
| 3203 | /* Issue #1006: JS/TS template-literal URLs must flatten ${...} substitutions |
| 3204 | * to the canonical "{}" placeholder, both as call arguments (HTTP_CALLS) and |