Consider the following ANSI C code segment:
Assume that the variable points to a struct (allocated on the heap) containing two fields and , and the local variables , , , , , and are allotted registers. Common sub-expression elimination (CSE) optimization is applied on the code. The number of addition and dereference operations (of the form or ) in the optimized code, respectively, are :
c
- A403 and 102
- B203 and 2
- C303 and 102
- D303 and 2

