Multiple choice

While (i < = limit - 2) statement becomes $ \begin{cases} t=\text{limit - 2} \\ \text{While } (i \Leftarrow t) \end{cases} $ This optimization is caused by

  1. copy propagation

  2. code motion

  3. dead code elimination

  4. insufficient information

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is an example of loop - invariant code motion. But here no information is provided about the change of loop variable.