<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Sep,<div class=""><br class=""></div><div class="">InvokeExpr does not necessarily have a base object, for instance for static invokes (StaticInvokeExpr). You have to check if your expr is an instance of InstanceInvokeExpr. After casting it you can call getBas().</div><div class=""><br class=""></div><div class="">Cheers, Bernhard</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28. Jun 2018, at 11:00, 周书林 <<a href="mailto:zhoushulin1992@gmail.com" class="">zhoushulin1992@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello everyone,<div class=""> I am new in Soot. In my experiment,  I want to get the information of an InvokeExpr, including its base argument and method arguments.</div><div class=""><br class=""></div><div class="">For instance, for the following InvokeExpr, I want to get the argument "<i style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial" class="">$r10</i>" and "<i style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial" class="">r1</i>", but I can only get the "<i style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial" class="">r1</i>" with API "getArg(int index)". There is no API "getBase()" in InvokeExpr to get the "<i style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial" class="">$r10</i>".</div><div class=""><br class=""></div><div class=""><i class="">        $r11 = virtualinvoke $r10.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(r1);</i><br class=""></div><div class=""><br class=""></div><div class="">So, Could you please guide me how to get the base of an InvokeExpr?</div><div class=""><br class=""></div><div class="">Thank you very much,</div><div class="">Sincerely.</div><div class=""><br class=""></div><div class="">Sep</div></div>
_______________________________________________<br class="">Soot-list mailing list<br class=""><a href="mailto:Soot-list@CS.McGill.CA" class="">Soot-list@CS.McGill.CA</a><br class="">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list<br class=""></div></blockquote></div><br class=""></div></body></html>