Skip to content

Commit d4c9fdd

Browse files
committed
Java: Use fastTC.
1 parent 48ab5b2 commit d4c9fdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/DataFlowUtil.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ private module ThisFlow {
7575
* local (intra-procedural) steps.
7676
*/
7777
pragma[inline]
78-
predicate localFlow(Node node1, Node node2) { localFlowStep*(node1, node2) }
78+
predicate localFlow(Node node1, Node node2) { node1 = node2 or localFlowStepPlus(node1, node2) }
79+
80+
private predicate localFlowStepPlus(Node node1, Node node2) = fastTC(localFlowStep/2)(node1, node2)
7981

8082
/**
8183
* Holds if data can flow from `e1` to `e2` in zero or more

0 commit comments

Comments
 (0)