given the code program below
the number of temporary variables required to convert the above program into a 3-address code is ?
i have done it in 2 ways
which of those is the correct one? if both are wrong method then can you please share the correct answer.
also in 3-address code can we reuse the temporary variables as i have done in answer2 ? if not why?