public StackDepthAnalysis createAnalysis(MethodGen methodGen, CFG cfg) { return new StackDepthAnalysis(methodGen.getConstantPool(), new DepthFirstSearch(cfg).search());
public Dataflow<StackDepth, StackDepthAnalysis> createDataflow(ClassContext classContext, Method method) throws CFGBuilderException, DataflowAnalysisException {  DepthFirstSearch dfs = classContext.getDepthFirstSearch(method); CFG cfg = classContext.getCFG(method);  StackDepthAnalysis analysis = new StackDepthAnalysis(classContext.getConstantPoolGen(), dfs); Dataflow<StackDepth, StackDepthAnalysis> dataflow = new Dataflow<StackDepth, StackDepthAnalysis>(cfg, analysis); dataflow.execute();  return dataflow;
	public static void main(String[] argv) throws Exception {		if (argv.length != 1) {			System.out.println("Usage: " + StackDepthAnalysis.class.getName() + " <class file>");			System.exit(1);		}		DataflowTestDriver<StackDepth, StackDepthAnalysis> driver = new DataflowTestDriver<StackDepth, StackDepthAnalysis>() {			public StackDepthAnalysis createAnalysis(MethodGen methodGen, CFG cfg) {				return new StackDepthAnalysis(methodGen.getConstantPool(), new DepthFirstSearch(cfg).search());			}		};		driver.execute(argv[0]);	}