refactor code part2
Finished Refactor, push to branch and finish Global CFG interference.