@@ -117,7 +117,7 @@ def __init__(
117117 self .candidate_queue = queue .Queue ()
118118 self .line_profiler_done = False
119119 self .refinement_done = False
120- self .original_len = len (initial_candidates )
120+ self .candidate_len = len (initial_candidates )
121121
122122 # Initialize queue with initial candidates
123123 for candidate in initial_candidates :
@@ -150,8 +150,8 @@ def _process_line_profiler_results(self) -> OptimizedCandidate | None:
150150 for candidate in line_profile_results :
151151 self .candidate_queue .put (candidate )
152152
153- self .original_len += len (line_profile_results )
154- logger .info (f"Added results from line profiler to candidates, total candidates now: { self .original_len } " )
153+ self .candidate_len += len (line_profile_results )
154+ logger .info (f"Added results from line profiler to candidates, total candidates now: { self .candidate_len } " )
155155 self .line_profiler_done = True
156156
157157 return self .get_next_candidate ()
@@ -169,9 +169,9 @@ def _process_refinement_results(self) -> OptimizedCandidate | None:
169169 for candidate in refinement_response :
170170 self .candidate_queue .put (candidate )
171171
172- self .original_len += len (refinement_response )
172+ self .candidate_len += len (refinement_response )
173173 logger .info (
174- f"Added { len (refinement_response )} candidates from refinement, total candidates now: { self .original_len } "
174+ f"Added { len (refinement_response )} candidates from refinement, total candidates now: { self .candidate_len } "
175175 )
176176 self .refinement_done = True
177177
@@ -493,7 +493,7 @@ def determine_best_candidate(
493493 candidate_index += 1
494494 get_run_tmp_file (Path (f"test_return_values_{ candidate_index } .bin" )).unlink (missing_ok = True )
495495 get_run_tmp_file (Path (f"test_return_values_{ candidate_index } .sqlite" )).unlink (missing_ok = True )
496- logger .info (f"Optimization candidate { candidate_index } /{ processor .original_len } :" )
496+ logger .info (f"Optimization candidate { candidate_index } /{ processor .candidate_len } :" )
497497 code_print (candidate .source_code .flat )
498498 # map ast normalized code to diff len, unnormalized code
499499 # map opt id to the shortest unnormalized code
0 commit comments