i=1,
j=1;
For this code how many different basic blocks are there?
Do we have to add begin and exit as two separate blocks?
In some test series for above two lines
i=1 is taken as one block and j=1 is taken as another block,whereas I have taken it as two blocks
This is not the full question of the actual test series I have just focussed on the part which I have a doubt on
Edit 1 based on comment of the question
pseudo code is this
for i=1 to 10
for j=1 to 10
a[i,j]=10
end
end
for i=1 to 10
some operation
end
I think this question is there in Compiler Design by Venkatesh under Code Optimization but isn’t code optimization not part of the syllabus this year?