Week5:

At the start of this week, I was given a new problem to tackle for the project, which was to extract the local variables from if statements and replace them with a new variable (to shorten it basically) and put the variables the new variable equals above the if statement. I've figured out the algorithm to do that if there is only one set of variables (ie. if(a+b > 5), then replace a+b with a new variable), but if it has more than one it doesn't work so far (ie. if(d-a+b), and we want to replace a+b).

Go Back to Journal entry page

Go Back to Main Page