[Soot-list] SSA use-defs

Ashok Sreenivas ashoks at pune.tcs.co.in
Wed Jul 20 01:39:34 EDT 2005


I've recently started trying to use SOOT, and want to find ud/du
info from Shimple (SSA). The ShimpleLocalUses/Defs gives me the
necessary the du/ud info on locals. How do I get the same for
field references. For eg, in the following program, how do I get
the fact that x.i on the RHS of the assignment gets its value
from the previous line? Do I have to build the analysis, or is it
already available? Thanks in advance.

class A
{
    B x;
    public f ()
    {
        x = new B ();
        x.i = 10;
        int j = x.i;
    }
}

Ashok



More information about the Soot-list mailing list