1 19 20 25 26 package soot.jimple.toolkits.callgraph; 27 28 import soot.options.*; 29 import soot.*; 30 import java.util.*; 31 import soot.jimple.toolkits.pointer.DumbPointerAnalysis; 32 33 34 public class CHATransformer extends SceneTransformer 35 { 36 public CHATransformer( Singletons.Global g ) {} 37 public static CHATransformer v() { return G.v().soot_jimple_toolkits_callgraph_CHATransformer(); } 38 39 protected void internalTransform(String phaseName, Map opts) 40 { 41 CHAOptions options = new CHAOptions( opts ); 42 CallGraphBuilder cg = new CallGraphBuilder( DumbPointerAnalysis.v() ); 43 cg.build(); 44 if( options.verbose() ) { 45 G.v().out.println( "Number of reachable methods: " 46 +Scene.v().getReachableMethods().size() ); 47 } 48 } 49 } 50 51 52 | Popular Tags |