Skip to content

Commit 75ac205

Browse files
committed
Skip not found arguments in method parameters
1 parent ea1e4f4 commit 75ac205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

usvm-dataflow-ts/src/main/kotlin/org/usvm/dataflow/ts/infer/BackwardFlowFunctions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,9 @@ class BackwardFlowFunctions(
506506
if (doAddKnownTypes) {
507507
// f(x:T) |= x:T, where T is the type of the argument in f's signature
508508
for ((index, arg) in callExpr.args.withIndex()) {
509+
val param = callExpr.method.parameters.getOrNull(index) ?: continue
509510
val base = arg.toBase()
510-
val type = EtsTypeFact.from(callExpr.method.parameters[index].type)
511+
val type = EtsTypeFact.from(param.type)
511512
result += TypedVariable(base, type)
512513
}
513514
}

0 commit comments

Comments
 (0)