Skip to content

Commit

Permalink
Merge branch 'develop' into test/emptySwitchEliminator
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenArzt authored Feb 15, 2024
2 parents 4a72895 + a62f684 commit b43213a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/soot/toolkits/scalar/InitAnalysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public InitAnalysis(DirectedBodyGraph<Unit> g) {

@Override
protected FlowSet<Local> entryInitialFlow() {
return new ArraySparseSet<Local>();
return new HashSparseSet<Local>();
}

@Override
protected FlowSet<Local> newInitialFlow() {
FlowSet<Local> ret = new ArraySparseSet<Local>();
FlowSet<Local> ret = new HashSparseSet<Local>();
allLocals.copy(ret);
return ret;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/soot/toolkits/scalar/SimpleLiveLocals.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public SimpleLiveLocals(DirectedBodyGraph<Unit> graph) {

@Override
public List<Local> getLiveLocalsAfter(Unit s) {
// ArraySparseSet returns a unbacked list of elements!
// HashSparseSet returns a unbacked list of elements!
return analysis.getFlowAfter(s).toList();
}

@Override
public List<Local> getLiveLocalsBefore(Unit s) {
// ArraySparseSet returns a unbacked list of elements!
// HashSparseSet returns a unbacked list of elements!
return analysis.getFlowBefore(s).toList();
}

Expand All @@ -94,7 +94,7 @@ private static class Analysis extends BackwardFlowAnalysis<Unit, FlowSet<Local>>

@Override
protected FlowSet<Local> newInitialFlow() {
return new ArraySparseSet<Local>();
return new HashSparseSet<Local>();
}

@Override
Expand Down

0 comments on commit b43213a

Please sign in to comment.