[Soot-list] Generate DFG and PDG using command line

243 views
Skip to first unread message

1530129650

unread,
Oct 23, 2020, 9:22:56 AM10/23/20
to soot-list
Hi  Admin

      I'd like to use soot to generate CFG(control flow graph, DFG(data flow graph) or PDG (Program dependence graph) based on IR in command line. However,  I just could generate  CFG using
java -cp sootclasses-trunk-jar-with-dependencies.jar  soot.tools.CFGViewer --soot-classpath .;"%JAVA_HOME%"\jre\lib\rt.jar --graph=BriefBlockGraph  ****".
The node in generated CFG is an instruction rather than a variable or operator as following , which is I  want to get.






I look through the soot tutorial, issue,  and google again and again. However, I fail to generate DFG and PDF. 
Could you please help me to generate CFG, DFG or PDG based on IR in command line.

Thanks 

Jing 

 
2F373AE1@1DA0361D.B42C915F.png.jpg
2F373AE1@D1DD757D.B42C915F.png.jpg

Patrick Lam

unread,
Oct 23, 2020, 7:44:41 PM10/23/20
to 1530129650, soot-list
Hi Jing,

The CFGViewer produces a dump of the control-flow graph, which is the basic Soot intermediate representation (namely, three-address Jimple code). I'm not sure exactly which graphs you are hoping to see, but you would have to write more code to have graphs that have nodes that are variables rather than statements. Some of the statements are an operator, like the one in your example, temp$7 = x1 + 1. Basically I don't really understand what you are trying to get.

pat

_______________________________________________
Soot-list mailing list
Soot...@CS.McGill.CA
https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
Reply all
Reply to author
Forward
0 new messages