[Soot-list] Getting shimple transformation to work
Don Manuel
evolutiontheory at gmail.com
Tue Jan 8 00:34:53 EST 2013
Thank you!
The internal transform code is getting executed now!
On Jan 8, 2013, at 12:32 AM, Bernhard Berger <berber at tzi.de> wrote:
> Hi Don,
>
> perhaps you have to use the -via-shimple command line switch to tell soot that it has to generate shimple bodies.
>
> Bernhard
>
> Am 08.01.2013 um 03:25 schrieb Don Manuel <evolutiontheory at gmail.com>:
>
>> Hi guys,
>>
>> I am trying to do some analysis to work on Shimple here. We have a bare bone analysis on call graphs and this we have achieved using Jimple. Now we are trying to get this ported to Shimple due to the advantages offered by SSA.
>> The program is running without errors but it is not running the scene transformations which I have coded.
>>
>> Please see the code attached with this mail.
>> The code I am running is very simple but the print statements inside the internal transform is not coming at all. Maybe I am doing something stupid, but cannot figure our why.
>>
>> Any thoughts or tips on this would be much appreciated.
>>
>> Thanks,
>> Don Manuel
>>
>> public class SampleMainShimple {
>> public static void main(String[] args)
>> {
>> String jarLoc = "/Users/evolutiontheory/codeLibrary/EWorkspace/sampleDataFlowShimple/bin";
>>
>> PackManager
>> .v()
>> .getPack("wstp")
>> .add(new Transform("wstp.myTrans", new SceneTransformer() {
>>
>>
>> protected void internalTransform(String arg1, Map arg2) {
>> // TODO Auto-generated method stub
>> // Map<String, SootMethod> soot = new HashMap<String, SootMethod>();
>> G.v().out.println("Testing with v.out");
>> System.out.println("Testing internal transform");
>> }
>>
>> }));
>>
>> String[] sootArgs = {"-w", "-allow-phantom-refs", //"-f", "shimple",
>> "-x", "soot.:java.",
>> "-process-dir" , jarLoc,
>> "-cp", jarLoc};
>>
>> soot.Main.main(sootArgs);
>> }
>> }
>>
>>
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20130108/84c0e306/attachment-0001.html
More information about the Soot-list
mailing list