Skip to content

Commit b6cd8e3

Browse files
committed
Add comments
1 parent 37b176b commit b6cd8e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

usvm-ts/src/main/kotlin/org/usvm/machine/expr/CallStatic.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ internal fun TsExprResolver.handleStaticCall(
4343
is NoApproximation -> {}
4444
}
4545

46+
// Resolve the static method.
4647
when (val resolved = resolveStaticMethod(expr.callee)) {
4748
is TsResolutionResult.Empty -> {
4849
logger.error { "Could not resolve static call: ${expr.callee}" }
49-
scope.assert(falseExpr)
50+
scope.assert(falseExpr) ?: return null
5051
}
5152

5253
is TsResolutionResult.Ambiguous -> {
@@ -58,6 +59,7 @@ internal fun TsExprResolver.handleStaticCall(
5859
}
5960
}
6061

62+
// Return null to indicate that we are awaiting the call to be executed.
6163
null
6264
}
6365

0 commit comments

Comments
 (0)