Consider the following code snippet if (c[i]=0) then a [i]←b[i]÷c[i] else a [i]←b[i] (a) Show how the snippet might be
Posted: Tue Jul 12, 2022 8:28 am
Consider the following code snippet if (c=0) then a ←b÷c else a ←b (a) Show how the snippet might be represented in an abstract syntax tree, in a controlflow graph and in quadruples. (b) Discuss the advantages of each representation. (c) For what applications would one representation be preferable to the others?