<div dir="ltr"><div><br></div>Hi all,<div><br></div><div>Recently, I try to insert some new stmts in the method body after the iCfg is built.</div><div><br></div><div>Unfortunately, I find that after I insert the new stmts in a method, the previous and successive relations of original stmts in this method are not updated.</div><div><br></div><div>For example,</div><div><br></div><div>method A {</div><div>   Stmt1;</div><div>   Stmt2;</div><div><br></div><div>   // this is the new stmt I have inserted.</div><div>   newStmt;</div><div>  </div><div>   Stmt3;</div><div>}</div><div><br></div><div>When I use the API "iCfg.getPredsOf(Stmt3)", the result is Stmt2 rather than newStmt.</div><div><br></div><div>However, I have already used the API "iCfg.notifyMethodChanged(sootMethod)".<br clear="all"><div><br></div><div>What should I do ? </div><div>Whether I have to rebuild the iCfg rather than update it ?</div><div>How can I solve this problem ?</div><div>Thanks a lot !</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best Regards,<br></div><div>Zhaoyi Meng</div></div></div>
</div></div>