[Soot-list] Extracting Invoke Expression from Soot

Steven Arzt Steven.Arzt at cased.de
Fri Jun 26 11:51:52 EDT 2015


Hi Ram,

 

You need to create your own Java program that uses Soot as a library. Register a new BodyTransformer that iterates over all units in the body and checks whether the current unit contains an invocation expression. Then call Soot’s main method which will invoke your BodyTransformer for you on all application classes. For creating a body transformer, there is plenty of documentation material on the web. You can, for instance, have a look at the Soot Github Wiki. A web search should also give you some findings in Eric Bodden’s blog or the archives of the Soot mailing list.

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von ram kumar
Gesendet: Freitag, 19. Juni 2015 15:11
An: soot-list at CS.McGill.CA
Betreff: [Soot-list] Extracting Invoke Expression from Soot

 

Hi,

 

I have started using soot for a couple of weeks for my project. One task is to give soot an input class file, and get a list of all invoke expressions present in the jimple file. I tried with a simple Hello world program, but couldn't figure how to do it. Would be grateful if you can show what input for the command line too.

 

 

Ram.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150626/e4fa0e1c/attachment.html 


More information about the Soot-list mailing list