[Soot-list] Using a string to find an edge

Bodden, Eric eric.bodden at sit.fraunhofer.de
Mon Apr 13 02:31:52 EDT 2015


Hi Jason.

> We have a mostly accurate call graph and there are places where there is significant fan out (one method that points to tens or more methods) that obviously don't work that way.  So we want to generate targeted call graphs where we can and then find exactly which path is the correct one from the list of methods known to be included in the fan out.

Ok, so you want to refine the call graph, making it more precise...

> It should be sufficient to compare the strings of the definitions of those methods though, no?  So I could check that name, returnType, params are all equal and that should give me the correct answer.  I just have to do this for every src/tgt of the call graph, correct?

I am not sure this will ever work. The one thing that all call-graph algorithms should ensure is that the method signatures of calls and callees/targets are equal. Therefore there is really nothing you could filter out that way.

There are quite a number of different call-graph algorithms implemented in Soot. Which settings are you using right now to create the call graph?

In any case, comparing stuff on the String level is almost never what you want within Soot.

Cheers,
Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150413/2d86196c/attachment.bin 


More information about the Soot-list mailing list