Compiler Final Project Feature 11 - Register rewriting.