• edited by
632 views

1 Answer

2 2 votes

A variable is live at a particular point in the program if its value at that point will be used in the future (dead, otherwise).

Apply this definition,

In block 1, variables a,c,d are present, here the value which each of the variables among a,c,d will have, if that same value is used in further operation then those variables are live. Note that the same value which is initialized in the present block must be used in further blocks. If you notice this then rest is easy. So, option D is the correct answer. 

Reference: https://www.cs.columbia.edu/~suman/secure_sw_devel/Basic_Program_Analysis_DF.pdf

Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
2.7k
2.7k views
palashbehra5 asked Jan 11, 2022
2,686 views
A variable v is live at a program point p if some path from p to program exit contains an r-value occurrence of v which is not preceded by an l-value occurrence of v . Th...
0 0 votes
2 2 answers
6.5k
6.5k views
balraj_allam asked Jan 27, 2019
6,486 views
b = b + cd = b + db = b – de = d + bThe minimum number of nodes and edges present in the DAG representation of above basic block respectively are ?4 and 55 and 46 and 66 ...
0 0 votes
1 1 answer
1.0k
1.0k views
2 2 votes
0 0 answers
845
845 views
charul asked Jan 21, 2018
845 views
I'm getting 8,10but the answer given is 6,6