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

Armand Navabi anavabi at purdue.edu
Fri Jul 27 22:41:33 EDT 2007


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


More information about the Soot-list mailing list