[Soot-list] Is there any convenient way to track the uses of a class field?

Tianyin Xu tixu at cs.ucsd.edu
Thu Dec 11 03:35:12 EST 2014


Thanks, Eric!

Yes, there're way too many Stmts that "containsFieldRef", it doesn't make
sense to record all of them in memory if it's not common use cases. I would
probably construct the map in a lazy manner :)

~t

On Thu, Dec 11, 2014 at 12:28 AM, Bodden, Eric <
eric.bodden at sit.fraunhofer.de> wrote:

> Hi Tianyin.
>
> > I want to perform a basic data-flow tracking of a set of given
> variables. When the data-flow goes into a class field, I should keep
> tracking the uses of that field.
> >
> > However, I fail to find the method I can use to get all the uses of a
> given SootField instance. Is there anything I'm missing?
>
>
> > One thing I can definitely do is to scan all the Stmt in all the methods
> in all the classes before the analysis procedure (or do it lazily),  so I
> can record the uses of the fields in a map. But I feel this's a pretty
> basic feature and should have been provided already.
>
> Yes, creating such a map would be a good idea. This is not actually a very
> common use case, so no there is no predefined method for it.
>
> Cheers,
> Eric
>



-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20141211/256f8cd3/attachment.html 


More information about the Soot-list mailing list