I've been learning about ssa (static single assignment form), and I was given the following graph with phi functions inserted, but the graph hasn't been renamed:
I had to rename the variables, and this is what I got:
I am very unsure that this is correct. Did I rename the variables correctly? Is this minimal ssa? I am using this algorithm from here (Cytron, et. al's paper) to rename the variables. Please help! :)


No, your graph is not correct. The phi-functions and renaming for
xandyare correct, the problem is the temporary variablest1throught3. These variable are dead when the blockL1is entered and does not require any phi-functions at all. If you insist on having phi-functions for these variables you must assume that the variables exist and have som indeterminate value when the graph is entered. Lett1_0,t2_0andt3_0be those values and update the renamed graph accordingly.