write(new File(DIR, "feedback.txt"), prettyPrint);
}
public void printSiteMaps(SootMethod root) {
StringBuilder sb = new StringBuilder();
final SiteMapper siteMapper = new SiteMapper(stateMachine);
sb.append("FULL:\n");
final String full = siteMapper.getFullSiteMap().prettyPrint();
sb.append(full);
write(new File(DIR, "full.dot"), full);
sb.append("RANKED:\n");
final String ranked = siteMapper.getRankedSiteMap().prettyPrint();
sb.append(ranked);
write(new File(DIR, "ranked.dot"), ranked);
if (root != null) {
sb.append("BFS:\n");
final String bfs = siteMapper.getBreadthFirstSiteMap(root)
.prettyPrint();
sb.append(bfs);
write(new File(DIR, "bfs.dot"), bfs);
}
final String string = sb.toString();