Debugging errors in optimized_function_C.c. Second pass