use of soot.jimple.spark.internal.SparkNativeHelper in project soot by Sable.
the class ContextInsensitiveBuilder method setup.
/**
* Creates an empty pointer assignment graph.
*/
public PAG setup(SparkOptions opts) {
pag = opts.geom_pta() ? new GeomPointsTo(opts) : new PAG(opts);
if (opts.simulate_natives()) {
pag.nativeMethodDriver = new NativeMethodDriver(new SparkNativeHelper(pag));
}
if (opts.on_fly_cg() && !opts.vta()) {
ofcg = new OnFlyCallGraph(pag, opts.apponly());
pag.setOnFlyCallGraph(ofcg);
} else {
cgb = new CallGraphBuilder(DumbPointerAnalysis.v());
}
return pag;
}
Aggregations