Most of the variable and structure names are
sensible ones. Except for a few, which are given below. And for size
variable of an array, mostly I have used "size" as a suffix. And "no"
means number. Just saying.
Name and meaning :
dno - definition number
defblockmap - mapping of definition number to their corresponding block numbers
definitionmap - mapping of variables to a number of defblockmap
globalno - total number of definitions in the program, also the size of the kill, gen, IN, OUT sets.
The
theory for the exercise is also attached. I just understood it as a
math problem and coded using the equations and logic. No idea about the
exact theory. Alfre Aho book should help you in that.Code and Theory
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.