Added code to Optimize.java to remove redundant quads from CFG. Output is correct now.