Please edit the optimized_source_code to implement the refinement process to improve the quality of the optimization given the following information.

<original_source_code>
{original_source_code}
</original_source_code>

Here is the line profiler information for the original_source_code

<original_line_profiler_results>
{original_line_profiler_results}
</original_line_profiler_results>

Here is the optimized_source_code

<optimized_source_code>
{optimized_source_code}
</optimized_source_code>

Here is the explanation generated by Codeflash for the optimized_source_code -

<optimized_explanation>
{optimized_explanation}
</optimized_explanation>

Here is the line profiler information for the optimized_source_code

<optimized_line_profiler_results>
{optimized_line_profiler_results}
</optimized_line_profiler_results>

The original_source_code takes {original_code_runtime} to run and the optimized_source_code takes {optimized_code_runtime} to run, making it {speedup} faster.

Here is the read_only_dependency_code

<read_only_dependency_code>
{read_only_dependency_code}
</read_only_dependency_code>

Here is the python version
<python_version>
{python_version}
</python_version>

Here is the function_references
<function_references>
{function_references}
</function_references>
