1616from cfpq_add_context .add_contexts import add_context , normalize
1717from cfpq_add_context .utils import verify
1818
19+ import graphblas
1920
2021def run_all_pairs_cflr (
2122 algo_name : str ,
@@ -27,8 +28,10 @@ def run_all_pairs_cflr(
2728 add_contexts : bool = False ,
2829 expected_path : str = "" ,
2930 max_num_of_contexts = 30 ,
31+ trace_graphblas = False ,
3032 depth = 1 ,
3133):
34+ if trace_graphblas : graphblas .ss .burble .enable ()
3235 total_start = time ()
3336 algo = get_all_pairs_cfl_reachability_algo (algo_name )
3437 if add_contexts :
@@ -102,6 +105,9 @@ def main(raw_args: List[str]):
102105 parser .add_argument ('--add_contexts' , dest = 'add_contexts' , default = False ,
103106 help = 'Specifies whether approximation of context sensitivity should be added.'
104107 )
108+ parser .add_argument ('--trace-graphblas' , dest = 'trace_graphblas' , default = False ,
109+ help = 'Turn GraphBLAS burble on.'
110+ )
105111 parser .add_argument ('--expected_path' , dest = 'expected_path' , default = "" ,
106112 help = 'If specified, it will be checked wether solver\' s result is overapproximation of represented in the file.'
107113 )
@@ -113,6 +119,7 @@ def main(raw_args: List[str]):
113119 graph_path = args .graph ,
114120 grammar_path = args .grammar ,
115121 add_contexts = args .add_contexts ,
122+ trace_graphblas = args .trace_graphblas ,
116123 expected_path = args .expected_path ,
117124 time_limit_sec = args .time_limit ,
118125 out_path = args .out ,
0 commit comments