[Soot-list] Counting the number of fields, locals and classes
khilan at doc.ic.ac.uk
Fri Feb 26 09:47:24 EST 2010
I was just wondering, what is the most accurate way to count the number of
fields, locals and classes in a given program? For fields, I've tried two
1) Iterate through each class c and take the sum of c.getFields().size()
2) Check the size of Scene.v().getFieldNumberer()
However, (2) seems to produce a lower count than (1). Which is actually
In the case of classes, Scene.v().getClasses().size() and
Scene.v().getClassNumberer().size() are equal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Soot-list