CFG: for Loop

The CFG for an example for loop is shown below. The False edge goes to the first statement after the loop.

Example

for (i = 0; i < x; i = i + 2)
   r = r * i;
...  
diagram: CFG for example code

Browse