Java: Improve join-order.

This commit is contained in:
Anders Schack-Mulligen
2022-08-02 08:49:58 +02:00
parent b5d4a2d462
commit cd356a5ac1

View File

@@ -19,8 +19,9 @@ private predicate runner(Method m, int n, Method runmethod) {
exists(Parameter p, MethodAccess ma, int j |
p = m.getParameter(n) and
ma.getEnclosingCallable() = m and
runner(ma.getMethod().getSourceDeclaration(), j, _) and
ma.getArgument(j) = p.getAnAccess()
runner(pragma[only_bind_into](ma.getMethod().getSourceDeclaration()),
pragma[only_bind_into](j), _) and
ma.getArgument(pragma[only_bind_into](j)) = p.getAnAccess()
)
)
}