public EqualUsesAnalysis(UnitGraph g) { super(g); useStmts = null; useLocals = null; boundaryStmts = null; redefStmts = null; firstUseToAliasSet = null; // analysis is done on-demand, not now this.el = new EqualLocalsAnalysis(g); // also on-demand }
/** Returns a list of EquivalentValue wrapped Locals and Refs that must always be equal to l at s */ public List getCopiesOfAt(Local l, Stmt s) { this.l = l; this.s = s; doAnalysis(); FlowSet fs = (FlowSet) getFlowBefore(s); List aliasList = new ArrayList(fs.size()); for (Object o : fs) { aliasList.add(o); } if (aliasList.contains(new EquivalentValue(l))) { return aliasList; } return new ArrayList(); }
List aliasList = el.getCopiesOfAt(l, stmt); if (aliasList.size() == 0) {
/** Returns a list of EquivalentValue wrapped Locals and Refs that must always be equal to l at s */ public List getCopiesOfAt(Local l, Stmt s) { this.l = l; this.s = s; doAnalysis(); List aliasList = new ArrayList(); aliasList.addAll(((FlowSet) getFlowBefore(s)).toList()); if(aliasList.contains(new EquivalentValue(l))) return aliasList; return new ArrayList(); }
public EqualUsesAnalysis(UnitGraph g) { super(g); useStmts = null; useLocals = null; boundaryStmts = null; redefStmts = null; firstUseToAliasSet = null; // analysis is done on-demand, not now this.el= new EqualLocalsAnalysis(g); // also on-demand }
List aliasList = el.getCopiesOfAt(l, stmt); if(aliasList.size() == 0)
/** Returns a list of EquivalentValue wrapped Locals and Refs that must always be equal to l at s */ public List getCopiesOfAt(Local l, Stmt s) { this.l = l; this.s = s; doAnalysis(); List aliasList = new ArrayList(); aliasList.addAll(((FlowSet) getFlowBefore(s)).toList()); if(aliasList.contains(new EquivalentValue(l))) return aliasList; return new ArrayList(); }
public EqualUsesAnalysis(UnitGraph g) { super(g); useStmts = null; useLocals = null; boundaryStmts = null; redefStmts = null; firstUseToAliasSet = null; // analysis is done on-demand, not now this.el= new EqualLocalsAnalysis(g); // also on-demand }
List aliasList = el.getCopiesOfAt(l, stmt); if(aliasList.size() == 0)