[Soot-list] Help with Chains
Richard Warburton
richard.warburton at gmail.com
Fri Nov 30 10:35:21 EST 2007
On Nov 30, 2007 3:20 PM, Patrick LAM <plam at sable.mcgill.ca> wrote:
> 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).
Thanks a lot, re-reading some of the documentation it seems I just got
the two soot terms confused.
Richard
More information about the Soot-list
mailing list