Question: i. Draw the control flow graph(CFG) for variable 'z'. [7 marks] ii. List the possible test path(s) for variable 'z' using All-uses(AU) strategy. [4

i. Draw the control flow graph(CFG) for variable 'z'. [7 marks] ii.

List the possible test path(s) for variable 'z' using All-uses(AU) strategy. [4marks] 234567891 10 11 12 13 111111 01234567 14 15 16 void

i. Draw the control flow graph(CFG) for variable 'z'. [7 marks] ii. List the possible test path(s) for variable 'z' using All-uses(AU) strategy. [4 marks] 234567891 10 11 12 13 111111 01234567 14 15 16 void pow (int x, y) { www. float z; int pi if (y < www 0) - p = 0 y; else = y; Z = 1.0; while (p = 0) { Z = Z N Q = N Q p 17 if (y < 0) 18 19 20 21 } www * - x; 1; z = 1.0z; printf(z); Figure 3: Fragment of pow() function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!