Skip to content

Commit

Permalink
Refactor for fear of bad optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Oct 11, 2024
1 parent 224e0c0 commit d06c822
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ module Collection {
private predicate noUnsafeCalls(Expr e) {
forall(MethodCall mc, int arg, Expr x |
DataFlow::localExprFlow(x, e) and
x != e and
(
arg = -1 and x = mc.getQualifier()
or
x = mc.getArgument(arg)
)
|
x = e or arg = mc.(SafeCall).getArg()
arg = mc.(SafeCall).getArg()
)
}

Expand Down

0 comments on commit d06c822

Please sign in to comment.