use of soot.jimple.toolkits.reflection.ReflectiveCallsInliner in project soot by Sable.
the class ReflInliner method main.
public static void main(String[] args) {
PackManager.v().getPack("wjpp").add(new Transform("wjpp.inlineReflCalls", new ReflectiveCallsInliner()));
Scene.v().addBasicClass(Object.class.getName());
Scene.v().addBasicClass(SootSig.class.getName(), SootClass.BODIES);
Scene.v().addBasicClass(UnexpectedReflectiveCall.class.getName(), SootClass.BODIES);
Scene.v().addBasicClass(IUnexpectedReflectiveCallHandler.class.getName(), SootClass.BODIES);
Scene.v().addBasicClass(DefaultHandler.class.getName(), SootClass.BODIES);
Scene.v().addBasicClass(OpaquePredicate.class.getName(), SootClass.BODIES);
Scene.v().addBasicClass(ReflectiveCalls.class.getName(), SootClass.BODIES);
ArrayList<String> argList = new ArrayList<String>(Arrays.asList(args));
argList.add("-w");
argList.add("-p");
argList.add("cg");
argList.add("enabled:false");
argList.add("-app");
Options.v().set_keep_line_number(true);
logger.debug("TamiFlex Booster Version " + ReflInliner.class.getPackage().getImplementationVersion());
try {
soot.Main.main(argList.toArray(new String[0]));
} catch (CompilationDeathException e) {
logger.debug("\nERROR: " + e.getMessage() + "\n");
logger.debug("The command-line options are described at:\n" + "http://www.sable.mcgill.ca/soot/tutorial/usage/index.html");
if (Options.v().verbose()) {
throw e;
} else {
logger.debug("Use -verbose to see stack trace.");
}
usage();
}
}
Aggregations