Easy
The same call, written twice
getValue() is an ordinary external function: not const, not pure, and its body is not visible here. Compiled with -O2, how many calls to it appear in the generated code for f?
main.cpp
int getValue(); // opaque external function, may have side effects
int f() {
int x = getValue() + 1;
int y = getValue() + 1;
return x + y;
}10 of 44 in Compilers