From ca605d232f2d288e3f99a1af0069382ffa83c2f7 Mon Sep 17 00:00:00 2001 From: "S. Gilles" Date: Thu, 11 Oct 2018 22:02:34 -0400 Subject: [PATCH] Remove debugging comments in check-graph-iso.c I thought I cleaned those... --- check-graph-iso.c | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/check-graph-iso.c b/check-graph-iso.c index 62212ff..ccf418d 100644 --- a/check-graph-iso.c +++ b/check-graph-iso.c @@ -82,12 +82,10 @@ int check_iso(struct quiver *a, struct quiver *b, const char **fix, size_t for (size_t k = 0; k < n; ++k) { if (!(strcmp(a->v[k].name, name))) { -printf("Setting a_i[%zu] = %zu\n", i_idx, k); a_i[j] = k; } if (!(strcmp(b->v[k].name, name))) { -printf("Setting b_i[%zu] = %zu\n", i_idx, k); b_i[j] = k; } } @@ -114,6 +112,7 @@ printf("Setting b_i[%zu] = %zu\n", i_idx, k); break; } } + /* The same; for b */ for (b_next = 0; b_next < n; ++b_next) { seen_b_next = 0; @@ -129,7 +128,6 @@ printf("Setting b_i[%zu] = %zu\n", i_idx, k); break; } } - } i_idx = fix_len; @@ -158,25 +156,6 @@ printf("Setting b_i[%zu] = %zu\n", i_idx, k); if (ea->p != eb->p || ea->q != eb->q) { - -printf("a_i: [ "); -for (size_t l = 0; l < n; ++l) { - printf("%zu ", a_i[l]); - if (l + 1 == fix_len) { - printf("⏐ "); - } -} -printf("]\n"); - -printf("b_i: [ "); -for (size_t l = 0; l < n; ++l) { - printf("%zu ", b_i[l]); - if (l + 1 == fix_len) { - printf("⏐ "); - } -} -printf("]\n"); - fprintf(stderr, "S: \u00ab%s\u00bb \u2192 \u00ab%s\u00bb, %d/%d\n", a->v[ja].name, a->v[ka].name, ea->p, @@ -185,7 +164,8 @@ printf("]\n"); "T: \u00ab%s\u00bb \u2192 \u00ab%s\u00bb, %d/%d\n", b->v[jb].name, b->v[kb].name, eb->p, eb->q); - fprintf(stderr, "These are fixed vertices; so "); + fprintf(stderr, + "These are fixed vertices; so "); fprintf(stderr, "no isomorphism is possible\n"); goto done; } @@ -251,6 +231,7 @@ check_partial_isomorphism: ret = 0; goto done; increment_i_idxth_place: + /* * Try to get the next in the orderings of b_i. * It's a permutation, so we're in the easy case -- 2.11.4.GIT