[Soot-list] Pack Manager and removing phase

Pallavi Majumder s8pamaju at stud.uni-saarland.de
Thu Mar 9 05:49:16 EST 2017


Hello All,

I execute, the following code twice. Each time for different  
classname. However, when I execute them in the same program run the  
result of the second transform is incorrect.

/PackManager.v().getPack("jtp")/
  /.add(new Transform("jtp.mainInstrumentation", classname));/

When I execute the PackManager twice in 2 different program runs,  
everything works fine but executing them together creates a null  
result. I tried to remove the particular phase name before the second  
execution, but that does not help.

Just to make it clear, here is what I tried:

   /PackManager.v().getPack("jtp")/
   /.add(new Transform("jtp.mainInstrumentation", new XMLConversion()));
PackManager.v().getPack("jtp").remove("jtp.mainInstrumentation");/
    /PackManager.v().getPack("jtp")/
    /.add(new Transform("jtp.xmlInstrumentation", new XMLConversion()));/

jtp.mainInstrumentation works fine, but jtp.xmlInstrumentation does  
not work here. However , if I execute them individually, I get perfect  
results.

Please note that I want them to use "jtp" and not "wjtp" or any other packs.

I would really appreciate if anyone has an idea why this happens in  
PackManager.

Thanks,
Pallavi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20170309/b6ad0c63/attachment.html>


More information about the Soot-list mailing list