

MCQOPTIONS
Saved Bookmarks
1. |
For a statement S in a program, in the context of liveness analysis, the following sets are defined:USE(S): the set of variables used in SIN(S): the set of variables that are live at the entry of SOUT(S): the set of variables that are live at the exit of SConsider a basic block that consists of two statements, S1 followed by S2.Which one of the following statements is correct? |
A. | OUT(S1) = USE(S1) ∪ IN(S2) |
B. | OUT(S1) = IN(S2) |
C. | OUT(S1) = IN(S1) ∪ USE(S1) |
D. | OUT(S1) = IN(S2) ∪ USE(S2) |
Answer» C. OUT(S1) = IN(S1) ∪ USE(S1) | |