Question: 3. a) Draw the dominator tree. b) Draw the postdominator tree. Program P3 1) integer A, B; 2) input (A); 3) 4) if (A >

3.

a) Draw the dominator tree.

b) Draw the postdominator tree.

Program P3

1) integer A, B;

2) input (A);

3)

4) if (A > 7)

5) B = 1;

6) else

7) {

8) B = 2;

9) if (A < 2) then

10) B = 3;

11) } // end else A>7

12)

13) for (i=1, i<=A, i++) loop

14) {

15) if (B<0) then

16) B = B + 4;

17) else

18) B = B - 5;

19) } // end for loop

20) output (A,B);

21) end;

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 Databases Questions!