Skip to content

Commit dceadc6

Browse files
authored
Merge pull request #620 from timll/develop
StubDroid: Also compact aliasing flows
2 parents 6c47ad3 + fac07f5 commit dceadc6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

soot-infoflow-summaries/src/soot/jimple/infoflow/methodSummary/postProcessor/SummaryFlowCompactor.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,18 @@ private void compactFlowSet() {
5858
MethodFlow flow = flowIt.next();
5959

6060
// Check if there is a more precise flow
61-
for (MethodFlow flow2 : summaries)
62-
if (flow != flow2 && flow.isCoarserThan(flow2)) {
61+
for (MethodFlow flow2 : summaries) {
62+
if (flow == flow2)
63+
continue;
64+
65+
if (flow.isCoarserThan(flow2)
66+
|| (flow.isAlias() && flow2.isAlias() && flow.reverse().isCoarserThan(flow2))) {
6367
flowIt.remove();
6468
flowsRemoved++;
6569
hasChanged = true;
6670
break;
6771
}
72+
}
6873

6974
if (hasChanged)
7075
break;

0 commit comments

Comments
 (0)