void func(int x, int y) { x = y * y; otherfunc1(y); x = getresult(); otherfunc2(y); }
void func_optimized(int x, int y) { otherfunc1(y); x = getresult(); otherfunc2(y); }