Example #1
0
 public CFG buildCFG() {
   cfg = new CFG(this);
   cfg.build(instrList);
   // Clear out instruction list after CFG has been built.
   this.instrList = null;
   return cfg;
 }
Example #2
0
 public void buildCFG(List<Instr> instrList) {
   CFG newBuild = new CFG(this);
   newBuild.build(instrList);
   cfg = newBuild;
 }