diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-17 12:22:22 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-17 12:22:22 -0600 |
commit | c14f3676114df656e5c6c07b49351c74496aaf04 (patch) | |
tree | c3e78da12d7c0de294a3b7543b10914683f19ba2 /V2VM.java | |
parent | 62178e370f21ddf80766b8e1075c55e0d3945493 (diff) |
Rename Node->NodeCFG to avoid namespace collision
Diffstat (limited to 'V2VM.java')
-rw-r--r-- | V2VM.java | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -27,18 +27,17 @@ public class V2VM { VaporProgram prog = parseVapor(System.in, System.out); - ControlFlowGraph cfg = new ControlFlowGraph(); - CFGSimp<String, Void> cfg_vis = new CFGSimp<String, Void>(cfg); - - for (VFunction f : prog.functions) - for (VInstr s : f.body) - s.accept("", cfg_vis); + ArrayList<ControlFlowGraph> cfgs = new ArrayList<ControlFlowGraph>(); + for (VFunction f : prog.functions) { + CFGSimp<String, Void> cfg = new CFGSimp<String, Void>(f); + cfgs.add(cfg.getCFG()); + } SpillEverywhere<String, Void> se = new SpillEverywhere<String, Void>(strProg); - for (VFunction f : prog.functions) - for (VInstr s : f.body) - s.accept("", se); + // for (VFunction f : prog.functions) + // for (VInstr s : f.body) + // s.accept("", se); } catch (IOException e) { System.out.println(e.toString()); |