Question: Dataflow Analysis: Reaching Definitions Consider the following program, where all variables are typed int. 1. Calculate the control flow graph and state the basic blocks.
Dataflow Analysis: Reaching Definitions Consider the following program, where all variables are typed int.
1. Calculate the control flow graph and state the basic blocks. 2. Calculate the gen and kill sets for all basic blocks. 3. State the transfer functions for all basic blocks. 4. Use the data flow equations and solve them by fixed-point iteration.
start =read(); end =read(); prodo =1; prode =1; sum =0; prodsum =0; i= start; while ( i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
