View Javadoc

1   // PrintCFG.java, created Thu Jan 16 10:53:32 2003 by mcmartin
2   // Copyright (C) 2001-3 jwhaley
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.Main;
5   
6   import joeq.Class.jq_Class;
7   
8   /***
9    * @author  John Whaley <jwhaley@alum.mit.edu>
10   * @version $Id: PrintCFG.java 1456 2004-03-09 22:01:46Z jwhaley $
11   */
12  public class PrintCFG {
13      public static void main(String[] args) {
14          jq_Class[] c = new jq_Class[args.length];
15          for (int i = 0; i < args.length; i++) {
16              c[i] = (jq_Class)Helper.load(args[i]);
17          }
18  
19          joeq.Compiler.Quad.PrintCFG pass = new joeq.Compiler.Quad.PrintCFG();
20  
21          for (int i = 0; i < args.length; i++) {
22              Helper.runPass(c[i], pass);
23          }
24      }
25  }