• edited by
307 views
0 0 votes

Consider the following Three Address code sample for solving the questions:

$\begin{array}{lll}100 & : & t1= y+2 \\ 101 & : & \text{initial} = x/t1 \\ 102 &: & \text{limit} = 10 \\ 103 &: & \text{if } i >j \text{ goto }105 \\ 104 &: & \text{goto } 111 \\ 105 &: & \text{if } num > b \text{ goto } 107 \\ 
106 &:  & \text{goto } 111  \\ 107 &: & \text{num }= \text{ limit}-1 \\ 108 & : & b=y+2 \\ 109 & : & i=i - num \\ 
110 & : & \text{goto } 103 \\ 111 &: & j=i - num \\  112  & : & k= j+b \end{array}$

What all blocks does Block $3$ $\&$ Block $5$ dominate in the Flow graph for the TAC given in the passage?

  1. $\begin{array}{lll} \text{Block }3: 3 &;& \text{Block } 5: 5 \end{array}$
  2. $\begin{array}{lll}\text{Block }3: 3,4,5,6 & ; & \text{Block }5: 5,6 \end{array}$
  3. $\begin{array}{lll}\text{Block }3: 3,7 & ; & \text{Block }5: 5,7 \end{array}$
  4. $\begin{array}{lll} \text{Block }3: 3,4,7 &; & \text{Block }5: 5,6,7 \end{array}$

Please log in or register to answer this question.

Answer:
Position:
Show:

Related questions

0 0 votes
1 1 answer
332
332 views
Shubham Sharma 2 asked Sep 10, 2025
332 views
Consider the following Three Address code sample for solving the questions:$\begin{array}{lll} 100 & : & t 1=y+2 \\ 101 & : & \text{initial} = x/t1 \\ 102 & :& \text{limi...
1 1 vote
1 1 answer
435
435 views
Shubham Sharma 2 asked Sep 10, 2025
435 views
Consider the following Three Address code sample for solving the questions:$\begin{array}{lll} 100 &: & t 1=y+2 \\ 101 & : & \text {initial }=x / t 1 \\ 102 & : & \text {...
0 0 votes
1 1 answer
305
305 views
Shubham Sharma 2 asked Sep 10, 2025
305 views
Consider the following Three Address code sample for solving the questions:$\begin{array}{lll} 100 & : & t1=y+2 \\ 101 & : & \mathrm{initial } = x/t1 \\ 102 & : & \math...
3 3 votes
1 1 answer
11.8k
11.8k views
go_editor asked Jul 27, 2016
11,786 views
Given a flow graph with 10 nodes, 13 edges and one connected components, the number of regions and the number of predicate (decision) nodes in the flow graph will be4, 55...