1.
7CCSMASE
Tutorial 4 Solution
Figure 1- CFG
Figure 2- CDG
public int kcl(int x, int y){ int a;
int b;
while (y ¡Ü 10){
b=y-x;
return a;}
a=x*y;
y++;}
Figure 3- Data dependence graph
2.
3.
Figure 4- Sate machine 1
Figure 5- State machine 2