[Soot-list] ActiveBody()

esherman at cse.unl.edu esherman at cse.unl.edu
Mon Jun 30 21:32:39 EDT 2008


Hi Richard,
But it does not do it for all programs, only for this particular one and
not for all methods in this program, but only for some.

Elena

> I agree.  It sounds like your SceneTransformer may be running in the wrong
> stage.
>
> -Rich
>
> On Mon, Jun 30, 2008 at 6:17 PM, Eric Bodden <eric.bodden at mail.mcgill.ca>
> wrote:
>
>> If hasActiveBody() returns false then the method has no body - by
>> definition. Without seeing your code it's hard to tell what might be
>> the problem. I suspect that you SceneTransformer is executed at the
>> wrong time (while a BodyTransformer would be executed at the right
>> point in time).
>>
>> Eric
>>
>> 2008/6/30  <esherman at cse.unl.edu>:
>> > Hi, Eric,
>> > I've created a class that extends SceneTransformer. In its
>> > internalTransform method, I iterate through classes and then through
>> > methods for each class. When I call hasActiveBody() method for a
>> > SootMethod, it would return false, even though that method does have
>> body.
>> > When I perform the same operation in a class that extends
>> BodyTransformer
>> > (except for the iterations), it returns true, i.e. the opposite.
>> >
>> > Elena
>> >
>> >
>> >
>> >> Hi Elena.
>> >>
>> >> Why do you think the body is empty?
>> >>
>> >> Eric
>> >>
>> >> 2008/6/30  <esherman at cse.unl.edu>:
>> >>> Why a class extending Scene Transformer would report that the active
>> >>> body
>> >>> of a method is empty, while it is not the case?
>> >>>
>> >>> Thank you,
>> >>> Elena Sherman
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> 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
>> >>
>> >
>> >
>> >
>>
>>
>>
>> --
>> Eric Bodden
>> Sable Research Group
>> McGill University, Montréal, Canada
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>
>




More information about the Soot-list mailing list