6,323 views
0 0 votes

b = b + c

d = b + d

b = b – d

e = d + b

The minimum number of nodes and edges present in the DAG representation of above basic block respectively are ?

  1. 4 and 5
  2. 5 and 4
  3. 6 and 6
  4. 6 and 7

2 Answers

1 1 vote

b = b + c

d= b + d

b= b - d

e = d + b = d + b - d = b

therefore, 6 nodes and 6 edges

0 0 votes
by using first three equations make dag contains (6V,6E)

and just reduce the last equation and get the final answer
Position:
Show:

Related questions

2 2 votes
0 0 answers
1.2k
1.2k views
ashish pal asked Jan 8, 2018
1,162 views
I got answer 8 nodes and 10 edges.but answer is 6 nodes and 6 edgesanyone plz explain.
32 32 votes
4 answers 4 answers
23.3k
23.3k views
Arjun asked Feb 18, 2021
23,336 views
Consider the following $C$ code segment:a = b + c; e = a + 1; d = b + c; f = d + 1; g = e + f;In a compiler, this code segment is represented internally as a directed acy...