Medium
Arithmetic around an opaque function call
getConfigValue() is defined in a separate translation unit the compiler cannot see (no LTO). What does the compiler do with the expression getConfigValue() * 2 + 1 in this TU?
main.cpp
int getConfigValue(); // defined in another .cpp, not visible here
int computeLimit() {
return getConfigValue() * 2 + 1;
}6 of 44 in Compilers