if (!(stmt instanceof ReturnStmt)) // ignore plugs
continue;
ReturnStmt returnStmt = (ReturnStmt) stmt;
AnalyzeStm analyzeStm = result.getHotspots().get(
stmt2box.get(returnStmt));
if (analyzeStm == null) {
final MethodStatementContainer container = returnLocations
.get(returnStmt);
System.err.println(returnStmt
+ " -- "
+ stmt2box.get(returnStmt)
+ " @ "
+ SourceUtil.getLocation(container.getMethod(),
container.getStatement())
+ " --> null analyzestmt");
} else {
XMLGraph xg = xmlGraphs.getIn(analyzeStm, analyzeStm.getBase());
new XMLGraph2Dot(new PrintWriter(System.out)).print(xg);
ret2xg.put(returnStmt, xg);
}
}
return ret2xg;