[Soot-list] How to get ExceptionalUnitGraph without Inlining?

Eric Bodden eric.bodden at mail.mcgill.ca
Sun Jul 29 05:31:11 EDT 2007


Just disable the inline. Have a look at the Soot phase options.

http://www.sable.mcgill.ca/soot/tutorial/phase/index.html

Eric



On 28/07/07, Armand Navabi <anavabi at purdue.edu> wrote:
> I am running whole program analysis, and then when I get an
> ExceptionalUnitGraph
> for a particular method, it seems the unit graph has inlined some
> methods.  The simple
> program I am analyzing looks something like this:
>
> public void a() {
>    int i = b(7);
> }
>
> public int b(int i) {
>    if(i == 0) return i;
>    else return 2 * b(i-1);
> }
>
>
> The call to b in a is inlined.  To get the unit graph, from the method I
> retrieveBody() and then
> I pass the body to the constructor of ExceptionalUnitGraph.
>
> What do I need to do to get a unit graph without inlining?
>
> Thanks,
> Armand
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>


-- 
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada


More information about the Soot-list mailing list