Arm Interview Question

the optimization about if-else statement of C/C++ code