<div dir="ltr"><div>Hi Jing,</div><div><br></div><div>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.<br></div><div><br></div><div>pat<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 24, 2020 at 2:22 AM 1530129650 <<a href="mailto:enshengshi@qq.com">enshengshi@qq.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><table style="width:99.8%"><tbody><tr><td id="gmail-m_-3895062023449536350QQMAILSTATIONERY" style="background:rgb(246,255,236) url("") no-repeat scroll 0% 0%;min-height:550px;padding:100px 55px 200px"><div>Hi  <span style="font-size:14px">Admin</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">      I'd like to use soot to generate CFG</span><span style="font-size:14px">(control flow</span><span style="font-size:14px"> graph</span><span style="font-size:14px">) </span><span style="font-size:14px">, DFG(data flow</span><span style="font-size:14px"> graph</span><span style="font-size:14px">) or PDG (Program dependence graph) based on IR in command line. However,  I just could generate  </span><span style="font-size:14px">CFG using</span></div><div><span style="font-size:14px"></span></div><div><span style="font-size:14px">" </span><span style="font-size:14px">java -cp sootclasses-trunk-jar-with-</span><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:rgb(255,255,255)">dependencies.jar  soot.tools.CFGViewer --soot-classpath .;"%JAVA_HOME%"\jre\lib\rt.jar --graph=BriefBlockGraph  ****</span><span style="font-size:14px">".</span></div><div><span style="font-size:14px">The node in generated CFG is an instruction rather than a variable or operator as following , which is I  want to get.</span></div><div><img src="cid:17557d731198531be421" id="gmail-m_-3895062023449536350img_insert_1603349115479016093632676624248"><br><span style="font-size:14px"><br></span></div><div><img src="cid:17557d7311c1e7185222" id="gmail-m_-3895062023449536350img_insert_1603349110089014159008726802158"><br><br></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">I look through the soot tutorial, issue,  and google again and again. However, I fail to generate DFG and PDF. </span></div><div><span style="font-size:14px">Could you please help me to g</span><span style="font-size:14px">enerate CFG, DFG or PDG based on IR in command line.</span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Thanks </span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Jing </span></div><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px"> </span></div></td></tr></tbody></table>_______________________________________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@CS.McGill.CA" target="_blank">Soot-list@CS.McGill.CA</a><br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" rel="noreferrer" target="_blank">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br>
</blockquote></div>