Skip to content

Commit 361e6c8

Browse files
committed
Add flag to run with burble.
1 parent 76948de commit 361e6c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cfpq_cli/run_all_pairs_cflr.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from cfpq_add_context.add_contexts import add_context, normalize
1717
from cfpq_add_context.utils import verify
1818

19+
import graphblas
1920

2021
def 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

Comments
 (0)