Debugging errors in optimized_function_C.c. First pass