in Compiler Design retagged by
1,322 views
0 votes
0 votes

Consider the basic block given below:

u=u+v
v=v+w
x=v-w
y=v-x
z=u+v

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

in Compiler Design retagged by
1.3k views

11 Comments

8 nodes and 10 edges?
0
0
it is asking about minimum
0
0
Wnats the ans given?
0
0
6 nodes 6 edges
0
0
0
0
Got it. 6 nodes and 6 edges.

Thanks
0
0
I doubt on DAG in syllabus?
0
0
Here equation y=v-x is unused in DAG ...Am i right?
0
0

@Kunal Kadian

how do you represent Y = 0 in DAG?

0
0
Here upon substituting you will get y = w,

Not y =0
0
0

@Kunal Kadian

thanks man

0
0

1 Answer

1 vote
1 vote

No of Node=6

Node of Edge=6

Related questions