@@ -252,7 +252,7 @@ def generate_markdown_report(results: dict) -> str:
252252 report .append (" " .join (row ))
253253
254254 report .append ("\n **Complexity Analysis:**\n " )
255- report .append ("| Analysis Phase | Complexity O(n<sup>k</sup>) |" )
255+ report .append ("| Analysis Phase | Complexity O(n<sup>k</sup>) | " )
256256 report .append ("|:------------------|:--------------------------|" )
257257
258258 analysis_phases = {
@@ -302,7 +302,7 @@ def run_single_test(
302302 source_file ,
303303 ]
304304
305- result = subprocess .run (clang_command , capture_output = True , text = True )
305+ result = subprocess .run (clang_command , capture_output = True , text = True , timeout = 60 )
306306
307307 if result .returncode != 0 :
308308 print (f"Compilation failed for N={ n } !" , file = sys .stderr )
@@ -334,24 +334,25 @@ def run_single_test(
334334 os .makedirs (args .output_dir , exist_ok = True )
335335 print (f"Benchmark files will be saved in: { os .path .abspath (args .output_dir )} \n " )
336336
337+ # Maximize 'n' values while keeping execution time under 10s.
337338 test_configurations = [
338339 {
339340 "name" : "cycle" ,
340341 "title" : "Pointer Cycle in Loop" ,
341342 "generator_func" : generate_cpp_cycle_test ,
342- "n_values" : [10 , 25 , 50 , 75 , 100 , 150 ],
343+ "n_values" : [25 , 50 , 75 , 100 ],
343344 },
344345 {
345346 "name" : "merge" ,
346347 "title" : "CFG Merges" ,
347348 "generator_func" : generate_cpp_merge_test ,
348- "n_values" : [10 , 50 , 100 , 200 , 400 , 800 ],
349+ "n_values" : [400 , 1000 , 2000 , 5000 ],
349350 },
350351 {
351352 "name" : "nested_loops" ,
352353 "title" : "Deeply Nested Loops" ,
353354 "generator_func" : generate_cpp_nested_loop_test ,
354- "n_values" : [10 , 50 , 100 , 200 , 400 , 800 ],
355+ "n_values" : [50 , 100 , 150 , 200 ],
355356 },
356357 ]
357358
0 commit comments