[Soot-list] Counting the number of fields, locals and classes
Khilan Gudka
khilan at doc.ic.ac.uk
Fri Feb 26 09:47:24 EST 2010
Hi all,
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
ways:
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
correct?
In the case of classes, Scene.v().getClasses().size() and
Scene.v().getClassNumberer().size() are equal.
Thanks,
Khilan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100226/27435ab0/attachment.html
More information about the Soot-list
mailing list