1
2
3
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 }