Skip to content

Commit 71818b2

Browse files
Merge pull request #289 from GraphBLAS/with_GraphBLAS_v10
tag untested lines in CFL and RegularPathQuery methods
2 parents 7f710e4 + 97e5d1b commit 71818b2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

experimental/algorithm/LAGraph_CFL_reachability.c

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
// Querying Using Linear Algebra", URL:
1616
// https://disser.spbu.ru/files/2022/disser_azimov.pdf
1717

18+
// FIXME: some of the code below is not covered by the test suite, "make cov".
19+
// See the FIXMEs below.
20+
1821
#define LG_FREE_WORK \
1922
{ \
2023
LAGraph_Free ((void **) &nnzs, msg) ; \
@@ -172,6 +175,7 @@ GrB_Info LAGraph_CFL_reachability
172175
ADD_TO_MSG("Adjacency matrices with these indexes are null: ");
173176
ADD_TO_MSG("%d", i);
174177
} else {
178+
// FIXME: this case is not tested.
175179
ADD_TO_MSG(", %d", i);
176180
}
177181

@@ -220,6 +224,7 @@ GrB_Info LAGraph_CFL_reachability
220224

221225
// [Variable -> eps]
222226
if (is_rule_eps) {
227+
// FIXME: this case is not tested.
223228
eps_rules[eps_rules_count++] = i;
224229

225230
continue;
@@ -242,6 +247,7 @@ GrB_Info LAGraph_CFL_reachability
242247

243248
if (rule.prod_A < -1 || rule.prod_A >= nonterms_count || rule.prod_B < -1 ||
244249
rule.prod_B >= nonterms_count) {
250+
// FIXME: this case is not tested.
245251
ADD_INDEX_TO_ERROR_RULE(nonterm_err, i);
246252
}
247253

@@ -280,6 +286,7 @@ GrB_Info LAGraph_CFL_reachability
280286
GRB_TRY(GrB_Matrix_nvals(&adj_matrix_nnz, adj_matrices[term_rule.prod_A]));
281287

282288
if (adj_matrix_nnz == 0) {
289+
// FIXME: this case is not tested.
283290
continue;
284291
}
285292

@@ -304,6 +311,7 @@ GrB_Info LAGraph_CFL_reachability
304311

305312
// Rule [Variable -> eps]
306313
for (size_t i = 0; i < eps_rules_count; i++) {
314+
// FIXME: this case is not tested.
307315
LAGraph_rule_WCNF eps_rule = rules[eps_rules[i]];
308316

309317
GxB_eWiseUnion (

experimental/algorithm/LAGraph_RegularPathQuery.c

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
// Performance considerations: the best performance is shown when the algorithm
7676
// receives a minimal deterministic finite automaton as an input.
7777

78+
// FIXME: some of the code below is not covered by the test suite, "make cov".
79+
// See the FIXMEs below.
80+
7881
#define LG_FREE_WORK \
7982
{ \
8083
GrB_free (&frontier) ; \

0 commit comments

Comments
 (0)