Skip to content

Commit

Permalink
Exceptions thrown during analysis are no longer suppresed and dot gra…
Browse files Browse the repository at this point in the history
…ph generic changes.
  • Loading branch information
arktt committed Oct 15, 2020
1 parent 02e8da8 commit e9061a4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,31 +194,31 @@ protected void internalTransform(String phaseName, Map options) {
icfg = new JimpleBasedInterproceduralCFG(true);
try {
executeAnalysis();
} catch (Exception e) { }
} catch (Exception ex) {
ex.printStackTrace();
}
}
};
}



private static void drawCallGraph(CallGraph callGraph){
DotGraph dot = new DotGraph("callgraph");
Iterator<Edge> iteratorEdges = callGraph.iterator();

int i = 0;
System.out.println("Call Graph size : "+ callGraph.size());
while (iteratorEdges.hasNext()) {
Edge edge = iteratorEdges.next();
String node_src = edge.getSrc().toString();
String node_tgt = edge.getTgt().toString();

dot.drawEdge(node_src, node_tgt);
System.out.println(i++);
}

dot.plot("/home/arkt/Desktop/cgs/callgraph.dot");
dot.plot("<file-path>");
}

private void executeAnalysis() throws Exception {


// For dumping the call graph for debugging purposes.
//drawCallGraph(Scene.v().getCallGraph());

for (CompositeTaintFlowQueryImpl flowQuery : this.flowQueries) {
Expand Down

0 comments on commit e9061a4

Please sign in to comment.