Machine-translated by Google. Questions are authored in English.
Top

Discussion

A definition of a variable reaches a point if

  • A.the variable is live at the point in question
  • B.the definition is the only one in the whole procedure
  • C.there is a path from the definition to the point with no redefinition
  • D.the definition happens to appear earlier in the text than the point

Answer: C

Correct answer: there is a path from the definition to the point with no redefinition

Reaching definitions is a forward analysis, and the definition of the property is a path property: some path exists along which the assignment is not overwritten. Note the word some - the analysis is a may analysis, so a definition reaches if it might, which is what makes the result conservative and therefore safe.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.