[Soot-list] Question about SootsSurvivorsGuide (http://www.brics.dk/SootGuide/)

Andrew Santosa santosa_1999 at yahoo.com
Thu Feb 11 20:06:36 EST 2016


I have replied to Jason previously in private email as my email was blocked 
from posting in soot-list by
googlegroups. This is a direct post to the soot-list Google groups, 
summarizing my replies. I hope they help
people having similar question.

1) PaddleTransformer is in paddle-0.3.jar archive here: 
http://www.sable.mcgill.ca/software/paddle-0.3.jar
You can also find a link to the archive from 
http://www.sable.mcgill.ca/paddle.
2) Figure 9 can be found in PointsToAnalysis.java in the source code 
example, in the method main and an expanded
version of Figure 10 can be found in setSparkPointsToAnalysis method of the 
same file.

It is likely that Soot will throw an exception on "Item" or "Container" 
class not found when one
tries to run the analysis. I use the command line to execute soot, so the 
following is only my own guess on
how properly set the project in case you want to run the analysis in 
Eclipse.

I think you need to compile pointsto/test/Item.java to Item.class and 
include its directory in
Java and Soot's classpath. That is, assuming Item.class is built as 
/some_path/Item.class,
you need to include /some_path/ as a class path in Eclipse by:

1. Right-click the project name in the Project Explorer -> Java Build Path 
-> Libraries -> Add Class Folder
-> select /some_path/ -> OK.
2. You need to modify PointsToAnalysis.java by adding the following as the 
first line in the main method:

soot.options.Options.v().set_soot_classpath("/some_path:<other_paths>");

Where <other_paths> stands for other paths you may need to include.

Regards,
Andrew

On Thursday, February 11, 2016 at 3:24:08 AM UTC+8, Jason wrote:
>
> Hello,
>
> I read the http://www.brics.dk/SootGuide/sootsurvivorsguide.pdf
> But I have two small questions. If you could help me, I appreciate it so 
> much.
>
> 1). I download the source code example from your website, in "pointsto" 
> folder, The "PointsToAnalysis.java", the line 19 "import 
> soot.jimple.paddle.PaddleTransformer;" has error. I check that the package 
> "soot.jimple.paddle" of soot, there is not a "PaddleTransformer.java", but 
> have "IPaddleTransformer.java".
>
> 2). In this guide, where can we get the code for Page 36, Figure 9 and 
> Page 37, Figure 10? I did not see those code in the source code example.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20160211/deac3790/attachment.html 


More information about the Soot-list mailing list