[Soot-list] Help with Chains

Patrick LAM plam at sable.mcgill.ca
Fri Nov 30 10:20:56 EST 2007


On Fri, 30 Nov 2007, Richard Warburton wrote:

> Judging from some of the sample optimistions that come with soot the
> preferred way to replace statement x within a method (where locals is
> its local chain) by statement y is by performing the call:
>
> locals.swapWith(x,y);

Why are you looking for statements in the locals chain? I think you want
to call swapWith on the units chain (returned by getUnits() on the body).

pat




More information about the Soot-list mailing list