Revert "Dataflow: Count callables instead of nodes for fieldFlowBranchLimit."

This reverts commit 1501a40de8.
This commit is contained in:
Anders Schack-Mulligen
2020-10-16 12:51:50 +02:00
parent 1501a40de8
commit 664f04020f
21 changed files with 84 additions and 252 deletions

View File

@@ -649,12 +649,8 @@ private predicate flowIntoCallNodeCand1(
*/
private int branch(Node n1, Configuration conf) {
result =
strictcount(DataFlowCallable callable |
exists(Node n |
flowOutOfCallNodeCand1(_, n1, n, conf) or flowIntoCallNodeCand1(_, n1, n, conf)
|
callable = n.getEnclosingCallable()
)
strictcount(Node n |
flowOutOfCallNodeCand1(_, n1, n, conf) or flowIntoCallNodeCand1(_, n1, n, conf)
)
}
@@ -665,12 +661,8 @@ private int branch(Node n1, Configuration conf) {
*/
private int join(Node n2, Configuration conf) {
result =
strictcount(DataFlowCallable callable |
exists(Node n |
flowOutOfCallNodeCand1(_, n, n2, conf) or flowIntoCallNodeCand1(_, n, n2, conf)
|
callable = n.getEnclosingCallable()
)
strictcount(Node n |
flowOutOfCallNodeCand1(_, n, n2, conf) or flowIntoCallNodeCand1(_, n, n2, conf)
)
}

View File

@@ -649,12 +649,8 @@ private predicate flowIntoCallNodeCand1(
*/
private int branch(Node n1, Configuration conf) {
result =
strictcount(DataFlowCallable callable |
exists(Node n |
flowOutOfCallNodeCand1(_, n1, n, conf) or flowIntoCallNodeCand1(_, n1, n, conf)
|
callable = n.getEnclosingCallable()
)
strictcount(Node n |
flowOutOfCallNodeCand1(_, n1, n, conf) or flowIntoCallNodeCand1(_, n1, n, conf)
)
}
@@ -665,12 +661,8 @@ private int branch(Node n1, Configuration conf) {
*/
private int join(Node n2, Configuration conf) {
result =
strictcount(DataFlowCallable callable |
exists(Node n |
flowOutOfCallNodeCand1(_, n, n2, conf) or flowIntoCallNodeCand1(_, n, n2, conf)
|
callable = n.getEnclosingCallable()
)
strictcount(Node n |
flowOutOfCallNodeCand1(_, n, n2, conf) or flowIntoCallNodeCand1(_, n, n2, conf)
)
}