@@ -222,6 +222,7 @@ let _test_cfg_construction _ =
222222 tail_call_index_map = Hashtbl. create 16 ;
223223 is_tail_callable = false ;
224224 func_program_type = None ;
225+ func_target = None ;
225226 } in
226227
227228 let cfg = CFG. build_cfg test_function in
@@ -267,6 +268,7 @@ let _test_function_with_return _ =
267268 tail_call_index_map = Hashtbl. create 16 ;
268269 is_tail_callable = false ;
269270 func_program_type = None ;
271+ func_target = None ;
270272 } in
271273
272274 let return_info = analyze_return_paths test_function in
@@ -302,6 +304,7 @@ let _test_loop_termination_verification _ =
302304 tail_call_index_map = Hashtbl. create 16 ;
303305 is_tail_callable = false ;
304306 func_program_type = None ;
307+ func_target = None ;
305308 } in
306309
307310 check bool " Bounded loop should be verified as terminating" true
@@ -337,6 +340,7 @@ let _test_complete_statement_processing _ =
337340 tail_call_index_map = Hashtbl. create 16 ;
338341 is_tail_callable = false ;
339342 func_program_type = None ;
343+ func_target = None ;
340344 } in
341345
342346 let result = StatementProcessor. process_statements test_function in
@@ -374,6 +378,7 @@ let _test_analyze_ir_function _ =
374378 tail_call_index_map = Hashtbl. create 16 ;
375379 is_tail_callable = false ;
376380 func_program_type = None ;
381+ func_target = None ;
377382 } in
378383
379384 let (optimized_func, warnings) = analyze_ir_function test_function in
@@ -425,6 +430,7 @@ let _test_analysis_report_generation _ =
425430 tail_call_index_map = Hashtbl. create 16 ;
426431 is_tail_callable = false ;
427432 func_program_type = None ;
433+ func_target = None ;
428434 } in
429435
430436 let report = generate_analysis_report test_function in
@@ -543,6 +549,7 @@ let test_data_flow_analysis () =
543549 tail_call_index_map = Hashtbl. create 16 ;
544550 is_tail_callable = false ;
545551 func_program_type = None ;
552+ func_target = None ;
546553 } in
547554 let data_flow = analyze_data_flow test_function in
548555 check bool " data flow analysis" true (List. length data_flow.definitions > 0 );
@@ -586,6 +593,7 @@ let test_variable_liveness_analysis () =
586593 tail_call_index_map = Hashtbl. create 16 ;
587594 is_tail_callable = false ;
588595 func_program_type = None ;
596+ func_target = None ;
589597 } in
590598 let liveness = analyze_variable_liveness test_function in
591599 check bool " liveness analysis" true (List. length liveness.live_variables > 0 );
@@ -631,6 +639,7 @@ let test_loop_analysis () =
631639 tail_call_index_map = Hashtbl. create 16 ;
632640 is_tail_callable = false ;
633641 func_program_type = None ;
642+ func_target = None ;
634643 } in
635644 let loop_info = analyze_loops test_function in
636645 check bool " loop analysis" true (List. length loop_info.loops > 0 );
@@ -668,6 +677,7 @@ let test_function_call_analysis () =
668677 tail_call_index_map = Hashtbl. create 16 ;
669678 is_tail_callable = false ;
670679 func_program_type = None ;
680+ func_target = None ;
671681 } in
672682 let call_graph = build_call_graph test_function in
673683 check bool " call graph built" true (List. length call_graph.nodes > 0 );
@@ -717,6 +727,7 @@ let test_memory_access_analysis () =
717727 tail_call_index_map = Hashtbl. create 16 ;
718728 is_tail_callable = false ;
719729 func_program_type = None ;
730+ func_target = None ;
720731 } in
721732 let memory_info = analyze_memory_access test_function in
722733 check bool " memory access analysis" true (List. length memory_info.memory_accesses > 0 );
@@ -757,6 +768,7 @@ let test_optimization_opportunities () =
757768 tail_call_index_map = Hashtbl. create 16 ;
758769 is_tail_callable = false ;
759770 func_program_type = None ;
771+ func_target = None ;
760772 } in
761773 let optimizations = find_optimization_opportunities test_function in
762774 check bool " optimization analysis" true (List. length optimizations > 0 );
@@ -798,6 +810,7 @@ let test_safety_violations_detection () =
798810 tail_call_index_map = Hashtbl. create 16 ;
799811 is_tail_callable = false ;
800812 func_program_type = None ;
813+ func_target = None ;
801814 } in
802815 let safety_info = analyze_safety_violations test_function in
803816 check bool " safety violations detected" true (List. length safety_info.violations > 0 );
@@ -845,6 +858,7 @@ let test_complexity_analysis () =
845858 tail_call_index_map = Hashtbl. create 16 ;
846859 is_tail_callable = false ;
847860 func_program_type = None ;
861+ func_target = None ;
848862 } in
849863 let complexity = analyze_complexity test_function in
850864 check bool " complexity analysis" true (complexity.time_complexity > = 2 ); (* O(n^2) due to nested loops *)
@@ -923,6 +937,7 @@ let test_comprehensive_ir_analysis () =
923937 tail_call_index_map = Hashtbl. create 16 ;
924938 is_tail_callable = false ;
925939 func_program_type = None ;
940+ func_target = None ;
926941 } in
927942 let analysis = comprehensive_analysis test_function in
928943
0 commit comments