_Z19check_automorphismsPK8igraph_t17igraph_bliss_sh_t:
   26|  2.20k|void check_automorphisms(const igraph_t *graph, igraph_bliss_sh_t heur) {
   27|  2.20k|    igraph_vector_int_list_t generators;
   28|  2.20k|    igraph_bliss_info_t info;
   29|       |
   30|  2.20k|    igraph_vector_int_list_init(&generators, 0);
   31|  2.20k|    igraph_automorphism_group_bliss(graph, nullptr, &generators, heur, &info);
   32|  2.20k|    igraph_free(info.group_size);
   33|  62.9k|    for (igraph_int_t i=0; i < igraph_vector_int_list_size(&generators); i++) {
  ------------------
  |  Branch (33:28): [True: 60.7k, False: 2.20k]
  ------------------
   34|  60.7k|        igraph_t mapped;
   35|  60.7k|        igraph_bool_t same;
   36|  60.7k|        igraph_permute_vertices(graph, &mapped, igraph_vector_int_list_get_ptr(&generators, i));
   37|  60.7k|        igraph_is_same_graph(graph, &mapped, &same);
   38|  60.7k|        IGRAPH_ASSERT(same);
  ------------------
  |  |  924|  60.7k|    do { \
  |  |  925|  60.7k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
   39|  60.7k|        igraph_destroy(&mapped);
   40|  60.7k|    }
   41|  2.20k|    igraph_vector_int_list_destroy(&generators);
   42|  2.20k|}
_Z17check_isomorphismPK8igraph_t17igraph_bliss_sh_t:
   48|  2.95k|void check_isomorphism(const igraph_t *graph, igraph_bliss_sh_t heur) {
   49|  2.95k|    igraph_t permuted, mapped;
   50|  2.95k|    igraph_vector_int_t perm, map21;
   51|  2.95k|    igraph_bliss_info_t info1, info2;
   52|  2.95k|    igraph_bool_t iso, same;
   53|       |
   54|  2.95k|    igraph_vector_int_init_range(&perm, 0, igraph_vcount(graph));
   55|  2.95k|    igraph_vector_int_shuffle(&perm);
   56|  2.95k|    igraph_permute_vertices(graph, &permuted, &perm);
   57|  2.95k|    igraph_vector_int_destroy(&perm);
   58|       |
   59|       |    // map21[i] is the vertex of 'graph' that corresponds to vertex i of 'permuted',
   60|       |    // which is the convention of igraph_permute_vertices().
   61|  2.95k|    igraph_vector_int_init(&map21, 0);
   62|  2.95k|    igraph_isomorphic_bliss(graph, &permuted, nullptr, nullptr, &iso, nullptr, &map21, heur, &info1, &info2);
   63|  2.95k|    igraph_free(info1.group_size);
   64|  2.95k|    igraph_free(info2.group_size);
   65|  2.95k|    IGRAPH_ASSERT(iso);
  ------------------
  |  |  924|  2.95k|    do { \
  |  |  925|  2.95k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
   66|  2.95k|    igraph_permute_vertices(graph, &mapped, &map21);
   67|  2.95k|    igraph_is_same_graph(&mapped, &permuted, &same);
   68|  2.95k|    IGRAPH_ASSERT(same);
  ------------------
  |  |  924|  2.95k|    do { \
  |  |  925|  2.95k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
   69|  2.95k|    igraph_destroy(&mapped);
   70|  2.95k|    igraph_vector_int_destroy(&map21);
   71|       |
   72|  2.95k|    igraph_destroy(&permuted);
   73|  2.95k|}
LLVMFuzzerTestOneInput:
   75|  2.83k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
   76|       |    // Data[0]  - splitting heuristic (Data[0] % 6) and the check to perform (Data[0] / 6)
   77|       |    // Data[1:] - edges
   78|       |
   79|  2.83k|    igraph_t graph;
   80|  2.83k|    igraph_vector_int_t edges;
   81|       |
   82|  2.83k|    igraph_bliss_sh_t heurs[] = {
   83|  2.83k|        IGRAPH_BLISS_F, IGRAPH_BLISS_FL,
   84|  2.83k|        IGRAPH_BLISS_FS, IGRAPH_BLISS_FM,
   85|  2.83k|        IGRAPH_BLISS_FLM, IGRAPH_BLISS_FSM
   86|  2.83k|    };
   87|  2.83k|    igraph_bliss_sh_t heur;
   88|       |
   89|  2.83k|    const igraph_int_t max_vcount  = 64;
   90|       |
   91|  2.83k|    igraph_set_warning_handler(igraph_warning_handler_ignore);
   92|       |
   93|  2.83k|    if (Size % 2 == 0 || Size > 512+1 || Size < 1) {
  ------------------
  |  Branch (93:9): [True: 3, False: 2.83k]
  |  Branch (93:26): [True: 11, False: 2.82k]
  |  Branch (93:42): [True: 0, False: 2.82k]
  ------------------
   94|     14|        return 0;
   95|     14|    }
   96|       |
   97|       |    // Bliss runs can be slow. To limit the running time per input, only one of
   98|       |    // the two checks, each needing one or two Bliss runs, is done per input.
   99|  2.82k|    const size_t heur_count = sizeof(heurs) / sizeof(heurs[0]);
  100|  2.82k|    if (Data[0] >= 2 * heur_count) {
  ------------------
  |  Branch (100:9): [True: 4, False: 2.81k]
  ------------------
  101|      4|        return 0;
  102|      4|    }
  103|       |
  104|  2.81k|    heur = heurs[Data[0] % heur_count];
  105|  2.81k|    const bool isomorphism_mode = Data[0] >= heur_count;
  106|       |
  107|  2.81k|    igraph_vector_int_init(&edges, Size-1);
  108|  94.8k|    for (size_t i=0; i < Size-1; ++i) {
  ------------------
  |  Branch (108:22): [True: 92.0k, False: 2.81k]
  ------------------
  109|  92.0k|        VECTOR(edges)[i] = Data[i+1];
  ------------------
  |  |   60|  92.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  110|  92.0k|    }
  111|       |
  112|  2.81k|    igraph_rng_seed(igraph_rng_default(), 42);
  113|       |
  114|       |    /* Undirected */
  115|  2.81k|    if (igraph_create(&graph, &edges, 0, IGRAPH_UNDIRECTED) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (115:9): [True: 2.81k, False: 0]
  ------------------
  116|  2.81k|        if (igraph_vcount(&graph) <= max_vcount) {
  ------------------
  |  Branch (116:13): [True: 2.80k, False: 18]
  ------------------
  117|  2.80k|            igraph_bool_t multi;
  118|       |
  119|  2.80k|            igraph_has_multiple(&graph, &multi);
  120|       |
  121|       |            /* Bliss does not support multigraphs and the input is currently not checked */
  122|  2.80k|            if (! multi) {
  ------------------
  |  Branch (122:17): [True: 2.38k, False: 421]
  ------------------
  123|  2.38k|                if (isomorphism_mode) {
  ------------------
  |  Branch (123:21): [True: 1.35k, False: 1.02k]
  ------------------
  124|  1.35k|                    check_isomorphism(&graph, heur);
  125|  1.35k|                } else {
  126|  1.02k|                    check_automorphisms(&graph, heur);
  127|  1.02k|                }
  128|  2.38k|            }
  129|  2.80k|        }
  130|       |
  131|  2.81k|        igraph_destroy(&graph);
  132|  2.81k|    }
  133|       |
  134|       |    /* Directed */
  135|  2.81k|    if (igraph_create(&graph, &edges, 0, IGRAPH_DIRECTED) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (135:9): [True: 2.81k, False: 0]
  ------------------
  136|  2.81k|        if (igraph_vcount(&graph) <= max_vcount) {
  ------------------
  |  Branch (136:13): [True: 2.80k, False: 18]
  ------------------
  137|  2.80k|            igraph_bool_t multi;
  138|       |
  139|  2.80k|            igraph_has_multiple(&graph, &multi);
  140|       |
  141|       |            /* Bliss does not support multigraphs and the input is currently not checked */
  142|  2.80k|            if (! multi) {
  ------------------
  |  Branch (142:17): [True: 2.78k, False: 21]
  ------------------
  143|  2.78k|                if (isomorphism_mode) {
  ------------------
  |  Branch (143:21): [True: 1.60k, False: 1.17k]
  ------------------
  144|  1.60k|                    check_isomorphism(&graph, heur);
  145|  1.60k|                } else {
  146|  1.17k|                    check_automorphisms(&graph, heur);
  147|  1.17k|                }
  148|  2.78k|            }
  149|  2.80k|        }
  150|       |
  151|  2.81k|        igraph_destroy(&graph);
  152|  2.81k|    }
  153|       |
  154|  2.81k|    igraph_vector_int_destroy(&edges);
  155|       |
  156|  2.81k|    IGRAPH_ASSERT(IGRAPH_FINALLY_STACK_EMPTY);
  ------------------
  |  |  924|  2.81k|    do { \
  |  |  925|  2.81k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  2.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.81k]
  |  |  ------------------
  ------------------
  157|       |
  158|  2.81k|    return 0;  // Non-zero return values are reserved for future use.
  159|  2.81k|}

igraph_create:
   54|  72.2k|                             igraph_int_t n, igraph_bool_t directed) {
   55|  72.2k|    igraph_bool_t has_edges = igraph_vector_int_size(edges) > 0;
   56|  72.2k|    igraph_int_t max;
   57|       |
   58|  72.2k|    if (igraph_vector_int_size(edges) % 2 != 0) {
  ------------------
  |  Branch (58:9): [True: 0, False: 72.2k]
  ------------------
   59|      0|        IGRAPH_ERROR("Invalid (odd) edges vector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   60|      0|    }
   61|  72.2k|    if (!igraph_vector_int_isininterval(edges, 0, IGRAPH_VCOUNT_MAX-1)) {
  ------------------
  |  |  100|  72.2k|#define IGRAPH_VCOUNT_MAX (IGRAPH_INTEGER_MAX-1)
  |  |  ------------------
  |  |  |  |   72|  72.2k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (61:9): [True: 0, False: 72.2k]
  ------------------
   62|      0|        IGRAPH_ERROR("Invalid (negative or too large) vertex ID.", IGRAPH_EINVVID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   63|      0|    }
   64|       |
   65|       |    /* The + 1 here cannot overflow as above we have already
   66|       |     * checked that vertex IDs are within range. */
   67|  72.2k|    max = has_edges ? igraph_vector_int_max(edges) + 1 : 0;
  ------------------
  |  Branch (67:11): [True: 72.2k, False: 46]
  ------------------
   68|       |
   69|  72.2k|    IGRAPH_CHECK(igraph_empty(graph, n, directed));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
   70|  72.2k|    IGRAPH_FINALLY(igraph_destroy, graph);
  ------------------
  |  |  603|  72.2k|    do { \
  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  ------------------
  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
   71|  72.2k|    if (has_edges) {
  ------------------
  |  Branch (71:9): [True: 72.2k, False: 46]
  ------------------
   72|  72.2k|        n = igraph_vcount(graph);
   73|  72.2k|        if (n < max) {
  ------------------
  |  Branch (73:13): [True: 5.61k, False: 66.5k]
  ------------------
   74|  5.61k|            IGRAPH_CHECK(igraph_add_vertices(graph, (max - n), 0));
  ------------------
  |  |  656|  5.61k|    do { \
  |  |  657|  5.61k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.61k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.61k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.61k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  5.61k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.61k]
  |  |  ------------------
  ------------------
   75|  5.61k|        }
   76|  72.2k|        IGRAPH_CHECK(igraph_add_edges(graph, edges, 0));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
   77|  72.2k|    }
   78|       |
   79|  72.2k|    IGRAPH_FINALLY_CLEAN(1);
   80|  72.2k|    return IGRAPH_SUCCESS;
   81|  72.2k|}

IGRAPH_FINALLY_REAL:
  320|  1.33M|void IGRAPH_FINALLY_REAL(void (*func)(void*), void* ptr) {
  321|  1.33M|    int no = igraph_i_finally_stack_size;
  322|  1.33M|    if (no < 0) {
  ------------------
  |  Branch (322:9): [True: 0, False: 1.33M]
  ------------------
  323|       |        /* Reset finally stack in case fatal error handler does a longjmp instead of terminating the process: */
  324|      0|        igraph_i_reset_finally_stack();
  325|      0|        IGRAPH_FATALF("Corrupt finally stack: it contains %d elements.", no);
  ------------------
  |  |  875|      0|    do { \
  |  |  876|      0|        igraph_fatalf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  877|      0|                      __VA_ARGS__); \
  |  |  878|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (878:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  326|      0|    }
  327|  1.33M|    if (no >= (int) (sizeof(igraph_i_finally_stack) / sizeof(igraph_i_finally_stack[0]))) {
  ------------------
  |  Branch (327:9): [True: 0, False: 1.33M]
  ------------------
  328|       |        /* Reset finally stack in case fatal error handler does a longjmp instead of terminating the process: */
  329|      0|        igraph_i_reset_finally_stack();
  330|      0|        IGRAPH_FATALF("Finally stack too large: it contains %d elements.", no);
  ------------------
  |  |  875|      0|    do { \
  |  |  876|      0|        igraph_fatalf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  877|      0|                      __VA_ARGS__); \
  |  |  878|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (878:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  331|      0|    }
  332|  1.33M|    igraph_i_finally_stack[no].ptr = ptr;
  333|  1.33M|    igraph_i_finally_stack[no].func = func;
  334|  1.33M|    igraph_i_finally_stack[no].level = igraph_i_finally_stack_level;
  335|  1.33M|    igraph_i_finally_stack_size++;
  336|  1.33M|}
IGRAPH_FINALLY_CLEAN:
  338|   459k|void IGRAPH_FINALLY_CLEAN(int minus) {
  339|   459k|    igraph_i_finally_stack_size -= minus;
  340|   459k|    if (igraph_i_finally_stack_size < 0) {
  ------------------
  |  Branch (340:9): [True: 0, False: 459k]
  ------------------
  341|      0|        int left = igraph_i_finally_stack_size + minus;
  342|       |        /* Reset finally stack in case fatal error handler does a longjmp instead of terminating the process: */
  343|      0|        igraph_i_reset_finally_stack();
  344|      0|        IGRAPH_FATALF("Corrupt finally stack: trying to pop %d element(s) when only %d left.", minus, left);
  ------------------
  |  |  875|      0|    do { \
  |  |  876|      0|        igraph_fatalf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  877|      0|                      __VA_ARGS__); \
  |  |  878|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (878:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  345|      0|    }
  346|   459k|}
IGRAPH_FINALLY_STACK_SIZE:
  359|  2.81k|int IGRAPH_FINALLY_STACK_SIZE(void) {
  360|  2.81k|    return igraph_i_finally_stack_size;
  361|  2.81k|}
IGRAPH_FINALLY_ENTER:
  377|  72.2k|void IGRAPH_FINALLY_ENTER(void) {
  378|  72.2k|    int no = igraph_i_finally_stack_size;
  379|       |    /* Level indices must always be in increasing order in the finally stack */
  380|  72.2k|    if (no > 0 && igraph_i_finally_stack[no-1].level > igraph_i_finally_stack_level) {
  ------------------
  |  Branch (380:9): [True: 72.2k, False: 0]
  |  Branch (380:19): [True: 0, False: 72.2k]
  ------------------
  381|       |        /* Reset finally stack in case fatal error handler does a longjmp instead of terminating the process: */
  382|      0|        igraph_i_reset_finally_stack();
  383|      0|        IGRAPH_FATAL("Corrupt finally stack: cannot create new finally stack level before last one is freed.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  384|      0|    }
  385|  72.2k|    igraph_i_finally_stack_level++;
  386|  72.2k|}
IGRAPH_FINALLY_EXIT:
  399|  72.2k|void IGRAPH_FINALLY_EXIT(void) {
  400|  72.2k|    igraph_i_finally_stack_level--;
  401|  72.2k|    if (igraph_i_finally_stack_level < 0) {
  ------------------
  |  Branch (401:9): [True: 0, False: 72.2k]
  ------------------
  402|       |        /* Reset finally stack in case fatal error handler does a longjmp instead of terminating the process: */
  403|      0|        igraph_i_reset_finally_stack();
  404|      0|        IGRAPH_FATAL("Corrupt finally stack: trying to exit outermost finally stack level.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  405|      0|    }
  406|  72.2k|}
igraph_set_warning_handler:
  514|  2.83k|igraph_warning_handler_t *igraph_set_warning_handler(igraph_warning_handler_t *new_handler) {
  515|  2.83k|    igraph_warning_handler_t *previous_handler = igraph_i_warning_handler;
  516|  2.83k|    igraph_i_warning_handler = new_handler;
  517|  2.83k|    return previous_handler;
  518|  2.83k|}

igraph_allow_interruption:
   29|  9.58M|igraph_bool_t igraph_allow_interruption(void) {
   30|  9.58M|    if (igraph_i_interruption_handler) {
  ------------------
  |  Branch (30:9): [True: 0, False: 9.58M]
  ------------------
   31|      0|        return igraph_i_interruption_handler();
   32|      0|    }
   33|  9.58M|    return false;
   34|  9.58M|}

igraph_free:
   62|  8.11k|void igraph_free(void *ptr) {
   63|       |    IGRAPH_FREE(ptr);
  ------------------
  |  |   36|  8.11k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
   64|  8.11k|}

igraph_vector_int_list_init:
  109|  2.20k|igraph_error_t FUNCTION(init)(TYPE *v, igraph_int_t size) {
  110|  2.20k|    igraph_int_t alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (110:31): [True: 0, False: 2.20k]
  ------------------
  111|  2.20k|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  2.20k|    do { \
  |  |  925|  2.20k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.20k]
  |  |  ------------------
  ------------------
  112|  2.20k|    v->stor_begin = IGRAPH_CALLOC(alloc_size, ITEM_TYPE);
  ------------------
  |  |   33|  2.20k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  4.40k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 2.20k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 2.20k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 2.20k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  113|  2.20k|    if (v->stor_begin == 0) {
  ------------------
  |  Branch (113:9): [True: 0, False: 2.20k]
  ------------------
  114|      0|        IGRAPH_ERROR("Cannot initialize list.", IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  115|      0|    }
  116|  2.20k|    v->stor_end = v->stor_begin + alloc_size;
  117|  2.20k|    v->end = v->stor_begin + size;
  118|       |
  119|  2.20k|    IGRAPH_CHECK(INTERNAL_FUNCTION(init_slice)(v, v->stor_begin, v->end));
  ------------------
  |  |  656|  2.20k|    do { \
  |  |  657|  2.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.20k]
  |  |  ------------------
  ------------------
  120|       |
  121|  2.20k|    return IGRAPH_SUCCESS;
  122|  2.20k|}
igraph_vector_int_list_destroy:
  176|  2.20k|void FUNCTION(destroy)(TYPE *v) {
  177|  2.20k|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  2.20k|    do { \
  |  |  925|  2.20k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.20k]
  |  |  ------------------
  ------------------
  178|       |
  179|  2.20k|    if (v->stor_begin != 0) {
  ------------------
  |  Branch (179:9): [True: 2.20k, False: 0]
  ------------------
  180|  2.20k|        FUNCTION(clear)(v);
  ------------------
  |  |  136|  2.20k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  2.20k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  2.20k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  181|  2.20k|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  2.20k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  182|       |        v->stor_begin = NULL;
  183|  2.20k|    }
  184|  2.20k|}
igraph_vector_int_list_capacity:
  203|  9.08k|igraph_int_t FUNCTION(capacity)(const TYPE *v) {
  204|  9.08k|    return v->stor_end - v->stor_begin;
  205|  9.08k|}
igraph_vector_int_list_reserve:
  233|  9.08k|igraph_error_t FUNCTION(reserve)(TYPE *v, igraph_int_t capacity) {
  234|  9.08k|    igraph_int_t current_capacity;
  235|  9.08k|    ITEM_TYPE *tmp;
  ------------------
  |  |   31|  9.08k|    #define ITEM_TYPE BASE_VECTOR
  |  |  ------------------
  |  |  |  |   67|  9.08k|    #define BASE_VECTOR igraph_vector_int_t
  |  |  ------------------
  ------------------
  236|       |
  237|  9.08k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  9.08k|    do { \
  |  |  925|  9.08k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  9.08k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  9.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 9.08k]
  |  |  ------------------
  ------------------
  238|  9.08k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  9.08k|    do { \
  |  |  925|  9.08k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  9.08k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  9.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 9.08k]
  |  |  ------------------
  ------------------
  239|  9.08k|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  9.08k|    do { \
  |  |  925|  9.08k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  9.08k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  9.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 9.08k]
  |  |  ------------------
  ------------------
  240|       |
  241|  9.08k|    current_capacity = FUNCTION(capacity)(v);
  ------------------
  |  |  136|  9.08k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  9.08k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  9.08k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  242|       |
  243|  9.08k|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (243:9): [True: 0, False: 9.08k]
  ------------------
  244|      0|        return IGRAPH_SUCCESS;
  245|      0|    }
  246|       |
  247|  9.08k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, ITEM_TYPE);
  ------------------
  |  |   35|  9.08k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  18.1k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 9.08k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 9.08k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 9.08k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  248|  9.08k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for list.");
  ------------------
  |  |  709|  9.08k|    do { \
  |  |  710|  9.08k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  9.08k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  9.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 9.08k]
  |  |  ------------------
  ------------------
  249|       |
  250|  9.08k|    v->end = tmp + (v->end - v->stor_begin);
  251|  9.08k|    v->stor_begin = tmp;
  252|  9.08k|    v->stor_end = v->stor_begin + capacity;
  253|       |
  254|  9.08k|    return IGRAPH_SUCCESS;
  255|  9.08k|}
igraph_vector_int_list_size:
  287|  71.9k|igraph_int_t FUNCTION(size)(const TYPE *v) {
  288|  71.9k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  71.9k|    do { \
  |  |  925|  71.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  71.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 71.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  71.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 71.9k]
  |  |  ------------------
  ------------------
  289|  71.9k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  71.9k|    do { \
  |  |  925|  71.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  71.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 71.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  71.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 71.9k]
  |  |  ------------------
  ------------------
  290|  71.9k|    return v->end - v->stor_begin;
  291|  71.9k|}
igraph_vector_int_list_clear:
  357|  4.40k|void FUNCTION(clear)(TYPE *v) {
  358|  4.40k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  4.40k|    do { \
  |  |  925|  4.40k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.40k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.40k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.40k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.40k]
  |  |  ------------------
  ------------------
  359|  4.40k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  4.40k|    do { \
  |  |  925|  4.40k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.40k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.40k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.40k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.40k]
  |  |  ------------------
  ------------------
  360|  4.40k|    INTERNAL_FUNCTION(destroy_slice)(v, v->stor_begin, v->end);
  ------------------
  |  |  137|  4.40k|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  4.40k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  4.40k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  361|  4.40k|    v->end = v->stor_begin;
  362|  4.40k|}
igraph_vector_int_list_get_ptr:
  377|  60.7k|ITEM_TYPE *FUNCTION(get_ptr)(const TYPE *v, igraph_int_t pos) {
  378|  60.7k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  60.7k|    do { \
  |  |  925|  60.7k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
  379|  60.7k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  60.7k|    do { \
  |  |  925|  60.7k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
  380|  60.7k|    return v->stor_begin + pos;
  381|  60.7k|}
igraph_vector_int_list_push_back:
  587|  60.7k|igraph_error_t FUNCTION(push_back)(TYPE *v, ITEM_TYPE *e) {
  588|  60.7k|    IGRAPH_CHECK(INTERNAL_FUNCTION(expand_if_full)(v));
  ------------------
  |  |  656|  60.7k|    do { \
  |  |  657|  60.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  60.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
  589|  60.7k|    *(v->end) = *e;
  590|  60.7k|    v->end += 1;
  591|  60.7k|    return IGRAPH_SUCCESS;
  592|  60.7k|}
vector_list.c:igraph_i_vector_int_list_destroy_item:
 1060|  60.7k|static void INTERNAL_FUNCTION(destroy_item)(ITEM_TYPE *item) {
 1061|  60.7k|    ITEM_FUNCTION(destroy)(item);
  ------------------
  |  |   42|  60.7k|        #define ITEM_FUNCTION(f) CONCAT3(igraph_vector,SHORT,f)
  |  |  ------------------
  |  |  |  |   22|  60.7k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  60.7k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1062|  60.7k|}
vector_list.c:igraph_i_vector_int_list_init_slice:
 1068|  2.20k|static igraph_error_t INTERNAL_FUNCTION(init_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1069|  2.20k|    ITEM_TYPE *current;
  ------------------
  |  |   31|  2.20k|    #define ITEM_TYPE BASE_VECTOR
  |  |  ------------------
  |  |  |  |   67|  2.20k|    #define BASE_VECTOR igraph_vector_int_t
  |  |  ------------------
  ------------------
 1070|  2.20k|    igraph_error_t retval;
 1071|       |
 1072|  2.20k|    for (current = start; current < end; current++) {
  ------------------
  |  Branch (1072:27): [True: 0, False: 2.20k]
  ------------------
 1073|      0|        retval = INTERNAL_FUNCTION(init_item)(list, current);
  ------------------
  |  |  137|      0|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|      0|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|      0|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1074|      0|        if (retval) {
  ------------------
  |  Branch (1074:13): [True: 0, False: 0]
  ------------------
 1075|      0|            INTERNAL_FUNCTION(destroy_slice)(list, start, current);
  ------------------
  |  |  137|      0|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|      0|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|      0|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1076|      0|            IGRAPH_CHECK(retval);
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1077|      0|        }
 1078|      0|    }
 1079|       |
 1080|  2.20k|    return IGRAPH_SUCCESS;
 1081|  2.20k|}
vector_list.c:igraph_i_vector_int_list_destroy_slice:
 1083|  4.40k|static void INTERNAL_FUNCTION(destroy_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1084|  4.40k|    IGRAPH_UNUSED(list);
  ------------------
  |  |   30|  4.40k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1085|  65.1k|    for (; start < end; start++) {
  ------------------
  |  Branch (1085:12): [True: 60.7k, False: 4.40k]
  ------------------
 1086|  60.7k|        INTERNAL_FUNCTION(destroy_item)(start);
  ------------------
  |  |  137|  60.7k|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  60.7k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  60.7k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1087|  60.7k|    }
 1088|  4.40k|}
vector_list.c:igraph_i_vector_int_list_expand_if_full:
 1094|  60.7k|static igraph_error_t INTERNAL_FUNCTION(expand_if_full)(TYPE *v) {
 1095|  60.7k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  60.7k|    do { \
  |  |  925|  60.7k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
 1096|  60.7k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  60.7k|    do { \
  |  |  925|  60.7k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  60.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  60.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 60.7k]
  |  |  ------------------
  ------------------
 1097|       |
 1098|  60.7k|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (1098:9): [True: 9.08k, False: 51.6k]
  ------------------
 1099|  9.08k|        igraph_int_t old_size = FUNCTION(size)(v);
  ------------------
  |  |  136|  9.08k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  9.08k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  9.08k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1100|  9.08k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   72|  9.08k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   72|  9.08k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1100:33): [True: 9.08k, False: 0]
  ------------------
 1101|  9.08k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   72|  9.08k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1101:13): [True: 0, False: 9.08k]
  ------------------
 1102|      0|            IGRAPH_ERROR("Cannot add new item to list, already at maximum size.", IGRAPH_EOVERFLOW);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1103|      0|        }
 1104|  9.08k|        if (new_size == 0) {
  ------------------
  |  Branch (1104:13): [True: 0, False: 9.08k]
  ------------------
 1105|      0|            new_size = 1;
 1106|      0|        }
 1107|  9.08k|        IGRAPH_CHECK(FUNCTION(reserve)(v, new_size));
  ------------------
  |  |  656|  9.08k|    do { \
  |  |  657|  9.08k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.08k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.08k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.08k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.08k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.08k]
  |  |  ------------------
  ------------------
 1108|  9.08k|    }
 1109|       |
 1110|  60.7k|    return IGRAPH_SUCCESS;
 1111|  60.7k|}

igraph_vector_int_pair_order:
  119|   150k|                                       igraph_vector_int_t* res, igraph_int_t nodes) {
  120|   150k|    igraph_int_t edges = igraph_vector_int_size(v);
  121|   150k|    igraph_vector_int_t ptr;
  122|   150k|    igraph_vector_int_t rad;
  123|   150k|    igraph_int_t i, j;
  124|       |
  125|   150k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   150k|    do { \
  |  |  925|   150k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   150k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  126|   150k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   150k|    do { \
  |  |  925|   150k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   150k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  127|       |
  128|   150k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&ptr, nodes + 1);
  ------------------
  |  |  119|   150k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   150k|    do { \
  |  |  |  |  657|   150k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   150k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|   150k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   150k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   150k|    do { \
  |  |  |  |  604|   150k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   150k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   150k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   150k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  |  |  608|   150k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   150k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  129|   150k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&rad, edges);
  ------------------
  |  |  119|   150k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   150k|    do { \
  |  |  |  |  657|   150k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   150k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|   150k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   150k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   150k|    do { \
  |  |  |  |  604|   150k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   150k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   150k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   150k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  |  |  608|   150k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   150k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  130|   150k|    IGRAPH_CHECK(igraph_vector_int_resize(res, edges));
  ------------------
  |  |  656|   150k|    do { \
  |  |  657|   150k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   150k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   150k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  131|       |
  132|  2.33M|    for (i = 0; i < edges; i++) {
  ------------------
  |  Branch (132:17): [True: 2.18M, False: 150k]
  ------------------
  133|  2.18M|        igraph_int_t radix = VECTOR(*v2)[i];
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  134|  2.18M|        if (VECTOR(ptr)[radix] != 0) {
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (134:13): [True: 665k, False: 1.52M]
  ------------------
  135|   665k|            VECTOR(rad)[i] = VECTOR(ptr)[radix];
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(rad)[i] = VECTOR(ptr)[radix];
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  136|   665k|        }
  137|  2.18M|        VECTOR(ptr)[radix] = i + 1;
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  138|  2.18M|    }
  139|       |
  140|   150k|    j = 0;
  141|  8.00M|    for (i = 0; i < nodes + 1; i++) {
  ------------------
  |  Branch (141:17): [True: 7.85M, False: 150k]
  ------------------
  142|  7.85M|        if (VECTOR(ptr)[i] != 0) {
  ------------------
  |  |   60|  7.85M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (142:13): [True: 1.52M, False: 6.32M]
  ------------------
  143|  1.52M|            igraph_int_t next = VECTOR(ptr)[i] - 1;
  ------------------
  |  |   60|  1.52M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  144|  1.52M|            VECTOR(*res)[j++] = next;
  ------------------
  |  |   60|  1.52M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  145|  2.18M|            while (VECTOR(rad)[next] != 0) {
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (145:20): [True: 665k, False: 1.52M]
  ------------------
  146|   665k|                next = VECTOR(rad)[next] - 1;
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  147|   665k|                VECTOR(*res)[j++] = next;
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  148|   665k|            }
  149|  1.52M|        }
  150|  7.85M|    }
  151|       |
  152|   150k|    igraph_vector_int_null(&ptr);
  153|   150k|    igraph_vector_int_null(&rad);
  154|       |
  155|  2.33M|    for (i = 0; i < edges; i++) {
  ------------------
  |  Branch (155:17): [True: 2.18M, False: 150k]
  ------------------
  156|  2.18M|        igraph_int_t edge = VECTOR(*res)[edges - i - 1];
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  157|  2.18M|        igraph_int_t radix = VECTOR(*v)[edge];
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  158|  2.18M|        if (VECTOR(ptr)[radix] != 0) {
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (158:13): [True: 665k, False: 1.52M]
  ------------------
  159|   665k|            VECTOR(rad)[edge] = VECTOR(ptr)[radix];
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(rad)[edge] = VECTOR(ptr)[radix];
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  160|   665k|        }
  161|  2.18M|        VECTOR(ptr)[radix] = edge + 1;
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  162|  2.18M|    }
  163|       |
  164|   150k|    j = 0;
  165|  8.00M|    for (i = 0; i < nodes + 1; i++) {
  ------------------
  |  Branch (165:17): [True: 7.85M, False: 150k]
  ------------------
  166|  7.85M|        if (VECTOR(ptr)[i] != 0) {
  ------------------
  |  |   60|  7.85M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (166:13): [True: 1.52M, False: 6.32M]
  ------------------
  167|  1.52M|            igraph_int_t next = VECTOR(ptr)[i] - 1;
  ------------------
  |  |   60|  1.52M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  168|  1.52M|            VECTOR(*res)[j++] = next;
  ------------------
  |  |   60|  1.52M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  169|  2.18M|            while (VECTOR(rad)[next] != 0) {
  ------------------
  |  |   60|  2.18M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (169:20): [True: 665k, False: 1.52M]
  ------------------
  170|   665k|                next = VECTOR(rad)[next] - 1;
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  171|   665k|                VECTOR(*res)[j++] = next;
  ------------------
  |  |   60|   665k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  172|   665k|            }
  173|  1.52M|        }
  174|  7.85M|    }
  175|       |
  176|   150k|    igraph_vector_int_destroy(&ptr);
  177|   150k|    igraph_vector_int_destroy(&rad);
  178|   150k|    IGRAPH_FINALLY_CLEAN(2);
  179|       |
  180|   150k|    return IGRAPH_SUCCESS;
  181|   150k|}

igraph_vector_int_init:
  134|  1.11M|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  1.11M|    igraph_int_t alloc_size;
  136|  1.11M|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  1.11M|    do { \
  |  |  925|  1.11M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.11M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.11M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.11M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.11M]
  |  |  ------------------
  ------------------
  137|  1.11M|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 668k, False: 445k]
  ------------------
  138|       |
  139|       |    /* When this function fails, it should leave stor_begin set to NULL,
  140|       |     * so that vector_destroy() is still safe to call on the vector.
  141|       |     * This simplifies freeing partially initialized data structures,
  142|       |     * such as adjacency lists, when an error occurs mid-initialization. */
  143|  1.11M|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  1.11M|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  2.22M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 1.11M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 1.11M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 1.11M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.11M|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  1.11M|    do { \
  |  |  710|  1.11M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.11M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.11M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  1.11M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.11M]
  |  |  ------------------
  ------------------
  145|  1.11M|    v->stor_end = v->stor_begin + alloc_size;
  146|  1.11M|    v->end = v->stor_begin + size;
  147|       |
  148|  1.11M|    return IGRAPH_SUCCESS;
  149|  1.11M|}
igraph_vector_int_destroy:
  408|  1.11M|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  1.11M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.11M|    do { \
  |  |  925|  1.11M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.11M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.11M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.11M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.11M]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  1.11M|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 1.11M, False: 0]
  ------------------
  413|  1.11M|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  1.11M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  1.11M|    }
  416|  1.11M|}
igraph_vector_int_capacity:
  436|  1.25M|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|  1.25M|    return v->stor_end - v->stor_begin;
  438|  1.25M|}
igraph_vector_int_reserve:
  468|  1.25M|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|  1.25M|    igraph_int_t current_capacity;
  470|  1.25M|    BASE *tmp;
  ------------------
  |  |   66|  1.25M|    #define BASE igraph_int_t
  ------------------
  471|       |
  472|  1.25M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.25M|    do { \
  |  |  925|  1.25M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.25M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.25M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.25M]
  |  |  ------------------
  ------------------
  473|  1.25M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.25M|    do { \
  |  |  925|  1.25M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.25M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.25M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.25M]
  |  |  ------------------
  ------------------
  474|  1.25M|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  1.25M|    do { \
  |  |  925|  1.25M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.25M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.25M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.25M]
  |  |  ------------------
  ------------------
  475|       |
  476|  1.25M|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  178|  1.25M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  1.25M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  1.25M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|  1.25M|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 833k, False: 421k]
  ------------------
  479|   833k|        return IGRAPH_SUCCESS;
  480|   833k|    }
  481|       |
  482|   421k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|   421k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|   843k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 421k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 421k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 421k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|   421k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|   421k|    do { \
  |  |  710|   421k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   421k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 421k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|   421k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 421k]
  |  |  ------------------
  ------------------
  484|       |
  485|   421k|    v->end = tmp + (v->end - v->stor_begin);
  486|   421k|    v->stor_begin = tmp;
  487|   421k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|   421k|    return IGRAPH_SUCCESS;
  490|   421k|}
igraph_vector_int_empty:
  503|  72.2k|igraph_bool_t FUNCTION(igraph_vector, empty)(const TYPE(igraph_vector) *v) {
  504|  72.2k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  72.2k|    do { \
  |  |  925|  72.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  505|  72.2k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  72.2k|    do { \
  |  |  925|  72.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  506|  72.2k|    return v->stor_begin == v->end;
  507|  72.2k|}
igraph_vector_int_size:
  522|  1.82M|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|  1.82M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.82M|    do { \
  |  |  925|  1.82M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.82M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.82M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.82M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.82M]
  |  |  ------------------
  ------------------
  524|  1.82M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.82M|    do { \
  |  |  925|  1.82M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.82M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.82M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.82M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.82M]
  |  |  ------------------
  ------------------
  525|  1.82M|    return v->end - v->stor_begin;
  526|  1.82M|}
igraph_vector_int_push_back:
  573|  2.08M|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|  2.08M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  2.08M|    do { \
  |  |  925|  2.08M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.08M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.08M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.08M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.08M]
  |  |  ------------------
  ------------------
  575|  2.08M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  2.08M|    do { \
  |  |  925|  2.08M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.08M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.08M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.08M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.08M]
  |  |  ------------------
  ------------------
  576|       |
  577|  2.08M|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 0, False: 2.08M]
  ------------------
  578|       |        /* full, allocate more storage */
  579|      0|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  178|      0|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|      0|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|      0|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|      0|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   72|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   72|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (580:33): [True: 0, False: 0]
  ------------------
  581|      0|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   72|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (581:13): [True: 0, False: 0]
  ------------------
  582|      0|            IGRAPH_ERROR("Cannot push to vector, already at maximum size.", IGRAPH_EOVERFLOW);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  583|      0|        }
  584|      0|        if (new_size == 0) {
  ------------------
  |  Branch (584:13): [True: 0, False: 0]
  ------------------
  585|      0|            new_size = 1;
  586|      0|        }
  587|      0|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  588|      0|    }
  589|       |
  590|  2.08M|    *(v->end) = e;
  591|  2.08M|    v->end += 1;
  592|       |
  593|  2.08M|    return IGRAPH_SUCCESS;
  594|  2.08M|}
igraph_vector_int_null:
  725|   300k|void FUNCTION(igraph_vector, null)(TYPE(igraph_vector) *v) {
  726|   300k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   300k|    do { \
  |  |  925|   300k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   300k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 300k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   300k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 300k]
  |  |  ------------------
  ------------------
  727|   300k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   300k|    do { \
  |  |  925|   300k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   300k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 300k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   300k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 300k]
  |  |  ------------------
  ------------------
  728|   300k|    if (FUNCTION(igraph_vector, size)(v) > 0) {
  ------------------
  |  |  178|   300k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   300k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   300k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (728:9): [True: 300k, False: 24]
  ------------------
  729|   300k|        memset(v->stor_begin, 0, sizeof(BASE) * FUNCTION(igraph_vector, size)(v));
  ------------------
  |  |  178|   300k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   300k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   300k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  730|   300k|    }
  731|   300k|}
igraph_vector_int_fill:
  745|  66.6k|void FUNCTION(igraph_vector, fill)(TYPE(igraph_vector) *v, BASE e) {
  746|  66.6k|    BASE *ptr;
  ------------------
  |  |   66|  66.6k|    #define BASE igraph_int_t
  ------------------
  747|  66.6k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  66.6k|    do { \
  |  |  925|  66.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
  748|  66.6k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  66.6k|    do { \
  |  |  925|  66.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
  749|       |
  750|       |    /* Optimize the commonly used integer case when filling with 0
  751|       |     * or -1, which are an all-0 and all-1 bit pattern that the
  752|       |     * compiler can generate higher efficiency code for. */
  753|  66.6k|#if defined(BASE_INT)
  754|  66.6k|    if (e == 0) {
  ------------------
  |  Branch (754:9): [True: 0, False: 66.6k]
  ------------------
  755|      0|        FUNCTION(igraph_vector, null)(v);
  ------------------
  |  |  178|      0|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|      0|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|      0|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  756|      0|        return;
  757|      0|    }
  758|  66.6k|    if (e == -1) {
  ------------------
  |  Branch (758:9): [True: 66.6k, False: 0]
  ------------------
  759|  3.56M|        for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (759:35): [True: 3.49M, False: 66.6k]
  ------------------
  760|  3.49M|            *ptr = -1;
  761|  3.49M|        }
  762|  66.6k|        return;
  763|  66.6k|    }
  764|      0|#endif
  765|       |
  766|      0|    for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (766:31): [True: 0, False: 0]
  ------------------
  767|      0|        *ptr = e;
  768|      0|    }
  769|      0|}
igraph_vector_int_resize:
 1264|   954k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   954k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   954k|    do { \
  |  |  925|   954k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   954k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 954k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   954k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 954k]
  |  |  ------------------
  ------------------
 1266|   954k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   954k|    do { \
  |  |  925|   954k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   954k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 954k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   954k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 954k]
  |  |  ------------------
  ------------------
 1267|   954k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   954k|    do { \
  |  |  657|   954k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   954k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   954k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 954k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   954k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 954k]
  |  |  ------------------
  ------------------
 1268|   954k|    v->end = v->stor_begin + new_size;
 1269|   954k|    return IGRAPH_SUCCESS;
 1270|   954k|}
igraph_vector_int_max:
 1327|  72.2k|BASE FUNCTION(igraph_vector, max)(const TYPE(igraph_vector) *v) {
 1328|  72.2k|    BASE max;
  ------------------
  |  |   66|  72.2k|    #define BASE igraph_int_t
  ------------------
 1329|  72.2k|    BASE *ptr;
  ------------------
  |  |   66|  72.2k|    #define BASE igraph_int_t
  ------------------
 1330|  72.2k|    IGRAPH_ASSERT(!FUNCTION(igraph_vector, empty)(v));
  ------------------
  |  |  924|  72.2k|    do { \
  |  |  925|  72.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
 1331|  72.2k|    max = *(v->stor_begin);
 1332|       |#if defined(BASE_IGRAPH_REAL)
 1333|       |    if (isnan(max)) { return max; }; /* Result is NaN */
 1334|       |#endif
 1335|  72.2k|    ptr = v->stor_begin + 1;
 1336|  2.08M|    while (ptr < v->end) {
  ------------------
  |  Branch (1336:12): [True: 2.01M, False: 72.2k]
  ------------------
 1337|  2.01M|        if ((*ptr) > max) {
  ------------------
  |  Branch (1337:13): [True: 164k, False: 1.84M]
  ------------------
 1338|   164k|            max = *ptr;
 1339|   164k|        }
 1340|       |#if defined(BASE_IGRAPH_REAL)
 1341|       |        else if (isnan(*ptr))
 1342|       |            return *ptr; /* Result is NaN */
 1343|       |#endif
 1344|  2.01M|        ptr++;
 1345|  2.01M|    }
 1346|  72.2k|    return max;
 1347|  72.2k|}
igraph_vector_int_init_range:
 1686|  2.95k|igraph_error_t FUNCTION(igraph_vector, init_range)(TYPE(igraph_vector) *v, BASE start, BASE end) {
 1687|  2.95k|    BASE *p;
  ------------------
  |  |   66|  2.95k|    #define BASE igraph_int_t
  ------------------
 1688|  2.95k|    IGRAPH_CHECK(FUNCTION(igraph_vector, init)(v, (end - start)));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
 1689|       |
 1690|   125k|    for (p = v->stor_begin; p < v->end; p++) {
  ------------------
  |  Branch (1690:29): [True: 122k, False: 2.95k]
  ------------------
 1691|   122k|        *p = start;
 1692|   122k|        start = start + ONE;
  ------------------
  |  |   72|   122k|    #define ONE 1
  ------------------
 1693|   122k|    }
 1694|       |
 1695|  2.95k|    return IGRAPH_SUCCESS;
 1696|  2.95k|}
igraph_vector_int_isininterval:
 1832|   144k|        BASE high) {
 1833|   144k|    BASE *ptr;
  ------------------
  |  |   66|   144k|    #define BASE igraph_int_t
  ------------------
 1834|   144k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   144k|    do { \
  |  |  925|   144k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   144k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 144k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   144k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 144k]
  |  |  ------------------
  ------------------
 1835|   144k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   144k|    do { \
  |  |  925|   144k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   144k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 144k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   144k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 144k]
  |  |  ------------------
  ------------------
 1836|  4.31M|    for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (1836:31): [True: 4.17M, False: 144k]
  ------------------
 1837|       |        /* Note that the following is not equivalent to *ptr < low || *ptr > high
 1838|       |         * when *ptr is NaN! */
 1839|  4.17M|        if (!(*ptr >= low && *ptr <= high)) {
  ------------------
  |  Branch (1839:15): [True: 4.17M, False: 0]
  |  Branch (1839:30): [True: 4.17M, False: 0]
  ------------------
 1840|      0|            return 0;
 1841|      0|        }
 1842|  4.17M|    }
 1843|   144k|    return 1;
 1844|   144k|}
igraph_vector_int_update:
 2524|  2.95k|                                    const TYPE(igraph_vector) *from) {
 2525|  2.95k|    igraph_int_t n = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  178|  2.95k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  2.95k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  2.95k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2526|  2.95k|    IGRAPH_CHECK(FUNCTION(igraph_vector, resize)(to, n));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
 2527|  2.95k|    memcpy(to->stor_begin, from->stor_begin, sizeof(BASE)*n);
 2528|  2.95k|    return IGRAPH_SUCCESS;
 2529|  2.95k|}
igraph_vector_int_shuffle:
 2668|  2.95k|void FUNCTION(igraph_vector, shuffle)(TYPE(igraph_vector) *v) {
 2669|  2.95k|    igraph_int_t n = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  178|  2.95k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  2.95k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  2.95k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2670|  2.95k|    igraph_int_t k;
 2671|  2.95k|    BASE dummy;
  ------------------
  |  |   66|  2.95k|    #define BASE igraph_int_t
  ------------------
 2672|       |
 2673|   122k|    while (n > 1) {
  ------------------
  |  Branch (2673:12): [True: 119k, False: 2.95k]
  ------------------
 2674|   119k|        k = RNG_INTEGER(0, n - 1);
  ------------------
  |  |  152|   119k|#define RNG_INTEGER(l,h) (igraph_rng_get_integer(igraph_rng_default(),(l),(h)))
  ------------------
 2675|   119k|        n--;
 2676|   119k|        dummy = VECTOR(*v)[n];
  ------------------
  |  |   60|   119k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2677|   119k|        VECTOR(*v)[n] = VECTOR(*v)[k];
  ------------------
  |  |   60|   119k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(*v)[n] = VECTOR(*v)[k];
  ------------------
  |  |   60|   119k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2678|   119k|        VECTOR(*v)[k] = dummy;
  ------------------
  |  |   60|   119k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2679|   119k|    }
 2680|  2.95k|}

igraph_i_attribute_init:
  617|  72.2k|) {
  618|  72.2k|    graph->attr = NULL;
  619|  72.2k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (619:9): [True: 0, False: 72.2k]
  ------------------
  620|      0|        IGRAPH_CHECK(igraph_i_attribute_table->init(graph, attr));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  621|      0|        if (graph->attr == NULL) {
  ------------------
  |  Branch (621:13): [True: 0, False: 0]
  ------------------
  622|      0|            IGRAPH_ERROR("Attribute handler did not initialize attr pointer.", IGRAPH_FAILURE);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  623|      0|        }
  624|      0|    }
  625|  72.2k|    return IGRAPH_SUCCESS;
  626|  72.2k|}
igraph_i_attribute_destroy:
  628|  72.2k|void igraph_i_attribute_destroy(igraph_t *graph) {
  629|  72.2k|    if (graph->attr && igraph_i_attribute_table) {
  ------------------
  |  Branch (629:9): [True: 0, False: 72.2k]
  |  Branch (629:24): [True: 0, False: 0]
  ------------------
  630|      0|        igraph_i_attribute_table->destroy(graph);
  631|      0|    }
  632|       |    graph->attr = NULL;
  633|  72.2k|}

igraph_i_property_cache_init:
   32|  72.2k|igraph_error_t igraph_i_property_cache_init(igraph_i_property_cache_t *cache) {
   33|  72.2k|    IGRAPH_STATIC_ASSERT(IGRAPH_PROP_I_SIZE <= 32);
  ------------------
  |  |   68|  72.2k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
   34|       |
   35|  72.2k|    memset(cache->value, 0, sizeof(cache->value));
   36|  72.2k|    cache->known = 0;
   37|  72.2k|    return IGRAPH_SUCCESS;
   38|  72.2k|}
igraph_i_property_cache_destroy:
   53|  72.2k|void igraph_i_property_cache_destroy(igraph_i_property_cache_t *cache) {
   54|  72.2k|    IGRAPH_UNUSED(cache);
  ------------------
  |  |   30|  72.2k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
   55|       |    /* Nothing to do */
   56|  72.2k|}
igraph_i_property_cache_has:
   84|  5.60k|igraph_bool_t igraph_i_property_cache_has(const igraph_t *graph, igraph_cached_property_t prop) {
   85|  5.60k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.60k|    do { \
  |  |  925|  5.60k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.60k]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.60k]
  |  |  ------------------
  ------------------
   86|  5.60k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (86:5): [True: 0, False: 5.60k]
  |  Branch (86:5): [True: 5.60k, False: 0]
  ------------------
   87|  5.60k|    return graph->cache->known & (1 << prop);
   88|  5.60k|}
igraph_i_property_cache_set_bool:
   97|  5.60k|void igraph_i_property_cache_set_bool(const igraph_t *graph, igraph_cached_property_t prop, igraph_bool_t value) {
   98|  5.60k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.60k|    do { \
  |  |  925|  5.60k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.60k]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.60k]
  |  |  ------------------
  ------------------
   99|  5.60k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (99:5): [True: 0, False: 5.60k]
  |  Branch (99:5): [True: 5.60k, False: 0]
  ------------------
  100|       |    /* Even though graph is const, updating the cache is not considered modification.
  101|       |     * Functions that merely compute graph properties, and thus leave the graph structure
  102|       |     * intact, will often update the cache. */
  103|  5.60k|    graph->cache->value[prop] = value;
  104|  5.60k|    graph->cache->known |= (1 << prop);
  105|  5.60k|}
igraph_i_property_cache_set_bool_checked:
  123|  5.60k|void igraph_i_property_cache_set_bool_checked(const igraph_t *graph, igraph_cached_property_t prop, igraph_bool_t value) {
  124|  5.60k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.60k|    do { \
  |  |  925|  5.60k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.60k]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.60k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.60k]
  |  |  ------------------
  ------------------
  125|  5.60k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (125:5): [True: 0, False: 5.60k]
  |  Branch (125:5): [True: 5.60k, False: 0]
  ------------------
  126|       |    /* Even though graph is const, updating the cache is not considered modification.
  127|       |     * Functions that merely compute graph properties, and thus leave the graph structure
  128|       |     * intact, will often update the cache. */
  129|  5.60k|    if (graph->cache->known & (1 << prop)) {
  ------------------
  |  Branch (129:9): [True: 0, False: 5.60k]
  ------------------
  130|      0|        IGRAPH_ASSERT(graph->cache->value[prop] == value);
  ------------------
  |  |  924|      0|    do { \
  |  |  925|      0|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  131|  5.60k|    } else {
  132|  5.60k|        igraph_i_property_cache_set_bool(graph, prop, value);
  133|  5.60k|    }
  134|  5.60k|}
igraph_i_property_cache_invalidate_conditionally:
  182|   150k|) {
  183|   150k|    uint32_t invalidate = ~keep_always;
  184|   150k|    uint32_t mask;
  185|   150k|    uint32_t maybe_keep;
  186|   150k|    igraph_bool_t cached_value;
  187|       |
  188|   150k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (188:5): [True: 0, False: 150k]
  |  Branch (188:5): [True: 150k, False: 0]
  ------------------
  189|       |
  190|       |    /* The bits of maybe_keep are set to 1 for those properties that are:
  191|       |     *
  192|       |     * - currently cached
  193|       |     * - should _probably_ be invalidated
  194|       |     * - _but_ the current cached value of the property may change the decision
  195|       |     */
  196|   150k|    maybe_keep = graph->cache->known & invalidate & (keep_when_false | keep_when_true);
  197|       |
  198|   150k|    if (maybe_keep) {
  ------------------
  |  Branch (198:9): [True: 0, False: 150k]
  ------------------
  199|      0|        for (igraph_cached_property_t prop = (igraph_cached_property_t ) 0; prop < IGRAPH_PROP_I_SIZE; ++prop) {
  ------------------
  |  Branch (199:77): [True: 0, False: 0]
  ------------------
  200|      0|            mask = 1 << prop;
  201|      0|            if (maybe_keep & mask) {
  ------------------
  |  Branch (201:17): [True: 0, False: 0]
  ------------------
  202|       |                /* if we get here, we know that the property is cached; we have
  203|       |                 * masked maybe_keep with graph->cache->known */
  204|      0|                cached_value = igraph_i_property_cache_get_bool(graph, prop);
  205|      0|                if (
  206|      0|                    ((keep_when_false & mask) && !cached_value) ||
  ------------------
  |  Branch (206:22): [True: 0, False: 0]
  |  Branch (206:50): [True: 0, False: 0]
  ------------------
  207|      0|                    ((keep_when_true & mask) && cached_value)
  ------------------
  |  Branch (207:22): [True: 0, False: 0]
  |  Branch (207:49): [True: 0, False: 0]
  ------------------
  208|      0|                ) {
  209|      0|                    invalidate &= ~mask;
  210|      0|                }
  211|      0|            }
  212|      0|        }
  213|      0|    }
  214|       |
  215|   150k|    graph->cache->known &= ~invalidate;
  216|   150k|}

igraph_es_all:
  921|  2.95k|                  igraph_edgeorder_type_t order) {
  922|  2.95k|    switch (order) {
  923|  2.95k|    case IGRAPH_EDGEORDER_ID:
  ------------------
  |  Branch (923:5): [True: 2.95k, False: 0]
  ------------------
  924|  2.95k|        es->type = IGRAPH_ES_ALL;
  925|  2.95k|        break;
  926|      0|    case IGRAPH_EDGEORDER_FROM:
  ------------------
  |  Branch (926:5): [True: 0, False: 2.95k]
  ------------------
  927|      0|        es->type = IGRAPH_ES_ALLFROM;
  928|      0|        break;
  929|      0|    case IGRAPH_EDGEORDER_TO:
  ------------------
  |  Branch (929:5): [True: 0, False: 2.95k]
  ------------------
  930|      0|        es->type = IGRAPH_ES_ALLTO;
  931|      0|        break;
  932|      0|    default:
  ------------------
  |  Branch (932:5): [True: 0, False: 2.95k]
  ------------------
  933|      0|        IGRAPH_ERROR("Invalid edge order, cannot create selector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  934|      0|        break;
  935|  2.95k|    }
  936|  2.95k|    return IGRAPH_SUCCESS;
  937|  2.95k|}
igraph_ess_all:
  953|  2.95k|igraph_es_t igraph_ess_all(igraph_edgeorder_type_t order) {
  954|  2.95k|    igraph_es_t es;
  955|  2.95k|    igraph_es_all(&es, order); /* cannot fail */
  956|  2.95k|    return es;
  957|  2.95k|}
igraph_eit_create:
 1922|  2.95k|igraph_error_t igraph_eit_create(const igraph_t *graph, igraph_es_t es, igraph_eit_t *eit) {
 1923|  2.95k|    switch (es.type) {
 1924|  2.95k|    case IGRAPH_ES_ALL:
  ------------------
  |  Branch (1924:5): [True: 2.95k, False: 0]
  ------------------
 1925|  2.95k|        eit->type = IGRAPH_EIT_RANGE;
 1926|  2.95k|        eit->pos = 0;
 1927|  2.95k|        eit->start = 0;
 1928|  2.95k|        eit->end = igraph_ecount(graph);
 1929|  2.95k|        break;
 1930|      0|    case IGRAPH_ES_ALLFROM:
  ------------------
  |  Branch (1930:5): [True: 0, False: 2.95k]
  ------------------
 1931|      0|        IGRAPH_CHECK(igraph_i_eit_create_allfromto(graph, eit, IGRAPH_OUT));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1932|      0|        break;
 1933|      0|    case IGRAPH_ES_ALLTO:
  ------------------
  |  Branch (1933:5): [True: 0, False: 2.95k]
  ------------------
 1934|      0|        IGRAPH_CHECK(igraph_i_eit_create_allfromto(graph, eit, IGRAPH_IN));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1935|      0|        break;
 1936|      0|    case IGRAPH_ES_INCIDENT:
  ------------------
  |  Branch (1936:5): [True: 0, False: 2.95k]
  ------------------
 1937|      0|        IGRAPH_CHECK(igraph_i_eit_create_incident(graph, es, eit));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1938|      0|        break;
 1939|      0|    case IGRAPH_ES_NONE:
  ------------------
  |  Branch (1939:5): [True: 0, False: 2.95k]
  ------------------
 1940|      0|        eit->type = IGRAPH_EIT_RANGE;
 1941|      0|        eit->pos = 0;
 1942|      0|        eit->start = 0;
 1943|      0|        eit->end = 0;
 1944|      0|        break;
 1945|      0|    case IGRAPH_ES_1:
  ------------------
  |  Branch (1945:5): [True: 0, False: 2.95k]
  ------------------
 1946|      0|        if (es.data.eid < 0 || es.data.eid >= igraph_ecount(graph)) {
  ------------------
  |  Branch (1946:13): [True: 0, False: 0]
  |  Branch (1946:32): [True: 0, False: 0]
  ------------------
 1947|      0|            IGRAPH_ERROR("Cannot create iterator, invalid edge ID.", IGRAPH_EINVEID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1948|      0|        }
 1949|      0|        eit->type = IGRAPH_EIT_RANGE;
 1950|      0|        eit->pos = es.data.eid;
 1951|      0|        eit->start = es.data.eid;
 1952|      0|        eit->end = es.data.eid + 1;
 1953|      0|        break;
 1954|      0|    case IGRAPH_ES_VECTOR:
  ------------------
  |  Branch (1954:5): [True: 0, False: 2.95k]
  ------------------
 1955|      0|    case IGRAPH_ES_VECTORPTR:
  ------------------
  |  Branch (1955:5): [True: 0, False: 2.95k]
  ------------------
 1956|      0|        eit->type = IGRAPH_EIT_VECTORPTR;
 1957|      0|        eit->pos = 0;
 1958|      0|        eit->start = 0;
 1959|      0|        eit->vec = es.data.vecptr;
 1960|      0|        eit->end = igraph_vector_int_size(eit->vec);
 1961|      0|        if (!igraph_vector_int_isininterval(eit->vec, 0, igraph_ecount(graph) - 1)) {
  ------------------
  |  Branch (1961:13): [True: 0, False: 0]
  ------------------
 1962|      0|            IGRAPH_ERROR("Cannot create iterator.", IGRAPH_EINVEID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1963|      0|        }
 1964|      0|        break;
 1965|      0|    case IGRAPH_ES_RANGE:
  ------------------
  |  Branch (1965:5): [True: 0, False: 2.95k]
  ------------------
 1966|      0|        {
 1967|      0|            igraph_int_t no_of_edges = igraph_ecount(graph);
 1968|      0|            if (es.data.range.start < 0 ||
  ------------------
  |  Branch (1968:17): [True: 0, False: 0]
  ------------------
 1969|      0|                es.data.range.start > no_of_edges ||
  ------------------
  |  Branch (1969:17): [True: 0, False: 0]
  ------------------
 1970|      0|                (no_of_edges > 0 && es.data.range.start == no_of_edges)) {
  ------------------
  |  Branch (1970:18): [True: 0, False: 0]
  |  Branch (1970:37): [True: 0, False: 0]
  ------------------
 1971|      0|                IGRAPH_ERROR("Cannot create range iterator, starting edge ID out of range.", IGRAPH_EINVEID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1972|      0|            }
 1973|      0|            if (es.data.range.end < 0 || es.data.range.end > no_of_edges) {
  ------------------
  |  Branch (1973:17): [True: 0, False: 0]
  |  Branch (1973:42): [True: 0, False: 0]
  ------------------
 1974|      0|                IGRAPH_ERROR("Cannot create range iterator, ending edge ID out of range.", IGRAPH_EINVEID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1975|      0|            }
 1976|      0|        }
 1977|      0|        eit->type = IGRAPH_EIT_RANGE;
 1978|      0|        eit->pos = es.data.range.start;
 1979|      0|        eit->start = es.data.range.start;
 1980|      0|        eit->end = es.data.range.end;
 1981|      0|        break;
 1982|      0|    case IGRAPH_ES_PAIRS:
  ------------------
  |  Branch (1982:5): [True: 0, False: 2.95k]
  ------------------
 1983|      0|        IGRAPH_CHECK(igraph_i_eit_pairs(graph, es, eit));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1984|      0|        break;
 1985|      0|    case IGRAPH_ES_PATH:
  ------------------
  |  Branch (1985:5): [True: 0, False: 2.95k]
  ------------------
 1986|      0|        IGRAPH_CHECK(igraph_i_eit_path(graph, es, eit));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1987|      0|        break;
 1988|      0|    case IGRAPH_ES_ALL_BETWEEN:
  ------------------
  |  Branch (1988:5): [True: 0, False: 2.95k]
  ------------------
 1989|      0|        IGRAPH_CHECK(igraph_i_eit_all_between(graph, es, eit));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1990|      0|        break;
 1991|      0|    default:
  ------------------
  |  Branch (1991:5): [True: 0, False: 2.95k]
  ------------------
 1992|      0|        IGRAPH_ERROR("Cannot create iterator, invalid selector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1993|      0|        break;
 1994|  2.95k|    }
 1995|  2.95k|    return IGRAPH_SUCCESS;
 1996|  2.95k|}
igraph_eit_destroy:
 2008|  2.95k|void igraph_eit_destroy(const igraph_eit_t *eit) {
 2009|  2.95k|    switch (eit->type) {
 2010|  2.95k|    case IGRAPH_EIT_RANGE:
  ------------------
  |  Branch (2010:5): [True: 2.95k, False: 0]
  ------------------
 2011|  2.95k|    case IGRAPH_EIT_VECTORPTR:
  ------------------
  |  Branch (2011:5): [True: 0, False: 2.95k]
  ------------------
 2012|  2.95k|        break;
 2013|      0|    case IGRAPH_EIT_VECTOR:
  ------------------
  |  Branch (2013:5): [True: 0, False: 2.95k]
  ------------------
 2014|      0|        igraph_vector_int_destroy((igraph_vector_int_t*)eit->vec);
 2015|      0|        igraph_free((igraph_vector_int_t*)eit->vec);
 2016|      0|        break;
 2017|      0|    default:
  ------------------
  |  Branch (2017:5): [True: 0, False: 2.95k]
  ------------------
 2018|       |        /*     IGRAPH_ERROR("Cannot destroy iterator, unknown type", IGRAPH_EINVAL); */
 2019|      0|        break;
 2020|  2.95k|    }
 2021|  2.95k|}

igraph_empty:
   64|  72.2k|igraph_error_t igraph_empty(igraph_t *graph, igraph_int_t n, igraph_bool_t directed) {
   65|  72.2k|    return igraph_empty_attrs(graph, n, directed, 0);
   66|  72.2k|}
igraph_edges:
  173|  2.95k|) {
  174|  2.95k|    igraph_eit_t eit;
  175|  2.95k|    igraph_int_t n, ptr = 0, ptr2;
  176|       |
  177|  2.95k|    IGRAPH_CHECK(igraph_eit_create(graph, eids, &eit));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  178|  2.95k|    IGRAPH_FINALLY(igraph_eit_destroy, &eit);
  ------------------
  |  |  603|  2.95k|    do { \
  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  ------------------
  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  179|  2.95k|    n = IGRAPH_EIT_SIZE(eit);
  ------------------
  |  |  382|  2.95k|#define IGRAPH_EIT_SIZE(eit)  ((eit).end - (eit).start)
  ------------------
  180|  2.95k|    IGRAPH_CHECK(igraph_vector_int_resize(edges, n * 2));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  181|       |
  182|  2.95k|    if (bycol) {
  ------------------
  |  Branch (182:9): [True: 2.95k, False: 0]
  ------------------
  183|  2.95k|        ptr2 = n;
  184|  2.95k|        if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (184:13): [True: 1.60k, False: 1.35k]
  ------------------
  185|  29.4k|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|  29.4k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|  27.8k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (185:20): [True: 27.8k, False: 1.60k]
  ------------------
  186|  27.8k|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|  27.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 27.8k, False: 0]
  |  |  ------------------
  |  |  406|  27.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  187|  27.8k|                VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|  27.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|  27.8k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  27.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  188|  27.8k|                VECTOR(*edges)[ptr2++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|  27.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr2++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|  27.8k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  27.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  189|  27.8k|            }
  190|  1.60k|        } else {
  191|  23.7k|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|  23.7k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|  22.4k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (191:20): [True: 22.4k, False: 1.35k]
  ------------------
  192|  22.4k|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|  22.4k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 22.4k, False: 0]
  |  |  ------------------
  |  |  406|  22.4k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  193|  22.4k|                VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|  22.4k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  194|  22.4k|                VECTOR(*edges)[ptr2++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr2++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|  22.4k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  195|  22.4k|            }
  196|  1.35k|        }
  197|  2.95k|    } else {
  198|      0|        if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (198:13): [True: 0, False: 0]
  ------------------
  199|      0|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|      0|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|      0|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (199:20): [True: 0, False: 0]
  ------------------
  200|      0|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|      0|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 0]
  |  |  ------------------
  |  |  406|      0|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  201|      0|                VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|      0|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  202|      0|                VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|      0|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  203|      0|            }
  204|      0|        } else {
  205|      0|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|      0|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|      0|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (205:20): [True: 0, False: 0]
  ------------------
  206|      0|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|      0|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 0]
  |  |  ------------------
  |  |  406|      0|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  207|      0|                VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|      0|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  208|      0|                VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|      0|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  209|      0|            }
  210|      0|        }
  211|      0|    }
  212|       |
  213|  2.95k|    igraph_eit_destroy(&eit);
  214|  2.95k|    IGRAPH_FINALLY_CLEAN(1);
  215|       |
  216|  2.95k|    return IGRAPH_SUCCESS;
  217|  2.95k|}

igraph_empty_attrs:
  102|  72.2k|) {
  103|       |
  104|  72.2k|    if (n < 0) {
  ------------------
  |  Branch (104:9): [True: 0, False: 72.2k]
  ------------------
  105|      0|        IGRAPH_ERROR("Number of vertices must not be negative.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  106|      0|    }
  107|       |
  108|  72.2k|    memset(graph, 0, sizeof(igraph_t));
  109|       |
  110|  72.2k|    graph->n = 0;
  111|  72.2k|    graph->directed = directed;
  112|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->from, 0);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  113|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->to, 0);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  114|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->oi, 0);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  115|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->ii, 0);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  116|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->os, 1);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  117|  72.2k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->is, 1);
  ------------------
  |  |  119|  72.2k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  72.2k|    do { \
  |  |  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  72.2k|    do { \
  |  |  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  72.2k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  118|       |
  119|       |    /* init cache */
  120|  72.2k|    graph->cache = IGRAPH_CALLOC(1, igraph_i_property_cache_t);
  ------------------
  |  |   33|  72.2k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   144k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 0, Folded]
  |  |  |  |  |  Branch (31:24): [True: 0, Folded]
  |  |  |  |  |  Branch (31:66): [True: 72.2k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  121|  72.2k|    IGRAPH_CHECK_OOM(graph->cache, "Cannot create graph.");
  ------------------
  |  |  709|  72.2k|    do { \
  |  |  710|  72.2k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  122|  72.2k|    IGRAPH_FINALLY(igraph_free, graph->cache);
  ------------------
  |  |  603|  72.2k|    do { \
  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  ------------------
  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  123|  72.2k|    IGRAPH_CHECK(igraph_i_property_cache_init(graph->cache));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  124|  72.2k|    IGRAPH_FINALLY(igraph_i_property_cache_destroy, graph->cache);
  ------------------
  |  |  603|  72.2k|    do { \
  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  ------------------
  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  125|       |
  126|  72.2k|    VECTOR(graph->os)[0] = 0;
  ------------------
  |  |   60|  72.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  127|  72.2k|    VECTOR(graph->is)[0] = 0;
  ------------------
  |  |   60|  72.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  128|       |
  129|       |    /* init attributes */
  130|  72.2k|    IGRAPH_CHECK(igraph_i_attribute_init(graph, attr));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  131|       |
  132|       |    /* add the vertices */
  133|  72.2k|    IGRAPH_CHECK(igraph_add_vertices(graph, n, 0));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  134|       |
  135|  72.2k|    IGRAPH_FINALLY_CLEAN(8);
  136|  72.2k|    return IGRAPH_SUCCESS;
  137|  72.2k|}
igraph_destroy:
  155|  72.2k|void igraph_destroy(igraph_t *graph) {
  156|  72.2k|    igraph_i_attribute_destroy(graph);
  157|       |
  158|  72.2k|    igraph_i_property_cache_destroy(graph->cache);
  159|  72.2k|    IGRAPH_FREE(graph->cache);
  ------------------
  |  |   36|  72.2k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  160|       |
  161|  72.2k|    igraph_vector_int_destroy(&graph->from);
  162|  72.2k|    igraph_vector_int_destroy(&graph->to);
  163|  72.2k|    igraph_vector_int_destroy(&graph->oi);
  164|  72.2k|    igraph_vector_int_destroy(&graph->ii);
  165|  72.2k|    igraph_vector_int_destroy(&graph->os);
  166|  72.2k|    igraph_vector_int_destroy(&graph->is);
  167|  72.2k|}
igraph_add_edges:
  257|  72.2k|) {
  258|  72.2k|    igraph_int_t no_of_edges = igraph_vector_int_size(&graph->from);
  259|  72.2k|    igraph_int_t edges_to_add = igraph_vector_int_size(edges) / 2;
  260|  72.2k|    igraph_int_t new_no_of_edges;
  261|  72.2k|    igraph_int_t i = 0;
  262|  72.2k|    igraph_vector_int_t newoi, newii;
  263|  72.2k|    igraph_bool_t directed = igraph_is_directed(graph);
  264|       |
  265|  72.2k|    if (igraph_vector_int_size(edges) % 2 != 0) {
  ------------------
  |  Branch (265:9): [True: 0, False: 72.2k]
  ------------------
  266|      0|        IGRAPH_ERROR("Invalid (odd) length of edges vector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  267|      0|    }
  268|  72.2k|    if (!igraph_vector_int_isininterval(edges, 0, igraph_vcount(graph) - 1)) {
  ------------------
  |  Branch (268:9): [True: 0, False: 72.2k]
  ------------------
  269|      0|        IGRAPH_ERROR("Out-of-range vertex IDs when adding edges.", IGRAPH_EINVVID);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  270|      0|    }
  271|       |
  272|       |    /* from & to */
  273|  72.2k|    IGRAPH_SAFE_ADD(no_of_edges, edges_to_add, &new_no_of_edges);
  ------------------
  |  |   47|  72.2k|    do { \
  |  |   48|  72.2k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  72.2k|        igraph_int_t _safe_sum; \
  |  |   50|  72.2k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 72.2k]
  |  |  ------------------
  |  |   51|      0|            IGRAPH_ERRORF("Overflow when adding %" IGRAPH_PRId " and %" IGRAPH_PRId ".", IGRAPH_EOVERFLOW, _safe_a, _safe_b); \
  |  |  ------------------
  |  |  |  |  464|      0|    do { \
  |  |  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  |  |  467|      0|        return igraph_errno; \
  |  |  |  |  468|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|        } \
  |  |   53|  72.2k|        *(res) = _safe_sum; \
  |  |   54|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  274|  72.2k|    if (new_no_of_edges > IGRAPH_ECOUNT_MAX) {
  ------------------
  |  |  118|  72.2k|#define IGRAPH_ECOUNT_MAX (IGRAPH_INTEGER_MAX/2)
  |  |  ------------------
  |  |  |  |   72|  72.2k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (274:9): [True: 0, False: 72.2k]
  ------------------
  275|      0|        IGRAPH_ERRORF("Maximum edge count (%" IGRAPH_PRId ") exceeded.", IGRAPH_ERANGE,
  ------------------
  |  |  464|      0|    do { \
  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      0|        return igraph_errno; \
  |  |  468|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  276|      0|                      IGRAPH_ECOUNT_MAX);
  277|      0|    }
  278|  72.2k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->from, no_of_edges + edges_to_add));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  279|  72.2k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->to, no_of_edges + edges_to_add));
  ------------------
  |  |  656|  72.2k|    do { \
  |  |  657|  72.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  72.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  72.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 72.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  280|       |
  281|  1.11M|    while (i < edges_to_add * 2) {
  ------------------
  |  Branch (281:12): [True: 1.04M, False: 72.2k]
  ------------------
  282|  1.04M|        if (directed || VECTOR(*edges)[i] > VECTOR(*edges)[i + 1]) {
  ------------------
  |  |   60|   516k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (directed || VECTOR(*edges)[i] > VECTOR(*edges)[i + 1]) {
  ------------------
  |  |   60|   516k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (282:13): [True: 526k, False: 516k]
  |  Branch (282:25): [True: 456k, False: 60.4k]
  ------------------
  283|   982k|            igraph_vector_int_push_back(&graph->from, VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|   982k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  284|   982k|            igraph_vector_int_push_back(&graph->to,   VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|   982k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  285|   982k|        } else {
  286|  60.4k|            igraph_vector_int_push_back(&graph->to,   VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|  60.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  287|  60.4k|            igraph_vector_int_push_back(&graph->from, VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|  60.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  288|  60.4k|        }
  289|  1.04M|    }
  290|       |
  291|       |    /* If an error occurs while the edges are being added, we make the necessary fixup
  292|       |     * to ensure that the graph is still in a consistent state when this function returns.
  293|       |     * The graph may already be on the finally stack when calling this function. We use
  294|       |     * a separate finally stack level to avoid its destructor from being called on error,
  295|       |     * so that the fixup can succeed.
  296|       |     */
  297|       |
  298|  72.2k|#define CHECK_ERR(expr) \
  299|  72.2k|    do { \
  300|  72.2k|        igraph_error_t err = (expr); \
  301|  72.2k|        if (err != IGRAPH_SUCCESS) { \
  302|  72.2k|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  303|  72.2k|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  304|  72.2k|            IGRAPH_FINALLY_EXIT(); \
  305|  72.2k|            IGRAPH_ERROR("Cannot add edges.", err); \
  306|  72.2k|        } \
  307|  72.2k|    } while (0)
  308|       |
  309|       |    /* oi & ii */
  310|  72.2k|    IGRAPH_FINALLY_ENTER();
  311|  72.2k|    {
  312|  72.2k|        CHECK_ERR(igraph_vector_int_init(&newoi, no_of_edges));
  ------------------
  |  |  299|  72.2k|    do { \
  |  |  300|  72.2k|        igraph_error_t err = (expr); \
  |  |  301|  72.2k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (301:13): [True: 0, False: 72.2k]
  |  |  ------------------
  |  |  302|      0|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  |  |  303|      0|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  |  |  304|      0|            IGRAPH_FINALLY_EXIT(); \
  |  |  305|      0|            IGRAPH_ERROR("Cannot add edges.", err); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  306|      0|        } \
  |  |  307|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (307:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  313|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, &newoi);
  ------------------
  |  |  603|  72.2k|    do { \
  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  ------------------
  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  314|  72.2k|        CHECK_ERR(igraph_vector_int_init(&newii, no_of_edges));
  ------------------
  |  |  299|  72.2k|    do { \
  |  |  300|  72.2k|        igraph_error_t err = (expr); \
  |  |  301|  72.2k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (301:13): [True: 0, False: 72.2k]
  |  |  ------------------
  |  |  302|      0|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  |  |  303|      0|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  |  |  304|      0|            IGRAPH_FINALLY_EXIT(); \
  |  |  305|      0|            IGRAPH_ERROR("Cannot add edges.", err); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  306|      0|        } \
  |  |  307|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (307:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  315|  72.2k|        IGRAPH_FINALLY(igraph_vector_int_destroy, &newii);
  ------------------
  |  |  603|  72.2k|    do { \
  |  |  604|  72.2k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  72.2k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  72.2k|         * incorrect destructor function with the pointer */ \
  |  |  607|  72.2k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 72.2k]
  |  |  ------------------
  |  |  608|  72.2k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  316|  72.2k|        CHECK_ERR(igraph_vector_int_pair_order(&graph->from, &graph->to, &newoi, graph->n));
  ------------------
  |  |  299|  72.2k|    do { \
  |  |  300|  72.2k|        igraph_error_t err = (expr); \
  |  |  301|  72.2k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (301:13): [True: 0, False: 72.2k]
  |  |  ------------------
  |  |  302|      0|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  |  |  303|      0|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  |  |  304|      0|            IGRAPH_FINALLY_EXIT(); \
  |  |  305|      0|            IGRAPH_ERROR("Cannot add edges.", err); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  306|      0|        } \
  |  |  307|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (307:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  317|  72.2k|        CHECK_ERR(igraph_vector_int_pair_order(&graph->to, &graph->from, &newii, graph->n));
  ------------------
  |  |  299|  72.2k|    do { \
  |  |  300|  72.2k|        igraph_error_t err = (expr); \
  |  |  301|  72.2k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (301:13): [True: 0, False: 72.2k]
  |  |  ------------------
  |  |  302|      0|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  |  |  303|      0|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  |  |  304|      0|            IGRAPH_FINALLY_EXIT(); \
  |  |  305|      0|            IGRAPH_ERROR("Cannot add edges.", err); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  306|      0|        } \
  |  |  307|  72.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (307:14): [Folded, False: 72.2k]
  |  |  ------------------
  ------------------
  318|       |
  319|       |        /* Attributes */
  320|  72.2k|        if (graph->attr) {
  ------------------
  |  Branch (320:13): [True: 0, False: 72.2k]
  ------------------
  321|       |            /* TODO: Does this keep the attribute table in a consistent state upon failure? */
  322|      0|            CHECK_ERR(igraph_i_attribute_add_edges(graph, edges, attr));
  ------------------
  |  |  299|      0|    do { \
  |  |  300|      0|        igraph_error_t err = (expr); \
  |  |  301|      0|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (301:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  302|      0|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  |  |  303|      0|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  |  |  304|      0|            IGRAPH_FINALLY_EXIT(); \
  |  |  305|      0|            IGRAPH_ERROR("Cannot add edges.", err); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  306|      0|        } \
  |  |  307|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (307:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  323|      0|        }
  324|       |
  325|       |        /* os & is, its length does not change, error safe */
  326|  72.2k|        igraph_i_create_start_vectors(&graph->os, &graph->from, &newoi, graph->n);
  327|  72.2k|        igraph_i_create_start_vectors(&graph->is, &graph->to, &newii, graph->n);
  328|       |
  329|       |        /* everything went fine */
  330|  72.2k|        igraph_vector_int_destroy(&graph->oi);
  331|  72.2k|        igraph_vector_int_destroy(&graph->ii);
  332|  72.2k|        IGRAPH_FINALLY_CLEAN(2);
  333|       |
  334|  72.2k|        graph->oi = newoi;
  335|  72.2k|        graph->ii = newii;
  336|  72.2k|    }
  337|      0|    IGRAPH_FINALLY_EXIT();
  338|       |
  339|  72.2k|#undef CHECK_ERR
  340|       |
  341|       |    /* modification successful, clear the cached properties of the graph.
  342|       |     *
  343|       |     * Adding one or more edges cannot make a strongly or weakly connected
  344|       |     * graph disconnected, so we keep those flags if they are cached as true.
  345|       |     *
  346|       |     * Adding one or more edges may turn a DAG into a non-DAG or a forest into
  347|       |     * a non-forest, so we can keep those flags only if they are cached as
  348|       |     * false.
  349|       |     *
  350|       |     * Also, adding one or more edges does not change HAS_LOOP, HAS_MULTI and
  351|       |     * HAS_MUTUAL if they were already true.
  352|       |     */
  353|  72.2k|    igraph_i_property_cache_invalidate_conditionally(
  354|  72.2k|        graph,
  355|  72.2k|        /* keep_always = */ 0,
  356|       |        /* keep_when_false = */
  357|  72.2k|        (1 << IGRAPH_PROP_IS_DAG) | (1 << IGRAPH_PROP_IS_FOREST),
  358|       |        /* keep_when_true = */
  359|  72.2k|        (1 << IGRAPH_PROP_IS_WEAKLY_CONNECTED) |
  360|  72.2k|        (1 << IGRAPH_PROP_IS_STRONGLY_CONNECTED) |
  361|  72.2k|        (1 << IGRAPH_PROP_HAS_LOOP) |
  362|  72.2k|        (1 << IGRAPH_PROP_HAS_MULTI) |
  363|  72.2k|        (1 << IGRAPH_PROP_HAS_MUTUAL)
  364|  72.2k|    );
  365|       |
  366|  72.2k|    return IGRAPH_SUCCESS;
  367|  72.2k|}
igraph_add_vertices:
  391|  77.8k|) {
  392|  77.8k|    igraph_int_t ec = igraph_ecount(graph);
  393|  77.8k|    igraph_int_t vc = igraph_vcount(graph);
  394|  77.8k|    igraph_int_t new_vc;
  395|  77.8k|    igraph_int_t i;
  396|       |
  397|  77.8k|    if (nv < 0) {
  ------------------
  |  Branch (397:9): [True: 0, False: 77.8k]
  ------------------
  398|      0|        IGRAPH_ERROR("Cannot add negative number of vertices.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  399|      0|    }
  400|       |
  401|  77.8k|    IGRAPH_SAFE_ADD(graph->n, nv, &new_vc);
  ------------------
  |  |   47|  77.8k|    do { \
  |  |   48|  77.8k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  77.8k|        igraph_int_t _safe_sum; \
  |  |   50|  77.8k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 77.8k]
  |  |  ------------------
  |  |   51|      0|            IGRAPH_ERRORF("Overflow when adding %" IGRAPH_PRId " and %" IGRAPH_PRId ".", IGRAPH_EOVERFLOW, _safe_a, _safe_b); \
  |  |  ------------------
  |  |  |  |  464|      0|    do { \
  |  |  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  |  |  467|      0|        return igraph_errno; \
  |  |  |  |  468|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|        } \
  |  |   53|  77.8k|        *(res) = _safe_sum; \
  |  |   54|  77.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 77.8k]
  |  |  ------------------
  ------------------
  402|  77.8k|    if (new_vc > IGRAPH_VCOUNT_MAX) {
  ------------------
  |  |  100|  77.8k|#define IGRAPH_VCOUNT_MAX (IGRAPH_INTEGER_MAX-1)
  |  |  ------------------
  |  |  |  |   72|  77.8k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (402:9): [True: 0, False: 77.8k]
  ------------------
  403|      0|        IGRAPH_ERRORF("Maximum vertex count (%" IGRAPH_PRId ") exceeded.", IGRAPH_ERANGE,
  ------------------
  |  |  464|      0|    do { \
  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      0|        return igraph_errno; \
  |  |  468|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  404|      0|                      IGRAPH_VCOUNT_MAX);
  405|      0|    }
  406|  77.8k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->os, new_vc + 1));
  ------------------
  |  |  656|  77.8k|    do { \
  |  |  657|  77.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  77.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  77.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 77.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  77.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 77.8k]
  |  |  ------------------
  ------------------
  407|  77.8k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->is, new_vc + 1));
  ------------------
  |  |  656|  77.8k|    do { \
  |  |  657|  77.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  77.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  77.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 77.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  77.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 77.8k]
  |  |  ------------------
  ------------------
  408|       |
  409|  77.8k|    igraph_vector_int_resize(&graph->os, new_vc + 1); /* reserved */
  410|  77.8k|    igraph_vector_int_resize(&graph->is, new_vc + 1); /* reserved */
  411|  3.80M|    for (i = graph->n + 1; i < new_vc + 1; i++) {
  ------------------
  |  Branch (411:28): [True: 3.72M, False: 77.8k]
  ------------------
  412|  3.72M|        VECTOR(graph->os)[i] = ec;
  ------------------
  |  |   60|  3.72M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  413|  3.72M|        VECTOR(graph->is)[i] = ec;
  ------------------
  |  |   60|  3.72M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  414|  3.72M|    }
  415|       |
  416|  77.8k|    graph->n += nv;
  417|       |
  418|       |    /* Add attributes if necessary. This section is protected with
  419|       |     * FINALLY_ENTER/EXIT so that the graph would not be accidentally
  420|       |     * free upon error until it could be restored to a consistent state. */
  421|       |
  422|  77.8k|    if (graph->attr) {
  ------------------
  |  Branch (422:9): [True: 0, False: 77.8k]
  ------------------
  423|      0|        igraph_error_t err;
  424|      0|        IGRAPH_FINALLY_ENTER();
  425|      0|        err = igraph_i_attribute_add_vertices(graph, nv, attr);
  426|      0|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (426:13): [True: 0, False: 0]
  ------------------
  427|       |            /* Restore original vertex count on failure */
  428|      0|            graph->n = vc;
  429|      0|            igraph_vector_int_resize(&graph->os, vc + 1); /* shrinks */
  430|      0|            igraph_vector_int_resize(&graph->is, vc + 1); /* shrinks */
  431|      0|        }
  432|      0|        IGRAPH_FINALLY_EXIT();
  433|      0|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (433:13): [True: 0, False: 0]
  ------------------
  434|      0|            IGRAPH_ERROR("Cannot add vertices.", err);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  435|      0|        }
  436|      0|    }
  437|       |
  438|       |    /* modification successful, clear the cached properties of the graph.
  439|       |     *
  440|       |     * Adding one or more nodes does not change the following cached properties:
  441|       |     *
  442|       |     * - IGRAPH_PROP_HAS_LOOP
  443|       |     * - IGRAPH_PROP_HAS_MULTI
  444|       |     * - IGRAPH_PROP_HAS_MUTUAL
  445|       |     * - IGRAPH_PROP_IS_DAG (adding a node does not create/destroy cycles)
  446|       |     * - IGRAPH_PROP_IS_FOREST (same)
  447|       |     *
  448|       |     * Adding one or more nodes without any edges incident on them is sure to
  449|       |     * make the graph disconnected (weakly or strongly), so we can keep the
  450|       |     * connectivity-related properties if they are currently cached as false.
  451|       |     * (Actually, even if they weren't cached as false, we could still set them
  452|       |     * to false, but we don't have that functionality yet). The only exception
  453|       |     * is when the graph had zero vertices and gained only one vertex, because
  454|       |     * it then becomes connected. That's why we have the condition below in the
  455|       |     * keep_when_false section.
  456|       |     */
  457|  77.8k|    igraph_i_property_cache_invalidate_conditionally(
  458|  77.8k|        graph,
  459|       |        /* keep_always = */
  460|  77.8k|        (1 << IGRAPH_PROP_HAS_LOOP) |
  461|  77.8k|        (1 << IGRAPH_PROP_HAS_MULTI) |
  462|  77.8k|        (1 << IGRAPH_PROP_HAS_MUTUAL) |
  463|  77.8k|        (1 << IGRAPH_PROP_IS_DAG) |
  464|  77.8k|        (1 << IGRAPH_PROP_IS_FOREST),
  465|       |        /* keep_when_false = */
  466|  77.8k|        igraph_vcount(graph) >= 2 ? (
  ------------------
  |  Branch (466:9): [True: 72.1k, False: 5.68k]
  ------------------
  467|  72.1k|            (1 << IGRAPH_PROP_IS_STRONGLY_CONNECTED) |
  468|  72.1k|            (1 << IGRAPH_PROP_IS_WEAKLY_CONNECTED)
  469|  72.1k|        ) : 0,
  470|       |        /* keep_when_true = */
  471|  77.8k|        0
  472|  77.8k|    );
  473|       |
  474|  77.8k|    return IGRAPH_SUCCESS;
  475|  77.8k|}
igraph_vcount:
  829|   730k|igraph_int_t igraph_vcount(const igraph_t *graph) {
  830|   730k|    return graph->n;
  831|   730k|}
igraph_ecount:
  843|   294k|igraph_int_t igraph_ecount(const igraph_t *graph) {
  844|   294k|    return igraph_vector_int_size(&graph->from);
  845|   294k|}
igraph_neighbors:
  894|   208k|) {
  895|       |
  896|   208k|#define DEDUPLICATE_IF_NEEDED(vertex, n)                                          \
  897|   208k|    if (should_filter_duplicates) {                                               \
  898|   208k|        if (vertex == pnode) {                                                    \
  899|       |            /* This is a loop edge */                                             \
  900|   208k|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  901|       |                /* Filtering loop edges unconditionally */                        \
  902|   208k|                length -= n;                                                      \
  903|   208k|                continue;                                                         \
  904|   208k|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  905|       |                /* Filtering every second endpoint of loop edges */               \
  906|   208k|                length -= n;                                                      \
  907|   208k|                last_added = -1;                                                  \
  908|   208k|                seen_loop = true;                                                 \
  909|   208k|                continue;                                                         \
  910|   208k|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  911|       |                /* Filtering multi-loop edges */                                  \
  912|   208k|                length -= n;                                                      \
  913|   208k|                continue;                                                         \
  914|   208k|            } else {                                                              \
  915|   208k|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  916|   208k|                last_added = vertex;                                              \
  917|   208k|            }                                                                     \
  918|   208k|        } else {                                                                  \
  919|       |            /* Not a loop edge */                                                 \
  920|   208k|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  921|       |                /* Filtering multi-edges */                                       \
  922|   208k|                length -= n;                                                      \
  923|   208k|                continue;                                                         \
  924|   208k|            } else {                                                              \
  925|   208k|                last_added = vertex;                                              \
  926|   208k|            }                                                                     \
  927|   208k|        }                                                                         \
  928|   208k|    }
  929|       |
  930|   208k|    igraph_int_t length = 0, idx = 0;
  931|   208k|    igraph_int_t i, j;
  932|       |
  933|   208k|    igraph_int_t node = pnode;
  934|   208k|    igraph_int_t last_added = -1;
  935|   208k|    igraph_bool_t should_filter_duplicates;
  936|       |
  937|       |    /* seen_loop stores whether we have already seen at least one full loop
  938|       |     * edge while iterating over the neighbor lists. This is needed to handle
  939|       |     * multi-loop edges properly. Since internally we always store loop edges
  940|       |     * twice, this flag should become true only if we processed both endpoints
  941|       |     * for a loop edge */
  942|   208k|    igraph_bool_t seen_loop = false;
  943|       |
  944|       |    /* normalize Boolean value to enable == comparisons below and in DEDUPLICATE_IF_NEEDED */
  945|   208k|    multiple = !!multiple;
  946|       |
  947|   208k|    if (node < 0 || node > igraph_vcount(graph) - 1) {
  ------------------
  |  Branch (947:9): [True: 0, False: 208k]
  |  Branch (947:21): [True: 0, False: 208k]
  ------------------
  948|      0|        IGRAPH_ERRORF("Vertex %" IGRAPH_PRId " is not in the graph.", IGRAPH_EINVVID, node);
  ------------------
  |  |  464|      0|    do { \
  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      0|        return igraph_errno; \
  |  |  468|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  949|      0|    }
  950|   208k|    if (mode != IGRAPH_OUT && mode != IGRAPH_IN && mode != IGRAPH_ALL) {
  ------------------
  |  Branch (950:9): [True: 0, False: 208k]
  |  Branch (950:31): [True: 0, False: 0]
  |  Branch (950:52): [True: 0, False: 0]
  ------------------
  951|      0|        IGRAPH_ERROR("Mode should be either IGRAPH_OUT, IGRAPH_IN or IGRAPH_ALL.", IGRAPH_EINVMODE);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  952|      0|    }
  953|       |
  954|   208k|    if (!igraph_is_directed(graph)) {
  ------------------
  |  Branch (954:9): [True: 98.0k, False: 110k]
  ------------------
  955|  98.0k|        mode = IGRAPH_ALL;
  956|  98.0k|    }
  957|       |
  958|   208k|    if (mode != IGRAPH_ALL && loops == IGRAPH_LOOPS_TWICE) {
  ------------------
  |  Branch (958:9): [True: 110k, False: 98.0k]
  |  Branch (958:31): [True: 110k, False: 0]
  ------------------
  959|       |        /*
  960|       |        IGRAPH_ERROR("For a directed graph (with directions not ignored), "
  961|       |                     "IGRAPH_LOOPS_TWICE does not make sense.", IGRAPH_EINVAL);
  962|       |        */
  963|   110k|        loops = IGRAPH_LOOPS_ONCE;
  964|   110k|    }
  965|       |
  966|       |    /* Calculate needed space first & allocate it */
  967|       |    /* Note that 'mode' is treated as a bit field here; it's okay because
  968|       |     * IGRAPH_ALL = IGRAPH_IN | IGRAPH_OUT, bit-wise */
  969|   208k|    if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (969:9): [True: 208k, False: 0]
  ------------------
  970|   208k|        length += (VECTOR(graph->os)[node + 1] - VECTOR(graph->os)[node]);
  ------------------
  |  |   60|   208k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      length += (VECTOR(graph->os)[node + 1] - VECTOR(graph->os)[node]);
  ------------------
  |  |   60|   208k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  971|   208k|    }
  972|   208k|    if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (972:9): [True: 98.0k, False: 110k]
  ------------------
  973|  98.0k|        length += (VECTOR(graph->is)[node + 1] - VECTOR(graph->is)[node]);
  ------------------
  |  |   60|  98.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      length += (VECTOR(graph->is)[node + 1] - VECTOR(graph->is)[node]);
  ------------------
  |  |   60|  98.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  974|  98.0k|    }
  975|       |
  976|   208k|    IGRAPH_CHECK(igraph_vector_int_resize(neis, length));
  ------------------
  |  |  656|   208k|    do { \
  |  |  657|   208k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   208k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   208k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 208k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   208k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 208k]
  |  |  ------------------
  ------------------
  977|       |
  978|       |    /* We are dealing with two sorted lists; one for the successors and one
  979|       |     * for the predecessors. If we have requested only one of them, we have
  980|       |     * an easy job. If we have requested both, we need to merge the two lists
  981|       |     * to ensure that the output is sorted by the vertex IDs of the "other"
  982|       |     * endpoint of the affected edges. We don't need to merge if the graph
  983|       |     * is undirected, because in that case the data structure guarantees that
  984|       |     * the "out-edges" contain only (u, v) pairs where u <= v and the
  985|       |     * "in-edges" contains the rest, so the result is sorted even without
  986|       |     * merging. */
  987|   208k|    if (!igraph_is_directed(graph) || mode != IGRAPH_ALL) {
  ------------------
  |  Branch (987:9): [True: 98.0k, False: 110k]
  |  Branch (987:39): [True: 110k, False: 0]
  ------------------
  988|       |        /* graph is undirected or we did not ask for both directions in a
  989|       |         * directed graph; this is the easy case */
  990|       |
  991|   208k|        should_filter_duplicates = !(multiple == IGRAPH_MULTIPLE &&
  ------------------
  |  Branch (991:38): [True: 208k, False: 0]
  ------------------
  992|   208k|                ((!igraph_is_directed(graph) && loops == IGRAPH_LOOPS_TWICE) ||
  ------------------
  |  Branch (992:19): [True: 98.0k, False: 110k]
  |  Branch (992:49): [True: 98.0k, False: 0]
  ------------------
  993|   110k|                 (igraph_is_directed(graph) && loops != IGRAPH_NO_LOOPS)));
  ------------------
  |  Branch (993:19): [True: 110k, False: 0]
  |  Branch (993:48): [True: 110k, False: 0]
  ------------------
  994|       |
  995|   208k|        if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (995:13): [True: 208k, False: 0]
  ------------------
  996|   208k|            j = VECTOR(graph->os)[node + 1];
  ------------------
  |  |   60|   208k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  997|   291k|            for (i = VECTOR(graph->os)[node]; i < j; i++) {
  ------------------
  |  |   60|   208k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (997:47): [True: 82.6k, False: 208k]
  ------------------
  998|  82.6k|                igraph_int_t to = VECTOR(graph->to)[ VECTOR(graph->oi)[i] ];
  ------------------
  |  |   60|  82.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              igraph_int_t to = VECTOR(graph->to)[ VECTOR(graph->oi)[i] ];
  ------------------
  |  |   60|  82.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  999|  82.6k|                DEDUPLICATE_IF_NEEDED(to, 1);
  ------------------
  |  |  897|  82.6k|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 82.6k]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1000|  82.6k|                VECTOR(*neis)[idx++] = to;
  ------------------
  |  |   60|  82.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1001|  82.6k|            }
 1002|   208k|        }
 1003|       |
 1004|   208k|        if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (1004:13): [True: 98.0k, False: 110k]
  ------------------
 1005|  98.0k|            j = VECTOR(graph->is)[node + 1];
  ------------------
  |  |   60|  98.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1006|   138k|            for (i = VECTOR(graph->is)[node]; i < j; i++) {
  ------------------
  |  |   60|  98.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1006:47): [True: 40.3k, False: 98.0k]
  ------------------
 1007|  40.3k|                igraph_int_t from = VECTOR(graph->from)[ VECTOR(graph->ii)[i] ];
  ------------------
  |  |   60|  40.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              igraph_int_t from = VECTOR(graph->from)[ VECTOR(graph->ii)[i] ];
  ------------------
  |  |   60|  40.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1008|  40.3k|                DEDUPLICATE_IF_NEEDED(from, 1);
  ------------------
  |  |  897|  40.3k|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 40.3k]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1009|  40.3k|                VECTOR(*neis)[idx++] = from;
  ------------------
  |  |   60|  40.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1010|  40.3k|            }
 1011|  98.0k|        }
 1012|   208k|    } else {
 1013|       |        /* Both in- and out- neighbors in a directed graph,
 1014|       |           we need to merge the two 'vectors' so the result is
 1015|       |           correctly ordered. */
 1016|      0|        igraph_int_t j1 = VECTOR(graph->os)[node + 1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1017|      0|        igraph_int_t j2 = VECTOR(graph->is)[node + 1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1018|      0|        igraph_int_t i1 = VECTOR(graph->os)[node];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1019|      0|        igraph_int_t i2 = VECTOR(graph->is)[node];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1020|      0|        igraph_int_t eid1, eid2;
 1021|      0|        igraph_int_t n1, n2;
 1022|       |
 1023|      0|        should_filter_duplicates = !(multiple == IGRAPH_MULTIPLE &&
  ------------------
  |  Branch (1023:38): [True: 0, False: 0]
  ------------------
 1024|      0|                loops == IGRAPH_LOOPS_TWICE);
  ------------------
  |  Branch (1024:17): [True: 0, False: 0]
  ------------------
 1025|       |
 1026|      0|        while (i1 < j1 && i2 < j2) {
  ------------------
  |  Branch (1026:16): [True: 0, False: 0]
  |  Branch (1026:27): [True: 0, False: 0]
  ------------------
 1027|      0|            eid1 = VECTOR(graph->oi)[i1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1028|      0|            eid2 = VECTOR(graph->ii)[i2];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1029|      0|            n1 = VECTOR(graph->to)[eid1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1030|      0|            n2 = VECTOR(graph->from)[eid2];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1031|      0|            if (n1 < n2) {
  ------------------
  |  Branch (1031:17): [True: 0, False: 0]
  ------------------
 1032|      0|                i1++;
 1033|      0|                DEDUPLICATE_IF_NEEDED(n1, 1);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1034|      0|                VECTOR(*neis)[idx++] = n1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1035|      0|            } else if (n1 > n2) {
  ------------------
  |  Branch (1035:24): [True: 0, False: 0]
  ------------------
 1036|      0|                i2++;
 1037|      0|                DEDUPLICATE_IF_NEEDED(n2, 1);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1038|      0|                VECTOR(*neis)[idx++] = n2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1039|      0|            } else {
 1040|      0|                i1++;
 1041|      0|                i2++;
 1042|      0|                DEDUPLICATE_IF_NEEDED(n1, 2);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1043|      0|                VECTOR(*neis)[idx++] = n1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1044|      0|                DEDUPLICATE_IF_NEEDED(n2, 1);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1045|      0|                VECTOR(*neis)[idx++] = n2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1046|      0|            }
 1047|      0|        }
 1048|       |
 1049|      0|        while (i1 < j1) {
  ------------------
  |  Branch (1049:16): [True: 0, False: 0]
  ------------------
 1050|      0|            eid1 = VECTOR(graph->oi)[i1++];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1051|      0|            igraph_int_t to = VECTOR(graph->to)[eid1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1052|      0|            DEDUPLICATE_IF_NEEDED(to, 1);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1053|      0|            VECTOR(*neis)[idx++] = to;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1054|      0|        }
 1055|       |
 1056|      0|        while (i2 < j2) {
  ------------------
  |  Branch (1056:16): [True: 0, False: 0]
  ------------------
 1057|      0|            eid2 = VECTOR(graph->ii)[i2++];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1058|      0|            igraph_int_t from = VECTOR(graph->from)[eid2];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1059|      0|            DEDUPLICATE_IF_NEEDED(from, 1);
  ------------------
  |  |  897|      0|    if (should_filter_duplicates) {                                               \
  |  |  ------------------
  |  |  |  Branch (897:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  898|      0|        if (vertex == pnode) {                                                    \
  |  |  ------------------
  |  |  |  Branch (898:13): [True: 0, False: 0]
  |  |  ------------------
  |  |  899|      0|            /* This is a loop edge */                                             \
  |  |  900|      0|            if (loops == IGRAPH_NO_LOOPS) {                                       \
  |  |  ------------------
  |  |  |  Branch (900:17): [True: 0, False: 0]
  |  |  ------------------
  |  |  901|      0|                /* Filtering loop edges unconditionally */                        \
  |  |  902|      0|                length -= n;                                                      \
  |  |  903|      0|                continue;                                                         \
  |  |  904|      0|            } else if (loops == IGRAPH_LOOPS_ONCE && vertex == last_added) {      \
  |  |  ------------------
  |  |  |  Branch (904:24): [True: 0, False: 0]
  |  |  |  Branch (904:54): [True: 0, False: 0]
  |  |  ------------------
  |  |  905|      0|                /* Filtering every second endpoint of loop edges */               \
  |  |  906|      0|                length -= n;                                                      \
  |  |  907|      0|                last_added = -1;                                                  \
  |  |  908|      0|                seen_loop = true;                                                 \
  |  |  909|      0|                continue;                                                         \
  |  |  910|      0|            } else if (multiple == IGRAPH_NO_MULTIPLE && seen_loop) {             \
  |  |  ------------------
  |  |  |  Branch (910:24): [True: 0, False: 0]
  |  |  |  Branch (910:58): [True: 0, False: 0]
  |  |  ------------------
  |  |  911|      0|                /* Filtering multi-loop edges */                                  \
  |  |  912|      0|                length -= n;                                                      \
  |  |  913|      0|                continue;                                                         \
  |  |  914|      0|            } else {                                                              \
  |  |  915|      0|                seen_loop = (loops != IGRAPH_LOOPS_TWICE || last_added == vertex);\
  |  |  ------------------
  |  |  |  Branch (915:30): [True: 0, False: 0]
  |  |  |  Branch (915:61): [True: 0, False: 0]
  |  |  ------------------
  |  |  916|      0|                last_added = vertex;                                              \
  |  |  917|      0|            }                                                                     \
  |  |  918|      0|        } else {                                                                  \
  |  |  919|      0|            /* Not a loop edge */                                                 \
  |  |  920|      0|            if (multiple == IGRAPH_NO_MULTIPLE && vertex == last_added) {         \
  |  |  ------------------
  |  |  |  Branch (920:17): [True: 0, False: 0]
  |  |  |  Branch (920:51): [True: 0, False: 0]
  |  |  ------------------
  |  |  921|      0|                /* Filtering multi-edges */                                       \
  |  |  922|      0|                length -= n;                                                      \
  |  |  923|      0|                continue;                                                         \
  |  |  924|      0|            } else {                                                              \
  |  |  925|      0|                last_added = vertex;                                              \
  |  |  926|      0|            }                                                                     \
  |  |  927|      0|        }                                                                         \
  |  |  928|      0|    }
  ------------------
 1060|      0|            VECTOR(*neis)[idx++] = from;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1061|      0|        }
 1062|       |
 1063|      0|    }
 1064|   208k|    IGRAPH_CHECK(igraph_vector_int_resize(neis, length));
  ------------------
  |  |  656|   208k|    do { \
  |  |  657|   208k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   208k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   208k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 208k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   208k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 208k]
  |  |  ------------------
  ------------------
 1065|       |
 1066|   208k|    return IGRAPH_SUCCESS;
 1067|   208k|#undef DEDUPLICATE_IF_NEEDED
 1068|   208k|}
igraph_is_directed:
 1133|  1.03M|igraph_bool_t igraph_is_directed(const igraph_t *graph) {
 1134|  1.03M|    return graph->directed;
 1135|  1.03M|}
igraph_is_same_graph:
 1952|  63.6k|igraph_error_t igraph_is_same_graph(const igraph_t *graph1, const igraph_t *graph2, igraph_bool_t *res) {
 1953|  63.6k|    igraph_int_t nv1 = igraph_vcount(graph1);
 1954|  63.6k|    igraph_int_t nv2 = igraph_vcount(graph2);
 1955|  63.6k|    igraph_int_t ne1 = igraph_ecount(graph1);
 1956|  63.6k|    igraph_int_t ne2 = igraph_ecount(graph2);
 1957|  63.6k|    igraph_int_t i, eid1, eid2;
 1958|       |
 1959|  63.6k|    *res = false; /* Assume that the graphs differ */
 1960|       |
 1961|       |    /* Check for same number of vertices/edges */
 1962|  63.6k|    if ((nv1 != nv2) || (ne1 != ne2)) {
  ------------------
  |  Branch (1962:9): [True: 0, False: 63.6k]
  |  Branch (1962:25): [True: 0, False: 63.6k]
  ------------------
 1963|      0|        return IGRAPH_SUCCESS;
 1964|      0|    }
 1965|       |
 1966|       |    /* Check for same directedness */
 1967|  63.6k|    if (igraph_is_directed(graph1) != igraph_is_directed(graph2)) {
  ------------------
  |  Branch (1967:9): [True: 0, False: 63.6k]
  ------------------
 1968|      0|        return IGRAPH_SUCCESS;
 1969|      0|    }
 1970|       |
 1971|       |    /* Vertices have no names, so they must be 0 to nv - 1 */
 1972|       |
 1973|       |    /* Edges are double sorted in the current representations ii/oi of
 1974|       |     * igraph_t (ii: by incoming, then outgoing, oi: vice versa), so
 1975|       |     * we just need to check them one by one. If that representation
 1976|       |     * changes, this part will need to change too.
 1977|       |     *
 1978|       |     * Furthermore, in the current representation the "source" of undirected
 1979|       |     * edges always has a vertex index that is no larger than that of the
 1980|       |     * "target".
 1981|       |     */
 1982|   964k|    for (i = 0; i < ne1; i++) {
  ------------------
  |  Branch (1982:17): [True: 900k, False: 63.6k]
  ------------------
 1983|   900k|        eid1 = VECTOR(graph1->ii)[i];
  ------------------
  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1984|   900k|        eid2 = VECTOR(graph2->ii)[i];
  ------------------
  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1985|       |
 1986|       |        /* Check they have the same source */
 1987|   900k|        if (IGRAPH_FROM(graph1, eid1) != IGRAPH_FROM(graph2, eid2)) {
  ------------------
  |  |  115|   900k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
                      if (IGRAPH_FROM(graph1, eid1) != IGRAPH_FROM(graph2, eid2)) {
  ------------------
  |  |  115|   900k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (1987:13): [True: 0, False: 900k]
  ------------------
 1988|      0|            return IGRAPH_SUCCESS;
 1989|      0|        }
 1990|       |
 1991|       |        /* Check they have the same target */
 1992|   900k|        if (IGRAPH_TO(graph1, eid1) != IGRAPH_TO(graph2, eid2)) {
  ------------------
  |  |  128|   900k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
                      if (IGRAPH_TO(graph1, eid1) != IGRAPH_TO(graph2, eid2)) {
  ------------------
  |  |  128|   900k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   900k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (1992:13): [True: 0, False: 900k]
  ------------------
 1993|      0|            return IGRAPH_SUCCESS;
 1994|      0|        }
 1995|   900k|    }
 1996|       |
 1997|  63.6k|    *res = true; /* No difference was found, graphs are the same */
 1998|  63.6k|    return IGRAPH_SUCCESS;
 1999|  63.6k|}
type_indexededgelist.c:igraph_i_create_start_vectors:
 1076|   144k|        igraph_vector_int_t *iindex, igraph_int_t nodes) {
 1077|       |
 1078|   144k|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
 1079|       |
 1080|   144k|    igraph_int_t no_of_nodes;
 1081|   144k|    igraph_int_t no_of_edges;
 1082|   144k|    igraph_int_t i, j, idx;
 1083|       |
 1084|   144k|    no_of_nodes = nodes;
 1085|   144k|    no_of_edges = igraph_vector_int_size(el);
 1086|       |
 1087|       |    /* result */
 1088|       |
 1089|   144k|    IGRAPH_CHECK(igraph_vector_int_resize(res, nodes + 1));
  ------------------
  |  |  656|   144k|    do { \
  |  |  657|   144k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   144k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   144k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 144k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   144k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 144k]
  |  |  ------------------
  ------------------
 1090|       |
 1091|       |    /* create the index */
 1092|       |
 1093|   144k|    if (no_of_edges == 0) {
  ------------------
  |  Branch (1093:9): [True: 0, False: 144k]
  ------------------
 1094|       |        /* empty graph */
 1095|      0|        igraph_vector_int_null(res);
 1096|   144k|    } else {
 1097|   144k|        idx = -1;
 1098|  1.09M|        for (i = 0; i <= EDGE(0); i++) {
  ------------------
  |  | 1078|  1.09M|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.09M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.09M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (1098:21): [True: 952k, False: 144k]
  ------------------
 1099|   952k|            idx++; VECTOR(*res)[idx] = 0;
  ------------------
  |  |   60|   952k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1100|   952k|        }
 1101|  2.08M|        for (i = 1; i < no_of_edges; i++) {
  ------------------
  |  Branch (1101:21): [True: 1.94M, False: 144k]
  ------------------
 1102|  1.94M|            igraph_int_t n = EDGE(i) - EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1078|  1.94M|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.94M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.94M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
                          igraph_int_t n = EDGE(i) - EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1078|  1.94M|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.94M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  1.94M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1103|  7.17M|            for (j = 0; j < n; j++) {
  ------------------
  |  Branch (1103:25): [True: 5.23M, False: 1.94M]
  ------------------
 1104|  5.23M|                idx++; VECTOR(*res)[idx] = i;
  ------------------
  |  |   60|  5.23M|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1105|  5.23M|            }
 1106|  1.94M|        }
 1107|   144k|        j = EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1078|   144k|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|   144k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|   144k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1108|  1.55M|        for (i = 0; i < no_of_nodes - j; i++) {
  ------------------
  |  Branch (1108:21): [True: 1.41M, False: 144k]
  ------------------
 1109|  1.41M|            idx++; VECTOR(*res)[idx] = no_of_edges;
  ------------------
  |  |   60|  1.41M|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1110|  1.41M|        }
 1111|   144k|    }
 1112|       |
 1113|       |    /* clean */
 1114|       |
 1115|   144k|# undef EDGE
 1116|   144k|    return IGRAPH_SUCCESS;
 1117|   144k|}

igraph_automorphism_group_bliss:
  511|  2.20k|) {
  512|  2.20k|    IGRAPH_HANDLE_EXCEPTIONS(
  ------------------
  |  |   30|  2.20k|    IGRAPH_HANDLE_EXCEPTIONS_BEGIN; \
  |  |  ------------------
  |  |  |  |   21|  2.20k|    try {
  |  |  ------------------
  |  |   31|  28.6k|    code; \
  |  |  ------------------
  |  |  |  Branch (31:5): [Folded, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 2.20k]
  |  |  |  Branch (31:5): [True: 0, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.20k]
  |  |  |  Branch (31:5): [Folded, False: 2.20k]
  |  |  ------------------
  |  |   32|  8.81k|    IGRAPH_HANDLE_EXCEPTIONS_END;
  |  |  ------------------
  |  |  |  |   23|  2.20k|    } \
  |  |  |  |   24|  2.20k|    catch (const std::bad_alloc &e) { IGRAPH_ERROR(e.what(), IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   25|  2.20k|    catch (const std::range_error &e) { IGRAPH_ERROR(e.what(), IGRAPH_EOVERFLOW); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|  2.20k|    catch (const std::exception &e) { IGRAPH_ERROR(e.what(), IGRAPH_FAILURE); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|  2.20k|    catch (...) { IGRAPH_ERROR("Unknown exception caught.", IGRAPH_FAILURE); /* LCOV_EXCL_LINE */ }
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  513|  2.20k|        AbstractGraph *g = bliss_from_igraph(graph);
  514|  2.20k|        IGRAPH_FINALLY(bliss_free_graph, g);
  515|       |
  516|  2.20k|        IGRAPH_CHECK(bliss_set_sh(g, sh, igraph_is_directed(graph)));
  517|  2.20k|        IGRAPH_CHECK(bliss_set_colors(g, colors));
  518|       |
  519|  2.20k|        Stats stats;
  520|  2.20k|        igraph_vector_int_list_clear(generators);
  521|  2.20k|        AutCollector collector(generators);
  522|  2.20k|        AbortChecker checker;
  523|  2.20k|        g->find_automorphisms(stats, collector, checker);
  524|  2.20k|        if (checker.aborted) {
  525|  2.20k|            return IGRAPH_INTERRUPTED;
  526|  2.20k|        }
  527|  2.20k|        IGRAPH_CHECK(bliss_info_to_igraph(info, stats));
  528|       |
  529|  2.20k|        delete g;
  530|  2.20k|        IGRAPH_FINALLY_CLEAN(1);
  531|  2.20k|    );
  532|       |
  533|  2.20k|    return IGRAPH_SUCCESS;
  534|  2.20k|}
igraph_isomorphic_bliss:
  604|  2.95k|                            igraph_bliss_info_t *info1, igraph_bliss_info_t *info2) {
  605|       |
  606|  2.95k|    igraph_int_t no_of_nodes = igraph_vcount(graph1);
  607|  2.95k|    igraph_int_t no_of_edges = igraph_ecount(graph1);
  608|  2.95k|    igraph_vector_int_t perm1, perm2;
  609|  2.95k|    igraph_vector_int_t vmap12, *mymap12 = &vmap12;
  610|  2.95k|    igraph_vector_int_t from, to, index;
  611|  2.95k|    igraph_vector_int_t from2, to2, index2;
  612|  2.95k|    igraph_bool_t directed;
  613|  2.95k|    igraph_int_t i, j;
  614|       |
  615|  2.95k|    *iso = 0;
  616|  2.95k|    if (info1) {
  ------------------
  |  Branch (616:9): [True: 2.95k, False: 0]
  ------------------
  617|  2.95k|        info1->nof_nodes = info1->nof_leaf_nodes = info1->nof_bad_nodes =
  618|  2.95k|                               info1->nof_canupdates = info1->max_level = info1->nof_generators = 0;
  619|  2.95k|        info1->group_size = 0;
  620|  2.95k|    }
  621|  2.95k|    if (info2) {
  ------------------
  |  Branch (621:9): [True: 2.95k, False: 0]
  ------------------
  622|  2.95k|        info2->nof_nodes = info2->nof_leaf_nodes = info2->nof_bad_nodes =
  623|  2.95k|                               info2->nof_canupdates = info2->max_level = info2->nof_generators = 0;
  624|  2.95k|        info2->group_size = 0;
  625|  2.95k|    }
  626|       |
  627|  2.95k|    directed = igraph_is_directed(graph1);
  628|  2.95k|    if (igraph_is_directed(graph2) != directed) {
  ------------------
  |  Branch (628:9): [True: 0, False: 2.95k]
  ------------------
  629|      0|        IGRAPH_ERROR("Cannot compare directed and undirected graphs.",
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  630|      0|                     IGRAPH_EINVAL);
  631|      0|    }
  632|  2.95k|    if ((colors1 == NULL || colors2 == NULL) && colors1 != colors2) {
  ------------------
  |  Branch (632:10): [True: 2.95k, False: 0]
  |  Branch (632:29): [True: 0, False: 0]
  |  Branch (632:49): [True: 0, False: 2.95k]
  ------------------
  633|      0|        IGRAPH_WARNING("Only one of the graphs is vertex colored, colors will be ignored.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  634|      0|        colors1 = NULL; colors2 = NULL;
  635|      0|    }
  636|       |
  637|  2.95k|    if (no_of_nodes != igraph_vcount(graph2) ||
  ------------------
  |  Branch (637:9): [True: 0, False: 2.95k]
  ------------------
  638|  2.95k|        no_of_edges != igraph_ecount(graph2)) {
  ------------------
  |  Branch (638:9): [True: 0, False: 2.95k]
  ------------------
  639|      0|        if (map12) {
  ------------------
  |  Branch (639:13): [True: 0, False: 0]
  ------------------
  640|      0|            igraph_vector_int_clear(map12);
  641|      0|        }
  642|      0|        if (map21) {
  ------------------
  |  Branch (642:13): [True: 0, False: 0]
  ------------------
  643|      0|            igraph_vector_int_clear(map21);
  644|      0|        }
  645|      0|        return IGRAPH_SUCCESS;
  646|      0|    }
  647|       |
  648|  2.95k|    if (map12) {
  ------------------
  |  Branch (648:9): [True: 0, False: 2.95k]
  ------------------
  649|      0|        mymap12 = map12;
  650|  2.95k|    } else {
  651|  2.95k|        IGRAPH_VECTOR_INT_INIT_FINALLY(mymap12, 0);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  652|  2.95k|    }
  653|       |
  654|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&perm1, no_of_nodes);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  655|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&perm2, no_of_nodes);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  656|       |
  657|  2.95k|    IGRAPH_CHECK(igraph_i_canonical_permutation_bliss(graph1, colors1, &perm1, sh, info1));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  658|  2.95k|    IGRAPH_CHECK(igraph_i_canonical_permutation_bliss(graph2, colors2, &perm2, sh, info2));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  659|       |
  660|  2.95k|    IGRAPH_CHECK(igraph_vector_int_resize(mymap12, no_of_nodes));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  661|       |
  662|       |    /* The inverse of perm2 is produced in mymap12 */
  663|   125k|    for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (663:17): [True: 122k, False: 2.95k]
  ------------------
  664|   122k|        VECTOR(*mymap12)[ VECTOR(perm2)[i] ] = i;
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(*mymap12)[ VECTOR(perm2)[i] ] = i;
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  665|   122k|    }
  666|       |    /* Now we produce perm2^{-1} o perm1 in perm2 */
  667|   125k|    for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (667:17): [True: 122k, False: 2.95k]
  ------------------
  668|   122k|        VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  669|   122k|    }
  670|       |    /* Copy it to mymap12 */
  671|  2.95k|    IGRAPH_CHECK(igraph_vector_int_update(mymap12, &perm2));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  672|       |
  673|  2.95k|    igraph_vector_int_destroy(&perm1);
  674|  2.95k|    igraph_vector_int_destroy(&perm2);
  675|  2.95k|    IGRAPH_FINALLY_CLEAN(2);
  676|       |
  677|       |    /* Check isomorphism, we apply the permutation in mymap12 to graph1
  678|       |       and should get graph2 */
  679|       |
  680|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&from, no_of_edges);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  681|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&to, no_of_edges);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  682|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index, no_of_edges);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  683|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&from2, no_of_edges * 2);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  684|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&to2, no_of_edges);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  685|  2.95k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index2, no_of_edges);
  ------------------
  |  |  119|  2.95k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  2.95k|    do { \
  |  |  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  2.95k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  2.95k|    do { \
  |  |  |  |  604|  2.95k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  2.95k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  2.95k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  2.95k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  |  |  608|  2.95k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  2.95k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  686|       |
  687|  53.2k|    for (i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (687:17): [True: 50.2k, False: 2.95k]
  ------------------
  688|  50.2k|        VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |  115|  50.2k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  689|  50.2k|        VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |  128|  50.2k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  690|  50.2k|        if (! directed && VECTOR(from)[i] < VECTOR(to)[i]) {
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (! directed && VECTOR(from)[i] < VECTOR(to)[i]) {
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (690:13): [True: 22.4k, False: 27.8k]
  |  Branch (690:27): [True: 7.92k, False: 14.5k]
  ------------------
  691|  7.92k|            igraph_int_t tmp = VECTOR(from)[i];
  ------------------
  |  |   60|  7.92k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  692|  7.92k|            VECTOR(from)[i] = VECTOR(to)[i];
  ------------------
  |  |   60|  7.92k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(from)[i] = VECTOR(to)[i];
  ------------------
  |  |   60|  7.92k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  693|  7.92k|            VECTOR(to)[i] = tmp;
  ------------------
  |  |   60|  7.92k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  694|  7.92k|        }
  695|  50.2k|    }
  696|  2.95k|    igraph_vector_int_pair_order(&from, &to, &index, no_of_nodes);
  697|       |
  698|  2.95k|    igraph_get_edgelist(graph2, &from2, /*bycol=*/ 1);
  699|  53.2k|    for (i = 0, j = no_of_edges; i < no_of_edges; i++, j++) {
  ------------------
  |  Branch (699:34): [True: 50.2k, False: 2.95k]
  ------------------
  700|  50.2k|        VECTOR(to2)[i] = VECTOR(from2)[j];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to2)[i] = VECTOR(from2)[j];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  701|  50.2k|        if (! directed && VECTOR(from2)[i] < VECTOR(to2)[i]) {
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (! directed && VECTOR(from2)[i] < VECTOR(to2)[i]) {
  ------------------
  |  |   60|  22.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (701:13): [True: 22.4k, False: 27.8k]
  |  Branch (701:27): [True: 22.0k, False: 407]
  ------------------
  702|  22.0k|            igraph_int_t tmp = VECTOR(from2)[i];
  ------------------
  |  |   60|  22.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  703|  22.0k|            VECTOR(from2)[i] = VECTOR(to2)[i];
  ------------------
  |  |   60|  22.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(from2)[i] = VECTOR(to2)[i];
  ------------------
  |  |   60|  22.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  704|  22.0k|            VECTOR(to2)[i] = tmp;
  ------------------
  |  |   60|  22.0k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  705|  22.0k|        }
  706|  50.2k|    }
  707|  2.95k|    igraph_vector_int_resize(&from2, no_of_edges);
  708|  2.95k|    igraph_vector_int_pair_order(&from2, &to2, &index2, no_of_nodes);
  709|       |
  710|  2.95k|    *iso = 1;
  711|  53.2k|    for (i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (711:17): [True: 50.2k, False: 2.95k]
  ------------------
  712|  50.2k|        igraph_int_t i1 = VECTOR(index)[i];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  713|  50.2k|        igraph_int_t i2 = VECTOR(index2)[i];
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  714|  50.2k|        if (VECTOR(from)[i1] != VECTOR(from2)[i2] ||
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (VECTOR(from)[i1] != VECTOR(from2)[i2] ||
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (714:13): [True: 0, False: 50.2k]
  ------------------
  715|  50.2k|            VECTOR(to)[i1] != VECTOR(to2)[i2]) {
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(to)[i1] != VECTOR(to2)[i2]) {
  ------------------
  |  |   60|  50.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (715:13): [True: 0, False: 50.2k]
  ------------------
  716|      0|            *iso = 0;
  717|      0|            break;
  718|      0|        }
  719|  50.2k|    }
  720|       |
  721|       |    /* If the graphs are coloured, we also need to check that applying the
  722|       |       permutation mymap12 to colors1 gives colors2. */
  723|       |
  724|  2.95k|    if (*iso && colors1 != NULL) {
  ------------------
  |  Branch (724:9): [True: 2.95k, False: 0]
  |  Branch (724:17): [True: 0, False: 2.95k]
  ------------------
  725|      0|        for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (725:21): [True: 0, False: 0]
  ------------------
  726|      0|            if (VECTOR(*colors1)[i] != VECTOR(*colors2)[ VECTOR(*mymap12)[i] ]) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          if (VECTOR(*colors1)[i] != VECTOR(*colors2)[ VECTOR(*mymap12)[i] ]) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          if (VECTOR(*colors1)[i] != VECTOR(*colors2)[ VECTOR(*mymap12)[i] ]) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (726:17): [True: 0, False: 0]
  ------------------
  727|      0|                *iso = 0;
  728|      0|                break;
  729|      0|            }
  730|      0|        }
  731|      0|    }
  732|       |
  733|  2.95k|    igraph_vector_int_destroy(&index2);
  734|  2.95k|    igraph_vector_int_destroy(&to2);
  735|  2.95k|    igraph_vector_int_destroy(&from2);
  736|  2.95k|    igraph_vector_int_destroy(&index);
  737|  2.95k|    igraph_vector_int_destroy(&to);
  738|  2.95k|    igraph_vector_int_destroy(&from);
  739|  2.95k|    IGRAPH_FINALLY_CLEAN(6);
  740|       |
  741|  2.95k|    if (*iso) {
  ------------------
  |  Branch (741:9): [True: 2.95k, False: 0]
  ------------------
  742|       |        /* The inverse of mymap12 */
  743|  2.95k|        if (map21) {
  ------------------
  |  Branch (743:13): [True: 2.95k, False: 0]
  ------------------
  744|  2.95k|            IGRAPH_CHECK(igraph_vector_int_resize(map21, no_of_nodes));
  ------------------
  |  |  656|  2.95k|    do { \
  |  |  657|  2.95k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.95k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.95k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.95k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.95k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.95k]
  |  |  ------------------
  ------------------
  745|   125k|            for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (745:25): [True: 122k, False: 2.95k]
  ------------------
  746|   122k|                VECTOR(*map21)[ VECTOR(*mymap12)[i] ] = i;
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*map21)[ VECTOR(*mymap12)[i] ] = i;
  ------------------
  |  |   60|   122k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  747|   122k|            }
  748|  2.95k|        }
  749|  2.95k|    } else {
  750|      0|        if (map12) {
  ------------------
  |  Branch (750:13): [True: 0, False: 0]
  ------------------
  751|      0|            igraph_vector_int_clear(map12);
  752|      0|        }
  753|      0|        if (map21) {
  ------------------
  |  Branch (753:13): [True: 0, False: 0]
  ------------------
  754|      0|            igraph_vector_int_clear(map21);
  755|      0|        }
  756|      0|    }
  757|       |
  758|  2.95k|    if (!map12) {
  ------------------
  |  Branch (758:9): [True: 2.95k, False: 0]
  ------------------
  759|  2.95k|        igraph_vector_int_destroy(mymap12);
  760|  2.95k|        IGRAPH_FINALLY_CLEAN(1);
  761|  2.95k|    }
  762|       |
  763|  2.95k|    return IGRAPH_SUCCESS;
  764|  2.95k|}
bliss.cc:_ZL36igraph_i_canonical_permutation_blissPK8igraph_tPK19igraph_vector_int_tPS2_17igraph_bliss_sh_tP19igraph_bliss_info_t:
  325|  5.91k|) {
  326|  5.91k|    IGRAPH_HANDLE_EXCEPTIONS(
  ------------------
  |  |   30|  5.91k|    IGRAPH_HANDLE_EXCEPTIONS_BEGIN; \
  |  |  ------------------
  |  |  |  |   21|  5.91k|    try {
  |  |  ------------------
  |  |   31|   834k|    code; \
  |  |  ------------------
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  |  Branch (31:5): [True: 0, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  |  Branch (31:5): [True: 244k, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 5.91k]
  |  |  |  Branch (31:5): [Folded, False: 5.91k]
  |  |  ------------------
  |  |   32|  29.5k|    IGRAPH_HANDLE_EXCEPTIONS_END;
  |  |  ------------------
  |  |  |  |   23|  5.91k|    } \
  |  |  |  |   24|  5.91k|    catch (const std::bad_alloc &e) { IGRAPH_ERROR(e.what(), IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   25|  5.91k|    catch (const std::range_error &e) { IGRAPH_ERROR(e.what(), IGRAPH_EOVERFLOW); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   26|  5.91k|    catch (const std::exception &e) { IGRAPH_ERROR(e.what(), IGRAPH_FAILURE); /* LCOV_EXCL_LINE */ } \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |   27|  5.91k|    catch (...) { IGRAPH_ERROR("Unknown exception caught.", IGRAPH_FAILURE); /* LCOV_EXCL_LINE */ }
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|  5.91k|        AbstractGraph *g = bliss_from_igraph(graph);
  328|  5.91k|        IGRAPH_FINALLY(bliss_free_graph, g);
  329|  5.91k|        const unsigned int N = g->get_nof_vertices();
  330|       |
  331|  5.91k|        IGRAPH_CHECK(bliss_set_sh(g, sh, igraph_is_directed(graph)));
  332|  5.91k|        IGRAPH_CHECK(bliss_set_colors(g, colors));
  333|       |
  334|  5.91k|        Stats stats;
  335|  5.91k|        AbortChecker checker;
  336|  5.91k|        const unsigned int *cl = g->canonical_form(stats, /* report */ nullptr, /* terminate */ checker);
  337|  5.91k|        if (checker.aborted) {
  338|  5.91k|            return IGRAPH_INTERRUPTED;
  339|  5.91k|        }
  340|       |
  341|  5.91k|        IGRAPH_CHECK(igraph_vector_int_resize(labeling, N));
  342|  5.91k|        for (unsigned int i = 0; i < N; i++) {
  343|  5.91k|            VECTOR(*labeling)[i] = cl[i];
  344|  5.91k|        }
  345|       |
  346|  5.91k|        IGRAPH_CHECK(bliss_info_to_igraph(info, stats));
  347|       |
  348|  5.91k|        delete g;
  349|  5.91k|        IGRAPH_FINALLY_CLEAN(1);
  350|  5.91k|    );
  351|       |
  352|  5.91k|    return IGRAPH_SUCCESS;
  353|  5.91k|}
bliss.cc:_ZN12_GLOBAL__N_117bliss_from_igraphEPK8igraph_t:
   79|  8.11k|inline AbstractGraph *bliss_from_igraph(const igraph_t *graph) {
   80|  8.11k|    igraph_int_t nof_vertices = igraph_vcount(graph);
   81|  8.11k|    igraph_int_t nof_edges = igraph_ecount(graph);
   82|       |
   83|  8.11k|    if (nof_vertices > UINT_MAX || nof_edges > UINT_MAX) {
  ------------------
  |  Branch (83:9): [True: 0, False: 8.11k]
  |  Branch (83:36): [True: 0, False: 8.11k]
  ------------------
   84|      0|        throw std::runtime_error("Graph too large for BLISS");
   85|      0|    }
   86|       |
   87|  8.11k|    AbstractGraph *g;
   88|       |
   89|  8.11k|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (89:9): [True: 4.38k, False: 3.73k]
  ------------------
   90|  4.38k|        g = new Digraph(static_cast<int>(nof_vertices));
   91|  4.38k|    } else {
   92|  3.73k|        g = new Graph(static_cast<int>(nof_vertices));
   93|  3.73k|    }
   94|       |
   95|       |    /* g->set_verbose_level(0); */
   96|       |
   97|   137k|    for (unsigned int i = 0; i < static_cast<unsigned int>(nof_edges); i++) {
  ------------------
  |  Branch (97:30): [True: 129k, False: 8.11k]
  ------------------
   98|   129k|        g->add_edge(
   99|   129k|            static_cast<unsigned int>(IGRAPH_FROM(graph, i)),
  ------------------
  |  |  115|   129k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  100|   129k|            static_cast<unsigned int>(IGRAPH_TO(graph, i))
  ------------------
  |  |  128|   129k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  101|   129k|        );
  102|   129k|    }
  103|       |
  104|  8.11k|    return g;
  105|  8.11k|}
bliss.cc:_ZN12_GLOBAL__N_112bliss_set_shEPN5bliss13AbstractGraphE17igraph_bliss_sh_tb:
  113|  8.11k|inline igraph_error_t bliss_set_sh(AbstractGraph *g, igraph_bliss_sh_t sh, bool directed) {
  114|  8.11k|    if (directed) {
  ------------------
  |  Branch (114:9): [True: 4.38k, False: 3.73k]
  ------------------
  115|  4.38k|        Digraph::SplittingHeuristic gsh = Digraph::shs_fsm;
  116|  4.38k|        switch (sh) {
  117|    540|        case IGRAPH_BLISS_F:    gsh = Digraph::shs_f;   break;
  ------------------
  |  Branch (117:9): [True: 540, False: 3.84k]
  ------------------
  118|    731|        case IGRAPH_BLISS_FL:   gsh = Digraph::shs_fl;  break;
  ------------------
  |  Branch (118:9): [True: 731, False: 3.65k]
  ------------------
  119|    650|        case IGRAPH_BLISS_FS:   gsh = Digraph::shs_fs;  break;
  ------------------
  |  Branch (119:9): [True: 650, False: 3.73k]
  ------------------
  120|    790|        case IGRAPH_BLISS_FM:   gsh = Digraph::shs_fm;  break;
  ------------------
  |  Branch (120:9): [True: 790, False: 3.59k]
  ------------------
  121|    783|        case IGRAPH_BLISS_FLM:  gsh = Digraph::shs_flm; break;
  ------------------
  |  Branch (121:9): [True: 783, False: 3.59k]
  ------------------
  122|    887|        case IGRAPH_BLISS_FSM:  gsh = Digraph::shs_fsm; break;
  ------------------
  |  Branch (122:9): [True: 887, False: 3.49k]
  ------------------
  123|      0|        default: IGRAPH_ERROR("Invalid splitting heuristic.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (123:9): [True: 0, False: 4.38k]
  ------------------
  124|  4.38k|        }
  125|  4.38k|        static_cast<Digraph *>(g)->set_splitting_heuristic(gsh);
  126|  4.38k|    } else {
  127|  3.73k|        Graph::SplittingHeuristic gsh = Graph::shs_fsm;
  128|  3.73k|        switch (sh) {
  129|    410|        case IGRAPH_BLISS_F:    gsh = Graph::shs_f;   break;
  ------------------
  |  Branch (129:9): [True: 410, False: 3.32k]
  ------------------
  130|    603|        case IGRAPH_BLISS_FL:   gsh = Graph::shs_fl;  break;
  ------------------
  |  Branch (130:9): [True: 603, False: 3.13k]
  ------------------
  131|    560|        case IGRAPH_BLISS_FS:   gsh = Graph::shs_fs;  break;
  ------------------
  |  Branch (131:9): [True: 560, False: 3.17k]
  ------------------
  132|    686|        case IGRAPH_BLISS_FM:   gsh = Graph::shs_fm;  break;
  ------------------
  |  Branch (132:9): [True: 686, False: 3.04k]
  ------------------
  133|    704|        case IGRAPH_BLISS_FLM:  gsh = Graph::shs_flm; break;
  ------------------
  |  Branch (133:9): [True: 704, False: 3.03k]
  ------------------
  134|    772|        case IGRAPH_BLISS_FSM:  gsh = Graph::shs_fsm; break;
  ------------------
  |  Branch (134:9): [True: 772, False: 2.96k]
  ------------------
  135|      0|        default: IGRAPH_ERROR("Invalid splitting heuristic.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (135:9): [True: 0, False: 3.73k]
  ------------------
  136|  3.73k|        }
  137|  3.73k|        static_cast<Graph *>(g)->set_splitting_heuristic(gsh);
  138|  3.73k|    }
  139|  8.11k|    return IGRAPH_SUCCESS;
  140|  8.11k|}
bliss.cc:_ZN12_GLOBAL__N_116bliss_set_colorsEPN5bliss13AbstractGraphEPK19igraph_vector_int_t:
  143|  8.11k|inline igraph_error_t bliss_set_colors(AbstractGraph *g, const igraph_vector_int_t *colors) {
  144|  8.11k|    if (colors == NULL) {
  ------------------
  |  Branch (144:9): [True: 8.11k, False: 0]
  ------------------
  145|  8.11k|        return IGRAPH_SUCCESS;
  146|  8.11k|    }
  147|      0|    const int n = g->get_nof_vertices();
  148|      0|    if (n != igraph_vector_int_size(colors)) {
  ------------------
  |  Branch (148:9): [True: 0, False: 0]
  ------------------
  149|      0|        IGRAPH_ERROR("Invalid vertex color vector length.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  150|      0|    }
  151|      0|    for (int i = 0; i < n; ++i) {
  ------------------
  |  Branch (151:21): [True: 0, False: 0]
  ------------------
  152|      0|        igraph_int_t color = VECTOR(*colors)[i];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  153|      0|        if (color < INT_MIN || color > INT_MAX) {
  ------------------
  |  Branch (153:13): [True: 0, False: 0]
  |  Branch (153:32): [True: 0, False: 0]
  ------------------
  154|      0|            IGRAPH_ERRORF("Invalid vertex color index %" IGRAPH_PRId " for vertex %d.", IGRAPH_EOVERFLOW, color, i);
  ------------------
  |  |  464|      0|    do { \
  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      0|        return igraph_errno; \
  |  |  468|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  155|      0|        }
  156|      0|        g->change_color(i, static_cast<int>(color));
  157|      0|    }
  158|      0|    return IGRAPH_SUCCESS;
  159|      0|}
bliss.cc:_ZN12_GLOBAL__N_112AbortCheckerC2Ev:
  193|  8.11k|    AbortChecker() : aborted(false) { }
bliss.cc:_ZN12_GLOBAL__N_120bliss_info_to_igraphEP19igraph_bliss_info_tRKN5bliss5StatsE:
  162|  8.11k|inline igraph_error_t bliss_info_to_igraph(igraph_bliss_info_t *info, const Stats &stats) {
  163|  8.11k|    if (info) {
  ------------------
  |  Branch (163:9): [True: 8.11k, False: 0]
  ------------------
  164|  8.11k|        size_t group_size_strlen;
  165|       |
  166|  8.11k|        info->max_level      = stats.get_max_level();
  167|  8.11k|        info->nof_nodes      = stats.get_nof_nodes();
  168|  8.11k|        info->nof_leaf_nodes = stats.get_nof_leaf_nodes();
  169|  8.11k|        info->nof_bad_nodes  = stats.get_nof_bad_nodes();
  170|  8.11k|        info->nof_canupdates = stats.get_nof_canupdates();
  171|  8.11k|        info->nof_generators = stats.get_nof_generators();
  172|       |
  173|  8.11k|        mpz_t group_size;
  174|  8.11k|        mpz_init(group_size);
  175|  8.11k|        stats.get_group_size().get(group_size);
  176|  8.11k|        group_size_strlen = mpz_sizeinbase(group_size, /* base */ 10) + 2;
  177|  8.11k|        info->group_size = IGRAPH_CALLOC(group_size_strlen, char);
  ------------------
  |  |   33|  8.11k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  16.2k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 8.11k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 8.11k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 8.11k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|  8.11k|        if (! info->group_size) {
  ------------------
  |  Branch (178:13): [True: 0, False: 8.11k]
  ------------------
  179|      0|            IGRAPH_ERROR("Insufficient memory to retrieve automorphism group size.", IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  180|      0|        }
  181|  8.11k|        mpz_get_str(info->group_size, /* base */ 10, group_size);
  182|  8.11k|        mpz_clear(group_size);
  183|  8.11k|    }
  184|       |
  185|  8.11k|    return IGRAPH_SUCCESS;
  186|  8.11k|}
bliss.cc:_ZN12_GLOBAL__N_112AutCollectorC2EP24igraph_vector_int_list_t:
  210|  2.20k|    AutCollector(igraph_vector_int_list_t *generators_) : generators(generators_) { }
bliss.cc:_ZN12_GLOBAL__N_112AbortCheckerclEv:
  194|  9.58M|    bool operator()() {
  195|  9.58M|        if (igraph_allow_interruption() != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (195:13): [True: 0, False: 9.58M]
  ------------------
  196|      0|            aborted = true;
  197|      0|            return true;
  198|      0|        }
  199|  9.58M|        return false;
  200|  9.58M|    }
bliss.cc:_ZN12_GLOBAL__N_112AutCollectorclEjPKj:
  212|  60.7k|    void operator ()(unsigned int n, const unsigned int *aut) {
  213|  60.7k|        igraph_vector_int_t newvector;
  214|  60.7k|        igraph_error_t err;
  215|       |
  216|  60.7k|        err = igraph_vector_int_init(&newvector, n);
  217|  60.7k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (217:13): [True: 0, False: 60.7k]
  ------------------
  218|      0|            throw bad_alloc();
  219|      0|        }
  220|       |
  221|  60.7k|        copy(aut, aut + n, VECTOR(newvector)); // takes care of unsigned int -> igraph_int_t conversion
  ------------------
  |  |   60|  60.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  222|       |
  223|  60.7k|        err = igraph_vector_int_list_push_back(generators, &newvector);
  224|  60.7k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (224:13): [True: 0, False: 60.7k]
  ------------------
  225|      0|            throw bad_alloc();
  226|      0|        }
  227|  60.7k|    }

_ZN5bliss6BigNumC2Ev:
   52|  8.11k|  BigNum() {mpz_init(v); }
_ZN5bliss6BigNum6assignEi:
   62|  23.8k|  void assign(const int n) {mpz_set_si(v, n); }
_ZN5bliss6BigNumD2Ev:
   57|  8.11k|  ~BigNum() {mpz_clear(v); }
_ZNK5bliss6BigNum3getERA1_12__mpz_struct:
   74|  8.11k|  void get(mpz_t& result) const {mpz_set(result, v); }
_ZN5bliss6BigNum8multiplyEi:
   67|   228k|  void multiply(const int n) {mpz_mul_si(v, v, n); }

_ZN5bliss13AbstractGraphC2Ev:
   54|  8.11k|{
   55|       |  /* Initialize stuff */
   56|  8.11k|  first_path_labeling = nullptr;
   57|  8.11k|  first_path_labeling_inv = nullptr;
   58|  8.11k|  best_path_labeling = nullptr;
   59|  8.11k|  best_path_labeling_inv = nullptr;
   60|  8.11k|  first_path_automorphism = nullptr;
   61|  8.11k|  best_path_automorphism = nullptr;
   62|  8.11k|  in_search = false;
   63|       |
   64|       |  /* Default value for using "long prune" */
   65|  8.11k|  opt_use_long_prune = true;
   66|       |  /* Default value for using failure recording */
   67|  8.11k|  opt_use_failure_recording = true;
   68|       |  /* Default value for using component recursion */
   69|  8.11k|  opt_use_comprec = true;
   70|       |
   71|       |
   72|       |  /*
   73|       |  verbose_level = 0;
   74|       |  verbstr = stdout;
   75|       |  */
   76|  8.11k|}
_ZN5bliss13AbstractGraphD2Ev:
   80|  8.11k|{
   81|  8.11k|  delete[] first_path_labeling; first_path_labeling = nullptr;
   82|  8.11k|  delete[] first_path_labeling_inv; first_path_labeling_inv = nullptr;
   83|  8.11k|  delete[] first_path_automorphism; first_path_automorphism = nullptr;
   84|       |
   85|  8.11k|  delete[] best_path_labeling; best_path_labeling = nullptr;
   86|  8.11k|  delete[] best_path_labeling_inv; best_path_labeling_inv = nullptr;
   87|  8.11k|  delete[] best_path_automorphism; best_path_automorphism = nullptr;
   88|  8.11k|}
_ZN5bliss13AbstractGraph19refine_to_equitableEv:
  122|  8.08k|{
  123|       |
  124|       |  /* Start refinement from all cells -> push 'em all in the splitting queue */
  125|  38.0k|  for(Partition::Cell* cell = p.first_cell; cell; cell = cell->next)
  ------------------
  |  Branch (125:45): [True: 29.9k, False: 8.08k]
  ------------------
  126|  29.9k|    p.splitting_queue_add(cell);
  127|       |
  128|  8.08k|  do_refine_to_equitable();
  129|       |
  130|  8.08k|}
_ZN5bliss13AbstractGraph19refine_to_equitableEPNS_9Partition4CellE:
  134|  4.37M|{
  135|       |
  136|  4.37M|  p.splitting_queue_add(unit_cell);
  137|       |
  138|  4.37M|  do_refine_to_equitable();
  139|  4.37M|}
_ZN5bliss13AbstractGraph19refine_to_equitableEPNS_9Partition4CellES3_:
  146|   370k|{
  147|       |
  148|   370k|  p.splitting_queue_add(unit_cell1);
  149|   370k|  p.splitting_queue_add(unit_cell2);
  150|       |
  151|   370k|  do_refine_to_equitable();
  152|   370k|}
_ZN5bliss13AbstractGraph22do_refine_to_equitableEv:
  158|  4.75M|{
  159|       |
  160|  4.75M|  eqref_hash.reset();
  161|       |
  162|  10.7M|  while(!p.splitting_queue_is_empty())
  ------------------
  |  Branch (162:9): [True: 6.01M, False: 4.70M]
  ------------------
  163|  6.01M|    {
  164|  6.01M|      Partition::Cell* const cell = p.splitting_queue_pop();
  165|       |
  166|  6.01M|      if(cell->is_unit())
  ------------------
  |  Branch (166:10): [True: 5.74M, False: 264k]
  ------------------
  167|  5.74M|        {
  168|  5.74M|          if(in_search) {
  ------------------
  |  Branch (168:14): [True: 5.72M, False: 27.1k]
  ------------------
  169|  5.72M|            const unsigned int index = cell->first;
  170|  5.72M|            if(first_path_automorphism)
  ------------------
  |  Branch (170:16): [True: 5.72M, False: 0]
  ------------------
  171|  5.72M|              {
  172|       |                /* Build the (potential) automorphism on-the-fly */
  173|  5.72M|                first_path_automorphism[first_path_labeling_inv[index]] =
  174|  5.72M|                  p.elements[index];
  175|  5.72M|              }
  176|  5.72M|            if(best_path_automorphism)
  ------------------
  |  Branch (176:16): [True: 5.72M, False: 0]
  ------------------
  177|  5.72M|              {
  178|       |                /* Build the (potential) automorphism on-the-fly */
  179|  5.72M|                best_path_automorphism[best_path_labeling_inv[index]] =
  180|  5.72M|                  p.elements[index];
  181|  5.72M|              }
  182|  5.72M|          }
  183|  5.74M|          const bool worse = split_neighbourhood_of_unit_cell(cell);
  184|  5.74M|          if(in_search and worse)
  ------------------
  |  Branch (184:14): [True: 5.72M, False: 27.1k]
  |  Branch (184:28): [True: 12.1k, False: 5.70M]
  ------------------
  185|  12.1k|            goto worse_exit;
  186|  5.74M|        }
  187|   264k|      else
  188|   264k|        {
  189|   264k|          const bool worse = split_neighbourhood_of_cell(cell);
  190|   264k|          if(in_search and worse)
  ------------------
  |  Branch (190:14): [True: 238k, False: 25.5k]
  |  Branch (190:28): [True: 31.5k, False: 206k]
  ------------------
  191|  31.5k|            goto worse_exit;
  192|   264k|        }
  193|  6.01M|    }
  194|       |
  195|  4.70M|  return true;
  196|       |
  197|  43.6k| worse_exit:
  198|       |  /* Clear splitting_queue */
  199|  43.6k|  p.splitting_queue_clear();
  200|  43.6k|  return false;
  201|  4.75M|}
_ZN5bliss13AbstractGraph15update_labelingEPj:
  232|    420|{
  233|    420|  const unsigned int N = get_nof_vertices();
  234|    420|  unsigned int* ep = p.elements;
  235|  5.96k|  for(unsigned int i = 0; i < N; i++, ep++)
  ------------------
  |  Branch (235:27): [True: 5.54k, False: 420]
  ------------------
  236|  5.54k|    labeling[*ep] = i;
  237|    420|}
_ZN5bliss13AbstractGraph31update_labeling_and_its_inverseEPjS1_:
  246|  28.9k|{
  247|  28.9k|  const unsigned int N = get_nof_vertices();
  248|  28.9k|  unsigned int* ep = p.elements;
  249|  28.9k|  unsigned int* clip = labeling_inv;
  250|       |
  251|  1.48M|  for(unsigned int i = 0; i < N; ) {
  ------------------
  |  Branch (251:27): [True: 1.45M, False: 28.9k]
  ------------------
  252|  1.45M|    labeling[*ep] = i;
  253|  1.45M|    i++;
  254|  1.45M|    *clip = *ep;
  255|  1.45M|    ep++;
  256|  1.45M|    clip++;
  257|  1.45M|  }
  258|  28.9k|}
_ZN5bliss13AbstractGraph17reset_permutationEPj:
  276|  61.5k|{
  277|  61.5k|  const unsigned int N = get_nof_vertices();
  278|  3.59M|  for(unsigned int i = 0; i < N; i++, perm++)
  ------------------
  |  Branch (278:27): [True: 3.52M, False: 61.5k]
  ------------------
  279|  3.52M|    *perm = i;
  280|  61.5k|}
_ZN5bliss13AbstractGraph8cert_addEjjj:
  312|  2.87M|{
  313|  2.87M|  if(refine_compare_certificate)
  ------------------
  |  Branch (313:6): [True: 2.67M, False: 204k]
  ------------------
  314|  2.67M|    {
  315|  2.67M|      if(refine_equal_to_first)
  ------------------
  |  Branch (315:10): [True: 594k, False: 2.07M]
  ------------------
  316|   594k|        {
  317|       |          /* So far equivalent to the first path... */
  318|   594k|          unsigned int index = certificate_current_path.size();
  319|   594k|          if(index >= refine_first_path_subcertificate_end)
  ------------------
  |  Branch (319:14): [True: 3, False: 594k]
  ------------------
  320|      3|            {
  321|      3|              refine_equal_to_first = false;
  322|      3|            }
  323|   594k|          else if(certificate_first_path[index] != v1)
  ------------------
  |  Branch (323:19): [True: 127, False: 594k]
  ------------------
  324|    127|            {
  325|    127|              refine_equal_to_first = false;
  326|    127|            }
  327|   594k|          else if(certificate_first_path[++index] != v2)
  ------------------
  |  Branch (327:19): [True: 7.18k, False: 587k]
  ------------------
  328|  7.18k|            {
  329|  7.18k|              refine_equal_to_first = false;
  330|  7.18k|            }
  331|   587k|          else if(certificate_first_path[++index] != v3)
  ------------------
  |  Branch (331:19): [True: 8.83k, False: 578k]
  ------------------
  332|  8.83k|            {
  333|  8.83k|              refine_equal_to_first = false;
  334|  8.83k|            }
  335|   594k|          if(opt_use_failure_recording and !refine_equal_to_first)
  ------------------
  |  Branch (335:14): [True: 594k, False: 0]
  |  Branch (335:44): [True: 16.1k, False: 578k]
  ------------------
  336|  16.1k|            {
  337|       |              /* We just became different from the first path,
  338|       |               * remember the deviation point tree-specific invariant
  339|       |               * for the use of failure recording */
  340|  16.1k|              UintSeqHash h;
  341|  16.1k|              h.update(v1);
  342|  16.1k|              h.update(v2);
  343|  16.1k|              h.update(v3);
  344|  16.1k|              h.update(index);
  345|  16.1k|              h.update(eqref_hash.get_value());
  346|  16.1k|              failure_recording_fp_deviation = h.get_value();
  347|  16.1k|            }
  348|   594k|        }
  349|  2.67M|      if(refine_cmp_to_best == 0)
  ------------------
  |  Branch (349:10): [True: 743k, False: 1.92M]
  ------------------
  350|   743k|        {
  351|       |          /* So far equivalent to the current best path... */
  352|   743k|          unsigned int index = certificate_current_path.size();
  353|   743k|          if(index >= refine_best_path_subcertificate_end)
  ------------------
  |  Branch (353:14): [True: 1, False: 743k]
  ------------------
  354|      1|            {
  355|      1|              refine_cmp_to_best = 1;
  356|      1|            }
  357|   743k|          else if(v1 > certificate_best_path[index])
  ------------------
  |  Branch (357:19): [True: 26, False: 743k]
  ------------------
  358|     26|            {
  359|     26|              refine_cmp_to_best = 1;
  360|     26|            }
  361|   743k|          else if(v1 < certificate_best_path[index])
  ------------------
  |  Branch (361:19): [True: 60, False: 743k]
  ------------------
  362|     60|            {
  363|     60|              refine_cmp_to_best = -1;
  364|     60|            }
  365|   743k|          else if(v2 > certificate_best_path[++index])
  ------------------
  |  Branch (365:19): [True: 33.5k, False: 710k]
  ------------------
  366|  33.5k|            {
  367|  33.5k|              refine_cmp_to_best = 1;
  368|  33.5k|            }
  369|   710k|          else if(v2 < certificate_best_path[index])
  ------------------
  |  Branch (369:19): [True: 21.8k, False: 688k]
  ------------------
  370|  21.8k|            {
  371|  21.8k|              refine_cmp_to_best = -1;
  372|  21.8k|            }
  373|   688k|          else if(v3 > certificate_best_path[++index])
  ------------------
  |  Branch (373:19): [True: 12.6k, False: 675k]
  ------------------
  374|  12.6k|            {
  375|  12.6k|              refine_cmp_to_best = 1;
  376|  12.6k|            }
  377|   675k|          else if(v3 < certificate_best_path[index])
  ------------------
  |  Branch (377:19): [True: 19.9k, False: 655k]
  ------------------
  378|  19.9k|            {
  379|  19.9k|              refine_cmp_to_best = -1;
  380|  19.9k|            }
  381|   743k|        }
  382|  2.67M|      if((refine_equal_to_first == false) and
  ------------------
  |  Branch (382:10): [True: 2.09M, False: 578k]
  ------------------
  383|  2.09M|         (refine_cmp_to_best < 0))
  ------------------
  |  Branch (383:10): [True: 43.6k, False: 2.05M]
  ------------------
  384|  43.6k|        return;
  385|  2.67M|    }
  386|       |  /* Update the current path certificate */
  387|  2.83M|  certificate_current_path.push_back(v1);
  388|  2.83M|  certificate_current_path.push_back(v2);
  389|  2.83M|  certificate_current_path.push_back(v3);
  390|  2.83M|}
_ZN5bliss13AbstractGraph18cert_add_redundantEjjj:
  397|   476k|{
  398|   476k|  return cert_add(v1, v2, v3);
  399|   476k|}
_ZN5bliss13AbstractGraph15long_prune_initEv:
  419|  7.66k|{
  420|  7.66k|  const unsigned int N = get_nof_vertices();
  421|  7.66k|  long_prune_temp.clear();
  422|  7.66k|  long_prune_temp.resize(N);
  423|       |  /* Of how many automorphisms we can store information in
  424|       |     the predefined, fixed amount of memory? */
  425|  7.66k|  const unsigned int nof_fitting_in_max_mem =
  426|  7.66k|    (long_prune_options_max_mem * 1024 * 1024) / (((N * 2) / 8)+1);
  427|  7.66k|  long_prune_max_stored_autss = long_prune_options_max_stored_auts;
  428|       |  /* Had some problems with g++ in using (a<b)?a:b when constants involved,
  429|       |     so had to make this in a stupid way... */
  430|  7.66k|  if(nof_fitting_in_max_mem < long_prune_options_max_stored_auts)
  ------------------
  |  Branch (430:6): [True: 0, False: 7.66k]
  ------------------
  431|      0|    long_prune_max_stored_autss = nof_fitting_in_max_mem;
  432|       |
  433|  7.66k|  long_prune_deallocate();
  434|  7.66k|  long_prune_fixed.resize(N, 0);
  435|  7.66k|  long_prune_mcrs.resize(N, 0);
  436|  7.66k|  long_prune_begin = 0;
  437|  7.66k|  long_prune_end = 0;
  438|  7.66k|}
_ZN5bliss13AbstractGraph21long_prune_deallocateEv:
  442|  15.3k|{
  443|   336k|  while(!long_prune_fixed.empty())
  ------------------
  |  Branch (443:9): [True: 321k, False: 15.3k]
  ------------------
  444|   321k|    {
  445|   321k|      delete long_prune_fixed.back();
  446|   321k|      long_prune_fixed.pop_back();
  447|   321k|    }
  448|   336k|  while(!long_prune_mcrs.empty())
  ------------------
  |  Branch (448:9): [True: 321k, False: 15.3k]
  ------------------
  449|   321k|    {
  450|   321k|      delete long_prune_mcrs.back();
  451|   321k|      long_prune_mcrs.pop_back();
  452|   321k|    }
  453|  15.3k|}
_ZN5bliss13AbstractGraph15long_prune_swapEjj:
  457|  4.07M|{
  458|  4.07M|  const unsigned int real_i = i % long_prune_max_stored_autss;
  459|  4.07M|  const unsigned int real_j = j % long_prune_max_stored_autss;
  460|  4.07M|  std::vector<bool>* tmp = long_prune_fixed[real_i];
  461|  4.07M|  long_prune_fixed[real_i] = long_prune_fixed[real_j];
  462|  4.07M|  long_prune_fixed[real_j] = tmp;
  463|  4.07M|  tmp = long_prune_mcrs[real_i];
  464|  4.07M|  long_prune_mcrs[real_i] = long_prune_mcrs[real_j];
  465|  4.07M|  long_prune_mcrs[real_j] = tmp;
  466|  4.07M|}
_ZN5bliss13AbstractGraph25long_prune_allocget_fixedEj:
  470|   231k|{
  471|   231k|  const unsigned int i = index % long_prune_max_stored_autss;
  472|   231k|  if(!long_prune_fixed[i])
  ------------------
  |  Branch (472:6): [True: 231k, False: 0]
  ------------------
  473|   231k|    long_prune_fixed[i] = new std::vector<bool>(get_nof_vertices());
  474|   231k|  return *long_prune_fixed[i];
  475|   231k|}
_ZN5bliss13AbstractGraph20long_prune_get_fixedEj:
  479|  85.7M|{
  480|  85.7M|  return *long_prune_fixed[index % long_prune_max_stored_autss];
  481|  85.7M|}
_ZN5bliss13AbstractGraph24long_prune_allocget_mcrsEj:
  485|   231k|{
  486|   231k|  const unsigned int i = index % long_prune_max_stored_autss;
  487|   231k|  if(!long_prune_mcrs[i])
  ------------------
  |  Branch (487:6): [True: 231k, False: 0]
  ------------------
  488|   231k|    long_prune_mcrs[i] = new std::vector<bool>(get_nof_vertices());
  489|   231k|  return *long_prune_mcrs[i];
  490|   231k|}
_ZN5bliss13AbstractGraph19long_prune_get_mcrsEj:
  494|  1.56M|{
  495|  1.56M|  return *long_prune_mcrs[index % long_prune_max_stored_autss];
  496|  1.56M|}
_ZN5bliss13AbstractGraph27long_prune_add_automorphismEPKj:
  500|   231k|{
  501|   231k|  if(long_prune_max_stored_autss == 0)
  ------------------
  |  Branch (501:6): [True: 0, False: 231k]
  ------------------
  502|      0|    return;
  503|       |
  504|   231k|  const unsigned int N = get_nof_vertices();
  505|       |
  506|       |
  507|       |  /* If the buffer of stored auts is full, remove the oldest aut */
  508|   231k|  if(long_prune_end - long_prune_begin == long_prune_max_stored_autss)
  ------------------
  |  Branch (508:6): [True: 0, False: 231k]
  ------------------
  509|      0|    {
  510|      0|      long_prune_begin++;
  511|      0|    }
  512|   231k|  long_prune_end++;
  513|   231k|  std::vector<bool>& fixed = long_prune_allocget_fixed(long_prune_end-1);
  514|   231k|  std::vector<bool>& mcrs = long_prune_allocget_mcrs(long_prune_end-1);
  515|       |  /* Mark nodes that are (i) fixed or (ii) minimal orbit representatives
  516|       |   * under the automorphism 'aut' */
  517|  13.2M|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (517:27): [True: 12.9M, False: 231k]
  ------------------
  518|  12.9M|    {
  519|  12.9M|      fixed[i] = (aut[i] == i);
  520|  12.9M|      if(long_prune_temp[i] == false)
  ------------------
  |  Branch (520:10): [True: 12.6M, False: 278k]
  ------------------
  521|  12.6M|        {
  522|  12.6M|          mcrs[i] = true;
  523|  12.6M|          unsigned int j = aut[i];
  524|  12.9M|          while(j != i)
  ------------------
  |  Branch (524:17): [True: 278k, False: 12.6M]
  ------------------
  525|   278k|            {
  526|   278k|              long_prune_temp[j] = true;
  527|   278k|              j = aut[j];
  528|   278k|            }
  529|  12.6M|        }
  530|   278k|      else
  531|   278k|        {
  532|   278k|          mcrs[i] = false;
  533|   278k|        }
  534|       |      /* Clear the temp array on-the-fly... */
  535|  12.9M|      long_prune_temp[i] = false;
  536|  12.9M|    }
  537|       |
  538|       |
  539|   231k|}
_ZN5bliss13AbstractGraph24update_orbit_informationERNS_5OrbitEPKj:
  551|   234k|{
  552|   234k|  const unsigned int N = get_nof_vertices();
  553|  13.3M|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (553:27): [True: 13.1M, False: 234k]
  ------------------
  554|  13.1M|    if(perm[i] != i)
  ------------------
  |  Branch (554:8): [True: 567k, False: 12.5M]
  ------------------
  555|   567k|      o.merge_orbits(i, perm[i]);
  556|   234k|}
_ZN5bliss13AbstractGraph6searchEbRNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
  624|  8.11k|{
  625|  8.11k|  const unsigned int N = get_nof_vertices();
  626|       |
  627|  8.11k|  unsigned int all_same_level = UINT_MAX;
  628|       |
  629|  8.11k|  p.graph = this;
  630|       |
  631|       |  /*
  632|       |   * Must be done!
  633|       |   */
  634|  8.11k|  remove_duplicate_edges();
  635|       |
  636|       |  /*
  637|       |   * Reset search statistics
  638|       |   */
  639|  8.11k|  stats.reset();
  640|  8.11k|  stats.nof_nodes = 1;
  641|  8.11k|  stats.nof_leaf_nodes = 1;
  642|       |
  643|       |  /* Free old first path data structures */
  644|  8.11k|  delete[] first_path_labeling; first_path_labeling = nullptr;
  645|  8.11k|  delete[] first_path_labeling_inv; first_path_labeling_inv = nullptr;
  646|  8.11k|  delete[] first_path_automorphism; first_path_automorphism = nullptr;
  647|       |
  648|       |  /* Free old best path data structures */
  649|  8.11k|  delete[] best_path_labeling; best_path_labeling = nullptr;
  650|  8.11k|  delete[] best_path_labeling_inv; best_path_labeling_inv = nullptr;
  651|  8.11k|  delete[] best_path_automorphism; best_path_automorphism = nullptr;
  652|       |
  653|  8.11k|  if(N == 0)
  ------------------
  |  Branch (653:6): [True: 34, False: 8.08k]
  ------------------
  654|     34|    {
  655|       |      /* Nothing to do, return... */
  656|     34|      return;
  657|     34|    }
  658|       |
  659|       |  /* Initialize the partition ... */
  660|  8.08k|  p.init(N);
  661|       |  /* ... and the component recursion data structures in the partition */
  662|  8.08k|  if(opt_use_comprec)
  ------------------
  |  Branch (662:6): [True: 8.08k, False: 0]
  ------------------
  663|  8.08k|    p.cr_init();
  664|       |
  665|  8.08k|  neighbour_heap.init(N);
  666|       |
  667|  8.08k|  in_search = false;
  668|       |  /* Do not compute certificate when building the initial partition */
  669|  8.08k|  refine_compare_certificate = false;
  670|       |  /* The 'eqref_hash' hash value is not computed when building
  671|       |   * the initial partition as it is not used for anything at the moment.
  672|       |   * This saves some cycles. */
  673|  8.08k|  compute_eqref_hash = false;
  674|       |
  675|  8.08k|  make_initial_equitable_partition();
  676|       |
  677|       |  /*
  678|       |   * Allocate space for the "first path" and "best path" labelings
  679|       |   */
  680|  8.08k|  delete[] first_path_labeling;
  681|  8.08k|  first_path_labeling = new unsigned int[N];
  682|       |
  683|  8.08k|  delete[] best_path_labeling;
  684|  8.08k|  best_path_labeling = new unsigned int[N];
  685|   335k|  for(unsigned int i = 0; i < N; i++) best_path_labeling[i] = i;
  ------------------
  |  Branch (685:27): [True: 327k, False: 8.08k]
  ------------------
  686|       |
  687|       |  /*
  688|       |   * Is the initial partition discrete?
  689|       |   */
  690|  8.08k|  if(p.is_discrete())
  ------------------
  |  Branch (690:6): [True: 420, False: 7.66k]
  ------------------
  691|    420|    {
  692|       |      /* Make the best path labeling i.e. the canonical labeling */
  693|    420|      update_labeling(best_path_labeling);
  694|       |      /* Update statistics */
  695|    420|      stats.nof_leaf_nodes = 1;
  696|       |      /* Release component recursion data in partition */
  697|    420|      if(opt_use_comprec)
  ------------------
  |  Branch (697:10): [True: 420, False: 0]
  ------------------
  698|    420|        p.cr_free();
  699|    420|      return;
  700|    420|    }
  701|       |
  702|       |  /*
  703|       |   * Allocate the inverses of the "first path" and "best path" labelings
  704|       |   */
  705|  7.66k|  delete[] first_path_labeling_inv;
  706|  7.66k|  first_path_labeling_inv = new unsigned int[N];
  707|  7.66k|  std::fill_n(first_path_labeling_inv, N, 0);
  708|  7.66k|  delete[] best_path_labeling_inv;
  709|  7.66k|  best_path_labeling_inv = new unsigned int[N];
  710|  7.66k|  std::fill_n(best_path_labeling_inv, N, 0);
  711|       |
  712|       |  /*
  713|       |   * Allocate space for the automorphisms
  714|       |   */
  715|  7.66k|  delete[] first_path_automorphism;
  716|  7.66k|  first_path_automorphism = new unsigned int[N];
  717|  7.66k|  delete[] best_path_automorphism;
  718|  7.66k|  best_path_automorphism = new unsigned int[N];
  719|       |
  720|       |  /*
  721|       |   * Initialize orbit information so that all vertices are in their own orbits
  722|       |   */
  723|  7.66k|  first_path_orbits.init(N);
  724|  7.66k|  best_path_orbits.init(N);
  725|       |
  726|       |  /*
  727|       |   * Initialize certificate memory
  728|       |   */
  729|  7.66k|  initialize_certificate();
  730|       |
  731|  7.66k|  std::vector<TreeNode> search_stack;
  732|  7.66k|  std::vector<PathInfo> first_path_info;
  733|  7.66k|  std::vector<PathInfo> best_path_info;
  734|       |
  735|  7.66k|  search_stack.clear();
  736|       |
  737|       |  /* Initialize "long prune" data structures */
  738|  7.66k|  if(opt_use_long_prune)
  ------------------
  |  Branch (738:6): [True: 7.66k, False: 0]
  ------------------
  739|  7.66k|    long_prune_init();
  740|       |
  741|       |  /*
  742|       |   * Initialize failure recording data structures
  743|       |   */
  744|  7.66k|  typedef std::set<unsigned int, std::less<unsigned int> > FailureRecordingSet;
  745|  7.66k|  std::vector<FailureRecordingSet> failure_recording_hashes;
  746|       |
  747|       |  /*
  748|       |   * Initialize component recursion data structures
  749|       |   */
  750|  7.66k|  cr_cep_stack.clear();
  751|  7.66k|  unsigned int cr_cep_index = 0;
  752|  7.66k|  {
  753|       |    /* Inset a sentinel "component end point" */
  754|  7.66k|    CR_CEP sentinel;
  755|  7.66k|    sentinel.creation_level = 0;
  756|  7.66k|    sentinel.discrete_cell_limit = get_nof_vertices();
  757|  7.66k|    sentinel.next_cr_level = 0;
  758|  7.66k|    sentinel.next_cep_index = 0;
  759|  7.66k|    sentinel.first_checked = false;
  760|  7.66k|    sentinel.best_checked = false;
  761|  7.66k|    cr_cep_index = 0;
  762|  7.66k|    cr_cep_stack.push_back(sentinel);
  763|  7.66k|  }
  764|  7.66k|  cr_level = 0;
  765|  7.66k|  if(opt_use_comprec and
  ------------------
  |  Branch (765:6): [True: 7.66k, False: 0]
  ------------------
  766|  7.66k|     nucr_find_first_component(cr_level) == true and
  ------------------
  |  Branch (766:6): [True: 7.66k, False: 0]
  ------------------
  767|  7.66k|     p.nof_discrete_cells() + cr_component_elements <
  ------------------
  |  Branch (767:6): [True: 5.55k, False: 2.11k]
  ------------------
  768|  7.66k|     cr_cep_stack[cr_cep_index].discrete_cell_limit)
  769|  5.55k|    {
  770|  5.55k|      cr_level = p.cr_split_level(0, cr_component);
  771|  5.55k|      CR_CEP cep;
  772|  5.55k|      cep.creation_level = 0;
  773|  5.55k|      cep.discrete_cell_limit = p.nof_discrete_cells() + cr_component_elements;
  774|  5.55k|      cep.next_cr_level = 0;
  775|  5.55k|      cep.next_cep_index = cr_cep_index;
  776|  5.55k|      cep.first_checked = false;
  777|  5.55k|      cep.best_checked = false;
  778|  5.55k|      cr_cep_index = cr_cep_stack.size();
  779|  5.55k|      cr_cep_stack.push_back(cep);
  780|  5.55k|    }
  781|       |
  782|       |  /*
  783|       |   * Build the root node of the search tree
  784|       |   */
  785|  7.66k|  {
  786|  7.66k|    TreeNode root;
  787|  7.66k|    Partition::Cell* split_cell = find_next_cell_to_be_splitted(p.first_cell);
  788|  7.66k|    root.split_cell_first = split_cell->first;
  789|  7.66k|    root.split_element = TreeNode::SPLIT_START;
  790|  7.66k|    root.partition_bt_point = p.set_backtrack_point();
  791|  7.66k|    root.certificate_index = 0;
  792|  7.66k|    root.fp_on = true;
  793|  7.66k|    root.fp_cert_equal = true;
  794|  7.66k|    root.fp_extendable = TreeNode::MAYBE;
  795|  7.66k|    root.in_best_path = false;
  796|  7.66k|    root.cmp_to_best_path = 0;
  797|  7.66k|    root.long_prune_begin = 0;
  798|       |
  799|  7.66k|    root.failure_recording_ival = 0;
  800|       |
  801|       |    /* Save component recursion info for backtracking */
  802|  7.66k|    root.cr_level = cr_level;
  803|  7.66k|    root.cr_cep_stack_size = cr_cep_stack.size();
  804|  7.66k|    root.cr_cep_index = cr_cep_index;
  805|  7.66k|    search_stack.push_back(root);
  806|  7.66k|  }
  807|       |
  808|       |  /*
  809|       |   * Set status and global flags for search related procedures
  810|       |   */
  811|  7.66k|  in_search = true;
  812|       |  /* Do not compare certificates during refinement until the first path has been traversed to the leaf */
  813|  7.66k|  refine_compare_certificate = false;
  814|       |
  815|       |
  816|       |
  817|       |
  818|       |  /*
  819|       |   * The actual backtracking search
  820|       |   */
  821|  9.59M|  while(!search_stack.empty())
  ------------------
  |  Branch (821:9): [True: 9.58M, False: 7.66k]
  ------------------
  822|  9.58M|    {
  823|  9.58M|      if(terminate and terminate()) {
  ------------------
  |  Branch (823:10): [True: 9.58M, False: 0]
  |  Branch (823:24): [True: 0, False: 9.58M]
  ------------------
  824|      0|        break;
  825|      0|      }
  826|  9.58M|      TreeNode&          current_node  = search_stack.back();
  827|  9.58M|      const unsigned int current_level = (unsigned int)search_stack.size()-1;
  828|       |
  829|       |
  830|  9.58M|      if(opt_use_comprec)
  ------------------
  |  Branch (830:10): [True: 9.58M, False: 0]
  ------------------
  831|  9.58M|        {
  832|  9.58M|          CR_CEP& cep = cr_cep_stack[current_node.cr_cep_index];
  833|  9.58M|          if(cep.first_checked == true and
  ------------------
  |  Branch (833:14): [True: 7.40M, False: 2.17M]
  ------------------
  834|  7.40M|             current_node.fp_extendable == TreeNode::MAYBE and
  ------------------
  |  Branch (834:14): [True: 3.40M, False: 4.00M]
  ------------------
  835|  3.40M|             !search_stack[cep.creation_level].fp_on)
  ------------------
  |  Branch (835:14): [True: 12, False: 3.40M]
  ------------------
  836|     12|            {
  837|     12|              current_node.fp_extendable = TreeNode::NO;
  838|     12|            }
  839|  9.58M|        }
  840|       |
  841|  9.58M|      if(current_node.fp_on)
  ------------------
  |  Branch (841:10): [True: 708k, False: 8.87M]
  ------------------
  842|   708k|        {
  843|   708k|          if(current_node.split_element == TreeNode::SPLIT_END)
  ------------------
  |  Branch (843:14): [True: 228k, False: 479k]
  ------------------
  844|   228k|            {
  845|   228k|              search_stack.pop_back();
  846|   228k|              continue;
  847|   228k|            }
  848|   708k|        }
  849|  8.87M|      else
  850|  8.87M|        {
  851|  8.87M|          if(current_node.fp_extendable == TreeNode::YES)
  ------------------
  |  Branch (851:14): [True: 3.98M, False: 4.89M]
  ------------------
  852|  3.98M|            {
  853|  3.98M|              search_stack.pop_back();
  854|  3.98M|              continue;
  855|  3.98M|            }
  856|  4.89M|          if(current_node.split_element == TreeNode::SPLIT_END)
  ------------------
  |  Branch (856:14): [True: 201k, False: 4.69M]
  ------------------
  857|   201k|            {
  858|   201k|              if(opt_use_failure_recording)
  ------------------
  |  Branch (858:18): [True: 201k, False: 0]
  ------------------
  859|   201k|                {
  860|   201k|                  TreeNode& parent_node = search_stack[current_level-1];
  861|   201k|                  if(parent_node.fp_on)
  ------------------
  |  Branch (861:22): [True: 3.54k, False: 197k]
  ------------------
  862|  3.54k|                    failure_recording_hashes[current_level-1].insert(current_node.failure_recording_ival);
  863|   201k|                }
  864|   201k|              search_stack.pop_back();
  865|   201k|              continue;
  866|   201k|            }
  867|  4.69M|          if(current_node.fp_extendable == TreeNode::NO and
  ------------------
  |  Branch (867:14): [True: 473k, False: 4.22M]
  ------------------
  868|   473k|             (!canonical or current_node.cmp_to_best_path < 0))
  ------------------
  |  Branch (868:15): [True: 201, False: 473k]
  |  Branch (868:29): [True: 129, False: 473k]
  ------------------
  869|    330|            {
  870|    330|              if(opt_use_failure_recording)
  ------------------
  |  Branch (870:18): [True: 330, False: 0]
  ------------------
  871|    330|                {
  872|    330|                  TreeNode& parent_node = search_stack[current_level-1];
  873|    330|                  if(parent_node.fp_on)
  ------------------
  |  Branch (873:22): [True: 131, False: 199]
  ------------------
  874|    131|                    failure_recording_hashes[current_level-1].insert(current_node.failure_recording_ival);
  875|    330|                }
  876|    330|              search_stack.pop_back();
  877|    330|              continue;
  878|    330|            }
  879|  4.69M|        }
  880|       |
  881|       |      /* Restore partition ... */
  882|  5.17M|      p.goto_backtrack_point(current_node.partition_bt_point);
  883|       |      /* ... and re-remember backtracking point */
  884|  5.17M|      current_node.partition_bt_point = p.set_backtrack_point();
  885|       |
  886|       |      /* Restore current path certificate */
  887|  5.17M|      certificate_index = current_node.certificate_index;
  888|  5.17M|      refine_current_path_certificate_index = current_node.certificate_index;
  889|  5.17M|      certificate_current_path.resize(certificate_index);
  890|       |
  891|       |      /* Fetch split cell information */
  892|  5.17M|      Partition::Cell * const cell =
  893|  5.17M|        p.get_cell(p.elements[current_node.split_cell_first]);
  894|       |
  895|       |      /* Restore component recursion information */
  896|  5.17M|      cr_level = current_node.cr_level;
  897|  5.17M|      cr_cep_stack.resize(current_node.cr_cep_stack_size);
  898|  5.17M|      cr_cep_index = current_node.cr_cep_index;
  899|       |
  900|       |
  901|       |      /*
  902|       |       * Update long prune redundancy sets
  903|       |       */
  904|  5.17M|      if(opt_use_long_prune and current_level >= 1 and !current_node.fp_on)
  ------------------
  |  Branch (904:10): [True: 5.17M, False: 0]
  |  Branch (904:33): [True: 5.14M, False: 25.6k]
  |  Branch (904:56): [True: 4.69M, False: 454k]
  ------------------
  905|  4.69M|        {
  906|  4.69M|          unsigned int begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin;
  ------------------
  |  Branch (906:32): [True: 4.25M, False: 437k]
  ------------------
  907|  88.8M|          for(unsigned int i = begin; i < long_prune_end; i++)
  ------------------
  |  Branch (907:39): [True: 84.1M, False: 4.69M]
  ------------------
  908|  84.1M|            {
  909|  84.1M|              const std::vector<bool>& fixed = long_prune_get_fixed(i);
  910|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  911|       |              for(unsigned int l = 0; l < search_stack.size()-2; l++)
  912|       |                assert(fixed[search_stack[l].split_element]);
  913|       |#endif
  914|  84.1M|              if(fixed[search_stack[search_stack.size()-1-1].split_element] ==
  ------------------
  |  Branch (914:18): [True: 4.07M, False: 80.1M]
  ------------------
  915|  84.1M|                 false)
  916|  4.07M|                {
  917|  4.07M|                  long_prune_swap(begin, i);
  918|  4.07M|                  begin++;
  919|  4.07M|                  current_node.long_prune_begin = begin;
  920|  4.07M|                  continue;
  921|  4.07M|                }
  922|  84.1M|            }
  923|       |
  924|  4.69M|          if(current_node.split_element == TreeNode::SPLIT_START)
  ------------------
  |  Branch (924:14): [True: 4.41M, False: 278k]
  ------------------
  925|  4.41M|            {
  926|  4.41M|              current_node.needs_long_prune = true;
  927|  4.41M|            }
  928|   278k|          else if(current_node.needs_long_prune)
  ------------------
  |  Branch (928:19): [True: 203k, False: 75.6k]
  ------------------
  929|   203k|            {
  930|   203k|              current_node.needs_long_prune = false;
  931|   203k|              unsigned int begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin;
  ------------------
  |  Branch (931:36): [True: 202k, False: 512]
  ------------------
  932|  1.76M|              for(unsigned int i = begin; i < long_prune_end; i++)
  ------------------
  |  Branch (932:43): [True: 1.56M, False: 203k]
  ------------------
  933|  1.56M|                {
  934|  1.56M|                  const std::vector<bool>& fixed = long_prune_get_fixed(i);
  935|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  936|       |                  for(unsigned int l = 0; l < search_stack.size()-2; l++)
  937|       |                    assert(fixed[search_stack[l].split_element]);
  938|       |#endif
  939|  1.56M|                  assert(fixed[search_stack[current_level-1].split_element] == true);
  ------------------
  |  Branch (939:19): [True: 1.56M, False: 0]
  ------------------
  940|  1.56M|                  if(fixed[search_stack[current_level-1].split_element] == false)
  ------------------
  |  Branch (940:22): [True: 0, False: 1.56M]
  ------------------
  941|      0|                    {
  942|      0|                      long_prune_swap(begin, i);
  943|      0|                      begin++;
  944|      0|                      current_node.long_prune_begin = begin;
  945|      0|                      continue;
  946|      0|                    }
  947|  1.56M|                  const std::vector<bool>& mcrs = long_prune_get_mcrs(i);
  948|  1.56M|                  unsigned int* ep = p.elements + cell->first;
  949|  13.0M|                  for(unsigned int j = cell->length; j > 0; j--, ep++) {
  ------------------
  |  Branch (949:54): [True: 11.4M, False: 1.56M]
  ------------------
  950|  11.4M|                    if(mcrs[*ep] == false)
  ------------------
  |  Branch (950:24): [True: 1.28M, False: 10.2M]
  ------------------
  951|  1.28M|                      current_node.long_prune_redundant.insert(*ep);
  952|  11.4M|                  }
  953|  1.56M|                }
  954|   203k|            }
  955|  4.69M|        }
  956|       |
  957|       |
  958|       |      /*
  959|       |       * Find the next smallest, non-isomorphic element in the cell and
  960|       |       * store it in current_node.split_element
  961|       |       */
  962|  5.17M|      {
  963|  5.17M|        unsigned int  next_split_element = UINT_MAX;
  964|       |        //unsigned int* next_split_element_pos = 0;
  965|  5.17M|        unsigned int* ep = p.elements + cell->first;
  966|  5.17M|        if(current_node.fp_on)
  ------------------
  |  Branch (966:12): [True: 479k, False: 4.69M]
  ------------------
  967|   479k|          {
  968|       |            /* Find the next larger splitting element that is
  969|       |             * a minimal orbit representative w.r.t. first_path_orbits */
  970|  10.0M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (970:48): [True: 9.56M, False: 479k]
  ------------------
  971|  9.56M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (971:18): [True: 8.71M, False: 851k]
  ------------------
  972|  8.71M|                 *ep < next_split_element and
  ------------------
  |  Branch (972:18): [True: 8.13M, False: 586k]
  ------------------
  973|  8.13M|                 first_path_orbits.is_minimal_representative(*ep)) {
  ------------------
  |  Branch (973:18): [True: 279k, False: 7.85M]
  ------------------
  974|   279k|                next_split_element = *ep;
  975|       |                //next_split_element_pos = ep;
  976|   279k|              }
  977|  9.56M|            }
  978|   479k|          }
  979|  4.69M|        else if(current_node.in_best_path)
  ------------------
  |  Branch (979:17): [True: 274k, False: 4.41M]
  ------------------
  980|   274k|          {
  981|       |            /* Find the next larger splitting element that is
  982|       |             * a minimal orbit representative w.r.t. best_path_orbits */
  983|  2.61M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (983:48): [True: 2.33M, False: 274k]
  ------------------
  984|  2.33M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (984:18): [True: 1.78M, False: 549k]
  |  Branch (984:18): [True: 81.5k, False: 2.25M]
  ------------------
  985|  1.78M|                 *ep < next_split_element and
  ------------------
  |  Branch (985:18): [True: 1.31M, False: 473k]
  ------------------
  986|  1.31M|                 best_path_orbits.is_minimal_representative(*ep) and
  ------------------
  |  Branch (986:18): [True: 1.30M, False: 7.21k]
  ------------------
  987|  1.30M|                 (!opt_use_long_prune or
  ------------------
  |  Branch (987:19): [True: 0, False: 1.30M]
  ------------------
  988|  1.30M|                  current_node.long_prune_redundant.find(*ep) ==
  ------------------
  |  Branch (988:19): [True: 81.5k, False: 1.22M]
  ------------------
  989|  1.30M|                  current_node.long_prune_redundant.end())) {
  990|  81.5k|                next_split_element = *ep;
  991|       |                //next_split_element_pos = ep;
  992|  81.5k|              }
  993|  2.33M|            }
  994|   274k|          }
  995|  4.41M|        else
  996|  4.41M|          {
  997|       |            /* Find the next larger splitting element */
  998|  72.5M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (998:48): [True: 68.1M, False: 4.41M]
  ------------------
  999|  68.1M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (999:18): [True: 68.1M, False: 7.05k]
  |  Branch (999:18): [True: 64.2M, False: 3.94M]
  ------------------
 1000|  68.1M|                 *ep < next_split_element and
  ------------------
  |  Branch (1000:18): [True: 64.2M, False: 3.92M]
  ------------------
 1001|  64.2M|                 (!opt_use_long_prune or
  ------------------
  |  Branch (1001:19): [True: 0, False: 64.2M]
  ------------------
 1002|  64.2M|                  current_node.long_prune_redundant.find(*ep) ==
  ------------------
  |  Branch (1002:19): [True: 64.2M, False: 14.4k]
  ------------------
 1003|  64.2M|                  current_node.long_prune_redundant.end())) {
 1004|  64.2M|                next_split_element = *ep;
 1005|       |                //next_split_element_pos = ep;
 1006|  64.2M|              }
 1007|  68.1M|            }
 1008|  4.41M|          }
 1009|  5.17M|        if(next_split_element == UINT_MAX)
  ------------------
  |  Branch (1009:12): [True: 429k, False: 4.74M]
  ------------------
 1010|   429k|          {
 1011|       |            /* No more (unexplored children) in the cell */
 1012|   429k|            current_node.split_element = TreeNode::SPLIT_END;
 1013|   429k|            if(current_node.fp_on)
  ------------------
  |  Branch (1013:16): [True: 228k, False: 201k]
  ------------------
 1014|   228k|              {
 1015|       |                /* Update group size */
 1016|   228k|                const unsigned int index = first_path_orbits.orbit_size(first_path_info[search_stack.size()-1].splitting_element);
 1017|   228k|                stats.group_size.multiply(index);
 1018|   228k|                stats.group_size_approx *= (long double)index;
 1019|       |                /*
 1020|       |                 * Update all_same_level
 1021|       |                 */
 1022|   228k|                if(index == cell->length and all_same_level == current_level+1)
  ------------------
  |  Branch (1022:20): [True: 223k, False: 4.70k]
  |  Branch (1022:46): [True: 157k, False: 66.0k]
  ------------------
 1023|   157k|                  all_same_level = current_level;
 1024|       |                /*
 1025|       |                if(verbstr and verbose_level >= 2) {
 1026|       |                  fprintf(verbstr,
 1027|       |                          "Level %u: orbits=%u, index=%u/%u, all_same_level=%u\n",
 1028|       |                          current_level,
 1029|       |                          first_path_orbits.nof_orbits(),
 1030|       |                          index, cell->length,
 1031|       |                          all_same_level);
 1032|       |                  fflush(verbstr);
 1033|       |                }
 1034|       |                */
 1035|   228k|              }
 1036|   429k|            continue;
 1037|   429k|          }
 1038|       |
 1039|       |        /* Split on smallest */
 1040|  4.74M|        current_node.split_element = next_split_element;
 1041|  4.74M|      }
 1042|       |
 1043|      0|      const unsigned int child_level = current_level+1;
 1044|       |      /* Update some statistics */
 1045|  4.74M|      stats.nof_nodes++;
 1046|  4.74M|      if(search_stack.size() > stats.max_level)
  ------------------
  |  Branch (1046:10): [True: 228k, False: 4.51M]
  ------------------
 1047|   228k|        stats.max_level = search_stack.size();
 1048|       |
 1049|       |
 1050|       |
 1051|       |      /* Set flags and indices for the refiner certificate builder */
 1052|  4.74M|      refine_equal_to_first = current_node.fp_cert_equal;
 1053|  4.74M|      refine_cmp_to_best = current_node.cmp_to_best_path;
 1054|  4.74M|      if(!first_path_info.empty())
  ------------------
  |  Branch (1054:10): [True: 4.51M, False: 228k]
  ------------------
 1055|  4.51M|        {
 1056|  4.51M|          if(refine_equal_to_first)
  ------------------
  |  Branch (1056:14): [True: 4.22M, False: 286k]
  ------------------
 1057|  4.22M|            refine_first_path_subcertificate_end =
 1058|  4.22M|              first_path_info[search_stack.size()-1].certificate_index +
 1059|  4.22M|              first_path_info[search_stack.size()-1].subcertificate_length;
 1060|  4.51M|          if(canonical)
  ------------------
  |  Branch (1060:14): [True: 3.42M, False: 1.09M]
  ------------------
 1061|  3.42M|            {
 1062|  3.42M|              if(refine_cmp_to_best == 0)
  ------------------
  |  Branch (1062:18): [True: 3.21M, False: 205k]
  ------------------
 1063|  3.21M|                refine_best_path_subcertificate_end =
 1064|  3.21M|                  best_path_info[search_stack.size()-1].certificate_index +
 1065|  3.21M|                  best_path_info[search_stack.size()-1].subcertificate_length;
 1066|  3.42M|            }
 1067|  1.09M|          else
 1068|  1.09M|            refine_cmp_to_best = -1;
 1069|  4.51M|        }
 1070|       |
 1071|  4.74M|      const bool was_fp_cert_equal = current_node.fp_cert_equal;
 1072|       |
 1073|       |      /* Individualize, i.e. split the cell in two, the latter new cell
 1074|       |       * will be a unit one containing info.split_element */
 1075|  4.74M|      Partition::Cell* const new_cell =
 1076|  4.74M|        p.individualize(cell, current_node.split_element);
 1077|       |
 1078|       |      /*
 1079|       |       * Refine the new partition to equitable
 1080|       |       */
 1081|  4.74M|      if(cell->is_unit())
  ------------------
  |  Branch (1081:10): [True: 370k, False: 4.37M]
  ------------------
 1082|   370k|        refine_to_equitable(cell, new_cell);
 1083|  4.37M|      else
 1084|  4.37M|        refine_to_equitable(new_cell);
 1085|       |
 1086|       |
 1087|       |
 1088|       |
 1089|       |      /* Update statistics */
 1090|  4.74M|      if(p.is_discrete())
  ------------------
  |  Branch (1090:10): [True: 65.8k, False: 4.67M]
  ------------------
 1091|  65.8k|        stats.nof_leaf_nodes++;
 1092|       |
 1093|       |
 1094|  4.74M|      if(!first_path_info.empty())
  ------------------
  |  Branch (1094:10): [True: 4.51M, False: 228k]
  ------------------
 1095|  4.51M|        {
 1096|       |          /* We are no longer on the first path */
 1097|  4.51M|          const unsigned int subcertificate_length =
 1098|  4.51M|            certificate_current_path.size() - certificate_index;
 1099|  4.51M|          if(refine_equal_to_first)
  ------------------
  |  Branch (1099:14): [True: 4.21M, False: 303k]
  ------------------
 1100|  4.21M|            {
 1101|       |              /* Was equal to the first path so far */
 1102|  4.21M|              PathInfo& first_pinfo = first_path_info[current_level];
 1103|  4.21M|              assert(first_pinfo.certificate_index == certificate_index);
  ------------------
  |  Branch (1103:15): [True: 4.21M, False: 0]
  ------------------
 1104|  4.21M|              if(subcertificate_length != first_pinfo.subcertificate_length)
  ------------------
  |  Branch (1104:18): [True: 4, False: 4.21M]
  ------------------
 1105|      4|                {
 1106|      4|                  refine_equal_to_first = false;
 1107|      4|                  if(opt_use_failure_recording)
  ------------------
  |  Branch (1107:22): [True: 4, False: 0]
  ------------------
 1108|      4|                    failure_recording_fp_deviation = subcertificate_length;
 1109|      4|                }
 1110|  4.21M|              else if(first_pinfo.eqref_hash.cmp(eqref_hash) != 0)
  ------------------
  |  Branch (1110:23): [True: 0, False: 4.21M]
  ------------------
 1111|      0|                {
 1112|      0|                  refine_equal_to_first = false;
 1113|      0|                  if(opt_use_failure_recording)
  ------------------
  |  Branch (1113:22): [True: 0, False: 0]
  ------------------
 1114|      0|                    failure_recording_fp_deviation = eqref_hash.get_value();
 1115|      0|                }
 1116|  4.21M|            }
 1117|  4.51M|          if(canonical and (refine_cmp_to_best == 0))
  ------------------
  |  Branch (1117:14): [True: 3.42M, False: 1.09M]
  |  Branch (1117:28): [True: 3.12M, False: 293k]
  ------------------
 1118|  3.12M|            {
 1119|       |              /* Was equal to the best path so far */
 1120|  3.12M|              PathInfo& bestp_info = best_path_info[current_level];
 1121|  3.12M|              assert(bestp_info.certificate_index == certificate_index);
  ------------------
  |  Branch (1121:15): [True: 3.12M, False: 0]
  ------------------
 1122|  3.12M|              if(subcertificate_length < bestp_info.subcertificate_length)
  ------------------
  |  Branch (1122:18): [True: 1, False: 3.12M]
  ------------------
 1123|      1|                {
 1124|      1|                  refine_cmp_to_best = -1;
 1125|      1|                }
 1126|  3.12M|              else if(subcertificate_length > bestp_info.subcertificate_length)
  ------------------
  |  Branch (1126:23): [True: 0, False: 3.12M]
  ------------------
 1127|      0|                {
 1128|      0|                  refine_cmp_to_best = 1;
 1129|      0|                }
 1130|  3.12M|              else if(bestp_info.eqref_hash.cmp(eqref_hash) > 0)
  ------------------
  |  Branch (1130:23): [True: 0, False: 3.12M]
  ------------------
 1131|      0|                {
 1132|      0|                  refine_cmp_to_best = -1;
 1133|      0|                }
 1134|  3.12M|              else if(bestp_info.eqref_hash.cmp(eqref_hash) < 0)
  ------------------
  |  Branch (1134:23): [True: 0, False: 3.12M]
  ------------------
 1135|      0|                {
 1136|      0|                  refine_cmp_to_best = 1;
 1137|      0|                }
 1138|  3.12M|            }
 1139|       |
 1140|  4.51M|          if(opt_use_failure_recording and
  ------------------
  |  Branch (1140:14): [True: 4.51M, False: 0]
  ------------------
 1141|  4.51M|             was_fp_cert_equal and
  ------------------
  |  Branch (1141:14): [True: 4.22M, False: 286k]
  ------------------
 1142|  4.22M|             !refine_equal_to_first)
  ------------------
  |  Branch (1142:14): [True: 16.1k, False: 4.21M]
  ------------------
 1143|  16.1k|            {
 1144|  16.1k|              UintSeqHash k;
 1145|  16.1k|              k.update(failure_recording_fp_deviation);
 1146|  16.1k|              k.update(eqref_hash.get_value());
 1147|  16.1k|              failure_recording_fp_deviation = k.get_value();
 1148|       |
 1149|  16.1k|              if(current_node.fp_on)
  ------------------
  |  Branch (1149:18): [True: 14.5k, False: 1.61k]
  ------------------
 1150|  14.5k|                failure_recording_hashes[current_level].insert(failure_recording_fp_deviation);
 1151|  1.61k|              else
 1152|  1.61k|                {
 1153|  2.41k|                  for(unsigned int i = current_level; i > 0; i--)
  ------------------
  |  Branch (1153:55): [True: 2.38k, False: 28]
  ------------------
 1154|  2.38k|                    {
 1155|  2.38k|                      if(search_stack[i].fp_on)
  ------------------
  |  Branch (1155:26): [True: 245, False: 2.13k]
  ------------------
 1156|    245|                        break;
 1157|  2.13k|                      const FailureRecordingSet& s = failure_recording_hashes[i];
 1158|  2.13k|                      if(i == current_level and
  ------------------
  |  Branch (1158:26): [True: 1.61k, False: 521]
  |  Branch (1158:26): [True: 1.03k, False: 1.10k]
  ------------------
 1159|  1.61k|                         s.find(failure_recording_fp_deviation) != s.end())
  ------------------
  |  Branch (1159:26): [True: 1.03k, False: 586]
  ------------------
 1160|  1.03k|                        break;
 1161|  1.10k|                      if(s.find(0) != s.end())
  ------------------
  |  Branch (1161:26): [True: 313, False: 794]
  ------------------
 1162|    313|                        break;
 1163|    794|                      search_stack[i].fp_extendable = TreeNode::NO;
 1164|    794|                    }
 1165|  1.61k|                }
 1166|  16.1k|            }
 1167|       |
 1168|       |
 1169|       |          /* Check if no longer equal to the first path and,
 1170|       |           * if canonical labeling is desired, also worse than the
 1171|       |           * current best path */
 1172|  4.51M|          if(refine_equal_to_first == false and
  ------------------
  |  Branch (1172:14): [True: 303k, False: 4.21M]
  ------------------
 1173|   303k|             (!canonical or (refine_cmp_to_best < 0)))
  ------------------
  |  Branch (1173:15): [True: 3.00k, False: 300k]
  |  Branch (1173:29): [True: 40.6k, False: 259k]
  ------------------
 1174|  43.6k|            {
 1175|       |              /* Yes, backtrack */
 1176|  43.6k|              stats.nof_bad_nodes++;
 1177|  43.6k|              if(current_node.fp_cert_equal == true and
  ------------------
  |  Branch (1177:18): [True: 11.4k, False: 32.1k]
  ------------------
 1178|  11.4k|                 current_level+1 > all_same_level)
  ------------------
  |  Branch (1178:18): [True: 288, False: 11.2k]
  ------------------
 1179|    288|                {
 1180|    288|                  assert(all_same_level >= 1);
  ------------------
  |  Branch (1180:19): [True: 288, False: 0]
  ------------------
 1181|    288|                  for(unsigned int i = all_same_level;
 1182|    874|                      i < search_stack.size();
  ------------------
  |  Branch (1182:23): [True: 586, False: 288]
  ------------------
 1183|    586|                      i++)
 1184|    586|                    {
 1185|    586|                      search_stack[i].fp_extendable = TreeNode::NO;
 1186|    586|                    }
 1187|    288|                }
 1188|       |
 1189|  43.6k|              continue;
 1190|  43.6k|            }
 1191|  4.51M|        }
 1192|       |
 1193|       |#if defined(BLISS_VERIFY_EQUITABLEDNESS)
 1194|       |      /* The new partition should be equitable */
 1195|       |      if(!is_equitable())
 1196|       |        fatal_error("consistency check failed - partition after refinement is not equitable");
 1197|       |#endif
 1198|       |
 1199|       |      /*
 1200|       |       * Next level search tree node info
 1201|       |       */
 1202|  4.70M|      TreeNode child_node;
 1203|       |
 1204|       |      /* No more in the first path */
 1205|  4.70M|      child_node.fp_on = false;
 1206|       |      /* No more in the best path */
 1207|  4.70M|      child_node.in_best_path = false;
 1208|       |
 1209|  4.70M|      child_node.fp_cert_equal = refine_equal_to_first;
 1210|  4.70M|      if(current_node.fp_extendable == TreeNode::NO or
  ------------------
  |  Branch (1210:10): [True: 246k, False: 4.45M]
  ------------------
 1211|  4.45M|         (current_node.fp_extendable == TreeNode::MAYBE and
  ------------------
  |  Branch (1211:11): [True: 4.22M, False: 233k]
  ------------------
 1212|  4.22M|          child_node.fp_cert_equal == false))
  ------------------
  |  Branch (1212:11): [True: 8.37k, False: 4.21M]
  ------------------
 1213|   255k|        child_node.fp_extendable = TreeNode::NO;
 1214|  4.44M|      else
 1215|  4.44M|        child_node.fp_extendable = TreeNode::MAYBE;
 1216|  4.70M|      child_node.cmp_to_best_path = refine_cmp_to_best;
 1217|       |
 1218|  4.70M|      child_node.failure_recording_ival = 0;
 1219|  4.70M|      child_node.cr_cep_stack_size = current_node.cr_cep_stack_size;
 1220|  4.70M|      child_node.cr_cep_index = current_node.cr_cep_index;
 1221|  4.70M|      child_node.cr_level = current_node.cr_level;
 1222|       |
 1223|  4.70M|      certificate_index = certificate_current_path.size();
 1224|       |
 1225|  4.70M|      current_node.eqref_hash = eqref_hash;
 1226|  4.70M|      current_node.subcertificate_length =
 1227|  4.70M|        certificate_index - current_node.certificate_index;
 1228|       |
 1229|       |
 1230|       |      /*
 1231|       |       * The first encountered leaf node at the end of the "first path"?
 1232|       |       */
 1233|  4.70M|      if(p.is_discrete() and first_path_info.empty())
  ------------------
  |  Branch (1233:10): [True: 65.4k, False: 4.63M]
  |  Branch (1233:30): [True: 7.66k, False: 57.7k]
  ------------------
 1234|  7.66k|        {
 1235|       |          //fprintf(stdout, "Level %u: FIRST\n", child_level); fflush(stdout);
 1236|  7.66k|          stats.nof_canupdates++;
 1237|       |          /*
 1238|       |           * Update labelings and their inverses
 1239|       |           */
 1240|  7.66k|          update_labeling_and_its_inverse(first_path_labeling,
 1241|  7.66k|                                          first_path_labeling_inv);
 1242|  7.66k|          update_labeling_and_its_inverse(best_path_labeling,
 1243|  7.66k|                                          best_path_labeling_inv);
 1244|       |          /*
 1245|       |           * Reset automorphism array
 1246|       |           */
 1247|  7.66k|          reset_permutation(first_path_automorphism);
 1248|  7.66k|          reset_permutation(best_path_automorphism);
 1249|       |          /*
 1250|       |           * Reset orbit information
 1251|       |           */
 1252|  7.66k|          first_path_orbits.reset();
 1253|  7.66k|          best_path_orbits.reset();
 1254|       |          /*
 1255|       |           * Reset group size
 1256|       |           */
 1257|  7.66k|          stats.group_size.assign(1);
 1258|  7.66k|          stats.group_size_approx = 1.0;
 1259|       |          /*
 1260|       |           * Reset all_same_level
 1261|       |           */
 1262|  7.66k|          all_same_level = child_level;
 1263|       |          /*
 1264|       |           * Mark the current path to be the first and best one and save it
 1265|       |           */
 1266|  7.66k|          const unsigned int base_size = search_stack.size();
 1267|  7.66k|          best_path_info.clear();
 1268|       |          //fprintf(stdout, " New base is: ");
 1269|   236k|          for(unsigned int i = 0; i < base_size; i++) {
  ------------------
  |  Branch (1269:35): [True: 228k, False: 7.66k]
  ------------------
 1270|   228k|            search_stack[i].fp_on = true;
 1271|   228k|            search_stack[i].fp_cert_equal = true;
 1272|   228k|            search_stack[i].fp_extendable = TreeNode::YES;
 1273|   228k|            search_stack[i].in_best_path = true;
 1274|   228k|            search_stack[i].cmp_to_best_path = 0;
 1275|   228k|            PathInfo path_info;
 1276|   228k|            path_info.splitting_element = search_stack[i].split_element;
 1277|   228k|            path_info.certificate_index = search_stack[i].certificate_index;
 1278|   228k|            path_info.eqref_hash = search_stack[i].eqref_hash;
 1279|   228k|            path_info.subcertificate_length = search_stack[i].subcertificate_length;
 1280|   228k|            first_path_info.push_back(path_info);
 1281|   228k|            best_path_info.push_back(path_info);
 1282|       |            //fprintf(stdout, "%u ", search_stack[i].split_element);
 1283|   228k|          }
 1284|       |          //fprintf(stdout, "\n"); fflush(stdout);
 1285|       |          /* Copy certificates */
 1286|  7.66k|          certificate_first_path = certificate_current_path;
 1287|  7.66k|          certificate_best_path = certificate_current_path;
 1288|       |
 1289|       |          /* From now on, compare certificates when refining */
 1290|  7.66k|          refine_compare_certificate = true;
 1291|       |
 1292|  7.66k|          if(opt_use_failure_recording)
  ------------------
  |  Branch (1292:14): [True: 7.66k, False: 0]
  ------------------
 1293|  7.66k|            failure_recording_hashes.resize(base_size);
 1294|       |
 1295|       |          /*
 1296|       |          for(unsigned int j = 0; j < search_stack.size(); j++)
 1297|       |            fprintf(stderr, "%u ", search_stack[j].split_element);
 1298|       |          fprintf(stderr, "\n");
 1299|       |          p.print(stderr); fprintf(stderr, "\n");
 1300|       |          */
 1301|       |
 1302|       |          /*
 1303|       |           * Backtrack to the previous level
 1304|       |           */
 1305|  7.66k|          continue;
 1306|  7.66k|        }
 1307|       |
 1308|       |
 1309|  4.69M|      if(p.is_discrete() and child_node.fp_cert_equal)
  ------------------
  |  Branch (1309:10): [True: 57.7k, False: 4.63M]
  |  Branch (1309:30): [True: 43.0k, False: 14.7k]
  ------------------
 1310|  43.0k|        {
 1311|       |          /*
 1312|       |           * A leaf node that is equal to the first one.
 1313|       |           * An automorphism found: aut[i] = elements[first_path_labeling[i]]
 1314|       |           */
 1315|  43.0k|          goto handle_first_path_automorphism;
 1316|  43.0k|        }
 1317|       |
 1318|       |
 1319|  4.65M|      if(!p.is_discrete())
  ------------------
  |  Branch (1319:10): [True: 4.63M, False: 14.7k]
  ------------------
 1320|  4.63M|        {
 1321|  4.63M|          Partition::Cell* next_split_cell = 0;
 1322|       |          /*
 1323|       |           * An internal, non-leaf node
 1324|       |           */
 1325|  4.63M|          if(opt_use_comprec)
  ------------------
  |  Branch (1325:14): [True: 4.63M, False: 0]
  ------------------
 1326|  4.63M|            {
 1327|  4.63M|              assert(p.nof_discrete_cells() <=
  ------------------
  |  Branch (1327:15): [True: 4.63M, False: 0]
  ------------------
 1328|  4.63M|                     cr_cep_stack[cr_cep_index].discrete_cell_limit);
 1329|  4.63M|              assert(cr_level == child_node.cr_level);
  ------------------
  |  Branch (1329:15): [True: 4.63M, False: 0]
  ------------------
 1330|       |
 1331|       |
 1332|  4.63M|              if(p.nof_discrete_cells() ==
  ------------------
  |  Branch (1332:18): [True: 318k, False: 4.31M]
  ------------------
 1333|  4.63M|                 cr_cep_stack[cr_cep_index].discrete_cell_limit)
 1334|   318k|                {
 1335|       |                  /* We have reached the end of a component */
 1336|   318k|                  assert(cr_cep_index != 0);
  ------------------
  |  Branch (1336:19): [True: 318k, False: 0]
  ------------------
 1337|   318k|                  CR_CEP& cep = cr_cep_stack[cr_cep_index];
 1338|       |
 1339|       |                  /* First, compare with respect to the first path */
 1340|   318k|                  if(first_path_info.empty() or child_node.fp_cert_equal) {
  ------------------
  |  Branch (1340:22): [True: 12.3k, False: 306k]
  |  Branch (1340:49): [True: 197k, False: 108k]
  ------------------
 1341|   210k|                    if(cep.first_checked == false)
  ------------------
  |  Branch (1341:24): [True: 24.4k, False: 185k]
  ------------------
 1342|  24.4k|                      {
 1343|       |                        /* First time, go to the next component */
 1344|  24.4k|                        cep.first_checked = true;
 1345|  24.4k|                      }
 1346|   185k|                    else
 1347|   185k|                      {
 1348|   185k|                        assert(!first_path_info.empty());
  ------------------
  |  Branch (1348:25): [True: 185k, False: 0]
  ------------------
 1349|   185k|                        assert(cep.creation_level < search_stack.size());
  ------------------
  |  Branch (1349:25): [True: 185k, False: 0]
  ------------------
 1350|   185k|                        TreeNode& old_info = search_stack[cep.creation_level];
 1351|       |                        /* If the component was found when on the first path,
 1352|       |                         * handle the found automorphism as the other
 1353|       |                         * first path automorphisms */
 1354|   185k|                        if(old_info.fp_on)
  ------------------
  |  Branch (1354:28): [True: 185k, False: 80]
  ------------------
 1355|   185k|                          goto handle_first_path_automorphism;
 1356|   185k|                      }
 1357|   210k|                  }
 1358|       |
 1359|   133k|                  if(canonical and
  ------------------
  |  Branch (1359:22): [True: 126k, False: 6.99k]
  ------------------
 1360|   126k|                     !first_path_info.empty() and
  ------------------
  |  Branch (1360:22): [True: 116k, False: 9.22k]
  ------------------
 1361|   116k|                     child_node.cmp_to_best_path >= 0) {
  ------------------
  |  Branch (1361:22): [True: 114k, False: 2.13k]
  ------------------
 1362|   114k|                    if(cep.best_checked == false)
  ------------------
  |  Branch (1362:24): [True: 80.2k, False: 34.6k]
  ------------------
 1363|  80.2k|                      {
 1364|       |                        /* First time, go to the next component */
 1365|  80.2k|                        cep.best_checked = true;
 1366|  80.2k|                      }
 1367|  34.6k|                    else
 1368|  34.6k|                      {
 1369|  34.6k|                        assert(cep.creation_level < search_stack.size());
  ------------------
  |  Branch (1369:25): [True: 34.6k, False: 0]
  ------------------
 1370|  34.6k|                        TreeNode& old_info = search_stack[cep.creation_level];
 1371|  34.6k|                        if(child_node.cmp_to_best_path == 0) {
  ------------------
  |  Branch (1371:28): [True: 2.02k, False: 32.6k]
  ------------------
 1372|       |                          /* If the component was found when on the best path,
 1373|       |                           * handle the found automorphism as the other
 1374|       |                           * best path automorphisms */
 1375|  2.02k|                          if(old_info.in_best_path)
  ------------------
  |  Branch (1375:30): [True: 1.94k, False: 83]
  ------------------
 1376|  1.94k|                            goto handle_best_path_automorphism;
 1377|       |                          /* Otherwise, we do not remember the automorhism as
 1378|       |                           * we didn't memorize the path that was invariant
 1379|       |                           * equal to the best one and passed through the
 1380|       |                           * component.
 1381|       |                           * Thus we can only backtrack to the previous level */
 1382|     83|                          child_node.cmp_to_best_path = -1;
 1383|     83|                          if(!child_node.fp_cert_equal)
  ------------------
  |  Branch (1383:30): [True: 10, False: 73]
  ------------------
 1384|     10|                            {
 1385|     10|                              continue;
 1386|     10|                            }
 1387|     83|                        }
 1388|  32.6k|                        else {
 1389|  32.6k|                          assert(child_node.cmp_to_best_path > 0);
  ------------------
  |  Branch (1389:27): [True: 32.6k, False: 0]
  ------------------
 1390|  32.6k|                          if(old_info.in_best_path)
  ------------------
  |  Branch (1390:30): [True: 32.6k, False: 0]
  ------------------
 1391|  32.6k|                            {
 1392|  32.6k|                              stats.nof_canupdates++;
 1393|       |                              /*
 1394|       |                               * Update canonical labeling and its inverse
 1395|       |                               */
 1396|  2.10M|                              for(unsigned int i = 0; i < N; i++) {
  ------------------
  |  Branch (1396:55): [True: 2.07M, False: 32.6k]
  ------------------
 1397|  2.07M|                                if(p.get_cell(p.elements[i])->is_unit()) {
  ------------------
  |  Branch (1397:36): [True: 1.60M, False: 470k]
  ------------------
 1398|  1.60M|                                  best_path_labeling[p.elements[i]] = i;
 1399|  1.60M|                                  best_path_labeling_inv[i] = p.elements[i];
 1400|  1.60M|                                }
 1401|  2.07M|                              }
 1402|       |                              //update_labeling_and_its_inverse(best_path_labeling, best_path_labeling_inv);
 1403|       |                              /* Reset best path automorphism */
 1404|  32.6k|                              reset_permutation(best_path_automorphism);
 1405|       |                              /* Reset best path orbit structure */
 1406|  32.6k|                              best_path_orbits.reset();
 1407|       |                              /* Mark to be the best one and save prefix */
 1408|  32.6k|                              unsigned int postfix_start = cep.creation_level;
 1409|  32.6k|                              assert(postfix_start < best_path_info.size());
  ------------------
  |  Branch (1409:31): [True: 32.6k, False: 0]
  ------------------
 1410|   238k|                              while(p.get_cell(best_path_info[postfix_start].splitting_element)->is_unit()) {
  ------------------
  |  Branch (1410:37): [True: 205k, False: 32.6k]
  ------------------
 1411|   205k|                                postfix_start++;
 1412|   205k|                                assert(postfix_start < best_path_info.size());
  ------------------
  |  Branch (1412:33): [True: 205k, False: 0]
  ------------------
 1413|   205k|                              }
 1414|  32.6k|                              unsigned int postfix_start_cert = best_path_info[postfix_start].certificate_index;
 1415|  32.6k|                              std::vector<PathInfo> best_path_temp = best_path_info;
 1416|  32.6k|                              best_path_info.clear();
 1417|  1.12M|                              for(unsigned int i = 0; i < search_stack.size(); i++) {
  ------------------
  |  Branch (1417:55): [True: 1.08M, False: 32.6k]
  ------------------
 1418|  1.08M|                                TreeNode& ss_info = search_stack[i];
 1419|  1.08M|                                PathInfo  bp_info;
 1420|  1.08M|                                ss_info.cmp_to_best_path = 0;
 1421|  1.08M|                                ss_info.in_best_path = true;
 1422|  1.08M|                                bp_info.splitting_element = ss_info.split_element;
 1423|  1.08M|                                bp_info.certificate_index = ss_info.certificate_index;
 1424|  1.08M|                                bp_info.subcertificate_length = ss_info.subcertificate_length;
 1425|  1.08M|                                bp_info.eqref_hash = ss_info.eqref_hash;
 1426|  1.08M|                                best_path_info.push_back(bp_info);
 1427|  1.08M|                              }
 1428|       |                              /* Copy the postfix of the previous best path */
 1429|  32.6k|                              for(unsigned int i = postfix_start;
 1430|   186k|                                  i < best_path_temp.size();
  ------------------
  |  Branch (1430:35): [True: 153k, False: 32.6k]
  ------------------
 1431|   153k|                                  i++)
 1432|   153k|                                {
 1433|   153k|                                  best_path_info.push_back(best_path_temp[i]);
 1434|   153k|                                  best_path_info[best_path_info.size()-1].certificate_index =
 1435|   153k|                                    best_path_info[best_path_info.size()-2].certificate_index +
 1436|   153k|                                    best_path_info[best_path_info.size()-2].subcertificate_length;
 1437|   153k|                                }
 1438|  32.6k|                              std::vector<unsigned int> certificate_best_path_old = certificate_best_path;
 1439|  32.6k|                              certificate_best_path = certificate_current_path;
 1440|  2.84M|                              for(unsigned int i = postfix_start_cert;  i < certificate_best_path_old.size(); i++)
  ------------------
  |  Branch (1440:73): [True: 2.81M, False: 32.6k]
  ------------------
 1441|  2.81M|                                certificate_best_path.push_back(certificate_best_path_old[i]);
 1442|  32.6k|                              assert(certificate_best_path.size() == best_path_info.back().certificate_index + best_path_info.back().subcertificate_length);
  ------------------
  |  Branch (1442:31): [True: 32.6k, False: 0]
  ------------------
 1443|       |                              /* Backtrack to the previous level */
 1444|  32.6k|                              continue;
 1445|  32.6k|                            }
 1446|  32.6k|                        }
 1447|  34.6k|                      }
 1448|   114k|                  }
 1449|       |
 1450|       |                  /* No backtracking performed, go to next componenet */
 1451|  98.6k|                  cr_level = cep.next_cr_level;
 1452|  98.6k|                  cr_cep_index = cep.next_cep_index;
 1453|  98.6k|                }
 1454|       |
 1455|       |              /* Check if the current component has been split into
 1456|       |               * new non-uniformity subcomponents */
 1457|       |              //if(nucr_find_first_component(cr_level) == true and
 1458|       |              // p.nof_discrete_cells() + cr_component_elements <
 1459|       |              // cr_cep_stack[cr_cep_index].discrete_cell_limit)
 1460|  4.41M|              if(nucr_find_first_component(cr_level, cr_component,
  ------------------
  |  Branch (1460:18): [True: 4.41M, False: 0]
  ------------------
 1461|  4.41M|                                           cr_component_elements,
 1462|  4.41M|                                           next_split_cell) == true and
 1463|  4.41M|                 p.nof_discrete_cells() + cr_component_elements <
  ------------------
  |  Branch (1463:18): [True: 91.9k, False: 4.32M]
  ------------------
 1464|  4.41M|                 cr_cep_stack[cr_cep_index].discrete_cell_limit)
 1465|  91.9k|                {
 1466|  91.9k|                  const unsigned int next_cr_level =
 1467|  91.9k|                    p.cr_split_level(cr_level, cr_component);
 1468|  91.9k|                  CR_CEP cep;
 1469|  91.9k|                  cep.creation_level = search_stack.size();
 1470|  91.9k|                  cep.discrete_cell_limit =
 1471|  91.9k|                    p.nof_discrete_cells() + cr_component_elements;
 1472|  91.9k|                  cep.next_cr_level = cr_level;
 1473|  91.9k|                  cep.next_cep_index = cr_cep_index;
 1474|  91.9k|                  cep.first_checked = false;
 1475|  91.9k|                  cep.best_checked = false;
 1476|  91.9k|                  cr_cep_index = cr_cep_stack.size();
 1477|  91.9k|                  cr_cep_stack.push_back(cep);
 1478|  91.9k|                  cr_level = next_cr_level;
 1479|  91.9k|                }
 1480|  4.41M|            }
 1481|       |
 1482|       |
 1483|       |          /*
 1484|       |           * Build the next node info
 1485|       |           */
 1486|       |          /* Find the next cell to be splitted */
 1487|  4.41M|          if(!next_split_cell)
  ------------------
  |  Branch (1487:14): [True: 0, False: 4.41M]
  ------------------
 1488|      0|            next_split_cell = find_next_cell_to_be_splitted(p.get_cell(p.elements[current_node.split_cell_first]));
 1489|       |          //Partition::Cell * const next_split_cell = find_next_cell_to_be_splitted(p.get_cell(p.elements[current_node.split_cell_first]));
 1490|  4.41M|          child_node.split_cell_first = next_split_cell->first;
 1491|  4.41M|          child_node.split_element = TreeNode::SPLIT_START;
 1492|  4.41M|          child_node.certificate_index = certificate_index;
 1493|  4.41M|          child_node.partition_bt_point = p.set_backtrack_point();
 1494|  4.41M|          child_node.long_prune_redundant.clear();
 1495|  4.41M|          child_node.long_prune_begin = current_node.long_prune_begin;
 1496|       |
 1497|       |          /* Save component recursion info for backtracking */
 1498|  4.41M|          child_node.cr_level = cr_level;
 1499|  4.41M|          child_node.cr_cep_stack_size = cr_cep_stack.size();
 1500|  4.41M|          child_node.cr_cep_index = cr_cep_index;
 1501|       |
 1502|  4.41M|          search_stack.push_back(child_node);
 1503|  4.41M|          continue;
 1504|  4.63M|        }
 1505|       |
 1506|       |      /*
 1507|       |       * A leaf node not in the first path or equivalent to the first path
 1508|       |       */
 1509|       |
 1510|       |
 1511|       |
 1512|  14.7k|      if(child_node.cmp_to_best_path > 0)
  ------------------
  |  Branch (1512:10): [True: 13.6k, False: 1.15k]
  ------------------
 1513|  13.6k|        {
 1514|       |          /*
 1515|       |           * A new, better representative found
 1516|       |           */
 1517|       |          //fprintf(stdout, "Level %u: NEW BEST\n", child_level); fflush(stdout);
 1518|  13.6k|          stats.nof_canupdates++;
 1519|       |          /*
 1520|       |           * Update canonical labeling and its inverse
 1521|       |           */
 1522|  13.6k|          update_labeling_and_its_inverse(best_path_labeling,
 1523|  13.6k|                                          best_path_labeling_inv);
 1524|       |          /* Reset best path automorphism */
 1525|  13.6k|          reset_permutation(best_path_automorphism);
 1526|       |          /* Reset best path orbit structure */
 1527|  13.6k|          best_path_orbits.reset();
 1528|       |          /*
 1529|       |           * Mark the current path to be the best one and save it
 1530|       |           */
 1531|  13.6k|          const unsigned int base_size = search_stack.size();
 1532|  13.6k|          assert(current_level+1 == base_size);
  ------------------
  |  Branch (1532:11): [True: 13.6k, False: 0]
  ------------------
 1533|  13.6k|          best_path_info.clear();
 1534|   503k|          for(unsigned int i = 0; i < base_size; i++) {
  ------------------
  |  Branch (1534:35): [True: 489k, False: 13.6k]
  ------------------
 1535|   489k|            search_stack[i].cmp_to_best_path = 0;
 1536|   489k|            search_stack[i].in_best_path = true;
 1537|   489k|            PathInfo path_info;
 1538|   489k|            path_info.splitting_element = search_stack[i].split_element;
 1539|   489k|            path_info.certificate_index = search_stack[i].certificate_index;
 1540|   489k|            path_info.subcertificate_length = search_stack[i].subcertificate_length;
 1541|   489k|            path_info.eqref_hash = search_stack[i].eqref_hash;
 1542|   489k|            best_path_info.push_back(path_info);
 1543|   489k|          }
 1544|  13.6k|          certificate_best_path = certificate_current_path;
 1545|       |          /*
 1546|       |           * Backtrack to the previous level
 1547|       |           */
 1548|  13.6k|          continue;
 1549|  13.6k|        }
 1550|       |
 1551|       |
 1552|  3.10k|    handle_best_path_automorphism:
 1553|       |      /*
 1554|       |       *
 1555|       |       * Best path automorphism handling
 1556|       |       *
 1557|       |       */
 1558|  3.10k|      {
 1559|       |
 1560|       |        /*
 1561|       |         * Equal to the previous best path
 1562|       |         */
 1563|  3.10k|        if(p.is_discrete())
  ------------------
  |  Branch (1563:12): [True: 1.15k, False: 1.94k]
  ------------------
 1564|  1.15k|          {
 1565|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 1566|       |            /* Verify that the automorphism is correctly built */
 1567|       |            for(unsigned int i = 0; i < N; i++)
 1568|       |              assert(best_path_automorphism[i] ==
 1569|       |                     p.elements[best_path_labeling[i]]);
 1570|       |#endif
 1571|  1.15k|          }
 1572|  1.94k|        else
 1573|  1.94k|          {
 1574|       |            /* An automorphism that was found before the partition was discrete.
 1575|       |             * Set the image of all elements in non-disrete cells accordingly */
 1576|  10.3k|            for(Partition::Cell* c = p.first_nonsingleton_cell; c;
  ------------------
  |  Branch (1576:65): [True: 8.38k, False: 1.94k]
  ------------------
 1577|  8.38k|                c = c->next_nonsingleton) {
 1578|  25.7k|              for(unsigned int i = c->first; i < c->first+c->length; i++)
  ------------------
  |  Branch (1578:46): [True: 17.4k, False: 8.38k]
  ------------------
 1579|  17.4k|                if(p.get_cell(p.elements[best_path_labeling[p.elements[i]]])->is_unit())
  ------------------
  |  Branch (1579:20): [True: 0, False: 17.4k]
  ------------------
 1580|      0|                  best_path_automorphism[p.elements[best_path_labeling[p.elements[i]]]] = p.elements[i];
 1581|  17.4k|                else
 1582|  17.4k|                  best_path_automorphism[p.elements[i]] = p.elements[i];
 1583|  8.38k|            }
 1584|  1.94k|          }
 1585|       |
 1586|       |#if defined(BLISS_VERIFY_AUTOMORPHISMS)
 1587|       |        /* Verify that it really is an automorphism */
 1588|       |        if(!is_automorphism(best_path_automorphism))
 1589|       |          fatal_error("Best path automorphism validation check failed");
 1590|       |#endif
 1591|       |
 1592|  3.10k|        unsigned int gca_level_with_first = 0;
 1593|   101k|        for(unsigned int i = search_stack.size(); i > 0; i--) {
  ------------------
  |  Branch (1593:51): [True: 101k, False: 0]
  ------------------
 1594|   101k|          if((int)first_path_info[gca_level_with_first].splitting_element !=
  ------------------
  |  Branch (1594:14): [True: 3.10k, False: 98.1k]
  ------------------
 1595|   101k|             search_stack[gca_level_with_first].split_element)
 1596|  3.10k|            break;
 1597|  98.1k|          gca_level_with_first++;
 1598|  98.1k|        }
 1599|       |
 1600|  3.10k|        unsigned int gca_level_with_best = 0;
 1601|   106k|        for(unsigned int i = search_stack.size(); i > 0; i--) {
  ------------------
  |  Branch (1601:51): [True: 106k, False: 0]
  ------------------
 1602|   106k|          if((int)best_path_info[gca_level_with_best].splitting_element !=
  ------------------
  |  Branch (1602:14): [True: 3.10k, False: 102k]
  ------------------
 1603|   106k|             search_stack[gca_level_with_best].split_element)
 1604|  3.10k|            break;
 1605|   102k|          gca_level_with_best++;
 1606|   102k|        }
 1607|       |
 1608|  3.10k|        if(opt_use_long_prune)
  ------------------
  |  Branch (1608:12): [True: 3.10k, False: 0]
  ------------------
 1609|  3.10k|          {
 1610|       |            /* Record automorphism */
 1611|  3.10k|            long_prune_add_automorphism(best_path_automorphism);
 1612|  3.10k|          }
 1613|       |
 1614|       |        /*
 1615|       |         * Update orbit information
 1616|       |         */
 1617|  3.10k|        update_orbit_information(best_path_orbits, best_path_automorphism);
 1618|       |
 1619|       |        /*
 1620|       |         * Update orbit information
 1621|       |         */
 1622|  3.10k|        const unsigned int nof_old_orbits = first_path_orbits.nof_orbits();
 1623|  3.10k|        update_orbit_information(first_path_orbits, best_path_automorphism);
 1624|  3.10k|        if(nof_old_orbits != first_path_orbits.nof_orbits())
  ------------------
  |  Branch (1624:12): [True: 2.06k, False: 1.03k]
  ------------------
 1625|  2.06k|          {
 1626|       |            /* Some orbits were merged */
 1627|       |            /* Report automorphism */
 1628|  2.06k|            if(report)
  ------------------
  |  Branch (1628:16): [True: 0, False: 2.06k]
  ------------------
 1629|      0|              report(get_nof_vertices(), best_path_automorphism);
 1630|       |            /* Update statistics */
 1631|  2.06k|            stats.nof_generators++;
 1632|  2.06k|          }
 1633|       |
 1634|       |        /*
 1635|       |         * Compute backjumping level
 1636|       |         */
 1637|  3.10k|        unsigned int backjumping_level = current_level+1-1;
 1638|  3.10k|        if(!first_path_orbits.is_minimal_representative(search_stack[gca_level_with_first].split_element))
  ------------------
  |  Branch (1638:12): [True: 437, False: 2.66k]
  ------------------
 1639|    437|          {
 1640|    437|            backjumping_level = gca_level_with_first;
 1641|    437|          }
 1642|  2.66k|        else
 1643|  2.66k|          {
 1644|  2.66k|            assert(!best_path_orbits.is_minimal_representative(search_stack[gca_level_with_best].split_element));
  ------------------
  |  Branch (1644:13): [True: 2.66k, False: 0]
  ------------------
 1645|  2.66k|            backjumping_level = gca_level_with_best;
 1646|  2.66k|          }
 1647|       |        /* Backtrack */
 1648|  3.10k|        search_stack.resize(backjumping_level + 1);
 1649|  3.10k|        continue;
 1650|  3.10k|      }
 1651|       |
 1652|       |
 1653|      0|      _INTERNAL_ERROR();
  ------------------
  |  |   44|      0|#define _INTERNAL_ERROR() IGRAPH_FATAL("Bliss internal error")
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  |  |  ------------------
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1654|       |
 1655|       |
 1656|   228k|    handle_first_path_automorphism:
 1657|       |      /*
 1658|       |       *
 1659|       |       * A first-path automorphism: aut[i] = elements[first_path_labeling[i]]
 1660|       |       *
 1661|       |       */
 1662|       |
 1663|       |
 1664|   228k|      if(p.is_discrete())
  ------------------
  |  Branch (1664:10): [True: 43.0k, False: 185k]
  ------------------
 1665|  43.0k|        {
 1666|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 1667|       |          /* Verify that the complete automorphism is correctly built */
 1668|       |          for(unsigned int i = 0; i < N; i++)
 1669|       |            assert(first_path_automorphism[i] ==
 1670|       |                   p.elements[first_path_labeling[i]]);
 1671|       |#endif
 1672|  43.0k|        }
 1673|   185k|      else
 1674|   185k|        {
 1675|       |          /* An automorphism that was found before the partition was discrete.
 1676|       |           * Set the image of all elements in non-disrete cells accordingly */
 1677|   620k|          for(Partition::Cell* c = p.first_nonsingleton_cell; c;
  ------------------
  |  Branch (1677:63): [True: 434k, False: 185k]
  ------------------
 1678|   434k|              c = c->next_nonsingleton) {
 1679|  2.90M|            for(unsigned int i = c->first; i < c->first+c->length; i++)
  ------------------
  |  Branch (1679:44): [True: 2.47M, False: 434k]
  ------------------
 1680|  2.47M|              if(p.get_cell(p.elements[first_path_labeling[p.elements[i]]])->is_unit())
  ------------------
  |  Branch (1680:18): [True: 0, False: 2.47M]
  ------------------
 1681|      0|                first_path_automorphism[p.elements[first_path_labeling[p.elements[i]]]] = p.elements[i];
 1682|  2.47M|              else
 1683|  2.47M|                first_path_automorphism[p.elements[i]] = p.elements[i];
 1684|   434k|          }
 1685|   185k|        }
 1686|       |
 1687|       |#if defined(BLISS_VERIFY_AUTOMORPHISMS)
 1688|       |      /* Verify that it really is an automorphism */
 1689|       |      if(!is_automorphism(first_path_automorphism))
 1690|       |        fatal_error("First path automorphism validation check failed");
 1691|       |#endif
 1692|       |
 1693|   228k|      if(opt_use_long_prune)
  ------------------
  |  Branch (1693:10): [True: 228k, False: 0]
  ------------------
 1694|   228k|        {
 1695|   228k|          long_prune_add_automorphism(first_path_automorphism);
 1696|   228k|        }
 1697|       |
 1698|       |      /*
 1699|       |       * Update orbit information
 1700|       |       */
 1701|   228k|      update_orbit_information(first_path_orbits, first_path_automorphism);
 1702|       |
 1703|       |      /*
 1704|       |       * Compute backjumping level
 1705|       |       */
 1706|  9.35M|      for(unsigned int i = 0; i < search_stack.size(); i++) {
  ------------------
  |  Branch (1706:31): [True: 9.13M, False: 228k]
  ------------------
 1707|  9.13M|        TreeNode& n = search_stack[i];
 1708|  9.13M|        if(n.fp_on) {
  ------------------
  |  Branch (1708:12): [True: 5.14M, False: 3.98M]
  ------------------
 1709|  5.14M|          ;
 1710|  5.14M|        } else {
 1711|  3.98M|          n.fp_extendable = TreeNode::YES;
 1712|  3.98M|        }
 1713|  9.13M|      }
 1714|       |
 1715|       |      /* Report automorphism by calling the user defined hook function */
 1716|   228k|      if(report)
  ------------------
  |  Branch (1716:10): [True: 60.7k, False: 167k]
  ------------------
 1717|  60.7k|        report(get_nof_vertices(), first_path_automorphism);
 1718|       |      /* Update statistics */
 1719|   228k|      stats.nof_generators++;
 1720|   228k|      continue;
 1721|       |
 1722|      0|    } /* while(!search_stack.empty()) */
 1723|       |
 1724|       |
 1725|       |
 1726|       |
 1727|       |  /* Free "long prune" technique memory */
 1728|  7.66k|  if(opt_use_long_prune)
  ------------------
  |  Branch (1728:6): [True: 7.66k, False: 0]
  ------------------
 1729|  7.66k|    long_prune_deallocate();
 1730|       |
 1731|       |  /* Release component recursion data in partition */
 1732|  7.66k|  if(opt_use_comprec)
  ------------------
  |  Branch (1732:6): [True: 7.66k, False: 0]
  ------------------
 1733|  7.66k|    p.cr_free();
 1734|  7.66k|}
_ZN5bliss13AbstractGraph18find_automorphismsERNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
 1743|  2.20k|{
 1744|  2.20k|  search(false, stats, report, terminate);
 1745|       |
 1746|  2.20k|  delete[] first_path_labeling; first_path_labeling = nullptr;
 1747|  2.20k|  delete[] best_path_labeling; best_path_labeling = nullptr;
 1748|  2.20k|}
_ZN5bliss13AbstractGraph14canonical_formERNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
 1755|  5.91k|{
 1756|  5.91k|  search(true, stats, report, terminate);
 1757|       |
 1758|  5.91k|  return best_path_labeling;
 1759|  5.91k|}
_ZN5bliss7Digraph6VertexC2Ev:
 1771|   176k|{
 1772|   176k|  color = 0;
 1773|   176k|}
_ZN5bliss7Digraph6VertexD2Ev:
 1777|   176k|{
 1778|   176k|  ;
 1779|   176k|}
_ZN5bliss7Digraph6Vertex11add_edge_toEj:
 1784|  71.2k|{
 1785|  71.2k|  edges_out.push_back(other_vertex);
 1786|  71.2k|}
_ZN5bliss7Digraph6Vertex13add_edge_fromEj:
 1791|  71.2k|{
 1792|  71.2k|  edges_in.push_back(other_vertex);
 1793|  71.2k|}
_ZN5bliss7Digraph6Vertex22remove_duplicate_edgesERNSt3__16vectorIbNS2_9allocatorIbEEEE:
 1798|   176k|{
 1799|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 1800|       |  /* Pre-conditions  */
 1801|       |  for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 1802|       |#endif
 1803|   176k|  for(std::vector<unsigned int>::iterator iter = edges_out.begin();
 1804|   248k|      iter != edges_out.end(); )
  ------------------
  |  Branch (1804:7): [True: 71.2k, False: 176k]
  ------------------
 1805|  71.2k|    {
 1806|  71.2k|      const unsigned int dest_vertex = *iter;
 1807|  71.2k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (1807:10): [True: 0, False: 71.2k]
  ------------------
 1808|      0|        {
 1809|       |          /* A duplicate edge found! */
 1810|      0|          iter = edges_out.erase(iter);
 1811|      0|        }
 1812|  71.2k|      else
 1813|  71.2k|        {
 1814|       |          /* Not seen earlier, mark as seen */
 1815|  71.2k|          tmp[dest_vertex] = true;
 1816|  71.2k|          iter++;
 1817|  71.2k|        }
 1818|  71.2k|    }
 1819|       |
 1820|       |  /* Clear tmp */
 1821|   176k|  for(std::vector<unsigned int>::iterator iter = edges_out.begin();
 1822|   248k|      iter != edges_out.end();
  ------------------
  |  Branch (1822:7): [True: 71.2k, False: 176k]
  ------------------
 1823|   176k|      iter++)
 1824|  71.2k|    {
 1825|  71.2k|      tmp[*iter] = false;
 1826|  71.2k|    }
 1827|       |
 1828|   176k|  for(std::vector<unsigned int>::iterator iter = edges_in.begin();
 1829|   248k|      iter != edges_in.end(); )
  ------------------
  |  Branch (1829:7): [True: 71.2k, False: 176k]
  ------------------
 1830|  71.2k|    {
 1831|  71.2k|      const unsigned int dest_vertex = *iter;
 1832|  71.2k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (1832:10): [True: 0, False: 71.2k]
  ------------------
 1833|      0|        {
 1834|       |          /* A duplicate edge found! */
 1835|      0|          iter = edges_in.erase(iter);
 1836|      0|        }
 1837|  71.2k|      else
 1838|  71.2k|        {
 1839|       |          /* Not seen earlier, mark as seen */
 1840|  71.2k|          tmp[dest_vertex] = true;
 1841|  71.2k|          iter++;
 1842|  71.2k|        }
 1843|  71.2k|    }
 1844|       |
 1845|       |  /* Clear tmp */
 1846|   176k|  for(std::vector<unsigned int>::iterator iter = edges_in.begin();
 1847|   248k|      iter != edges_in.end();
  ------------------
  |  Branch (1847:7): [True: 71.2k, False: 176k]
  ------------------
 1848|   176k|      iter++)
 1849|  71.2k|    {
 1850|  71.2k|      tmp[*iter] = false;
 1851|  71.2k|    }
 1852|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 1853|       |  /* Post-conditions  */
 1854|       |  for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 1855|       |#endif
 1856|   176k|}
_ZN5bliss7DigraphC2Ej:
 1884|  4.38k|{
 1885|  4.38k|  vertices.resize(nof_vertices);
 1886|  4.38k|  sh = shs_flm;
 1887|  4.38k|}
_ZN5bliss7DigraphD2Ev:
 1891|  4.38k|{
 1892|  4.38k|  ;
 1893|  4.38k|}
_ZN5bliss7Digraph8add_edgeEjj:
 1908|  71.2k|{
 1909|  71.2k|  if(vertex1 >= vertices.size() or vertex2 >= vertices.size())
  ------------------
  |  Branch (1909:6): [True: 0, False: 71.2k]
  |  Branch (1909:36): [True: 0, False: 71.2k]
  ------------------
 1910|      0|    throw std::runtime_error("out-of-bounds vertex number");
 1911|       |  //assert(vertex1 < get_nof_vertices());
 1912|       |  //assert(vertex2 < get_nof_vertices());
 1913|  71.2k|  vertices[vertex1].add_edge_to(vertex2);
 1914|  71.2k|  vertices[vertex2].add_edge_from(vertex1);
 1915|  71.2k|}
_ZN5bliss7Digraph22remove_duplicate_edgesEv:
 2042|  4.38k|{
 2043|  4.38k|  std::vector<bool> tmp(get_nof_vertices(), false);
 2044|       |
 2045|  4.38k|  for(std::vector<Vertex>::iterator vi = vertices.begin();
 2046|   181k|      vi != vertices.end();
  ------------------
  |  Branch (2046:7): [True: 176k, False: 4.38k]
  ------------------
 2047|   176k|      vi++)
 2048|   176k|    {
 2049|       |#if defined(BLISS_EXPENSIVE_CONSISTENCY_CHECKS)
 2050|       |      for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 2051|       |#endif
 2052|   176k|      (*vi).remove_duplicate_edges(tmp);
 2053|   176k|    }
 2054|  4.38k|}
_ZN5bliss7Digraph22vertex_color_invariantEPKS0_j:
 2107|   176k|{
 2108|   176k|  return g->vertices[vnum].color;
 2109|   176k|}
_ZN5bliss7Digraph18indegree_invariantEPKS0_j:
 2113|   174k|{
 2114|   174k|  return g->vertices[vnum].nof_edges_in();
 2115|   174k|}
_ZN5bliss7Digraph19outdegree_invariantEPKS0_j:
 2119|   176k|{
 2120|   176k|  return g->vertices[vnum].nof_edges_out();
 2121|   176k|}
_ZN5bliss7Digraph18selfloop_invariantEPKS0_j:
 2125|   176k|{
 2126|       |  /* Quite inefficient but luckily not in the critical path */
 2127|   176k|  const Vertex& v = g->vertices[vnum];
 2128|   176k|  for(std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2129|   245k|      ei != v.edges_out.end();
  ------------------
  |  Branch (2129:7): [True: 70.4k, False: 175k]
  ------------------
 2130|   176k|      ei++)
 2131|  70.4k|    {
 2132|  70.4k|      if(*ei == vnum)
  ------------------
  |  Branch (2132:10): [True: 1.48k, False: 68.9k]
  ------------------
 2133|  1.48k|        return 1;
 2134|  70.4k|    }
 2135|   175k|  return 0;
 2136|   176k|}
_ZN5bliss7Digraph29refine_according_to_invariantEPFjPKS0_jE:
 2151|  17.4k|{
 2152|  17.4k|  bool refined = false;
 2153|       |
 2154|  40.9k|  for(Partition::Cell* cell = p.first_nonsingleton_cell; cell; )
  ------------------
  |  Branch (2154:58): [True: 23.4k, False: 17.4k]
  ------------------
 2155|  23.4k|    {
 2156|       |
 2157|  23.4k|      Partition::Cell* const next_cell = cell->next_nonsingleton;
 2158|  23.4k|      const unsigned int* ep = p.elements + cell->first;
 2159|   728k|      for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (2159:42): [True: 704k, False: 23.4k]
  ------------------
 2160|   704k|        {
 2161|   704k|          unsigned int ival = inv(this, *ep);
 2162|   704k|          p.invariant_values[*ep] = ival;
 2163|   704k|          if(ival > cell->max_ival) {
  ------------------
  |  Branch (2163:14): [True: 15.5k, False: 689k]
  ------------------
 2164|  15.5k|            cell->max_ival = ival;
 2165|  15.5k|            cell->max_ival_count = 1;
 2166|  15.5k|          }
 2167|   689k|          else if(ival == cell->max_ival) {
  ------------------
  |  Branch (2167:19): [True: 463k, False: 225k]
  ------------------
 2168|   463k|            cell->max_ival_count++;
 2169|   463k|          }
 2170|   704k|        }
 2171|  23.4k|      Partition::Cell* const last_new_cell = p.zplit_cell(cell, true);
 2172|  23.4k|      refined |= (last_new_cell != cell);
 2173|  23.4k|      cell = next_cell;
 2174|  23.4k|    }
 2175|       |
 2176|  17.4k|  return refined;
 2177|  17.4k|}
_ZN5bliss7Digraph27split_neighbourhood_of_cellEPNS_9Partition4CellE:
 2191|  24.4k|{
 2192|       |
 2193|       |
 2194|  24.4k|  const bool was_equal_to_first = refine_equal_to_first;
 2195|       |
 2196|  24.4k|  if(compute_eqref_hash)
  ------------------
  |  Branch (2196:6): [True: 0, False: 24.4k]
  ------------------
 2197|      0|    {
 2198|      0|      eqref_hash.update(cell->first);
 2199|      0|      eqref_hash.update(cell->length);
 2200|      0|    }
 2201|       |
 2202|  24.4k|  const unsigned int* ep = p.elements + cell->first;
 2203|   209k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (2203:38): [True: 184k, False: 24.4k]
  ------------------
 2204|   184k|    {
 2205|   184k|      const Vertex& v = vertices[*ep++];
 2206|       |
 2207|   184k|      std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2208|   264k|      for(unsigned int j = v.nof_edges_out(); j != 0; j--)
  ------------------
  |  Branch (2208:47): [True: 79.6k, False: 184k]
  ------------------
 2209|  79.6k|        {
 2210|  79.6k|          const unsigned int dest_vertex = *ei++;
 2211|  79.6k|          Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2212|  79.6k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2212:14): [True: 10.5k, False: 69.1k]
  ------------------
 2213|  10.5k|            continue;
 2214|  69.1k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 2215|  69.1k|          if(ival > neighbour_cell->max_ival) {
  ------------------
  |  Branch (2215:14): [True: 20.6k, False: 48.4k]
  ------------------
 2216|  20.6k|            neighbour_cell->max_ival = ival;
 2217|  20.6k|            neighbour_cell->max_ival_count = 1;
 2218|  20.6k|            if(ival == 1)
  ------------------
  |  Branch (2218:16): [True: 18.2k, False: 2.44k]
  ------------------
 2219|  18.2k|              neighbour_heap.insert(neighbour_cell->first);
 2220|  20.6k|          }
 2221|  48.4k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (2221:19): [True: 45.0k, False: 3.35k]
  ------------------
 2222|  45.0k|            neighbour_cell->max_ival_count++;
 2223|  45.0k|          }
 2224|  69.1k|        }
 2225|   184k|    }
 2226|       |
 2227|  38.8k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2227:9): [True: 16.5k, False: 22.3k]
  ------------------
 2228|  16.5k|    {
 2229|  16.5k|      const unsigned int start = neighbour_heap.remove();
 2230|  16.5k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2231|       |
 2232|  16.5k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2232:10): [True: 0, False: 16.5k]
  ------------------
 2233|      0|        {
 2234|      0|          eqref_hash.update(neighbour_cell->first);
 2235|      0|          eqref_hash.update(neighbour_cell->length);
 2236|      0|          eqref_hash.update(neighbour_cell->max_ival);
 2237|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 2238|      0|        }
 2239|       |
 2240|       |
 2241|  16.5k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 2242|       |
 2243|       |      /* Update certificate and hash if needed */
 2244|  16.5k|      const Partition::Cell* c = neighbour_cell;
 2245|  24.1k|      while(1)
  ------------------
  |  Branch (2245:13): [True: 24.1k, Folded]
  ------------------
 2246|  24.1k|        {
 2247|  24.1k|          if(in_search)
  ------------------
  |  Branch (2247:14): [True: 13.9k, False: 10.1k]
  ------------------
 2248|  13.9k|            {
 2249|       |              /* Build certificate */
 2250|  13.9k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 2251|       |              /* No need to continue? */
 2252|  13.9k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2252:18): [True: 12.2k, False: 1.69k]
  ------------------
 2253|  12.2k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2253:18): [True: 6.00k, False: 6.26k]
  ------------------
 2254|  6.00k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2254:18): [True: 2.10k, False: 3.90k]
  ------------------
 2255|  2.10k|                goto worse_exit;
 2256|  13.9k|            }
 2257|  22.0k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2257:14): [True: 0, False: 22.0k]
  ------------------
 2258|      0|            {
 2259|      0|              eqref_hash.update(c->first);
 2260|      0|              eqref_hash.update(c->length);
 2261|      0|            }
 2262|  22.0k|          if(c == last_new_cell)
  ------------------
  |  Branch (2262:14): [True: 14.4k, False: 7.59k]
  ------------------
 2263|  14.4k|            break;
 2264|  7.59k|          c = c->next;
 2265|  7.59k|        }
 2266|  16.5k|    }
 2267|       |
 2268|  22.3k|  if(cell->is_in_splitting_queue())
  ------------------
  |  Branch (2268:6): [True: 801, False: 21.5k]
  ------------------
 2269|    801|    {
 2270|    801|      return false;
 2271|    801|    }
 2272|       |
 2273|       |
 2274|  21.5k|  ep = p.elements + cell->first;
 2275|   195k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (2275:38): [True: 174k, False: 21.5k]
  ------------------
 2276|   174k|    {
 2277|   174k|      const Vertex& v = vertices[*ep++];
 2278|       |
 2279|   174k|      std::vector<unsigned int>::const_iterator ei = v.edges_in.begin();
 2280|   238k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2280:46): [True: 63.7k, False: 174k]
  ------------------
 2281|  63.7k|        {
 2282|  63.7k|          const unsigned int dest_vertex = *ei++;
 2283|  63.7k|          Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2284|  63.7k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2284:14): [True: 9.88k, False: 53.8k]
  ------------------
 2285|  9.88k|            continue;
 2286|  53.8k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 2287|  53.8k|          if(ival > neighbour_cell->max_ival)
  ------------------
  |  Branch (2287:14): [True: 15.2k, False: 38.6k]
  ------------------
 2288|  15.2k|            {
 2289|  15.2k|              neighbour_cell->max_ival = ival;
 2290|  15.2k|              neighbour_cell->max_ival_count = 1;
 2291|  15.2k|              if(ival == 1)
  ------------------
  |  Branch (2291:18): [True: 13.2k, False: 2.03k]
  ------------------
 2292|  13.2k|                neighbour_heap.insert(neighbour_cell->first);
 2293|  15.2k|            }
 2294|  38.6k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (2294:19): [True: 35.5k, False: 3.03k]
  ------------------
 2295|  35.5k|            neighbour_cell->max_ival_count++;
 2296|  35.5k|          }
 2297|  53.8k|        }
 2298|   174k|    }
 2299|       |
 2300|  33.8k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2300:9): [True: 12.9k, False: 20.9k]
  ------------------
 2301|  12.9k|    {
 2302|  12.9k|      const unsigned int start = neighbour_heap.remove();
 2303|  12.9k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2304|       |
 2305|  12.9k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2305:10): [True: 0, False: 12.9k]
  ------------------
 2306|      0|        {
 2307|      0|          eqref_hash.update(neighbour_cell->first);
 2308|      0|          eqref_hash.update(neighbour_cell->length);
 2309|      0|          eqref_hash.update(neighbour_cell->max_ival);
 2310|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 2311|      0|        }
 2312|       |
 2313|  12.9k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 2314|       |
 2315|       |      /* Update certificate and hash if needed */
 2316|  12.9k|      const Partition::Cell* c = neighbour_cell;
 2317|  18.4k|      while(1)
  ------------------
  |  Branch (2317:13): [True: 18.4k, Folded]
  ------------------
 2318|  18.4k|        {
 2319|  18.4k|          if(in_search)
  ------------------
  |  Branch (2319:14): [True: 7.62k, False: 10.8k]
  ------------------
 2320|  7.62k|            {
 2321|       |              /* Build certificate */
 2322|  7.62k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 2323|       |              /* No need to continue? */
 2324|  7.62k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2324:18): [True: 6.52k, False: 1.09k]
  ------------------
 2325|  6.52k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2325:18): [True: 2.80k, False: 3.72k]
  ------------------
 2326|  2.80k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2326:18): [True: 579, False: 2.22k]
  ------------------
 2327|    579|                goto worse_exit;
 2328|  7.62k|            }
 2329|  17.9k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2329:14): [True: 0, False: 17.9k]
  ------------------
 2330|      0|            {
 2331|      0|              eqref_hash.update(c->first);
 2332|      0|              eqref_hash.update(c->length);
 2333|      0|            }
 2334|  17.9k|          if(c == last_new_cell)
  ------------------
  |  Branch (2334:14): [True: 12.3k, False: 5.54k]
  ------------------
 2335|  12.3k|            break;
 2336|  5.54k|          c = c->next;
 2337|  5.54k|        }
 2338|  12.9k|    }
 2339|       |
 2340|       |
 2341|  20.9k|  if(refine_compare_certificate and
  ------------------
  |  Branch (2341:6): [True: 6.51k, False: 14.4k]
  ------------------
 2342|  6.51k|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (2342:6): [True: 1.30k, False: 5.21k]
  ------------------
 2343|  1.30k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2343:6): [True: 0, False: 1.30k]
  ------------------
 2344|      0|    return true;
 2345|       |
 2346|  20.9k|  return false;
 2347|       |
 2348|  2.68k| worse_exit:
 2349|       |  /* Clear neighbour heap */
 2350|  2.68k|  UintSeqHash rest;
 2351|  4.61k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2351:9): [True: 1.93k, False: 2.68k]
  ------------------
 2352|  1.93k|    {
 2353|  1.93k|      const unsigned int start = neighbour_heap.remove();
 2354|  1.93k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2355|  1.93k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2355:10): [True: 1.93k, False: 0]
  |  Branch (2355:40): [True: 1.70k, False: 225]
  ------------------
 2356|  1.70k|        {
 2357|  1.70k|          rest.update(neighbour_cell->first);
 2358|  1.70k|          rest.update(neighbour_cell->length);
 2359|  1.70k|          rest.update(neighbour_cell->max_ival);
 2360|  1.70k|          rest.update(neighbour_cell->max_ival_count);
 2361|  1.70k|        }
 2362|  1.93k|      neighbour_cell->max_ival = 0;
 2363|  1.93k|      neighbour_cell->max_ival_count = 0;
 2364|  1.93k|      p.clear_ivs(neighbour_cell);
 2365|  1.93k|    }
 2366|  2.68k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2366:6): [True: 2.68k, False: 0]
  |  Branch (2366:36): [True: 2.23k, False: 450]
  ------------------
 2367|  2.23k|    {
 2368|  9.26k|      for(unsigned int i = p.splitting_queue.size(); i > 0; i--)
  ------------------
  |  Branch (2368:54): [True: 7.03k, False: 2.23k]
  ------------------
 2369|  7.03k|        {
 2370|  7.03k|          Partition::Cell* const cell = p.splitting_queue.pop_front();
 2371|  7.03k|          rest.update(cell->first);
 2372|  7.03k|          rest.update(cell->length);
 2373|  7.03k|          p.splitting_queue.push_back(cell);
 2374|  7.03k|        }
 2375|  2.23k|      rest.update(failure_recording_fp_deviation);
 2376|  2.23k|      failure_recording_fp_deviation = rest.get_value();
 2377|  2.23k|    }
 2378|       |
 2379|  2.68k|   return true;
 2380|  20.9k|}
_ZN5bliss7Digraph32split_neighbourhood_of_unit_cellEPNS_9Partition4CellE:
 2385|  2.86M|{
 2386|       |
 2387|       |
 2388|  2.86M|  const bool was_equal_to_first = refine_equal_to_first;
 2389|       |
 2390|  2.86M|  if(compute_eqref_hash)
  ------------------
  |  Branch (2390:6): [True: 0, False: 2.86M]
  ------------------
 2391|      0|    {
 2392|      0|      eqref_hash.update(0x87654321);
 2393|      0|      eqref_hash.update(unit_cell->first);
 2394|      0|      eqref_hash.update(1);
 2395|      0|    }
 2396|       |
 2397|  2.86M|  const Vertex& v = vertices[p.elements[unit_cell->first]];
 2398|       |
 2399|       |  /*
 2400|       |   * Phase 1
 2401|       |   * Refine neighbours according to the edges that leave the vertex v
 2402|       |   */
 2403|  2.86M|  std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2404|  3.27M|  for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (2404:43): [True: 407k, False: 2.86M]
  ------------------
 2405|   407k|    {
 2406|   407k|      const unsigned int dest_vertex = *ei++;
 2407|   407k|      Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2408|       |
 2409|   407k|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (2409:10): [True: 305k, False: 101k]
  ------------------
 2410|   305k|        if(in_search) {
  ------------------
  |  Branch (2410:12): [True: 284k, False: 20.6k]
  ------------------
 2411|       |          /* Remember neighbour in order to generate certificate */
 2412|   284k|          neighbour_heap.insert(neighbour_cell->first);
 2413|   284k|        }
 2414|   305k|        continue;
 2415|   305k|      }
 2416|   101k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (2416:10): [True: 89.1k, False: 12.5k]
  ------------------
 2417|  89.1k|        {
 2418|  89.1k|          neighbour_heap.insert(neighbour_cell->first);
 2419|  89.1k|        }
 2420|   101k|      neighbour_cell->max_ival_count++;
 2421|       |
 2422|   101k|      unsigned int* const swap_position =
 2423|   101k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 2424|   101k|        neighbour_cell->max_ival_count;
 2425|   101k|      *p.in_pos[dest_vertex] = *swap_position;
 2426|   101k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 2427|   101k|      *swap_position = dest_vertex;
 2428|   101k|      p.in_pos[dest_vertex] = swap_position;
 2429|   101k|    }
 2430|       |
 2431|  3.23M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2431:9): [True: 373k, False: 2.86M]
  ------------------
 2432|   373k|    {
 2433|   373k|      const unsigned int start = neighbour_heap.remove();
 2434|   373k|      Partition::Cell* neighbour_cell = p.get_cell(p.elements[start]);
 2435|       |
 2436|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 2437|       |      assert(neighbour_cell->first == start);
 2438|       |      if(neighbour_cell->is_unit()) {
 2439|       |        assert(neighbour_cell->max_ival_count == 0);
 2440|       |      } else {
 2441|       |        assert(neighbour_cell->max_ival_count > 0);
 2442|       |        assert(neighbour_cell->max_ival_count <= neighbour_cell->length);
 2443|       |      }
 2444|       |#endif
 2445|       |
 2446|   373k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2446:10): [True: 0, False: 373k]
  ------------------
 2447|      0|        {
 2448|      0|          eqref_hash.update(neighbour_cell->first);
 2449|      0|          eqref_hash.update(neighbour_cell->length);
 2450|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 2451|      0|        }
 2452|       |
 2453|   373k|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (2453:10): [True: 88.9k, False: 284k]
  ------------------
 2454|  88.9k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (2454:10): [True: 86.2k, False: 2.78k]
  ------------------
 2455|  86.2k|        {
 2456|       |
 2457|  86.2k|          Partition::Cell* const new_cell =
 2458|  86.2k|            p.aux_split_in_two(neighbour_cell,
 2459|  86.2k|                               neighbour_cell->length -
 2460|  86.2k|                               neighbour_cell->max_ival_count);
 2461|  86.2k|          unsigned int* ep = p.elements + new_cell->first;
 2462|  86.2k|          unsigned int* const lp = p.elements+new_cell->first+new_cell->length;
 2463|   181k|          while(ep < lp)
  ------------------
  |  Branch (2463:17): [True: 94.8k, False: 86.2k]
  ------------------
 2464|  94.8k|            {
 2465|  94.8k|              p.element_to_cell_map[*ep] = new_cell;
 2466|  94.8k|              ep++;
 2467|  94.8k|            }
 2468|  86.2k|          neighbour_cell->max_ival_count = 0;
 2469|       |
 2470|       |
 2471|  86.2k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2471:14): [True: 0, False: 86.2k]
  ------------------
 2472|      0|            {
 2473|       |              /* Update hash */
 2474|      0|              eqref_hash.update(neighbour_cell->first);
 2475|      0|              eqref_hash.update(neighbour_cell->length);
 2476|      0|              eqref_hash.update(0);
 2477|      0|              eqref_hash.update(new_cell->first);
 2478|      0|              eqref_hash.update(new_cell->length);
 2479|      0|              eqref_hash.update(1);
 2480|      0|            }
 2481|       |
 2482|       |          /* Add cells in splitting_queue */
 2483|  86.2k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (2483:14): [True: 5.88k, False: 80.3k]
  ------------------
 2484|       |            /* Both cells must be included in splitting_queue in order
 2485|       |               to have refinement to equitable partition */
 2486|  5.88k|            p.splitting_queue_add(new_cell);
 2487|  80.3k|          } else {
 2488|  80.3k|            Partition::Cell *min_cell, *max_cell;
 2489|  80.3k|          if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (2489:14): [True: 11.3k, False: 68.9k]
  ------------------
 2490|  11.3k|            min_cell = neighbour_cell;
 2491|  11.3k|            max_cell = new_cell;
 2492|  68.9k|          } else {
 2493|  68.9k|            min_cell = new_cell;
 2494|  68.9k|            max_cell = neighbour_cell;
 2495|  68.9k|          }
 2496|       |          /* Put the smaller cell in splitting_queue */
 2497|  80.3k|           p.splitting_queue_add(min_cell);
 2498|  80.3k|          if(max_cell->is_unit()) {
  ------------------
  |  Branch (2498:14): [True: 10.5k, False: 69.8k]
  ------------------
 2499|       |            /* Put the "larger" cell also in splitting_queue */
 2500|  10.5k|            p.splitting_queue_add(max_cell);
 2501|  10.5k|          }
 2502|  80.3k|        }
 2503|       |        /* Update pointer for certificate generation */
 2504|  86.2k|        neighbour_cell = new_cell;
 2505|  86.2k|      }
 2506|   287k|      else
 2507|   287k|        {
 2508|   287k|          neighbour_cell->max_ival_count = 0;
 2509|   287k|        }
 2510|       |
 2511|       |      /*
 2512|       |       * Build certificate if required
 2513|       |       */
 2514|   373k|      if(in_search)
  ------------------
  |  Branch (2514:10): [True: 366k, False: 6.82k]
  ------------------
 2515|   366k|        {
 2516|   366k|          for(unsigned int i = neighbour_cell->first,
 2517|   366k|                j = neighbour_cell->length;
 2518|   743k|              j > 0;
  ------------------
  |  Branch (2518:15): [True: 377k, False: 366k]
  ------------------
 2519|   376k|              j--, i++)
 2520|   377k|            {
 2521|       |              /* Build certificate */
 2522|   377k|              cert_add(CERT_EDGE, unit_cell->first, i);
 2523|       |              /* No need to continue? */
 2524|   377k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2524:18): [True: 335k, False: 41.7k]
  ------------------
 2525|   335k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2525:18): [True: 222k, False: 112k]
  ------------------
 2526|   222k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2526:18): [True: 629, False: 222k]
  ------------------
 2527|    629|                goto worse_exit;
 2528|   377k|            }
 2529|   366k|        } /* if(in_search) */
 2530|   373k|    } /* while(!neighbour_heap.is_empty()) */
 2531|       |
 2532|       |  /*
 2533|       |   * Phase 2
 2534|       |   * Refine neighbours according to the edges that enter the vertex v
 2535|       |   */
 2536|  2.86M|  ei = v.edges_in.begin();
 2537|  3.27M|  for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2537:42): [True: 406k, False: 2.86M]
  ------------------
 2538|   406k|    {
 2539|   406k|      const unsigned int dest_vertex = *ei++;
 2540|   406k|      Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2541|       |
 2542|   406k|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (2542:10): [True: 214k, False: 192k]
  ------------------
 2543|   214k|        if(in_search) {
  ------------------
  |  Branch (2543:12): [True: 192k, False: 21.6k]
  ------------------
 2544|   192k|          neighbour_heap.insert(neighbour_cell->first);
 2545|   192k|        }
 2546|   214k|        continue;
 2547|   214k|      }
 2548|   192k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (2548:10): [True: 179k, False: 13.5k]
  ------------------
 2549|   179k|        {
 2550|   179k|          neighbour_heap.insert(neighbour_cell->first);
 2551|   179k|        }
 2552|   192k|      neighbour_cell->max_ival_count++;
 2553|       |
 2554|   192k|      unsigned int* const swap_position =
 2555|   192k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 2556|   192k|        neighbour_cell->max_ival_count;
 2557|   192k|      *p.in_pos[dest_vertex] = *swap_position;
 2558|   192k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 2559|   192k|      *swap_position = dest_vertex;
 2560|   192k|      p.in_pos[dest_vertex] = swap_position;
 2561|   192k|    }
 2562|       |
 2563|  3.22M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2563:9): [True: 371k, False: 2.85M]
  ------------------
 2564|   371k|    {
 2565|   371k|      const unsigned int start = neighbour_heap.remove();
 2566|   371k|      Partition::Cell* neighbour_cell = p.get_cell(p.elements[start]);
 2567|       |
 2568|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 2569|       |      assert(neighbour_cell->first == start);
 2570|       |      if(neighbour_cell->is_unit()) {
 2571|       |        assert(neighbour_cell->max_ival_count == 0);
 2572|       |      } else {
 2573|       |        assert(neighbour_cell->max_ival_count > 0);
 2574|       |        assert(neighbour_cell->max_ival_count <= neighbour_cell->length);
 2575|       |      }
 2576|       |#endif
 2577|       |
 2578|   371k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2578:10): [True: 0, False: 371k]
  ------------------
 2579|      0|        {
 2580|      0|          eqref_hash.update(neighbour_cell->first);
 2581|      0|          eqref_hash.update(neighbour_cell->length);
 2582|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 2583|      0|        }
 2584|       |
 2585|   371k|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (2585:10): [True: 179k, False: 192k]
  ------------------
 2586|   179k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (2586:10): [True: 175k, False: 3.24k]
  ------------------
 2587|   175k|        {
 2588|   175k|          Partition::Cell* const new_cell =
 2589|   175k|            p.aux_split_in_two(neighbour_cell,
 2590|   175k|                               neighbour_cell->length -
 2591|   175k|                               neighbour_cell->max_ival_count);
 2592|   175k|          unsigned int* ep = p.elements + new_cell->first;
 2593|   175k|          unsigned int* const lp = p.elements+new_cell->first+new_cell->length;
 2594|   361k|          while(ep < lp) {
  ------------------
  |  Branch (2594:17): [True: 185k, False: 175k]
  ------------------
 2595|   185k|            p.element_to_cell_map[*ep] = new_cell;
 2596|   185k|            ep++;
 2597|   185k|          }
 2598|   175k|          neighbour_cell->max_ival_count = 0;
 2599|       |
 2600|       |
 2601|   175k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2601:14): [True: 0, False: 175k]
  ------------------
 2602|      0|            {
 2603|      0|              eqref_hash.update(neighbour_cell->first);
 2604|      0|              eqref_hash.update(neighbour_cell->length);
 2605|      0|              eqref_hash.update(0);
 2606|      0|              eqref_hash.update(new_cell->first);
 2607|      0|              eqref_hash.update(new_cell->length);
 2608|      0|              eqref_hash.update(1);
 2609|      0|            }
 2610|       |
 2611|       |          /* Add cells in splitting_queue */
 2612|   175k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (2612:14): [True: 6.12k, False: 169k]
  ------------------
 2613|       |            /* Both cells must be included in splitting_queue in order
 2614|       |               to have refinement to equitable partition */
 2615|  6.12k|            p.splitting_queue_add(new_cell);
 2616|   169k|          } else {
 2617|   169k|            Partition::Cell *min_cell, *max_cell;
 2618|   169k|            if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (2618:16): [True: 22.6k, False: 147k]
  ------------------
 2619|  22.6k|              min_cell = neighbour_cell;
 2620|  22.6k|              max_cell = new_cell;
 2621|   147k|            } else {
 2622|   147k|              min_cell = new_cell;
 2623|   147k|              max_cell = neighbour_cell;
 2624|   147k|            }
 2625|       |            /* Put the smaller cell in splitting_queue */
 2626|   169k|            p.splitting_queue_add(min_cell);
 2627|   169k|            if(max_cell->is_unit()) {
  ------------------
  |  Branch (2627:16): [True: 21.3k, False: 148k]
  ------------------
 2628|       |              /* Put the "larger" cell also in splitting_queue */
 2629|  21.3k|              p.splitting_queue_add(max_cell);
 2630|  21.3k|            }
 2631|   169k|          }
 2632|       |          /* Update pointer for certificate generation */
 2633|   175k|          neighbour_cell = new_cell;
 2634|   175k|        }
 2635|   195k|      else
 2636|   195k|        {
 2637|   195k|          neighbour_cell->max_ival_count = 0;
 2638|   195k|        }
 2639|       |
 2640|       |      /*
 2641|       |       * Build certificate if required
 2642|       |       */
 2643|   371k|      if(in_search)
  ------------------
  |  Branch (2643:10): [True: 365k, False: 5.96k]
  ------------------
 2644|   365k|        {
 2645|   365k|          for(unsigned int i = neighbour_cell->first,
 2646|   365k|                j = neighbour_cell->length;
 2647|   732k|              j > 0;
  ------------------
  |  Branch (2647:15): [True: 377k, False: 355k]
  ------------------
 2648|   366k|              j--, i++)
 2649|   377k|            {
 2650|       |              /* Build certificate */
 2651|   377k|              cert_add(CERT_EDGE, i, unit_cell->first);
 2652|       |              /* No need to continue? */
 2653|   377k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2653:18): [True: 335k, False: 41.7k]
  ------------------
 2654|   335k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2654:18): [True: 226k, False: 109k]
  ------------------
 2655|   226k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2655:18): [True: 10.3k, False: 215k]
  ------------------
 2656|  10.3k|                goto worse_exit;
 2657|   377k|            }
 2658|   365k|        } /* if(in_search) */
 2659|   371k|    } /* while(!neighbour_heap.is_empty()) */
 2660|       |
 2661|  2.85M|  if(refine_compare_certificate and
  ------------------
  |  Branch (2661:6): [True: 2.67M, False: 176k]
  ------------------
 2662|  2.67M|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (2662:6): [True: 203k, False: 2.47M]
  ------------------
 2663|   203k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2663:6): [True: 0, False: 203k]
  ------------------
 2664|      0|    return true;
 2665|       |
 2666|  2.85M|  return false;
 2667|       |
 2668|  10.9k| worse_exit:
 2669|       |  /* Clear neighbour heap */
 2670|  10.9k|  UintSeqHash rest;
 2671|  11.8k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2671:9): [True: 823, False: 10.9k]
  ------------------
 2672|    823|    {
 2673|    823|      const unsigned int start = neighbour_heap.remove();
 2674|    823|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2675|    823|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2675:10): [True: 823, False: 0]
  |  Branch (2675:40): [True: 597, False: 226]
  ------------------
 2676|    597|        {
 2677|    597|          rest.update(neighbour_cell->first);
 2678|    597|          rest.update(neighbour_cell->length);
 2679|    597|          rest.update(neighbour_cell->max_ival_count);
 2680|    597|        }
 2681|    823|      neighbour_cell->max_ival_count = 0;
 2682|    823|    }
 2683|  10.9k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2683:6): [True: 10.9k, False: 0]
  |  Branch (2683:36): [True: 2.59k, False: 8.39k]
  ------------------
 2684|  2.59k|    {
 2685|  2.59k|      rest.update(failure_recording_fp_deviation);
 2686|  2.59k|      failure_recording_fp_deviation = rest.get_value();
 2687|  2.59k|    }
 2688|  10.9k|  return true;
 2689|  2.85M|}
_ZN5bliss7Digraph32make_initial_equitable_partitionEv:
 2823|  4.36k|{
 2824|  4.36k|  refine_according_to_invariant(&vertex_color_invariant);
 2825|  4.36k|  p.splitting_queue_clear();
 2826|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2827|       |
 2828|  4.36k|  refine_according_to_invariant(&selfloop_invariant);
 2829|  4.36k|  p.splitting_queue_clear();
 2830|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2831|       |
 2832|  4.36k|  refine_according_to_invariant(&outdegree_invariant);
 2833|  4.36k|  p.splitting_queue_clear();
 2834|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2835|       |
 2836|  4.36k|  refine_according_to_invariant(&indegree_invariant);
 2837|  4.36k|  p.splitting_queue_clear();
 2838|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2839|       |
 2840|  4.36k|  refine_to_equitable();
 2841|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2842|  4.36k|}
_ZN5bliss7Digraph29find_next_cell_to_be_splittedEPNS_9Partition4CellE:
 2856|  3.98k|{
 2857|  3.98k|  switch(sh) {
 2858|    516|  case shs_f:   return sh_first();
  ------------------
  |  Branch (2858:3): [True: 516, False: 3.46k]
  ------------------
 2859|    584|  case shs_fs:  return sh_first_smallest();
  ------------------
  |  Branch (2859:3): [True: 584, False: 3.40k]
  ------------------
 2860|    685|  case shs_fl:  return sh_first_largest();
  ------------------
  |  Branch (2860:3): [True: 685, False: 3.29k]
  ------------------
 2861|    709|  case shs_fm:  return sh_first_max_neighbours();
  ------------------
  |  Branch (2861:3): [True: 709, False: 3.27k]
  ------------------
 2862|    796|  case shs_fsm: return sh_first_smallest_max_neighbours();
  ------------------
  |  Branch (2862:3): [True: 796, False: 3.18k]
  ------------------
 2863|    694|  case shs_flm: return sh_first_largest_max_neighbours();
  ------------------
  |  Branch (2863:3): [True: 694, False: 3.29k]
  ------------------
 2864|      0|  default:
  ------------------
  |  Branch (2864:3): [True: 0, False: 3.98k]
  ------------------
 2865|      0|    fatal_error("Internal error - unknown splitting heuristics");
 2866|      0|    return 0;
 2867|  3.98k|  }
 2868|  3.98k|}
_ZN5bliss7Digraph8sh_firstEv:
 2877|    516|{
 2878|    516|  Partition::Cell* best_cell = 0;
 2879|    516|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2880|    516|      cell;
  ------------------
  |  Branch (2880:7): [True: 516, False: 0]
  ------------------
 2881|    516|      cell = cell->next_nonsingleton)
 2882|    516|    {
 2883|    516|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2883:10): [True: 516, False: 0]
  |  Branch (2883:30): [True: 0, False: 516]
  ------------------
 2884|      0|        continue;
 2885|    516|      best_cell = cell;
 2886|    516|      break;
 2887|    516|    }
 2888|    516|  return best_cell;
 2889|    516|}
_ZN5bliss7Digraph17sh_first_smallestEv:
 2898|    584|{
 2899|    584|  Partition::Cell* best_cell = 0;
 2900|    584|  unsigned int best_size = UINT_MAX;
 2901|    584|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2902|  2.36k|      cell;
  ------------------
  |  Branch (2902:7): [True: 1.78k, False: 584]
  ------------------
 2903|  1.78k|      cell = cell->next_nonsingleton)
 2904|  1.78k|    {
 2905|  1.78k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2905:10): [True: 1.78k, False: 0]
  |  Branch (2905:30): [True: 984, False: 796]
  ------------------
 2906|    984|        continue;
 2907|    796|      if(cell->length < best_size)
  ------------------
  |  Branch (2907:10): [True: 605, False: 191]
  ------------------
 2908|    605|        {
 2909|    605|          best_size = cell->length;
 2910|    605|          best_cell = cell;
 2911|    605|        }
 2912|    796|    }
 2913|    584|  return best_cell;
 2914|    584|}
_ZN5bliss7Digraph16sh_first_largestEv:
 2923|    685|{
 2924|    685|  Partition::Cell* best_cell = 0;
 2925|    685|  unsigned int best_size = 0;
 2926|    685|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2927|  2.79k|      cell;
  ------------------
  |  Branch (2927:7): [True: 2.11k, False: 685]
  ------------------
 2928|  2.11k|      cell = cell->next_nonsingleton)
 2929|  2.11k|    {
 2930|  2.11k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2930:10): [True: 2.11k, False: 0]
  |  Branch (2930:30): [True: 1.16k, False: 946]
  ------------------
 2931|  1.16k|        continue;
 2932|    946|      if(cell->length > best_size)
  ------------------
  |  Branch (2932:10): [True: 691, False: 255]
  ------------------
 2933|    691|        {
 2934|    691|          best_size = cell->length;
 2935|    691|          best_cell = cell;
 2936|    691|        }
 2937|    946|    }
 2938|    685|  return best_cell;
 2939|    685|}
_ZN5bliss7Digraph23sh_first_max_neighboursEv:
 2950|    709|{
 2951|    709|  Partition::Cell* best_cell = 0;
 2952|    709|  int best_value = -1;
 2953|    709|  KStack<Partition::Cell*> neighbour_cells_visited;
 2954|    709|  neighbour_cells_visited.init(get_nof_vertices());
 2955|    709|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2956|  2.83k|      cell;
  ------------------
  |  Branch (2956:7): [True: 2.12k, False: 709]
  ------------------
 2957|  2.12k|      cell = cell->next_nonsingleton)
 2958|  2.12k|    {
 2959|  2.12k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2959:10): [True: 2.12k, False: 0]
  |  Branch (2959:30): [True: 994, False: 1.12k]
  ------------------
 2960|    994|        continue;
 2961|  1.12k|      int value = 0;
 2962|  1.12k|      const Vertex &v = vertices[p.elements[cell->first]];
 2963|  1.12k|      std::vector<unsigned int>::const_iterator ei;
 2964|  1.12k|      ei = v.edges_in.begin();
 2965|  1.81k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2965:46): [True: 691, False: 1.12k]
  ------------------
 2966|    691|        {
 2967|    691|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 2968|    691|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2968:14): [True: 47, False: 644]
  ------------------
 2969|     47|            continue;
 2970|    644|          neighbour_cell->max_ival++;
 2971|    644|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (2971:14): [True: 571, False: 73]
  ------------------
 2972|    571|            neighbour_cells_visited.push(neighbour_cell);
 2973|    644|        }
 2974|  1.69k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (2974:13): [True: 571, False: 1.12k]
  ------------------
 2975|    571|        {
 2976|    571|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 2977|    571|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (2977:14): [True: 534, False: 37]
  ------------------
 2978|    534|            value++;
 2979|    571|          neighbour_cell->max_ival = 0;
 2980|    571|        }
 2981|       |
 2982|  1.12k|      ei = v.edges_out.begin();
 2983|  1.81k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (2983:47): [True: 685, False: 1.12k]
  ------------------
 2984|    685|        {
 2985|    685|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 2986|    685|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2986:14): [True: 43, False: 642]
  ------------------
 2987|     43|            continue;
 2988|    642|          neighbour_cell->max_ival++;
 2989|    642|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (2989:14): [True: 564, False: 78]
  ------------------
 2990|    564|            neighbour_cells_visited.push(neighbour_cell);
 2991|    642|        }
 2992|  1.69k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (2992:13): [True: 564, False: 1.12k]
  ------------------
 2993|    564|        {
 2994|    564|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 2995|    564|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (2995:14): [True: 534, False: 30]
  ------------------
 2996|    534|            value++;
 2997|    564|          neighbour_cell->max_ival = 0;
 2998|    564|        }
 2999|       |
 3000|  1.12k|      if(value > best_value)
  ------------------
  |  Branch (3000:10): [True: 800, False: 327]
  ------------------
 3001|    800|        {
 3002|    800|          best_value = value;
 3003|    800|          best_cell = cell;
 3004|    800|        }
 3005|  1.12k|    }
 3006|    709|  return best_cell;
 3007|    709|}
_ZN5bliss7Digraph32sh_first_smallest_max_neighboursEv:
 3018|    796|{
 3019|    796|  Partition::Cell* best_cell = 0;
 3020|    796|  int best_value = -1;
 3021|    796|  unsigned int best_size = UINT_MAX;
 3022|    796|  KStack<Partition::Cell*> neighbour_cells_visited;
 3023|    796|  neighbour_cells_visited.init(get_nof_vertices());
 3024|    796|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 3025|  3.37k|      cell;
  ------------------
  |  Branch (3025:7): [True: 2.57k, False: 796]
  ------------------
 3026|  2.57k|      cell = cell->next_nonsingleton)
 3027|  2.57k|    {
 3028|       |
 3029|  2.57k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (3029:10): [True: 2.57k, False: 0]
  |  Branch (3029:30): [True: 1.25k, False: 1.31k]
  ------------------
 3030|  1.25k|        continue;
 3031|       |
 3032|  1.31k|      int value = 0;
 3033|  1.31k|      const Vertex& v = vertices[p.elements[cell->first]];
 3034|  1.31k|      std::vector<unsigned int>::const_iterator ei;
 3035|       |
 3036|  1.31k|      ei = v.edges_in.begin();
 3037|  2.23k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3037:46): [True: 920, False: 1.31k]
  ------------------
 3038|    920|        {
 3039|    920|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 3040|    920|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3040:14): [True: 61, False: 859]
  ------------------
 3041|     61|            continue;
 3042|    859|          neighbour_cell->max_ival++;
 3043|    859|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3043:14): [True: 715, False: 144]
  ------------------
 3044|    715|            neighbour_cells_visited.push(neighbour_cell);
 3045|    859|        }
 3046|  2.03k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3046:13): [True: 715, False: 1.31k]
  ------------------
 3047|    715|        {
 3048|    715|          Partition::Cell * const neighbour_cell = neighbour_cells_visited.pop();
 3049|    715|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3049:14): [True: 682, False: 33]
  ------------------
 3050|    682|            value++;
 3051|    715|          neighbour_cell->max_ival = 0;
 3052|    715|        }
 3053|       |
 3054|  1.31k|      ei = v.edges_out.begin();
 3055|  2.22k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3055:47): [True: 909, False: 1.31k]
  ------------------
 3056|    909|        {
 3057|    909|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 3058|    909|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3058:14): [True: 73, False: 836]
  ------------------
 3059|     73|            continue;
 3060|    836|          neighbour_cell->max_ival++;
 3061|    836|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3061:14): [True: 711, False: 125]
  ------------------
 3062|    711|            neighbour_cells_visited.push(neighbour_cell);
 3063|    836|        }
 3064|  2.02k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3064:13): [True: 711, False: 1.31k]
  ------------------
 3065|    711|        {
 3066|    711|          Partition::Cell * const neighbour_cell = neighbour_cells_visited.pop();
 3067|    711|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3067:14): [True: 682, False: 29]
  ------------------
 3068|    682|            value++;
 3069|    711|          neighbour_cell->max_ival = 0;
 3070|    711|        }
 3071|       |
 3072|  1.31k|      if((value > best_value) or
  ------------------
  |  Branch (3072:10): [True: 908, False: 410]
  ------------------
 3073|    410|         (value == best_value and cell->length < best_size))
  ------------------
  |  Branch (3073:11): [True: 284, False: 126]
  |  Branch (3073:35): [True: 19, False: 265]
  ------------------
 3074|    927|        {
 3075|    927|          best_value = value;
 3076|    927|          best_size = cell->length;
 3077|    927|          best_cell = cell;
 3078|    927|        }
 3079|  1.31k|    }
 3080|    796|  return best_cell;
 3081|    796|}
_ZN5bliss7Digraph31sh_first_largest_max_neighboursEv:
 3092|    694|{
 3093|    694|  Partition::Cell* best_cell = 0;
 3094|    694|  int best_value = -1;
 3095|    694|  unsigned int best_size = 0;
 3096|    694|  KStack<Partition::Cell*> neighbour_cells_visited;
 3097|    694|  neighbour_cells_visited.init(get_nof_vertices());
 3098|    694|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 3099|  2.89k|      cell;
  ------------------
  |  Branch (3099:7): [True: 2.20k, False: 694]
  ------------------
 3100|  2.20k|      cell = cell->next_nonsingleton)
 3101|  2.20k|    {
 3102|       |
 3103|  2.20k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (3103:10): [True: 2.20k, False: 0]
  |  Branch (3103:30): [True: 1.03k, False: 1.16k]
  ------------------
 3104|  1.03k|        continue;
 3105|       |
 3106|  1.16k|      int value = 0;
 3107|  1.16k|      const Vertex &v = vertices[p.elements[cell->first]];
 3108|  1.16k|      std::vector<unsigned int>::const_iterator ei;
 3109|       |
 3110|  1.16k|      ei = v.edges_in.begin();
 3111|  1.93k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3111:46): [True: 766, False: 1.16k]
  ------------------
 3112|    766|        {
 3113|    766|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 3114|    766|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3114:14): [True: 55, False: 711]
  ------------------
 3115|     55|            continue;
 3116|    711|          neighbour_cell->max_ival++;
 3117|    711|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3117:14): [True: 624, False: 87]
  ------------------
 3118|    624|            neighbour_cells_visited.push(neighbour_cell);
 3119|    711|        }
 3120|  1.78k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3120:13): [True: 624, False: 1.16k]
  ------------------
 3121|    624|        {
 3122|    624|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 3123|    624|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3123:14): [True: 590, False: 34]
  ------------------
 3124|    590|            value++;
 3125|    624|          neighbour_cell->max_ival = 0;
 3126|    624|        }
 3127|       |
 3128|  1.16k|      ei = v.edges_out.begin();
 3129|  1.96k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3129:47): [True: 796, False: 1.16k]
  ------------------
 3130|    796|        {
 3131|    796|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 3132|    796|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3132:14): [True: 64, False: 732]
  ------------------
 3133|     64|            continue;
 3134|    732|          neighbour_cell->max_ival++;
 3135|    732|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3135:14): [True: 622, False: 110]
  ------------------
 3136|    622|            neighbour_cells_visited.push(neighbour_cell);
 3137|    732|        }
 3138|  1.78k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3138:13): [True: 622, False: 1.16k]
  ------------------
 3139|    622|        {
 3140|    622|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 3141|    622|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3141:14): [True: 590, False: 32]
  ------------------
 3142|    590|            value++;
 3143|    622|          neighbour_cell->max_ival = 0;
 3144|    622|        }
 3145|       |
 3146|  1.16k|      if((value > best_value) ||
  ------------------
  |  Branch (3146:10): [True: 789, False: 376]
  ------------------
 3147|    376|         (value == best_value && cell->length > best_size))
  ------------------
  |  Branch (3147:11): [True: 239, False: 137]
  |  Branch (3147:34): [True: 11, False: 228]
  ------------------
 3148|    800|        {
 3149|    800|          best_value = value;
 3150|    800|          best_size = cell->length;
 3151|    800|          best_cell = cell;
 3152|    800|        }
 3153|  1.16k|    }
 3154|    694|  return best_cell;
 3155|    694|}
_ZN5bliss7Digraph22initialize_certificateEv:
 3170|  3.98k|{
 3171|  3.98k|  certificate_index = 0;
 3172|  3.98k|  certificate_current_path.clear();
 3173|  3.98k|  certificate_first_path.clear();
 3174|  3.98k|  certificate_best_path.clear();
 3175|  3.98k|}
_ZN5bliss7Digraph25nucr_find_first_componentEj:
 3279|  3.98k|{
 3280|       |
 3281|  3.98k|  cr_component.clear();
 3282|  3.98k|  cr_component_elements = 0;
 3283|       |
 3284|       |  /* Find first non-discrete cell in the component level */
 3285|  3.98k|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 3286|  3.98k|  while(first_cell)
  ------------------
  |  Branch (3286:9): [True: 3.98k, False: 0]
  ------------------
 3287|  3.98k|    {
 3288|  3.98k|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (3288:10): [True: 3.98k, False: 0]
  ------------------
 3289|  3.98k|        break;
 3290|      0|      first_cell = first_cell->next_nonsingleton;
 3291|      0|    }
 3292|       |
 3293|       |  /* The component is discrete, return false */
 3294|  3.98k|  if(!first_cell)
  ------------------
  |  Branch (3294:6): [True: 0, False: 3.98k]
  ------------------
 3295|      0|    return false;
 3296|       |
 3297|  3.98k|  std::vector<Partition::Cell*> component;
 3298|  3.98k|  first_cell->max_ival = 1;
 3299|  3.98k|  component.push_back(first_cell);
 3300|       |
 3301|  9.88k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (3301:27): [True: 5.90k, False: 3.98k]
  ------------------
 3302|  5.90k|    {
 3303|  5.90k|      Partition::Cell* const cell = component[i];
 3304|       |
 3305|  5.90k|      const Vertex& v = vertices[p.elements[cell->first]];
 3306|  5.90k|      std::vector<unsigned int>::const_iterator ei;
 3307|       |
 3308|  5.90k|      ei = v.edges_out.begin();
 3309|  9.00k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3309:47): [True: 3.10k, False: 5.90k]
  ------------------
 3310|  3.10k|        {
 3311|  3.10k|          const unsigned int neighbour = *ei++;
 3312|  3.10k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3313|       |
 3314|       |          /* Skip unit neighbours */
 3315|  3.10k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3315:14): [True: 194, False: 2.91k]
  ------------------
 3316|    194|            continue;
 3317|       |          /* Already marked to be in the same component? */
 3318|  2.91k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3318:14): [True: 2.14k, False: 771]
  ------------------
 3319|  2.14k|            continue;
 3320|       |          /* Is the neighbour at the same component recursion level? */
 3321|    771|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (3321:14): [True: 0, False: 771]
  ------------------
 3322|      0|            continue;
 3323|       |
 3324|    771|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3324:14): [True: 617, False: 154]
  ------------------
 3325|    617|            neighbour_heap.insert(neighbour_cell->first);
 3326|    771|          neighbour_cell->max_ival_count++;
 3327|    771|        }
 3328|  6.51k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (3328:13): [True: 617, False: 5.90k]
  ------------------
 3329|    617|        {
 3330|    617|          const unsigned int start = neighbour_heap.remove();
 3331|    617|          Partition::Cell* const neighbour_cell =
 3332|    617|            p.get_cell(p.elements[start]);
 3333|       |
 3334|       |          /* Skip saturated neighbour cells */
 3335|    617|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3335:14): [True: 66, False: 551]
  ------------------
 3336|     66|            {
 3337|     66|              neighbour_cell->max_ival_count = 0;
 3338|     66|              continue;
 3339|     66|            }
 3340|    551|          neighbour_cell->max_ival_count = 0;
 3341|    551|          neighbour_cell->max_ival = 1;
 3342|    551|          component.push_back(neighbour_cell);
 3343|    551|        }
 3344|       |
 3345|  5.90k|      ei = v.edges_in.begin();
 3346|  9.00k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3346:46): [True: 3.09k, False: 5.90k]
  ------------------
 3347|  3.09k|        {
 3348|  3.09k|          const unsigned int neighbour = *ei++;
 3349|       |
 3350|  3.09k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3351|       |
 3352|       |          /* Skip unit neighbours */
 3353|  3.09k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3353:14): [True: 192, False: 2.90k]
  ------------------
 3354|    192|            continue;
 3355|       |          /* Already marked to be in the same component? */
 3356|  2.90k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3356:14): [True: 1.20k, False: 1.70k]
  ------------------
 3357|  1.20k|            continue;
 3358|       |          /* Is the neighbour at the same component recursion level? */
 3359|  1.70k|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (3359:14): [True: 0, False: 1.70k]
  ------------------
 3360|      0|            continue;
 3361|       |
 3362|  1.70k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3362:14): [True: 1.44k, False: 256]
  ------------------
 3363|  1.44k|            neighbour_heap.insert(neighbour_cell->first);
 3364|  1.70k|          neighbour_cell->max_ival_count++;
 3365|  1.70k|        }
 3366|  7.34k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (3366:13): [True: 1.44k, False: 5.90k]
  ------------------
 3367|  1.44k|        {
 3368|  1.44k|          const unsigned int start = neighbour_heap.remove();
 3369|  1.44k|          Partition::Cell* const neighbour_cell =
 3370|  1.44k|            p.get_cell(p.elements[start]);
 3371|       |
 3372|       |          /* Skip saturated neighbour cells */
 3373|  1.44k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3373:14): [True: 77, False: 1.36k]
  ------------------
 3374|     77|            {
 3375|     77|              neighbour_cell->max_ival_count = 0;
 3376|     77|              continue;
 3377|     77|            }
 3378|  1.36k|          neighbour_cell->max_ival_count = 0;
 3379|  1.36k|          neighbour_cell->max_ival = 1;
 3380|  1.36k|          component.push_back(neighbour_cell);
 3381|  1.36k|        }
 3382|  5.90k|    }
 3383|       |
 3384|  9.88k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (3384:27): [True: 5.90k, False: 3.98k]
  ------------------
 3385|  5.90k|    {
 3386|  5.90k|      Partition::Cell* const cell = component[i];
 3387|  5.90k|      cell->max_ival = 0;
 3388|  5.90k|      cr_component.push_back(cell->first);
 3389|  5.90k|      cr_component_elements += cell->length;
 3390|  5.90k|    }
 3391|       |
 3392|       |  /*
 3393|       |  if(verbstr and verbose_level > 2) {
 3394|       |    fprintf(verbstr, "NU-component with %lu cells and %u vertices\n",
 3395|       |            (long unsigned)cr_component.size(), cr_component_elements);
 3396|       |    fflush(verbstr);
 3397|       |  }
 3398|       |  */
 3399|       |
 3400|  3.98k|  return true;
 3401|  3.98k|}
_ZN5bliss7Digraph25nucr_find_first_componentEjRNSt3__16vectorIjNS1_9allocatorIjEEEERjRPNS_9Partition4CellE:
 3412|  2.30M|{
 3413|       |
 3414|  2.30M|  component.clear();
 3415|  2.30M|  component_elements = 0;
 3416|  2.30M|  sh_return = 0;
 3417|  2.30M|  unsigned int sh_first  = 0;
 3418|  2.30M|  unsigned int sh_size   = 0;
 3419|  2.30M|  unsigned int sh_nuconn = 0;
 3420|       |
 3421|       |  /* Find first non-discrete cell in the component level */
 3422|  2.30M|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 3423|  2.30M|  while(first_cell)
  ------------------
  |  Branch (3423:9): [True: 2.30M, False: 0]
  ------------------
 3424|  2.30M|    {
 3425|  2.30M|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (3425:10): [True: 2.30M, False: 1.16k]
  ------------------
 3426|  2.30M|        break;
 3427|  1.16k|      first_cell = first_cell->next_nonsingleton;
 3428|  1.16k|    }
 3429|       |
 3430|  2.30M|  if(!first_cell)
  ------------------
  |  Branch (3430:6): [True: 0, False: 2.30M]
  ------------------
 3431|      0|    {
 3432|       |      /* The component is discrete, return false */
 3433|      0|      return false;
 3434|      0|    }
 3435|       |
 3436|  2.30M|  std::vector<Partition::Cell*> comp;
 3437|  2.30M|  KStack<Partition::Cell*> neighbours;
 3438|  2.30M|  neighbours.init(get_nof_vertices());
 3439|       |
 3440|  2.30M|  first_cell->max_ival = 1;
 3441|  2.30M|  comp.push_back(first_cell);
 3442|       |
 3443|  4.65M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (3443:27): [True: 2.34M, False: 2.30M]
  ------------------
 3444|  2.34M|    {
 3445|  2.34M|      Partition::Cell* const cell = comp[i];
 3446|       |
 3447|  2.34M|      unsigned int nuconn = 1;
 3448|       |
 3449|  2.34M|      const Vertex& v = vertices[p.elements[cell->first]];
 3450|  2.34M|      std::vector<unsigned int>::const_iterator ei;
 3451|       |
 3452|       |      /*| Phase 1: outgoing edges */
 3453|  2.34M|      ei = v.edges_out.begin();
 3454|  2.43M|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3454:47): [True: 88.8k, False: 2.34M]
  ------------------
 3455|  88.8k|        {
 3456|  88.8k|          const unsigned int neighbour = *ei++;
 3457|       |
 3458|  88.8k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3459|       |
 3460|       |          /* Skip unit neighbours */
 3461|  88.8k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3461:14): [True: 12.6k, False: 76.2k]
  ------------------
 3462|  12.6k|            continue;
 3463|       |          /* Is the neighbour at the same component recursion level? */
 3464|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 3465|       |          //  continue;
 3466|  76.2k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3466:14): [True: 73.5k, False: 2.65k]
  ------------------
 3467|  73.5k|            neighbours.push(neighbour_cell);
 3468|  76.2k|          neighbour_cell->max_ival_count++;
 3469|  76.2k|        }
 3470|  2.41M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (3470:13): [True: 73.5k, False: 2.34M]
  ------------------
 3471|  73.5k|        {
 3472|  73.5k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 3473|       |          /* Skip saturated neighbour cells */
 3474|  73.5k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3474:14): [True: 161, False: 73.4k]
  ------------------
 3475|    161|            {
 3476|    161|              neighbour_cell->max_ival_count = 0;
 3477|    161|              continue;
 3478|    161|            }
 3479|  73.4k|          nuconn++;
 3480|  73.4k|          neighbour_cell->max_ival_count = 0;
 3481|  73.4k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (3481:14): [True: 1.75k, False: 71.6k]
  ------------------
 3482|  1.75k|            comp.push_back(neighbour_cell);
 3483|  1.75k|            neighbour_cell->max_ival = 1;
 3484|  1.75k|          }
 3485|  73.4k|        }
 3486|       |
 3487|       |      /*| Phase 2: incoming edges */
 3488|  2.34M|      ei = v.edges_in.begin();
 3489|  2.43M|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3489:46): [True: 90.0k, False: 2.34M]
  ------------------
 3490|  90.0k|        {
 3491|  90.0k|          const unsigned int neighbour = *ei++;
 3492|  90.0k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3493|       |          /*| Skip unit neighbours */
 3494|  90.0k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3494:14): [True: 12.3k, False: 77.6k]
  ------------------
 3495|  12.3k|            continue;
 3496|       |          /* Is the neighbour at the same component recursion level? */
 3497|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 3498|       |          //  continue;
 3499|  77.6k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3499:14): [True: 73.7k, False: 3.88k]
  ------------------
 3500|  73.7k|            neighbours.push(neighbour_cell);
 3501|  77.6k|          neighbour_cell->max_ival_count++;
 3502|  77.6k|        }
 3503|  2.41M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (3503:13): [True: 73.7k, False: 2.34M]
  ------------------
 3504|  73.7k|        {
 3505|  73.7k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 3506|       |          /* Skip saturated neighbour cells */
 3507|  73.7k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3507:14): [True: 375, False: 73.4k]
  ------------------
 3508|    375|            {
 3509|    375|              neighbour_cell->max_ival_count = 0;
 3510|    375|              continue;
 3511|    375|            }
 3512|  73.4k|          nuconn++;
 3513|  73.4k|          neighbour_cell->max_ival_count = 0;
 3514|  73.4k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (3514:14): [True: 34.6k, False: 38.7k]
  ------------------
 3515|  34.6k|            comp.push_back(neighbour_cell);
 3516|  34.6k|            neighbour_cell->max_ival = 1;
 3517|  34.6k|          }
 3518|  73.4k|        }
 3519|       |
 3520|       |      /*| Phase 3: splitting heuristics */
 3521|  2.34M|      switch(sh) {
 3522|   345k|      case shs_f:
  ------------------
  |  Branch (3522:7): [True: 345k, False: 1.99M]
  ------------------
 3523|   345k|        if(sh_return == 0 or
  ------------------
  |  Branch (3523:12): [True: 342k, False: 2.83k]
  ------------------
 3524|   342k|           cell->first <= sh_first) {
  ------------------
  |  Branch (3524:12): [True: 0, False: 2.83k]
  ------------------
 3525|   342k|          sh_return = cell;
 3526|   342k|          sh_first = cell->first;
 3527|   342k|        }
 3528|   345k|        break;
 3529|   369k|      case shs_fs:
  ------------------
  |  Branch (3529:7): [True: 369k, False: 1.97M]
  ------------------
 3530|   369k|        if(sh_return == 0 or
  ------------------
  |  Branch (3530:12): [True: 363k, False: 6.02k]
  ------------------
 3531|  6.02k|           cell->length < sh_size or
  ------------------
  |  Branch (3531:12): [True: 473, False: 5.54k]
  ------------------
 3532|   363k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (3532:13): [True: 4.13k, False: 1.41k]
  |  Branch (3532:41): [True: 90, False: 4.04k]
  ------------------
 3533|   363k|          sh_return = cell;
 3534|   363k|          sh_first = cell->first;
 3535|   363k|          sh_size = cell->length;
 3536|   363k|        }
 3537|   369k|        break;
 3538|   431k|      case shs_fl:
  ------------------
  |  Branch (3538:7): [True: 431k, False: 1.91M]
  ------------------
 3539|   431k|        if(sh_return == 0 or
  ------------------
  |  Branch (3539:12): [True: 426k, False: 5.14k]
  ------------------
 3540|  5.14k|           cell->length > sh_size or
  ------------------
  |  Branch (3540:12): [True: 441, False: 4.70k]
  ------------------
 3541|   427k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (3541:13): [True: 4.36k, False: 339]
  |  Branch (3541:41): [True: 76, False: 4.29k]
  ------------------
 3542|   427k|          sh_return = cell;
 3543|   427k|          sh_first = cell->first;
 3544|   427k|          sh_size = cell->length;
 3545|   427k|        }
 3546|   431k|        break;
 3547|   387k|      case shs_fm:
  ------------------
  |  Branch (3547:7): [True: 387k, False: 1.95M]
  ------------------
 3548|   387k|        if(sh_return == 0 or
  ------------------
  |  Branch (3548:12): [True: 380k, False: 6.53k]
  ------------------
 3549|  6.53k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3549:12): [True: 409, False: 6.12k]
  ------------------
 3550|   381k|           (nuconn == sh_nuconn and cell->first <= sh_first)) {
  ------------------
  |  Branch (3550:13): [True: 5.74k, False: 381]
  |  Branch (3550:37): [True: 98, False: 5.64k]
  ------------------
 3551|   381k|          sh_return = cell;
 3552|   381k|          sh_first = cell->first;
 3553|   381k|          sh_nuconn = nuconn;
 3554|   381k|        }
 3555|   387k|        break;
 3556|   448k|      case shs_fsm:
  ------------------
  |  Branch (3556:7): [True: 448k, False: 1.89M]
  ------------------
 3557|   448k|        if(sh_return == 0 or
  ------------------
  |  Branch (3557:12): [True: 438k, False: 9.41k]
  ------------------
 3558|  9.41k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3558:12): [True: 618, False: 8.79k]
  ------------------
 3559|  8.79k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (3559:13): [True: 8.14k, False: 651]
  ------------------
 3560|  8.14k|            (cell->length < sh_size or
  ------------------
  |  Branch (3560:14): [True: 614, False: 7.52k]
  ------------------
 3561|   440k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (3561:15): [True: 7.02k, False: 498]
  |  Branch (3561:43): [True: 148, False: 6.88k]
  ------------------
 3562|   440k|          sh_return = cell;
 3563|   440k|          sh_first = cell->first;
 3564|   440k|          sh_size = cell->length;
 3565|   440k|          sh_nuconn = nuconn;
 3566|   440k|        }
 3567|   448k|        break;
 3568|   362k|      case shs_flm:
  ------------------
  |  Branch (3568:7): [True: 362k, False: 1.98M]
  ------------------
 3569|   362k|        if(sh_return == 0 or
  ------------------
  |  Branch (3569:12): [True: 355k, False: 6.50k]
  ------------------
 3570|  6.50k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3570:12): [True: 533, False: 5.97k]
  ------------------
 3571|  5.97k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (3571:13): [True: 5.51k, False: 458]
  ------------------
 3572|  5.51k|            (cell->length > sh_size or
  ------------------
  |  Branch (3572:14): [True: 369, False: 5.14k]
  ------------------
 3573|   356k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (3573:15): [True: 4.92k, False: 229]
  |  Branch (3573:43): [True: 151, False: 4.76k]
  ------------------
 3574|   356k|          sh_return = cell;
 3575|   356k|          sh_first = cell->first;
 3576|   356k|          sh_size = cell->length;
 3577|   356k|          sh_nuconn = nuconn;
 3578|   356k|        }
 3579|   362k|        break;
 3580|      0|      default:
  ------------------
  |  Branch (3580:7): [True: 0, False: 2.34M]
  ------------------
 3581|      0|        fatal_error("Internal error - unknown splitting heuristics");
 3582|      0|        return 0;
 3583|  2.34M|      }
 3584|  2.34M|    }
 3585|  2.30M|  assert(sh_return);
  ------------------
  |  Branch (3585:3): [True: 2.30M, False: 0]
  ------------------
 3586|       |
 3587|  4.65M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (3587:27): [True: 2.34M, False: 2.30M]
  ------------------
 3588|  2.34M|    {
 3589|  2.34M|      Partition::Cell* const cell = comp[i];
 3590|  2.34M|      cell->max_ival = 0;
 3591|  2.34M|      component.push_back(cell->first);
 3592|  2.34M|      component_elements += cell->length;
 3593|  2.34M|    }
 3594|       |
 3595|       |  /*
 3596|       |  if(verbstr and verbose_level > 2) {
 3597|       |    fprintf(verbstr, "NU-component with %lu cells and %u vertices\n",
 3598|       |            (long unsigned)component.size(), component_elements);
 3599|       |    fflush(verbstr);
 3600|       |  }
 3601|       |  */
 3602|       |
 3603|  2.30M|  return true;
 3604|  2.30M|}
_ZN5bliss5Graph6VertexC2Ev:
 3616|   150k|{
 3617|   150k|  color = 0;
 3618|   150k|}
_ZN5bliss5Graph6VertexD2Ev:
 3622|   150k|{
 3623|   150k|  ;
 3624|   150k|}
_ZN5bliss5Graph6Vertex8add_edgeEj:
 3629|   116k|{
 3630|   116k|  edges.push_back(other_vertex);
 3631|   116k|}
_ZN5bliss5Graph6Vertex22remove_duplicate_edgesERNSt3__16vectorIbNS2_9allocatorIbEEEE:
 3636|   150k|{
 3637|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 3638|       |  /* Pre-conditions  */
 3639|       |  for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 3640|       |#endif
 3641|   150k|  for(std::vector<unsigned int>::iterator iter = edges.begin();
 3642|   266k|      iter != edges.end(); )
  ------------------
  |  Branch (3642:7): [True: 116k, False: 150k]
  ------------------
 3643|   116k|    {
 3644|   116k|      const unsigned int dest_vertex = *iter;
 3645|   116k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (3645:10): [True: 1.13k, False: 115k]
  ------------------
 3646|  1.13k|        {
 3647|       |          /* A duplicate edge found! */
 3648|  1.13k|          iter = edges.erase(iter);
 3649|  1.13k|        }
 3650|   115k|      else
 3651|   115k|        {
 3652|       |          /* Not seen earlier, mark as seen */
 3653|   115k|          tmp[dest_vertex] = true;
 3654|   115k|          iter++;
 3655|   115k|        }
 3656|   116k|    }
 3657|       |
 3658|       |  /* Clear tmp */
 3659|   150k|  for(std::vector<unsigned int>::iterator iter = edges.begin();
 3660|   265k|      iter != edges.end();
  ------------------
  |  Branch (3660:7): [True: 115k, False: 150k]
  ------------------
 3661|   150k|      iter++)
 3662|   115k|    {
 3663|   115k|      tmp[*iter] = false;
 3664|   115k|    }
 3665|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 3666|       |  /* Post-conditions  */
 3667|       |  for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 3668|       |#endif
 3669|   150k|}
_ZN5bliss5GraphC2Ej:
 3694|  3.73k|{
 3695|  3.73k|  vertices.resize(nof_vertices);
 3696|  3.73k|  sh = shs_flm;
 3697|  3.73k|}
_ZN5bliss5GraphD2Ev:
 3701|  3.73k|{
 3702|  3.73k|  ;
 3703|  3.73k|}
_ZN5bliss5Graph8add_edgeEjj:
 3718|  58.1k|{
 3719|       |  //fprintf(stderr, "(%u,%u) ", vertex1, vertex2);
 3720|  58.1k|  if(vertex1 >= vertices.size() or vertex2 >= vertices.size())
  ------------------
  |  Branch (3720:6): [True: 0, False: 58.1k]
  |  Branch (3720:36): [True: 0, False: 58.1k]
  ------------------
 3721|      0|    throw std::runtime_error("out-of-bounds vertex number");
 3722|  58.1k|  vertices[vertex1].add_edge(vertex2);
 3723|  58.1k|  vertices[vertex2].add_edge(vertex1);
 3724|  58.1k|}
_ZN5bliss5Graph22remove_duplicate_edgesEv:
 3889|  3.73k|{
 3890|  3.73k|  std::vector<bool> tmp(vertices.size(), false);
 3891|       |
 3892|  3.73k|  for(std::vector<Vertex>::iterator vi = vertices.begin();
 3893|   154k|      vi != vertices.end();
  ------------------
  |  Branch (3893:7): [True: 150k, False: 3.73k]
  ------------------
 3894|   150k|      vi++)
 3895|   150k|    {
 3896|       |#if defined(BLISS_EXPENSIVE_CONSISTENCY_CHECKS)
 3897|       |      for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 3898|       |#endif
 3899|   150k|      (*vi).remove_duplicate_edges(tmp);
 3900|   150k|    }
 3901|  3.73k|}
_ZN5bliss5Graph22vertex_color_invariantEPKS0_j:
 3919|   150k|{
 3920|   150k|  return g->vertices[v].color;
 3921|   150k|}
_ZN5bliss5Graph16degree_invariantEPKS0_j:
 3929|   150k|{
 3930|   150k|  return g->vertices[v].nof_edges();
 3931|   150k|}
_ZN5bliss5Graph18selfloop_invariantEPKS0_j:
 3939|   150k|{
 3940|   150k|  const Vertex& vertex = g->vertices[v];
 3941|   150k|  for(std::vector<unsigned int>::const_iterator ei = vertex.edges.begin();
 3942|   263k|      ei != vertex.edges.end();
  ------------------
  |  Branch (3942:7): [True: 114k, False: 149k]
  ------------------
 3943|   150k|      ei++)
 3944|   114k|    {
 3945|   114k|      if(*ei == v)
  ------------------
  |  Branch (3945:10): [True: 1.13k, False: 113k]
  ------------------
 3946|  1.13k|        return 1;
 3947|   114k|    }
 3948|   149k|  return 0;
 3949|   150k|}
_ZN5bliss5Graph29refine_according_to_invariantEPFjPKS0_jE:
 3962|  11.1k|{
 3963|  11.1k|  bool refined = false;
 3964|       |
 3965|  22.5k|  for(Partition::Cell* cell = p.first_nonsingleton_cell; cell; )
  ------------------
  |  Branch (3965:58): [True: 11.4k, False: 11.1k]
  ------------------
 3966|  11.4k|    {
 3967|       |
 3968|  11.4k|      Partition::Cell* const next_cell = cell->next_nonsingleton;
 3969|       |
 3970|  11.4k|      const unsigned int* ep = p.elements + cell->first;
 3971|   462k|      for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (3971:42): [True: 450k, False: 11.4k]
  ------------------
 3972|   450k|        {
 3973|   450k|          const unsigned int ival = inv(this, *ep);
 3974|   450k|          p.invariant_values[*ep] = ival;
 3975|   450k|          if(ival > cell->max_ival)
  ------------------
  |  Branch (3975:14): [True: 5.73k, False: 444k]
  ------------------
 3976|  5.73k|            {
 3977|  5.73k|              cell->max_ival = ival;
 3978|  5.73k|              cell->max_ival_count = 1;
 3979|  5.73k|            }
 3980|   444k|          else if(ival == cell->max_ival)
  ------------------
  |  Branch (3980:19): [True: 324k, False: 120k]
  ------------------
 3981|   324k|            {
 3982|   324k|              cell->max_ival_count++;
 3983|   324k|            }
 3984|   450k|        }
 3985|  11.4k|      Partition::Cell* const last_new_cell = p.zplit_cell(cell, true);
 3986|  11.4k|      refined |= (last_new_cell != cell);
 3987|  11.4k|      cell = next_cell;
 3988|  11.4k|    }
 3989|       |
 3990|  11.1k|  return refined;
 3991|  11.1k|}
_ZN5bliss5Graph27split_neighbourhood_of_cellEPNS_9Partition4CellE:
 4012|   239k|{
 4013|       |
 4014|       |
 4015|   239k|  const bool was_equal_to_first = refine_equal_to_first;
 4016|       |
 4017|   239k|  if(compute_eqref_hash)
  ------------------
  |  Branch (4017:6): [True: 0, False: 239k]
  ------------------
 4018|      0|    {
 4019|      0|      eqref_hash.update(cell->first);
 4020|      0|      eqref_hash.update(cell->length);
 4021|      0|    }
 4022|       |
 4023|   239k|  const unsigned int* ep = p.elements + cell->first;
 4024|   870k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (4024:38): [True: 630k, False: 239k]
  ------------------
 4025|   630k|    {
 4026|   630k|      const Vertex& v = vertices[*ep++];
 4027|       |
 4028|   630k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4029|  1.75M|      for(unsigned int j = v.nof_edges(); j != 0; j--)
  ------------------
  |  Branch (4029:43): [True: 1.12M, False: 630k]
  ------------------
 4030|  1.12M|        {
 4031|  1.12M|          const unsigned int dest_vertex = *ei++;
 4032|  1.12M|          Partition::Cell * const neighbour_cell = p.get_cell(dest_vertex);
 4033|  1.12M|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4033:14): [True: 277k, False: 847k]
  ------------------
 4034|   277k|            continue;
 4035|   847k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 4036|   847k|          if(ival > neighbour_cell->max_ival)
  ------------------
  |  Branch (4036:14): [True: 395k, False: 452k]
  ------------------
 4037|   395k|            {
 4038|   395k|              neighbour_cell->max_ival = ival;
 4039|   395k|              neighbour_cell->max_ival_count = 1;
 4040|   395k|              if(ival == 1) {
  ------------------
  |  Branch (4040:18): [True: 335k, False: 59.1k]
  ------------------
 4041|   335k|                neighbour_heap.insert(neighbour_cell->first);
 4042|   335k|              }
 4043|   395k|            }
 4044|   452k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (4044:19): [True: 401k, False: 50.7k]
  ------------------
 4045|   401k|            neighbour_cell->max_ival_count++;
 4046|   401k|          }
 4047|   847k|        }
 4048|   630k|    }
 4049|       |
 4050|   534k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4050:9): [True: 324k, False: 210k]
  ------------------
 4051|   324k|    {
 4052|   324k|      const unsigned int start = neighbour_heap.remove();
 4053|   324k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4054|       |
 4055|   324k|      if(compute_eqref_hash)
  ------------------
  |  Branch (4055:10): [True: 0, False: 324k]
  ------------------
 4056|      0|        {
 4057|      0|          eqref_hash.update(neighbour_cell->first);
 4058|      0|          eqref_hash.update(neighbour_cell->length);
 4059|      0|          eqref_hash.update(neighbour_cell->max_ival);
 4060|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 4061|      0|        }
 4062|       |
 4063|       |
 4064|   324k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 4065|       |
 4066|       |      /* Update certificate and hash if needed */
 4067|   324k|      const Partition::Cell* c = neighbour_cell;
 4068|   472k|      while(1)
  ------------------
  |  Branch (4068:13): [True: 472k, Folded]
  ------------------
 4069|   472k|        {
 4070|   472k|          if(in_search)
  ------------------
  |  Branch (4070:14): [True: 455k, False: 17.5k]
  ------------------
 4071|   455k|            {
 4072|       |              /* Build certificate */
 4073|   455k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 4074|       |              /* No need to continue? */
 4075|   455k|              if(refine_compare_certificate and
  ------------------
  |  Branch (4075:18): [True: 441k, False: 13.3k]
  ------------------
 4076|   441k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (4076:18): [True: 410k, False: 31.3k]
  ------------------
 4077|   410k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4077:18): [True: 28.8k, False: 381k]
  ------------------
 4078|  28.8k|                goto worse_exit;
 4079|   455k|            }
 4080|   443k|          if(compute_eqref_hash)
  ------------------
  |  Branch (4080:14): [True: 0, False: 443k]
  ------------------
 4081|      0|            {
 4082|      0|              eqref_hash.update(c->first);
 4083|      0|              eqref_hash.update(c->length);
 4084|      0|            }
 4085|   443k|          if(c == last_new_cell)
  ------------------
  |  Branch (4085:14): [True: 295k, False: 148k]
  ------------------
 4086|   295k|            break;
 4087|   148k|          c = c->next;
 4088|   148k|        }
 4089|   324k|    }
 4090|       |
 4091|   210k|  if(refine_compare_certificate and
  ------------------
  |  Branch (4091:6): [True: 191k, False: 18.8k]
  ------------------
 4092|   191k|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (4092:6): [True: 174k, False: 17.1k]
  ------------------
 4093|   174k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4093:6): [True: 0, False: 174k]
  ------------------
 4094|      0|    return true;
 4095|       |
 4096|   210k|  return false;
 4097|       |
 4098|  28.8k| worse_exit:
 4099|       |  /* Clear neighbour heap */
 4100|  28.8k|  UintSeqHash rest;
 4101|  40.6k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4101:9): [True: 11.7k, False: 28.8k]
  ------------------
 4102|  11.7k|    {
 4103|  11.7k|      const unsigned int start = neighbour_heap.remove();
 4104|  11.7k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4105|  11.7k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4105:10): [True: 11.7k, False: 0]
  |  Branch (4105:40): [True: 3.54k, False: 8.24k]
  ------------------
 4106|  3.54k|        {
 4107|  3.54k|          rest.update(neighbour_cell->first);
 4108|  3.54k|          rest.update(neighbour_cell->length);
 4109|  3.54k|          rest.update(neighbour_cell->max_ival);
 4110|  3.54k|          rest.update(neighbour_cell->max_ival_count);
 4111|  3.54k|        }
 4112|  11.7k|      neighbour_cell->max_ival = 0;
 4113|  11.7k|      neighbour_cell->max_ival_count = 0;
 4114|  11.7k|     p.clear_ivs(neighbour_cell);
 4115|  11.7k|    }
 4116|  28.8k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4116:6): [True: 28.8k, False: 0]
  |  Branch (4116:36): [True: 5.43k, False: 23.4k]
  ------------------
 4117|  5.43k|    {
 4118|  13.9k|      for(unsigned int i = p.splitting_queue.size(); i > 0; i--)
  ------------------
  |  Branch (4118:54): [True: 8.54k, False: 5.43k]
  ------------------
 4119|  8.54k|        {
 4120|  8.54k|          Partition::Cell* const cell = p.splitting_queue.pop_front();
 4121|  8.54k|          rest.update(cell->first);
 4122|  8.54k|          rest.update(cell->length);
 4123|  8.54k|          p.splitting_queue.push_back(cell);
 4124|  8.54k|        }
 4125|  5.43k|      rest.update(failure_recording_fp_deviation);
 4126|  5.43k|      failure_recording_fp_deviation = rest.get_value();
 4127|  5.43k|    }
 4128|       |
 4129|  28.8k|  return true;
 4130|   210k|}
_ZN5bliss5Graph32split_neighbourhood_of_unit_cellEPNS_9Partition4CellE:
 4136|  2.88M|{
 4137|       |
 4138|       |
 4139|  2.88M|  const bool was_equal_to_first = refine_equal_to_first;
 4140|       |
 4141|  2.88M|  if(compute_eqref_hash)
  ------------------
  |  Branch (4141:6): [True: 0, False: 2.88M]
  ------------------
 4142|      0|    {
 4143|      0|      eqref_hash.update(0x87654321);
 4144|      0|      eqref_hash.update(unit_cell->first);
 4145|      0|      eqref_hash.update(1);
 4146|      0|    }
 4147|       |
 4148|  2.88M|  const Vertex& v = vertices[p.elements[unit_cell->first]];
 4149|       |
 4150|  2.88M|  std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4151|  4.54M|  for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4151:39): [True: 1.65M, False: 2.88M]
  ------------------
 4152|  1.65M|    {
 4153|  1.65M|      const unsigned int dest_vertex = *ei++;
 4154|  1.65M|      Partition::Cell * const neighbour_cell = p.get_cell(dest_vertex);
 4155|       |
 4156|  1.65M|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (4156:10): [True: 1.02M, False: 638k]
  ------------------
 4157|  1.02M|        if(in_search) {
  ------------------
  |  Branch (4157:12): [True: 1.01M, False: 4.92k]
  ------------------
 4158|       |          /* Remember neighbour in order to generate certificate */
 4159|  1.01M|          neighbour_heap.insert(neighbour_cell->first);
 4160|  1.01M|        }
 4161|  1.02M|        continue;
 4162|  1.02M|      }
 4163|   638k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4163:10): [True: 401k, False: 237k]
  ------------------
 4164|   401k|        {
 4165|   401k|          neighbour_heap.insert(neighbour_cell->first);
 4166|   401k|        }
 4167|   638k|      neighbour_cell->max_ival_count++;
 4168|       |
 4169|   638k|      unsigned int * const swap_position =
 4170|   638k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 4171|   638k|        neighbour_cell->max_ival_count;
 4172|   638k|      *p.in_pos[dest_vertex] = *swap_position;
 4173|   638k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 4174|   638k|      *swap_position = dest_vertex;
 4175|   638k|      p.in_pos[dest_vertex] = swap_position;
 4176|   638k|    }
 4177|       |
 4178|  4.29M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4178:9): [True: 1.41M, False: 2.88M]
  ------------------
 4179|  1.41M|    {
 4180|  1.41M|      const unsigned int start = neighbour_heap.remove();
 4181|  1.41M|      Partition::Cell* neighbour_cell = p.get_cell(p.elements[start]);
 4182|       |
 4183|       |#if defined(BLISS_CONSISTENCY_CHECKS)
 4184|       |      if(neighbour_cell->is_unit()) {
 4185|       |      } else {
 4186|       |      }
 4187|       |#endif
 4188|       |
 4189|  1.41M|      if(compute_eqref_hash)
  ------------------
  |  Branch (4189:10): [True: 0, False: 1.41M]
  ------------------
 4190|      0|        {
 4191|      0|          eqref_hash.update(neighbour_cell->first);
 4192|      0|          eqref_hash.update(neighbour_cell->length);
 4193|      0|          eqref_hash.update(neighbour_cell->max_ival_count);
 4194|      0|        }
 4195|       |
 4196|  1.41M|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (4196:10): [True: 401k, False: 1.01M]
  ------------------
 4197|   401k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (4197:10): [True: 325k, False: 75.1k]
  ------------------
 4198|   325k|        {
 4199|   325k|          Partition::Cell * const new_cell =
 4200|   325k|            p.aux_split_in_two(neighbour_cell,
 4201|   325k|                               neighbour_cell->length -
 4202|   325k|                               neighbour_cell->max_ival_count);
 4203|   325k|          unsigned int *ep = p.elements + new_cell->first;
 4204|   325k|          unsigned int * const lp = p.elements+new_cell->first+new_cell->length;
 4205|   811k|          while(ep < lp)
  ------------------
  |  Branch (4205:17): [True: 485k, False: 325k]
  ------------------
 4206|   485k|            {
 4207|   485k|              p.element_to_cell_map[*ep] = new_cell;
 4208|   485k|              ep++;
 4209|   485k|            }
 4210|   325k|          neighbour_cell->max_ival_count = 0;
 4211|       |
 4212|       |
 4213|   325k|          if(compute_eqref_hash)
  ------------------
  |  Branch (4213:14): [True: 0, False: 325k]
  ------------------
 4214|      0|            {
 4215|       |              /* Update hash */
 4216|      0|              eqref_hash.update(neighbour_cell->first);
 4217|      0|              eqref_hash.update(neighbour_cell->length);
 4218|      0|              eqref_hash.update(0);
 4219|      0|              eqref_hash.update(new_cell->first);
 4220|      0|              eqref_hash.update(new_cell->length);
 4221|      0|              eqref_hash.update(1);
 4222|      0|            }
 4223|       |
 4224|       |          /* Add cells in splitting_queue */
 4225|   325k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (4225:14): [True: 6.57k, False: 319k]
  ------------------
 4226|       |            /* Both cells must be included in splitting_queue in order
 4227|       |               to ensure refinement into equitable partition */
 4228|  6.57k|            p.splitting_queue_add(new_cell);
 4229|   319k|          } else {
 4230|   319k|            Partition::Cell *min_cell, *max_cell;
 4231|   319k|            if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (4231:16): [True: 133k, False: 185k]
  ------------------
 4232|   133k|              min_cell = neighbour_cell;
 4233|   133k|              max_cell = new_cell;
 4234|   185k|            } else {
 4235|   185k|              min_cell = new_cell;
 4236|   185k|              max_cell = neighbour_cell;
 4237|   185k|            }
 4238|       |            /* Put the smaller cell in splitting_queue */
 4239|   319k|            p.splitting_queue_add(min_cell);
 4240|   319k|            if(max_cell->is_unit()) {
  ------------------
  |  Branch (4240:16): [True: 118k, False: 201k]
  ------------------
 4241|       |              /* Put the "larger" cell also in splitting_queue */
 4242|   118k|              p.splitting_queue_add(max_cell);
 4243|   118k|            }
 4244|   319k|          }
 4245|       |          /* Update pointer for certificate generation */
 4246|   325k|          neighbour_cell = new_cell;
 4247|   325k|        }
 4248|  1.08M|      else
 4249|  1.08M|        {
 4250|       |          /* neighbour_cell->length == 1 ||
 4251|       |             neighbour_cell->max_ival_count == neighbour_cell->length */
 4252|  1.08M|          neighbour_cell->max_ival_count = 0;
 4253|  1.08M|        }
 4254|       |
 4255|       |      /*
 4256|       |       * Build certificate if required
 4257|       |       */
 4258|  1.41M|      if(in_search)
  ------------------
  |  Branch (4258:10): [True: 1.41M, False: 2.43k]
  ------------------
 4259|  1.41M|        {
 4260|  1.41M|          for(unsigned int i = neighbour_cell->first,
 4261|  1.41M|                j = neighbour_cell->length;
 4262|  3.05M|              j > 0;
  ------------------
  |  Branch (4262:15): [True: 1.64M, False: 1.41M]
  ------------------
 4263|  1.64M|              j--, i++)
 4264|  1.64M|            {
 4265|       |              /* Build certificate */
 4266|  1.64M|              cert_add(CERT_EDGE, unit_cell->first, i);
 4267|       |              /* No need to continue? */
 4268|  1.64M|              if(refine_compare_certificate and
  ------------------
  |  Branch (4268:18): [True: 1.54M, False: 105k]
  ------------------
 4269|  1.54M|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (4269:18): [True: 1.22M, False: 315k]
  ------------------
 4270|  1.22M|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4270:18): [True: 1.13k, False: 1.22M]
  ------------------
 4271|  1.13k|                goto worse_exit;
 4272|  1.64M|            }
 4273|  1.41M|        } /* if(in_search) */
 4274|  1.41M|    } /* while(!neighbour_heap.is_empty()) */
 4275|       |
 4276|  2.88M|  if(refine_compare_certificate and
  ------------------
  |  Branch (4276:6): [True: 2.73M, False: 150k]
  ------------------
 4277|  2.73M|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (4277:6): [True: 600k, False: 2.13M]
  ------------------
 4278|   600k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4278:6): [True: 0, False: 600k]
  ------------------
 4279|      0|    return true;
 4280|       |
 4281|  2.88M|  return false;
 4282|       |
 4283|  1.13k| worse_exit:
 4284|       |  /* Clear neighbour heap */
 4285|  1.13k|  UintSeqHash rest;
 4286|  2.79k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4286:9): [True: 1.66k, False: 1.13k]
  ------------------
 4287|  1.66k|    {
 4288|  1.66k|      const unsigned int start = neighbour_heap.remove();
 4289|  1.66k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4290|  1.66k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4290:10): [True: 1.66k, False: 0]
  |  Branch (4290:40): [True: 1.33k, False: 331]
  ------------------
 4291|  1.33k|        {
 4292|  1.33k|          rest.update(neighbour_cell->first);
 4293|  1.33k|          rest.update(neighbour_cell->length);
 4294|  1.33k|          rest.update(neighbour_cell->max_ival_count);
 4295|  1.33k|        }
 4296|  1.66k|      neighbour_cell->max_ival_count = 0;
 4297|  1.66k|    }
 4298|  1.13k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4298:6): [True: 1.13k, False: 0]
  |  Branch (4298:36): [True: 885, False: 248]
  ------------------
 4299|    885|    {
 4300|    885|      rest.update(failure_recording_fp_deviation);
 4301|    885|      failure_recording_fp_deviation = rest.get_value();
 4302|    885|    }
 4303|  1.13k|  return true;
 4304|  2.88M|}
_ZN5bliss5Graph32make_initial_equitable_partitionEv:
 4389|  3.71k|{
 4390|  3.71k|  refine_according_to_invariant(&vertex_color_invariant);
 4391|  3.71k|  p.splitting_queue_clear();
 4392|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4393|       |
 4394|  3.71k|  refine_according_to_invariant(&selfloop_invariant);
 4395|  3.71k|  p.splitting_queue_clear();
 4396|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4397|       |
 4398|  3.71k|  refine_according_to_invariant(&degree_invariant);
 4399|  3.71k|  p.splitting_queue_clear();
 4400|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4401|       |
 4402|  3.71k|  refine_to_equitable();
 4403|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4404|       |
 4405|       |
 4406|  3.71k|}
_ZN5bliss5Graph29find_next_cell_to_be_splittedEPNS_9Partition4CellE:
 4423|  3.67k|{
 4424|  3.67k|  switch(sh) {
 4425|    402|  case shs_f:   return sh_first();
  ------------------
  |  Branch (4425:3): [True: 402, False: 3.27k]
  ------------------
 4426|    548|  case shs_fs:  return sh_first_smallest();
  ------------------
  |  Branch (4426:3): [True: 548, False: 3.13k]
  ------------------
 4427|    599|  case shs_fl:  return sh_first_largest();
  ------------------
  |  Branch (4427:3): [True: 599, False: 3.07k]
  ------------------
 4428|    672|  case shs_fm:  return sh_first_max_neighbours();
  ------------------
  |  Branch (4428:3): [True: 672, False: 3.00k]
  ------------------
 4429|    763|  case shs_fsm: return sh_first_smallest_max_neighbours();
  ------------------
  |  Branch (4429:3): [True: 763, False: 2.91k]
  ------------------
 4430|    694|  case shs_flm: return sh_first_largest_max_neighbours();
  ------------------
  |  Branch (4430:3): [True: 694, False: 2.98k]
  ------------------
 4431|      0|  default:
  ------------------
  |  Branch (4431:3): [True: 0, False: 3.67k]
  ------------------
 4432|      0|    fatal_error("Internal error - unknown splitting heuristics");
 4433|      0|    return 0;
 4434|  3.67k|  }
 4435|  3.67k|}
_ZN5bliss5Graph8sh_firstEv:
 4443|    402|{
 4444|    402|  Partition::Cell* best_cell = 0;
 4445|    402|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4446|    402|      cell;
  ------------------
  |  Branch (4446:7): [True: 402, False: 0]
  ------------------
 4447|    402|      cell = cell->next_nonsingleton)
 4448|    402|    {
 4449|    402|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4449:10): [True: 402, False: 0]
  |  Branch (4449:30): [True: 0, False: 402]
  ------------------
 4450|      0|        continue;
 4451|    402|      best_cell = cell;
 4452|    402|      break;
 4453|    402|    }
 4454|    402|  return best_cell;
 4455|    402|}
_ZN5bliss5Graph17sh_first_smallestEv:
 4463|    548|{
 4464|    548|  Partition::Cell* best_cell = 0;
 4465|    548|  unsigned int best_size = UINT_MAX;
 4466|    548|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4467|  2.32k|      cell;
  ------------------
  |  Branch (4467:7): [True: 1.77k, False: 548]
  ------------------
 4468|  1.77k|      cell = cell->next_nonsingleton)
 4469|  1.77k|    {
 4470|  1.77k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4470:10): [True: 1.77k, False: 0]
  |  Branch (4470:30): [True: 1.02k, False: 750]
  ------------------
 4471|  1.02k|        continue;
 4472|    750|      if(cell->length < best_size)
  ------------------
  |  Branch (4472:10): [True: 565, False: 185]
  ------------------
 4473|    565|        {
 4474|    565|          best_size = cell->length;
 4475|    565|          best_cell = cell;
 4476|    565|        }
 4477|    750|    }
 4478|    548|  return best_cell;
 4479|    548|}
_ZN5bliss5Graph16sh_first_largestEv:
 4487|    599|{
 4488|    599|  Partition::Cell* best_cell = 0;
 4489|    599|  unsigned int best_size = 0;
 4490|    599|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4491|  2.62k|      cell;
  ------------------
  |  Branch (4491:7): [True: 2.02k, False: 599]
  ------------------
 4492|  2.02k|      cell = cell->next_nonsingleton)
 4493|  2.02k|    {
 4494|  2.02k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4494:10): [True: 2.02k, False: 0]
  |  Branch (4494:30): [True: 1.18k, False: 838]
  ------------------
 4495|  1.18k|        continue;
 4496|    838|      if(cell->length > best_size)
  ------------------
  |  Branch (4496:10): [True: 615, False: 223]
  ------------------
 4497|    615|        {
 4498|    615|          best_size = cell->length;
 4499|    615|          best_cell = cell;
 4500|    615|        }
 4501|    838|    }
 4502|    599|  return best_cell;
 4503|    599|}
_ZN5bliss5Graph23sh_first_max_neighboursEv:
 4514|    672|{
 4515|    672|  Partition::Cell* best_cell = 0;
 4516|    672|  int best_value = -1;
 4517|    672|  KStack<Partition::Cell*> neighbour_cells_visited;
 4518|    672|  neighbour_cells_visited.init(get_nof_vertices());
 4519|    672|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4520|  2.99k|      cell;
  ------------------
  |  Branch (4520:7): [True: 2.32k, False: 672]
  ------------------
 4521|  2.32k|      cell = cell->next_nonsingleton)
 4522|  2.32k|    {
 4523|  2.32k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4523:10): [True: 2.32k, False: 0]
  |  Branch (4523:30): [True: 1.13k, False: 1.19k]
  ------------------
 4524|  1.13k|        continue;
 4525|  1.19k|      const Vertex& v = vertices[p.elements[cell->first]];
 4526|  1.19k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4527|  2.82k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4527:43): [True: 1.63k, False: 1.19k]
  ------------------
 4528|  1.63k|        {
 4529|  1.63k|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 4530|  1.63k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4530:14): [True: 63, False: 1.56k]
  ------------------
 4531|     63|            continue;
 4532|  1.56k|          neighbour_cell->max_ival++;
 4533|  1.56k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4533:14): [True: 1.32k, False: 241]
  ------------------
 4534|  1.32k|            neighbour_cells_visited.push(neighbour_cell);
 4535|  1.56k|        }
 4536|  1.19k|      int value = 0;
 4537|  2.52k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4537:13): [True: 1.32k, False: 1.19k]
  ------------------
 4538|  1.32k|        {
 4539|  1.32k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4540|  1.32k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4540:14): [True: 1.20k, False: 118]
  ------------------
 4541|  1.20k|            value++;
 4542|  1.32k|          neighbour_cell->max_ival = 0;
 4543|  1.32k|        }
 4544|  1.19k|      if(value > best_value)
  ------------------
  |  Branch (4544:10): [True: 789, False: 405]
  ------------------
 4545|    789|        {
 4546|    789|          best_value = value;
 4547|    789|          best_cell = cell;
 4548|    789|        }
 4549|  1.19k|    }
 4550|    672|  return best_cell;
 4551|    672|}
_ZN5bliss5Graph32sh_first_smallest_max_neighboursEv:
 4562|    763|{
 4563|    763|  Partition::Cell* best_cell = 0;
 4564|    763|  int best_value = -1;
 4565|    763|  unsigned int best_size = UINT_MAX;
 4566|    763|  KStack<Partition::Cell*> neighbour_cells_visited;
 4567|    763|  neighbour_cells_visited.init(get_nof_vertices());
 4568|    763|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4569|  3.25k|      cell;
  ------------------
  |  Branch (4569:7): [True: 2.49k, False: 763]
  ------------------
 4570|  2.49k|      cell = cell->next_nonsingleton)
 4571|  2.49k|    {
 4572|       |
 4573|  2.49k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4573:10): [True: 2.49k, False: 0]
  |  Branch (4573:30): [True: 1.21k, False: 1.28k]
  ------------------
 4574|  1.21k|        continue;
 4575|       |
 4576|  1.28k|      const Vertex& v = vertices[p.elements[cell->first]];
 4577|  1.28k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4578|  3.13k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4578:43): [True: 1.84k, False: 1.28k]
  ------------------
 4579|  1.84k|        {
 4580|  1.84k|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 4581|  1.84k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4581:14): [True: 81, False: 1.76k]
  ------------------
 4582|     81|            continue;
 4583|  1.76k|          neighbour_cell->max_ival++;
 4584|  1.76k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4584:14): [True: 1.36k, False: 403]
  ------------------
 4585|  1.36k|            neighbour_cells_visited.push(neighbour_cell);
 4586|  1.76k|        }
 4587|  1.28k|      int value = 0;
 4588|  2.64k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4588:13): [True: 1.36k, False: 1.28k]
  ------------------
 4589|  1.36k|        {
 4590|  1.36k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4591|  1.36k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4591:14): [True: 1.25k, False: 109]
  ------------------
 4592|  1.25k|            value++;
 4593|  1.36k|          neighbour_cell->max_ival = 0;
 4594|  1.36k|        }
 4595|  1.28k|      if((value > best_value) or
  ------------------
  |  Branch (4595:10): [True: 896, False: 389]
  ------------------
 4596|    389|         (value == best_value and cell->length < best_size))
  ------------------
  |  Branch (4596:11): [True: 344, False: 45]
  |  Branch (4596:35): [True: 52, False: 292]
  ------------------
 4597|    948|        {
 4598|    948|          best_value = value;
 4599|    948|          best_size = cell->length;
 4600|    948|          best_cell = cell;
 4601|    948|        }
 4602|  1.28k|    }
 4603|    763|  return best_cell;
 4604|    763|}
_ZN5bliss5Graph31sh_first_largest_max_neighboursEv:
 4615|    694|{
 4616|    694|  Partition::Cell* best_cell = 0;
 4617|    694|  int best_value = -1;
 4618|    694|  unsigned int best_size = 0;
 4619|    694|  KStack<Partition::Cell*> neighbour_cells_visited;
 4620|    694|  neighbour_cells_visited.init(get_nof_vertices());
 4621|    694|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4622|  3.06k|      cell;
  ------------------
  |  Branch (4622:7): [True: 2.37k, False: 694]
  ------------------
 4623|  2.37k|      cell = cell->next_nonsingleton)
 4624|  2.37k|    {
 4625|       |
 4626|  2.37k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4626:10): [True: 2.37k, False: 0]
  |  Branch (4626:30): [True: 1.14k, False: 1.22k]
  ------------------
 4627|  1.14k|        continue;
 4628|  1.22k|      const Vertex& v = vertices[p.elements[cell->first]];
 4629|  1.22k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4630|  2.96k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4630:43): [True: 1.74k, False: 1.22k]
  ------------------
 4631|  1.74k|        {
 4632|  1.74k|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 4633|  1.74k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4633:14): [True: 89, False: 1.65k]
  ------------------
 4634|     89|            continue;
 4635|  1.65k|          neighbour_cell->max_ival++;
 4636|  1.65k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4636:14): [True: 1.35k, False: 295]
  ------------------
 4637|  1.35k|            neighbour_cells_visited.push(neighbour_cell);
 4638|  1.65k|        }
 4639|  1.22k|      int value = 0;
 4640|  2.58k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4640:13): [True: 1.35k, False: 1.22k]
  ------------------
 4641|  1.35k|        {
 4642|  1.35k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4643|  1.35k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4643:14): [True: 1.25k, False: 101]
  ------------------
 4644|  1.25k|            value++;
 4645|  1.35k|          neighbour_cell->max_ival = 0;
 4646|  1.35k|        }
 4647|  1.22k|      if((value > best_value) or
  ------------------
  |  Branch (4647:10): [True: 828, False: 397]
  ------------------
 4648|    397|         (value == best_value and cell->length > best_size))
  ------------------
  |  Branch (4648:11): [True: 351, False: 46]
  |  Branch (4648:35): [True: 28, False: 323]
  ------------------
 4649|    856|        {
 4650|    856|          best_value = value;
 4651|    856|          best_size = cell->length;
 4652|    856|          best_cell = cell;
 4653|    856|        }
 4654|  1.22k|    }
 4655|    694|  return best_cell;
 4656|    694|}
_ZN5bliss5Graph22initialize_certificateEv:
 4685|  3.67k|{
 4686|  3.67k|  certificate_index = 0;
 4687|  3.67k|  certificate_current_path.clear();
 4688|  3.67k|  certificate_first_path.clear();
 4689|  3.67k|  certificate_best_path.clear();
 4690|  3.67k|}
_ZN5bliss5Graph25nucr_find_first_componentEj:
 4781|  3.67k|{
 4782|       |
 4783|  3.67k|  cr_component.clear();
 4784|  3.67k|  cr_component_elements = 0;
 4785|       |
 4786|       |  /* Find first non-discrete cell in the component level */
 4787|  3.67k|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 4788|  3.67k|  while(first_cell)
  ------------------
  |  Branch (4788:9): [True: 3.67k, False: 0]
  ------------------
 4789|  3.67k|    {
 4790|  3.67k|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (4790:10): [True: 3.67k, False: 0]
  ------------------
 4791|  3.67k|        break;
 4792|      0|      first_cell = first_cell->next_nonsingleton;
 4793|      0|    }
 4794|       |
 4795|       |  /* The component is discrete, return false */
 4796|  3.67k|  if(!first_cell)
  ------------------
  |  Branch (4796:6): [True: 0, False: 3.67k]
  ------------------
 4797|      0|    return false;
 4798|       |
 4799|  3.67k|  std::vector<Partition::Cell*> component;
 4800|  3.67k|  first_cell->max_ival = 1;
 4801|  3.67k|  component.push_back(first_cell);
 4802|       |
 4803|  9.40k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (4803:27): [True: 5.72k, False: 3.67k]
  ------------------
 4804|  5.72k|    {
 4805|  5.72k|      Partition::Cell* const cell = component[i];
 4806|       |
 4807|  5.72k|      const Vertex& v = vertices[p.elements[cell->first]];
 4808|  5.72k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4809|  12.5k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4809:43): [True: 6.77k, False: 5.72k]
  ------------------
 4810|  6.77k|        {
 4811|  6.77k|          const unsigned int neighbour = *ei++;
 4812|       |
 4813|  6.77k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 4814|       |
 4815|       |          /* Skip unit neighbours */
 4816|  6.77k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4816:14): [True: 253, False: 6.52k]
  ------------------
 4817|    253|            continue;
 4818|       |          /* Already marked to be in the same component? */
 4819|  6.52k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4819:14): [True: 3.82k, False: 2.70k]
  ------------------
 4820|  3.82k|            continue;
 4821|       |          /* Is the neighbour at the same component recursion level? */
 4822|  2.70k|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (4822:14): [True: 0, False: 2.70k]
  ------------------
 4823|      0|            continue;
 4824|       |
 4825|  2.70k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4825:14): [True: 2.24k, False: 451]
  ------------------
 4826|  2.24k|            neighbour_heap.insert(neighbour_cell->first);
 4827|  2.70k|          neighbour_cell->max_ival_count++;
 4828|  2.70k|        }
 4829|  7.97k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4829:13): [True: 2.24k, False: 5.72k]
  ------------------
 4830|  2.24k|        {
 4831|  2.24k|          const unsigned int start = neighbour_heap.remove();
 4832|  2.24k|          Partition::Cell* const neighbour_cell =
 4833|  2.24k|            p.get_cell(p.elements[start]);
 4834|       |
 4835|       |          /* Skip saturated neighbour cells */
 4836|  2.24k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (4836:14): [True: 205, False: 2.04k]
  ------------------
 4837|    205|            {
 4838|    205|              neighbour_cell->max_ival_count = 0;
 4839|    205|              continue;
 4840|    205|            }
 4841|  2.04k|          neighbour_cell->max_ival_count = 0;
 4842|  2.04k|          neighbour_cell->max_ival = 1;
 4843|  2.04k|          component.push_back(neighbour_cell);
 4844|  2.04k|        }
 4845|  5.72k|    }
 4846|       |
 4847|  9.40k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (4847:27): [True: 5.72k, False: 3.67k]
  ------------------
 4848|  5.72k|    {
 4849|  5.72k|      Partition::Cell* const cell = component[i];
 4850|  5.72k|      cell->max_ival = 0;
 4851|  5.72k|      cr_component.push_back(cell->first);
 4852|  5.72k|      cr_component_elements += cell->length;
 4853|  5.72k|    }
 4854|       |
 4855|       |  /*
 4856|       |  if(verbstr and verbose_level > 2) {
 4857|       |    fprintf(verbstr, "NU-component with %lu cells and %u vertices\n",
 4858|       |            (long unsigned)cr_component.size(), cr_component_elements);
 4859|       |    fflush(verbstr);
 4860|       |  }
 4861|       |  */
 4862|       |
 4863|  3.67k|  return true;
 4864|  3.67k|}
_ZN5bliss5Graph25nucr_find_first_componentEjRNSt3__16vectorIjNS1_9allocatorIjEEEERjRPNS_9Partition4CellE:
 4874|  2.10M|{
 4875|       |
 4876|  2.10M|  component.clear();
 4877|  2.10M|  component_elements = 0;
 4878|  2.10M|  sh_return = 0;
 4879|  2.10M|  unsigned int sh_first  = 0;
 4880|  2.10M|  unsigned int sh_size   = 0;
 4881|  2.10M|  unsigned int sh_nuconn = 0;
 4882|       |
 4883|       |  /* Find first non-discrete cell in the component level */
 4884|  2.10M|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 4885|  2.10M|  while(first_cell)
  ------------------
  |  Branch (4885:9): [True: 2.10M, False: 0]
  ------------------
 4886|  2.10M|    {
 4887|  2.10M|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (4887:10): [True: 2.10M, False: 626]
  ------------------
 4888|  2.10M|        break;
 4889|    626|      first_cell = first_cell->next_nonsingleton;
 4890|    626|    }
 4891|       |
 4892|  2.10M|  if(!first_cell)
  ------------------
  |  Branch (4892:6): [True: 0, False: 2.10M]
  ------------------
 4893|      0|    {
 4894|       |      /* The component is discrete, return false */
 4895|      0|      return false;
 4896|      0|    }
 4897|       |
 4898|  2.10M|  std::vector<Partition::Cell*> comp;
 4899|  2.10M|  KStack<Partition::Cell*> neighbours;
 4900|  2.10M|  neighbours.init(get_nof_vertices());
 4901|       |
 4902|  2.10M|  first_cell->max_ival = 1;
 4903|  2.10M|  comp.push_back(first_cell);
 4904|       |
 4905|  4.33M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (4905:27): [True: 2.22M, False: 2.10M]
  ------------------
 4906|  2.22M|    {
 4907|  2.22M|      Partition::Cell* const cell = comp[i];
 4908|       |
 4909|  2.22M|      const Vertex& v = vertices[p.elements[cell->first]];
 4910|  2.22M|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4911|  2.93M|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4911:43): [True: 712k, False: 2.22M]
  ------------------
 4912|   712k|        {
 4913|   712k|          const unsigned int neighbour = *ei++;
 4914|       |
 4915|   712k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 4916|       |
 4917|       |          /* Skip unit neighbours */
 4918|   712k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4918:14): [True: 210k, False: 502k]
  ------------------
 4919|   210k|            continue;
 4920|       |          /* Is the neighbour at the same component recursion level? */
 4921|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 4922|       |          //  continue;
 4923|   502k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4923:14): [True: 411k, False: 91.4k]
  ------------------
 4924|   411k|            neighbours.push(neighbour_cell);
 4925|   502k|          neighbour_cell->max_ival_count++;
 4926|   502k|        }
 4927|  2.22M|      unsigned int nuconn = 1;
 4928|  2.63M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (4928:13): [True: 411k, False: 2.22M]
  ------------------
 4929|   411k|        {
 4930|   411k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 4931|       |          //neighbours.pop_back();
 4932|       |
 4933|       |          /* Skip saturated neighbour cells */
 4934|   411k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (4934:14): [True: 1.20k, False: 409k]
  ------------------
 4935|  1.20k|            {
 4936|  1.20k|              neighbour_cell->max_ival_count = 0;
 4937|  1.20k|              continue;
 4938|  1.20k|            }
 4939|   409k|          nuconn++;
 4940|   409k|          neighbour_cell->max_ival_count = 0;
 4941|   409k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (4941:14): [True: 114k, False: 295k]
  ------------------
 4942|   114k|            comp.push_back(neighbour_cell);
 4943|   114k|            neighbour_cell->max_ival = 1;
 4944|   114k|          }
 4945|   409k|        }
 4946|       |
 4947|  2.22M|      switch(sh) {
 4948|   315k|      case shs_f:
  ------------------
  |  Branch (4948:7): [True: 315k, False: 1.90M]
  ------------------
 4949|   315k|        if(sh_return == 0 or
  ------------------
  |  Branch (4949:12): [True: 296k, False: 19.3k]
  ------------------
 4950|   296k|           cell->first <= sh_first) {
  ------------------
  |  Branch (4950:12): [True: 0, False: 19.3k]
  ------------------
 4951|   296k|          sh_return = cell;
 4952|   296k|          sh_first = cell->first;
 4953|   296k|        }
 4954|   315k|        break;
 4955|   322k|      case shs_fs:
  ------------------
  |  Branch (4955:7): [True: 322k, False: 1.89M]
  ------------------
 4956|   322k|        if(sh_return == 0 or
  ------------------
  |  Branch (4956:12): [True: 317k, False: 5.38k]
  ------------------
 4957|  5.38k|           cell->length < sh_size or
  ------------------
  |  Branch (4957:12): [True: 1.84k, False: 3.54k]
  ------------------
 4958|   319k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (4958:13): [True: 3.39k, False: 146]
  |  Branch (4958:41): [True: 203, False: 3.19k]
  ------------------
 4959|   319k|          sh_return = cell;
 4960|   319k|          sh_first = cell->first;
 4961|   319k|          sh_size = cell->length;
 4962|   319k|        }
 4963|   322k|        break;
 4964|   386k|      case shs_fl:
  ------------------
  |  Branch (4964:7): [True: 386k, False: 1.83M]
  ------------------
 4965|   386k|        if(sh_return == 0 or
  ------------------
  |  Branch (4965:12): [True: 365k, False: 21.1k]
  ------------------
 4966|  21.1k|           cell->length > sh_size or
  ------------------
  |  Branch (4966:12): [True: 245, False: 20.8k]
  ------------------
 4967|   366k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (4967:13): [True: 19.6k, False: 1.21k]
  |  Branch (4967:41): [True: 82, False: 19.5k]
  ------------------
 4968|   366k|          sh_return = cell;
 4969|   366k|          sh_first = cell->first;
 4970|   366k|          sh_size = cell->length;
 4971|   366k|        }
 4972|   386k|        break;
 4973|   444k|      case shs_fm:
  ------------------
  |  Branch (4973:7): [True: 444k, False: 1.77M]
  ------------------
 4974|   444k|        if(sh_return == 0 or
  ------------------
  |  Branch (4974:12): [True: 399k, False: 44.7k]
  ------------------
 4975|  44.7k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4975:12): [True: 7.52k, False: 37.2k]
  ------------------
 4976|   407k|           (nuconn == sh_nuconn and cell->first <= sh_first)) {
  ------------------
  |  Branch (4976:13): [True: 15.4k, False: 21.7k]
  |  Branch (4976:37): [True: 121, False: 15.3k]
  ------------------
 4977|   407k|          sh_return = cell;
 4978|   407k|          sh_first = cell->first;
 4979|   407k|          sh_nuconn = nuconn;
 4980|   407k|        }
 4981|   444k|        break;
 4982|   390k|      case shs_fsm:
  ------------------
  |  Branch (4982:7): [True: 390k, False: 1.83M]
  ------------------
 4983|   390k|        if(sh_return == 0 or
  ------------------
  |  Branch (4983:12): [True: 385k, False: 5.15k]
  ------------------
 4984|  5.15k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4984:12): [True: 801, False: 4.34k]
  ------------------
 4985|  4.34k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (4985:13): [True: 3.28k, False: 1.06k]
  ------------------
 4986|  3.28k|            (cell->length < sh_size or
  ------------------
  |  Branch (4986:14): [True: 1.62k, False: 1.66k]
  ------------------
 4987|   387k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (4987:15): [True: 1.55k, False: 112]
  |  Branch (4987:43): [True: 112, False: 1.44k]
  ------------------
 4988|   387k|          sh_return = cell;
 4989|   387k|          sh_first = cell->first;
 4990|   387k|          sh_size = cell->length;
 4991|   387k|          sh_nuconn = nuconn;
 4992|   387k|        }
 4993|   390k|        break;
 4994|   362k|      case shs_flm:
  ------------------
  |  Branch (4994:7): [True: 362k, False: 1.86M]
  ------------------
 4995|   362k|        if(sh_return == 0 or
  ------------------
  |  Branch (4995:12): [True: 343k, False: 18.4k]
  ------------------
 4996|  18.4k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4996:12): [True: 2.66k, False: 15.7k]
  ------------------
 4997|  15.7k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (4997:13): [True: 9.19k, False: 6.59k]
  ------------------
 4998|  9.19k|            (cell->length > sh_size or
  ------------------
  |  Branch (4998:14): [True: 85, False: 9.11k]
  ------------------
 4999|   346k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (4999:15): [True: 8.19k, False: 923]
  |  Branch (4999:43): [True: 124, False: 8.06k]
  ------------------
 5000|   346k|          sh_return = cell;
 5001|   346k|          sh_first = cell->first;
 5002|   346k|          sh_size = cell->length;
 5003|   346k|          sh_nuconn = nuconn;
 5004|   346k|        }
 5005|   362k|        break;
 5006|      0|      default:
  ------------------
  |  Branch (5006:7): [True: 0, False: 2.22M]
  ------------------
 5007|      0|        fatal_error("Internal error - unknown splitting heuristics");
 5008|      0|        return 0;
 5009|  2.22M|      }
 5010|  2.22M|    }
 5011|  2.10M|  assert(sh_return);
  ------------------
  |  Branch (5011:3): [True: 2.10M, False: 0]
  ------------------
 5012|       |
 5013|  4.33M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (5013:27): [True: 2.22M, False: 2.10M]
  ------------------
 5014|  2.22M|    {
 5015|  2.22M|      Partition::Cell* const cell = comp[i];
 5016|  2.22M|      cell->max_ival = 0;
 5017|  2.22M|      component.push_back(cell->first);
 5018|  2.22M|      component_elements += cell->length;
 5019|  2.22M|    }
 5020|       |
 5021|       |  /*
 5022|       |  if(verbstr and verbose_level > 2) {
 5023|       |    fprintf(verbstr, "NU-component with %lu cells and %u vertices\n",
 5024|       |            (long unsigned)component.size(), component_elements);
 5025|       |    fflush(verbstr);
 5026|       |  }
 5027|       |  */
 5028|       |
 5029|  2.10M|  return true;
 5030|  2.10M|}

_ZN5bliss7Digraph23set_splitting_heuristicENS0_18SplittingHeuristicE:
  862|  4.38k|  void set_splitting_heuristic(SplittingHeuristic shs) {sh = shs; }
_ZN5bliss5Graph23set_splitting_heuristicENS0_18SplittingHeuristicE:
  659|  3.73k|  void set_splitting_heuristic(const SplittingHeuristic shs) {sh = shs; }
_ZNK5bliss5Graph6Vertex9nof_edgesEv:
  517|  5.89M|    unsigned int nof_edges() const {
  518|  5.89M|      return static_cast<unsigned int>(edges.size());
  519|  5.89M|    }
_ZNK5bliss5Graph16get_nof_verticesEv:
  615|  2.64M|  unsigned int get_nof_vertices() const {
  616|  2.64M|    return static_cast<unsigned int>(vertices.size());
  617|  2.64M|  }
_ZNK5bliss7Digraph6Vertex12nof_edges_inEv:
  719|  5.56M|    unsigned int nof_edges_in() const { return static_cast<unsigned int>(edges_in.size()); }
_ZNK5bliss7Digraph6Vertex13nof_edges_outEv:
  720|  5.57M|    unsigned int nof_edges_out() const { return static_cast<unsigned int>(edges_out.size()); }
_ZNK5bliss7Digraph16get_nof_verticesEv:
  826|  2.88M|  unsigned int get_nof_vertices() const { return static_cast<unsigned int>(vertices.size()); }

_ZN5bliss4HeapC2Ev:
   32|  8.11k|Heap::Heap() {
   33|  8.11k|  array = nullptr;
   34|  8.11k|  n = 0;
   35|  8.11k|  N = 0;
   36|  8.11k|}
_ZN5bliss4HeapD2Ev:
   39|  8.11k|{
   40|  8.11k|  delete[] array;
   41|  8.11k|  array = nullptr;
   42|  8.11k|  n = 0;
   43|  8.11k|  N = 0;
   44|  8.11k|}
_ZN5bliss4Heap6upheapEj:
   47|  2.53M|{
   48|  2.53M|  assert(n >= 1);
  ------------------
  |  Branch (48:3): [True: 2.53M, False: 0]
  ------------------
   49|  2.53M|  assert(index >= 1 and index <= n);
  ------------------
  |  Branch (49:3): [True: 2.53M, False: 0]
  |  Branch (49:3): [True: 2.53M, False: 0]
  |  Branch (49:3): [True: 2.53M, False: 0]
  ------------------
   50|  2.53M|  const unsigned int v = array[index];
   51|  2.53M|  array[0] = 0;
   52|  2.91M|  while(array[index/2] > v)
  ------------------
  |  Branch (52:9): [True: 379k, False: 2.53M]
  ------------------
   53|   379k|    {
   54|   379k|      array[index] = array[index/2];
   55|   379k|      index = index/2;
   56|   379k|    }
   57|  2.53M|  array[index] = v;
   58|  2.53M|}
_ZN5bliss4Heap8downheapEj:
   61|  2.53M|{
   62|  2.53M|  const unsigned int v = array[index];
   63|  2.53M|  const unsigned int lim = n/2;
   64|  2.57M|  while(index <= lim)
  ------------------
  |  Branch (64:9): [True: 61.8k, False: 2.51M]
  ------------------
   65|  61.8k|    {
   66|  61.8k|      unsigned int new_index = index + index;
   67|  61.8k|      if((new_index < n) and (array[new_index] > array[new_index+1]))
  ------------------
  |  Branch (67:10): [True: 22.2k, False: 39.6k]
  |  Branch (67:30): [True: 7.65k, False: 14.5k]
  ------------------
   68|  7.65k|        new_index++;
   69|  61.8k|      if(v <= array[new_index])
  ------------------
  |  Branch (69:10): [True: 21.6k, False: 40.2k]
  ------------------
   70|  21.6k|        break;
   71|  40.2k|      array[index] = array[new_index];
   72|  40.2k|      index = new_index;
   73|  40.2k|    }
   74|  2.53M|  array[index] = v;
   75|  2.53M|}
_ZN5bliss4Heap4initEj:
   78|  8.08k|{
   79|  8.08k|  assert(size > 0);
  ------------------
  |  Branch (79:3): [True: 8.08k, False: 0]
  ------------------
   80|  8.08k|  if(size > N)
  ------------------
  |  Branch (80:6): [True: 8.08k, False: 0]
  ------------------
   81|  8.08k|    {
   82|  8.08k|      delete[] array;
   83|  8.08k|      array = new unsigned int[size + 1];
   84|  8.08k|      N = size;
   85|  8.08k|    }
   86|  8.08k|  n = 0;
   87|  8.08k|}
_ZN5bliss4Heap6insertEj:
   90|  2.53M|{
   91|  2.53M|  assert(n < N);
  ------------------
  |  Branch (91:3): [True: 2.53M, False: 0]
  ------------------
   92|  2.53M|  array[++n] = v;
   93|  2.53M|  upheap(n);
   94|  2.53M|}
_ZN5bliss4Heap6removeEv:
  103|  2.53M|{
  104|  2.53M|  assert(n >= 1 and n <= N);
  ------------------
  |  Branch (104:3): [True: 2.53M, False: 0]
  |  Branch (104:3): [True: 2.53M, False: 0]
  |  Branch (104:3): [True: 2.53M, False: 0]
  ------------------
  105|  2.53M|  const unsigned int v = array[1];
  106|  2.53M|  array[1] = array[n--];
  107|  2.53M|  downheap(1);
  108|  2.53M|  return v;
  109|  2.53M|}

_ZNK5bliss4Heap8is_emptyEv:
   53|  11.4M|  bool is_empty() const {return n == 0; }

_ZNK5bliss6KQueueIPNS_9Partition4CellEE8is_emptyEv:
  115|  16.9M|{
  116|  16.9M|  return head == tail;
  117|  16.9M|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE9pop_frontEv:
  136|  6.11M|{
  137|  6.11M|  assert(head != tail);
  ------------------
  |  Branch (137:3): [True: 6.11M, False: 0]
  ------------------
  138|  6.11M|  Type *old_head = head;
  139|  6.11M|  head++;
  140|  6.11M|  if(head == end)
  ------------------
  |  Branch (140:6): [True: 48.5k, False: 6.07M]
  ------------------
  141|  48.5k|    head = entries;
  142|  6.11M|  return *old_head;
  143|  6.11M|}
_ZNK5bliss6KQueueIPNS_9Partition4CellEE4sizeEv:
  121|  7.66k|{
  122|  7.66k|  if(tail >= head)
  ------------------
  |  Branch (122:6): [True: 7.37k, False: 292]
  ------------------
  123|  7.37k|    return(tail - head);
  124|    292|  return (end - head) + (tail - entries);
  125|  7.66k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE9push_backES3_:
  158|   340k|{
  159|   340k|  *tail = e;
  160|   340k|  tail++;
  161|   340k|  if(tail == end)
  ------------------
  |  Branch (161:6): [True: 4.35k, False: 336k]
  ------------------
  162|  4.35k|    tail = entries;
  163|       |  assert(head != tail);
  ------------------
  |  Branch (163:3): [True: 340k, False: 0]
  ------------------
  164|   340k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEEC2Ev:
   78|  8.11k|{
   79|  8.11k|  entries = nullptr;
   80|  8.11k|  end = nullptr;
   81|  8.11k|  head = nullptr;
   82|  8.11k|  tail = nullptr;
   83|  8.11k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEED2Ev:
   87|  8.11k|{
   88|  8.11k|  delete[] entries;
   89|  8.11k|  entries = nullptr;
   90|  8.11k|  end = nullptr;
   91|  8.11k|  head = nullptr;
   92|  8.11k|  tail = nullptr;
   93|  8.11k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE4initEj:
   97|  8.08k|{
   98|  8.08k|  assert(k > 0);
  ------------------
  |  Branch (98:3): [True: 8.08k, False: 0]
  ------------------
   99|  8.08k|  delete[] entries;
  100|  8.08k|  entries = new Type[k+1];
  101|  8.08k|  end = entries + k + 1;
  102|  8.08k|  head = entries;
  103|  8.08k|  tail = head;
  104|  8.08k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE10push_frontES3_:
  147|  5.77M|{
  148|  5.77M|  if(head == entries)
  ------------------
  |  Branch (148:6): [True: 44.2k, False: 5.73M]
  ------------------
  149|  44.2k|    head = end - 1;
  150|  5.73M|  else
  151|  5.73M|    head--;
  152|  5.77M|  assert(head != tail);
  ------------------
  |  Branch (152:3): [True: 5.77M, False: 0]
  ------------------
  153|  5.77M|  *head = e;
  154|  5.77M|}

_ZN5bliss6KStackIPNS_9Partition4CellEEC2Ev:
  109|  4.41M|{
  110|  4.41M|  kapacity = 0;
  111|  4.41M|  entries = nullptr;
  112|  4.41M|  cursor = nullptr;
  113|  4.41M|}
_ZN5bliss6KStackIPNS_9Partition4CellEED2Ev:
  136|  4.41M|{
  137|  4.41M|  delete[] entries;
  138|  4.41M|  kapacity = 0;
  139|  4.41M|  entries = nullptr;
  140|  4.41M|  cursor = nullptr;
  141|  4.41M|}
_ZN5bliss6KStackIPNS_9Partition4CellEE4initEi:
  126|  4.41M|{
  127|  4.41M|  assert(k > 0);
  ------------------
  |  Branch (127:3): [True: 4.41M, False: 0]
  ------------------
  128|  4.41M|  delete[] entries;
  129|  4.41M|  kapacity = k;
  130|  4.41M|  entries = new Type[k+1];
  131|  4.41M|  cursor = entries;
  132|  4.41M|}
_ZN5bliss6KStackIPNS_9Partition4CellEE4pushES3_:
   75|   566k|  {
   76|   566k|    assert(cursor < entries + kapacity);
  ------------------
  |  Branch (76:5): [True: 566k, False: 0]
  ------------------
   77|   566k|    *(++cursor) = e;
   78|   566k|  }
_ZNK5bliss6KStackIPNS_9Partition4CellEE8is_emptyEv:
   55|  7.48M|  bool is_empty() const {return cursor == entries; }
_ZN5bliss6KStackIPNS_9Partition4CellEE3popEv:
   66|   566k|  {
   67|   566k|    assert(cursor > entries);
  ------------------
  |  Branch (67:5): [True: 566k, False: 0]
  ------------------
   68|   566k|    return *cursor--;
   69|   566k|  }
_ZN5bliss6KStackINS_9Partition7RefInfoEEC2Ev:
  109|  8.11k|{
  110|  8.11k|  kapacity = 0;
  111|  8.11k|  entries = nullptr;
  112|  8.11k|  cursor = nullptr;
  113|  8.11k|}
_ZN5bliss6KStackINS_9Partition7RefInfoEED2Ev:
  136|  8.11k|{
  137|  8.11k|  delete[] entries;
  138|  8.11k|  kapacity = 0;
  139|  8.11k|  entries = nullptr;
  140|  8.11k|  cursor = nullptr;
  141|  8.11k|}
_ZN5bliss6KStackINS_9Partition7RefInfoEE4initEi:
  126|  8.08k|{
  127|  8.08k|  assert(k > 0);
  ------------------
  |  Branch (127:3): [True: 8.08k, False: 0]
  ------------------
  128|  8.08k|  delete[] entries;
  129|  8.08k|  kapacity = k;
  130|  8.08k|  entries = new Type[k+1];
  131|  8.08k|  cursor = entries;
  132|  8.08k|}
_ZNK5bliss6KStackINS_9Partition7RefInfoEE4sizeEv:
   86|  31.0M|  unsigned int size() const {return cursor - entries; }
_ZN5bliss6KStackINS_9Partition7RefInfoEE3popEv:
   66|  5.50M|  {
   67|  5.50M|    assert(cursor > entries);
  ------------------
  |  Branch (67:5): [True: 5.50M, False: 0]
  ------------------
   68|  5.50M|    return *cursor--;
   69|  5.50M|  }
_ZN5bliss6KStackINS_9Partition7RefInfoEE4pushES2_:
   75|  5.55M|  {
   76|  5.55M|    assert(cursor < entries + kapacity);
  ------------------
  |  Branch (76:5): [True: 5.55M, False: 0]
  ------------------
   77|  5.55M|    *(++cursor) = e;
   78|  5.55M|  }

_ZN5bliss5OrbitC2Ev:
   26|  16.2k|{
   27|  16.2k|  orbits = 0;
   28|  16.2k|  in_orbit = 0;
   29|  16.2k|  nof_elements = 0;
   30|  16.2k|}
_ZN5bliss5OrbitD2Ev:
   34|  16.2k|{
   35|  16.2k|  delete[] orbits;
   36|  16.2k|  orbits = 0;
   37|       |  /*
   38|       |  if(orbits)
   39|       |    {
   40|       |      free(orbits);
   41|       |      orbits = 0;
   42|       |    }
   43|       |  */
   44|  16.2k|  delete[] in_orbit;
   45|  16.2k|  in_orbit = 0;
   46|       |  /*
   47|       |  if(in_orbit)
   48|       |    {
   49|       |      free(in_orbit);
   50|       |      in_orbit = 0;
   51|       |    }
   52|       |  */
   53|  16.2k|  nof_elements = 0;
   54|  16.2k|  _nof_orbits = 0;
   55|  16.2k|}
_ZN5bliss5Orbit4initEj:
   59|  15.3k|{
   60|  15.3k|  assert(n > 0);
  ------------------
  |  Branch (60:3): [True: 15.3k, False: 0]
  ------------------
   61|  15.3k|  if(orbits) delete[] orbits;
  ------------------
  |  Branch (61:6): [True: 0, False: 15.3k]
  ------------------
   62|  15.3k|  orbits = new OrbitEntry[n];
   63|  15.3k|  delete[] in_orbit;
   64|  15.3k|  in_orbit = new OrbitEntry*[n];
   65|  15.3k|  nof_elements = n;
   66|       |
   67|  15.3k|  reset();
   68|  15.3k|}
_ZN5bliss5Orbit5resetEv:
   72|  76.8k|{
   73|  76.8k|  assert(orbits);
  ------------------
  |  Branch (73:3): [True: 76.8k, False: 0]
  ------------------
   74|  76.8k|  assert(in_orbit);
  ------------------
  |  Branch (74:3): [True: 76.8k, False: 0]
  ------------------
   75|       |
   76|  4.24M|  for(unsigned int i = 0; i < nof_elements; i++)
  ------------------
  |  Branch (76:27): [True: 4.17M, False: 76.8k]
  ------------------
   77|  4.17M|    {
   78|  4.17M|      orbits[i].element = i;
   79|  4.17M|      orbits[i].next = 0;
   80|  4.17M|      orbits[i].size = 1;
   81|  4.17M|      in_orbit[i] = &orbits[i];
   82|  4.17M|    }
   83|  76.8k|  _nof_orbits = nof_elements;
   84|  76.8k|}
_ZN5bliss5Orbit12merge_orbitsEPNS0_10OrbitEntryES2_:
   88|   567k|{
   89|       |
   90|   567k|  if(orbit1 != orbit2)
  ------------------
  |  Branch (90:6): [True: 274k, False: 292k]
  ------------------
   91|   274k|    {
   92|   274k|      _nof_orbits--;
   93|       |      /* Only update the elements in the smaller orbit */
   94|   274k|      if(orbit1->size > orbit2->size)
  ------------------
  |  Branch (94:10): [True: 12.7k, False: 261k]
  ------------------
   95|  12.7k|        {
   96|  12.7k|          OrbitEntry * const temp = orbit2;
   97|  12.7k|          orbit2 = orbit1;
   98|  12.7k|          orbit1 = temp;
   99|  12.7k|        }
  100|       |      /* Link the elements of orbit1 to the almost beginning of orbit2 */
  101|   274k|      OrbitEntry *e = orbit1;
  102|   290k|      while(e->next)
  ------------------
  |  Branch (102:13): [True: 15.6k, False: 274k]
  ------------------
  103|  15.6k|        {
  104|  15.6k|          in_orbit[e->element] = orbit2;
  105|  15.6k|          e = e->next;
  106|  15.6k|        }
  107|   274k|      in_orbit[e->element] = orbit2;
  108|   274k|      e->next = orbit2->next;
  109|   274k|      orbit2->next = orbit1;
  110|       |      /* Keep the minimal orbit representative in the beginning */
  111|   274k|      if(orbit1->element < orbit2->element)
  ------------------
  |  Branch (111:10): [True: 254k, False: 20.2k]
  ------------------
  112|   254k|        {
  113|   254k|          const unsigned int temp = orbit1->element;
  114|   254k|          orbit1->element = orbit2->element;
  115|   254k|          orbit2->element = temp;
  116|   254k|        }
  117|   274k|      orbit2->size += orbit1->size;
  118|   274k|    }
  119|   567k|}
_ZN5bliss5Orbit12merge_orbitsEjj:
  123|   567k|{
  124|       |
  125|   567k|  merge_orbits(in_orbit[e1], in_orbit[e2]);
  126|   567k|}
_ZNK5bliss5Orbit25is_minimal_representativeEj:
  130|  9.44M|{
  131|  9.44M|  return(get_minimal_representative(element) == element);
  132|  9.44M|}
_ZNK5bliss5Orbit26get_minimal_representativeEj:
  136|  9.44M|{
  137|       |
  138|  9.44M|  OrbitEntry * const orbit = in_orbit[element];
  139|       |
  140|  9.44M|  return(orbit->element);
  141|  9.44M|}
_ZNK5bliss5Orbit10orbit_sizeEj:
  145|   228k|{
  146|       |
  147|   228k|  return(in_orbit[element]->size);
  148|   228k|}

_ZNK5bliss5Orbit10nof_orbitsEv:
  107|  6.20k|  unsigned int nof_orbits() const {return _nof_orbits; }

_ZN5bliss9PartitionC2Ev:
   36|  8.11k|{
   37|  8.11k|  N = 0;
   38|  8.11k|  elements = 0;
   39|  8.11k|  in_pos = 0;
   40|  8.11k|  invariant_values = 0;
   41|  8.11k|  cells = 0;
   42|  8.11k|  free_cells = 0;
   43|  8.11k|  element_to_cell_map = 0;
   44|  8.11k|  graph = 0;
   45|  8.11k|  discrete_cell_count = 0;
   46|       |  /* Initialize a distribution count sorting array. */
   47|  2.08M|  for(unsigned int i = 0; i < 256; i++)
  ------------------
  |  Branch (47:27): [True: 2.07M, False: 8.11k]
  ------------------
   48|  2.07M|    dcs_count[i] = 0;
   49|       |
   50|  8.11k|  cr_enabled = false;
   51|  8.11k|  cr_cells = 0;
   52|  8.11k|  cr_levels = 0;
   53|  8.11k|}
_ZN5bliss9PartitionD2Ev:
   58|  8.11k|{
   59|  8.11k|  delete[] elements; elements = nullptr;
   60|  8.11k|  delete[] cells; cells = nullptr;
   61|  8.11k|  delete[] element_to_cell_map; element_to_cell_map = nullptr;
   62|  8.11k|  delete[] in_pos; in_pos = nullptr;
   63|  8.11k|  delete[] invariant_values; invariant_values = nullptr;
   64|  8.11k|  N = 0;
   65|  8.11k|}
_ZN5bliss9Partition4initEj:
   70|  8.08k|{
   71|  8.08k|  assert(M > 0);
  ------------------
  |  Branch (71:3): [True: 8.08k, False: 0]
  ------------------
   72|  8.08k|  N = M;
   73|       |
   74|  8.08k|  delete[] elements;
   75|  8.08k|  elements = new unsigned int[N];
   76|   335k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (76:27): [True: 327k, False: 8.08k]
  ------------------
   77|   327k|    elements[i] = i;
   78|       |
   79|  8.08k|  delete[] in_pos;
   80|  8.08k|  in_pos = new unsigned int*[N];
   81|   335k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (81:27): [True: 327k, False: 8.08k]
  ------------------
   82|   327k|    in_pos[i] = elements + i;
   83|       |
   84|  8.08k|  delete[] invariant_values;
   85|  8.08k|  invariant_values = new unsigned int[N];
   86|   335k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (86:27): [True: 327k, False: 8.08k]
  ------------------
   87|   327k|    invariant_values[i] = 0;
   88|       |
   89|  8.08k|  delete[] cells;
   90|  8.08k|  cells = new Cell[N];
   91|       |
   92|  8.08k|  cells[0].first = 0;
   93|  8.08k|  cells[0].length = N;
   94|  8.08k|  cells[0].max_ival = 0;
   95|  8.08k|  cells[0].max_ival_count = 0;
   96|  8.08k|  cells[0].in_splitting_queue = false;
   97|  8.08k|  cells[0].in_neighbour_heap = false;
   98|  8.08k|  cells[0].prev = 0;
   99|  8.08k|  cells[0].next = 0;
  100|  8.08k|  cells[0].next_nonsingleton = 0;
  101|  8.08k|  cells[0].prev_nonsingleton = 0;
  102|  8.08k|  cells[0].split_level = 0;
  103|  8.08k|  first_cell = &cells[0];
  104|  8.08k|  if(N == 1)
  ------------------
  |  Branch (104:6): [True: 6, False: 8.07k]
  ------------------
  105|      6|    {
  106|      6|      first_nonsingleton_cell = 0;
  107|      6|      discrete_cell_count = 1;
  108|      6|    }
  109|  8.07k|  else
  110|  8.07k|    {
  111|  8.07k|      first_nonsingleton_cell = &cells[0];
  112|  8.07k|      discrete_cell_count = 0;
  113|  8.07k|    }
  114|       |
  115|   327k|  for(unsigned int i = 1; i < N; i++)
  ------------------
  |  Branch (115:27): [True: 319k, False: 8.08k]
  ------------------
  116|   319k|    {
  117|   319k|      cells[i].first = 0;
  118|   319k|      cells[i].length = 0;
  119|   319k|      cells[i].max_ival = 0;
  120|   319k|      cells[i].max_ival_count = 0;
  121|   319k|      cells[i].in_splitting_queue = false;
  122|   319k|      cells[i].in_neighbour_heap = false;
  123|   319k|      cells[i].prev = 0;
  124|   319k|      cells[i].next = (i < N-1)?&cells[i+1]:0;
  ------------------
  |  Branch (124:23): [True: 310k, False: 8.07k]
  ------------------
  125|   319k|      cells[i].next_nonsingleton = 0;
  126|   319k|      cells[i].prev_nonsingleton = 0;
  127|   319k|    }
  128|  8.08k|  if(N > 1)
  ------------------
  |  Branch (128:6): [True: 8.07k, False: 6]
  ------------------
  129|  8.07k|    free_cells = &cells[1];
  130|      6|  else
  131|      6|    free_cells = 0;
  132|       |
  133|  8.08k|  delete[] element_to_cell_map;
  134|  8.08k|  element_to_cell_map = new Cell*[N];
  135|   335k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (135:27): [True: 327k, False: 8.08k]
  ------------------
  136|   327k|    element_to_cell_map[i] = first_cell;
  137|       |
  138|  8.08k|  splitting_queue.init(N);
  139|  8.08k|  refinement_stack.init(N);
  140|       |
  141|       |  /* Reset the main backtracking stack */
  142|  8.08k|  bt_stack.clear();
  143|  8.08k|}
_ZN5bliss9Partition19set_backtrack_pointEv:
  152|  9.59M|{
  153|  9.59M|  BacktrackInfo info;
  154|  9.59M|  info.refinement_stack_size = refinement_stack.size();
  155|  9.59M|  if(cr_enabled)
  ------------------
  |  Branch (155:6): [True: 9.59M, False: 0]
  ------------------
  156|  9.59M|    info.cr_backtrack_point = cr_get_backtrack_point();
  157|  9.59M|  BacktrackPoint p = bt_stack.size();
  158|  9.59M|  bt_stack.push_back(info);
  159|  9.59M|  return p;
  160|  9.59M|}
_ZN5bliss9Partition20goto_backtrack_pointEj:
  166|  5.17M|{
  167|  5.17M|  assert(p < bt_stack.size());
  ------------------
  |  Branch (167:3): [True: 5.17M, False: 0]
  ------------------
  168|  5.17M|  BacktrackInfo info = bt_stack[p];
  169|  5.17M|  bt_stack.resize(p);
  170|       |
  171|  5.17M|  if(cr_enabled)
  ------------------
  |  Branch (171:6): [True: 5.17M, False: 0]
  ------------------
  172|  5.17M|    cr_goto_backtrack_point(info.cr_backtrack_point);
  173|       |
  174|  5.17M|  const unsigned int dest_refinement_stack_size = info.refinement_stack_size;
  175|       |
  176|  5.17M|  assert(refinement_stack.size() >= dest_refinement_stack_size);
  ------------------
  |  Branch (176:3): [True: 5.17M, False: 0]
  ------------------
  177|  10.6M|  while(refinement_stack.size() > dest_refinement_stack_size)
  ------------------
  |  Branch (177:9): [True: 5.50M, False: 5.17M]
  ------------------
  178|  5.50M|    {
  179|  5.50M|      RefInfo i = refinement_stack.pop();
  180|  5.50M|      const unsigned int first = i.split_cell_first;
  181|  5.50M|      Cell* cell = get_cell(elements[first]);
  182|       |
  183|  5.50M|      if(cell->first != first)
  ------------------
  |  Branch (183:10): [True: 4.62M, False: 885k]
  ------------------
  184|  4.62M|        {
  185|  4.62M|          assert(cell->first < first);
  ------------------
  |  Branch (185:11): [True: 4.62M, False: 0]
  ------------------
  186|  4.62M|          assert(cell->split_level <= dest_refinement_stack_size);
  ------------------
  |  Branch (186:11): [True: 4.62M, False: 0]
  ------------------
  187|  4.62M|          goto done;
  188|  4.62M|        }
  189|  5.50M|      assert(cell->split_level > dest_refinement_stack_size);
  ------------------
  |  Branch (189:7): [True: 885k, False: 0]
  ------------------
  190|       |
  191|  1.84M|      while(cell->split_level > dest_refinement_stack_size)
  ------------------
  |  Branch (191:13): [True: 962k, False: 885k]
  ------------------
  192|   962k|        {
  193|   962k|          assert(cell->prev);
  ------------------
  |  Branch (193:11): [True: 962k, False: 0]
  ------------------
  194|   962k|          cell = cell->prev;
  195|   962k|        }
  196|  6.39M|      while(cell->next and
  ------------------
  |  Branch (196:13): [True: 6.37M, False: 20.4k]
  ------------------
  197|  6.37M|            cell->next->split_level > dest_refinement_stack_size)
  ------------------
  |  Branch (197:13): [True: 5.50M, False: 865k]
  ------------------
  198|  5.50M|        {
  199|       |          /* Merge next cell */
  200|  5.50M|          Cell* const next_cell = cell->next;
  201|  5.50M|          if(cell->length == 1)
  ------------------
  |  Branch (201:14): [True: 513k, False: 4.99M]
  ------------------
  202|   513k|            discrete_cell_count--;
  203|  5.50M|          if(next_cell->length == 1)
  ------------------
  |  Branch (203:14): [True: 5.24M, False: 264k]
  ------------------
  204|  5.24M|            discrete_cell_count--;
  205|       |          /* Update element_to_cell_map values of elements added in cell */
  206|  5.50M|          unsigned int* ep = elements + next_cell->first;
  207|  5.50M|          unsigned int* const lp = ep + next_cell->length;
  208|  11.3M|          for( ; ep < lp; ep++)
  ------------------
  |  Branch (208:18): [True: 5.82M, False: 5.50M]
  ------------------
  209|  5.82M|            element_to_cell_map[*ep] = cell;
  210|       |          /* Update cell parameters */
  211|  5.50M|          cell->length += next_cell->length;
  212|  5.50M|          if(next_cell->next)
  ------------------
  |  Branch (212:14): [True: 5.48M, False: 20.4k]
  ------------------
  213|  5.48M|            next_cell->next->prev = cell;
  214|  5.50M|          cell->next = next_cell->next;
  215|       |          /* (Pseudo)free next_cell */
  216|  5.50M|          next_cell->first = 0;
  217|  5.50M|          next_cell->length = 0;
  218|  5.50M|          next_cell->prev = 0;
  219|  5.50M|          next_cell->next = free_cells;
  220|  5.50M|          free_cells = next_cell;
  221|  5.50M|        }
  222|       |
  223|  5.50M|    done:
  224|  5.50M|      if(i.prev_nonsingleton_first >= 0)
  ------------------
  |  Branch (224:10): [True: 107k, False: 5.39M]
  ------------------
  225|   107k|        {
  226|   107k|          Cell* const prev_cell = get_cell(elements[i.prev_nonsingleton_first]);
  227|   107k|          assert(prev_cell->length > 1);
  ------------------
  |  Branch (227:11): [True: 107k, False: 0]
  ------------------
  228|   107k|          cell->prev_nonsingleton = prev_cell;
  229|   107k|          prev_cell->next_nonsingleton = cell;
  230|   107k|        }
  231|  5.39M|      else
  232|  5.39M|        {
  233|       |          //assert(cell->prev_nonsingleton == 0);
  234|  5.39M|          cell->prev_nonsingleton = 0;
  235|  5.39M|          first_nonsingleton_cell = cell;
  236|  5.39M|        }
  237|       |
  238|  5.50M|      if(i.next_nonsingleton_first >= 0)
  ------------------
  |  Branch (238:10): [True: 4.58M, False: 925k]
  ------------------
  239|  4.58M|        {
  240|  4.58M|          Cell* const next_cell = get_cell(elements[i.next_nonsingleton_first]);
  241|  4.58M|          assert(next_cell->length > 1);
  ------------------
  |  Branch (241:11): [True: 4.58M, False: 0]
  ------------------
  242|  4.58M|          cell->next_nonsingleton = next_cell;
  243|  4.58M|          next_cell->prev_nonsingleton = cell;
  244|  4.58M|        }
  245|   925k|      else
  246|   925k|        {
  247|       |          //assert(cell->next_nonsingleton == 0);
  248|   925k|          cell->next_nonsingleton = 0;
  249|   925k|        }
  250|  5.50M|    }
  251|       |
  252|  5.17M|}
_ZN5bliss9Partition13individualizeEPNS0_4CellEj:
  259|  4.74M|{
  260|  4.74M|  assert(!cell->is_unit());
  ------------------
  |  Branch (260:3): [True: 4.74M, False: 0]
  ------------------
  261|       |
  262|  4.74M|  unsigned int * const pos = in_pos[element];
  263|  4.74M|  assert((unsigned int)(pos - elements) >= cell->first);
  ------------------
  |  Branch (263:3): [True: 4.74M, False: 0]
  ------------------
  264|  4.74M|  assert((unsigned int)(pos - elements) < cell->first + cell->length);
  ------------------
  |  Branch (264:3): [True: 4.74M, False: 0]
  ------------------
  265|  4.74M|  assert(*pos == element);
  ------------------
  |  Branch (265:3): [True: 4.74M, False: 0]
  ------------------
  266|       |
  267|  4.74M|  const unsigned int last = cell->first + cell->length - 1;
  268|  4.74M|  *pos = elements[last];
  269|  4.74M|  in_pos[*pos] = pos;
  270|  4.74M|  elements[last] = element;
  271|  4.74M|  in_pos[element] = elements + last;
  272|       |
  273|  4.74M|  Partition::Cell * const new_cell = aux_split_in_two(cell, cell->length-1);
  274|  4.74M|  assert(elements[new_cell->first] == element);
  ------------------
  |  Branch (274:3): [True: 4.74M, False: 0]
  ------------------
  275|  4.74M|  element_to_cell_map[element] = new_cell;
  276|       |
  277|  4.74M|  return new_cell;
  278|  4.74M|}
_ZN5bliss9Partition16aux_split_in_twoEPNS0_4CellEj:
  285|  5.40M|{
  286|  5.40M|  RefInfo i;
  287|       |
  288|  5.40M|  assert(0 < first_half_size && first_half_size < cell->length);
  ------------------
  |  Branch (288:3): [True: 5.40M, False: 0]
  |  Branch (288:3): [True: 5.40M, False: 0]
  |  Branch (288:3): [True: 5.40M, False: 0]
  ------------------
  289|       |
  290|       |  /* (Pseudo)allocate new cell */
  291|  5.40M|  Cell * const new_cell = free_cells;
  292|  5.40M|  assert(new_cell != 0);
  ------------------
  |  Branch (292:3): [True: 5.40M, False: 0]
  ------------------
  293|  5.40M|  free_cells = new_cell->next;
  294|       |  /* Update new cell parameters */
  295|  5.40M|  new_cell->first = cell->first + first_half_size;
  296|  5.40M|  new_cell->length = cell->length - first_half_size;
  297|  5.40M|  new_cell->next = cell->next;
  298|  5.40M|  if(new_cell->next)
  ------------------
  |  Branch (298:6): [True: 5.37M, False: 31.9k]
  ------------------
  299|  5.37M|    new_cell->next->prev = new_cell;
  300|  5.40M|  new_cell->prev = cell;
  301|  5.40M|  new_cell->split_level = refinement_stack.size()+1;
  302|       |  /* Update old, splitted cell parameters */
  303|  5.40M|  cell->length = first_half_size;
  304|  5.40M|  cell->next = new_cell;
  305|       |  /* CR */
  306|  5.40M|  if(cr_enabled)
  ------------------
  |  Branch (306:6): [True: 5.40M, False: 0]
  ------------------
  307|  5.40M|    cr_create_at_level_trailed(new_cell->first, cr_get_level(cell->first));
  308|       |
  309|       |  /* Add cell in refinement_stack for backtracking */
  310|  5.40M|  i.split_cell_first = new_cell->first;
  311|  5.40M|  if(cell->prev_nonsingleton)
  ------------------
  |  Branch (311:6): [True: 124k, False: 5.28M]
  ------------------
  312|   124k|    i.prev_nonsingleton_first = cell->prev_nonsingleton->first;
  313|  5.28M|  else
  314|  5.28M|    i.prev_nonsingleton_first = -1;
  315|  5.40M|  if(cell->next_nonsingleton)
  ------------------
  |  Branch (315:6): [True: 4.46M, False: 940k]
  ------------------
  316|  4.46M|    i.next_nonsingleton_first = cell->next_nonsingleton->first;
  317|   940k|  else
  318|   940k|    i.next_nonsingleton_first = -1;
  319|  5.40M|  refinement_stack.push(i);
  320|       |
  321|       |  /* Modify nonsingleton cell list */
  322|  5.40M|  if(new_cell->length > 1)
  ------------------
  |  Branch (322:6): [True: 188k, False: 5.21M]
  ------------------
  323|   188k|    {
  324|   188k|      new_cell->prev_nonsingleton = cell;
  325|   188k|      new_cell->next_nonsingleton = cell->next_nonsingleton;
  326|   188k|      if(new_cell->next_nonsingleton)
  ------------------
  |  Branch (326:10): [True: 164k, False: 24.0k]
  ------------------
  327|   164k|        new_cell->next_nonsingleton->prev_nonsingleton = new_cell;
  328|   188k|      cell->next_nonsingleton = new_cell;
  329|   188k|    }
  330|  5.21M|  else
  331|  5.21M|    {
  332|  5.21M|      new_cell->next_nonsingleton = 0;
  333|  5.21M|      new_cell->prev_nonsingleton = 0;
  334|  5.21M|      discrete_cell_count++;
  335|  5.21M|    }
  336|       |
  337|  5.40M|  if(cell->is_unit())
  ------------------
  |  Branch (337:6): [True: 541k, False: 4.86M]
  ------------------
  338|   541k|    {
  339|   541k|      if(cell->prev_nonsingleton)
  ------------------
  |  Branch (339:10): [True: 44.8k, False: 496k]
  ------------------
  340|  44.8k|        cell->prev_nonsingleton->next_nonsingleton = cell->next_nonsingleton;
  341|   496k|      else
  342|   496k|        first_nonsingleton_cell = cell->next_nonsingleton;
  343|   541k|      if(cell->next_nonsingleton)
  ------------------
  |  Branch (343:10): [True: 459k, False: 82.3k]
  ------------------
  344|   459k|        cell->next_nonsingleton->prev_nonsingleton = cell->prev_nonsingleton;
  345|   541k|      cell->next_nonsingleton = 0;
  346|   541k|      cell->prev_nonsingleton = 0;
  347|   541k|      discrete_cell_count++;
  348|   541k|    }
  349|       |
  350|  5.40M|  return new_cell;
  351|  5.40M|}
_ZN5bliss9Partition19splitting_queue_addEPNS0_4CellE:
  357|  6.10M|{
  358|  6.10M|  static const unsigned int smallish_cell_threshold = 1;
  359|  6.10M|  assert(!cell->in_splitting_queue);
  ------------------
  |  Branch (359:3): [True: 6.10M, False: 0]
  ------------------
  360|  6.10M|  cell->in_splitting_queue = true;
  361|  6.10M|  if(cell->length <= smallish_cell_threshold)
  ------------------
  |  Branch (361:6): [True: 5.77M, False: 324k]
  ------------------
  362|  5.77M|    splitting_queue.push_front(cell);
  363|   324k|  else
  364|   324k|    splitting_queue.push_back(cell);
  365|  6.10M|}
_ZN5bliss9Partition21splitting_queue_clearEv:
  371|  72.2k|{
  372|   163k|  while(!splitting_queue_is_empty())
  ------------------
  |  Branch (372:9): [True: 91.5k, False: 72.2k]
  ------------------
  373|  91.5k|    splitting_queue_pop();
  374|  72.2k|}
_ZN5bliss9Partition20sort_and_split_cell1EPNS0_4CellE:
  386|   144k|{
  387|       |#if defined(BLISS_EXPENSIVE_CONSISTENCY_CHECKS)
  388|       |  assert(cell->length > 1);
  389|       |  assert(cell->first + cell->length <= N);
  390|       |  unsigned int nof_0_found = 0;
  391|       |  unsigned int nof_1_found = 0;
  392|       |  for(unsigned int i = cell->first; i < cell->first + cell->length; i++)
  393|       |    {
  394|       |      const unsigned int ival = invariant_values[elements[i]];
  395|       |      assert(ival == 0 or ival == 1);
  396|       |      if(ival == 0) nof_0_found++;
  397|       |      else nof_1_found++;
  398|       |    }
  399|       |  assert(nof_0_found > 0);
  400|       |  assert(nof_1_found > 0);
  401|       |  assert(nof_1_found == cell->max_ival_count);
  402|       |  assert(nof_0_found + nof_1_found == cell->length);
  403|       |  assert(cell->max_ival == 1);
  404|       |#endif
  405|       |
  406|       |
  407|       |  /* (Pseudo)allocate new cell */
  408|   144k|  Cell* const new_cell = free_cells;
  409|   144k|  assert(new_cell != 0);
  ------------------
  |  Branch (409:3): [True: 144k, False: 0]
  ------------------
  410|   144k|  free_cells = new_cell->next;
  411|       |
  412|   144k|#define NEW_SORT1
  413|   144k|#ifdef NEW_SORT1
  414|   144k|      unsigned int *ep0 = elements + cell->first;
  415|   144k|      unsigned int *ep1 = ep0 + cell->length - cell->max_ival_count;
  416|   144k|      if(cell->max_ival_count > cell->length / 2)
  ------------------
  |  Branch (416:10): [True: 18.9k, False: 125k]
  ------------------
  417|  18.9k|        {
  418|       |          /* There are more ones than zeros, only move zeros */
  419|  18.9k|          unsigned int * const end = ep0 + cell->length;
  420|  81.9k|          while(ep1 < end)
  ------------------
  |  Branch (420:17): [True: 62.9k, False: 18.9k]
  ------------------
  421|  62.9k|            {
  422|  78.3k|              while(invariant_values[*ep1] == 0)
  ------------------
  |  Branch (422:21): [True: 15.3k, False: 62.9k]
  ------------------
  423|  15.3k|                {
  424|  15.3k|                  const unsigned int tmp = *ep1;
  425|  15.3k|                  *ep1 = *ep0;
  426|  15.3k|                  *ep0 = tmp;
  427|  15.3k|                  in_pos[tmp] = ep0;
  428|  15.3k|                  in_pos[*ep1] = ep1;
  429|  15.3k|                  ep0++;
  430|  15.3k|                }
  431|  62.9k|              element_to_cell_map[*ep1] = new_cell;
  432|  62.9k|              invariant_values[*ep1] = 0;
  433|  62.9k|              ep1++;
  434|  62.9k|            }
  435|  18.9k|        }
  436|   125k|      else
  437|   125k|        {
  438|       |          /* There are more zeros than ones, only move ones */
  439|   125k|          unsigned int * const end = ep1;
  440|  1.69M|          while(ep0 < end)
  ------------------
  |  Branch (440:17): [True: 1.57M, False: 125k]
  ------------------
  441|  1.57M|            {
  442|  1.83M|              while(invariant_values[*ep0] != 0)
  ------------------
  |  Branch (442:21): [True: 259k, False: 1.57M]
  ------------------
  443|   259k|                {
  444|   259k|                  const unsigned int tmp = *ep0;
  445|   259k|                  *ep0 = *ep1;
  446|   259k|                  *ep1 = tmp;
  447|   259k|                  in_pos[tmp] = ep1;
  448|   259k|                  in_pos[*ep0] = ep0;
  449|   259k|                  ep1++;
  450|   259k|                }
  451|  1.57M|              ep0++;
  452|  1.57M|            }
  453|   125k|          ep1 = end;
  454|   412k|          while(ep1 < elements + cell->first + cell->length)
  ------------------
  |  Branch (454:17): [True: 286k, False: 125k]
  ------------------
  455|   286k|            {
  456|   286k|              element_to_cell_map[*ep1] = new_cell;
  457|   286k|              invariant_values[*ep1] = 0;
  458|   286k|              ep1++;
  459|   286k|            }
  460|   125k|        }
  461|       |  /* Update new cell parameters */
  462|   144k|  new_cell->first = cell->first + cell->length - cell->max_ival_count;
  463|   144k|  new_cell->length = cell->length - (new_cell->first - cell->first);
  464|   144k|  new_cell->next = cell->next;
  465|   144k|  if(new_cell->next)
  ------------------
  |  Branch (465:6): [True: 140k, False: 4.52k]
  ------------------
  466|   140k|    new_cell->next->prev = new_cell;
  467|   144k|  new_cell->prev = cell;
  468|   144k|  new_cell->split_level = refinement_stack.size()+1;
  469|       |  /* Update old, splitted cell parameters */
  470|   144k|  cell->length = new_cell->first - cell->first;
  471|   144k|  cell->next = new_cell;
  472|       |  /* CR */
  473|   144k|  if(cr_enabled)
  ------------------
  |  Branch (473:6): [True: 144k, False: 0]
  ------------------
  474|   144k|    cr_create_at_level_trailed(new_cell->first, cr_get_level(cell->first));
  475|       |
  476|       |#else
  477|       |  /* Sort vertices in the cell according to the invariant values */
  478|       |  unsigned int *ep0 = elements + cell->first;
  479|       |  unsigned int *ep1 = ep0 + cell->length;
  480|       |  while(ep1 > ep0)
  481|       |    {
  482|       |      const unsigned int element = *ep0;
  483|       |      const unsigned int ival = invariant_values[element];
  484|       |      invariant_values[element] = 0;
  485|       |      assert(ival <= 1);
  486|       |      assert(element_to_cell_map[element] == cell);
  487|       |      assert(in_pos[element] == ep0);
  488|       |      if(ival == 0)
  489|       |        {
  490|       |          ep0++;
  491|       |        }
  492|       |      else
  493|       |        {
  494|       |          ep1--;
  495|       |          *ep0 = *ep1;
  496|       |          *ep1 = element;
  497|       |          element_to_cell_map[element] = new_cell;
  498|       |          in_pos[element] = ep1;
  499|       |          in_pos[*ep0] = ep0;
  500|       |        }
  501|       |    }
  502|       |
  503|       |  assert(ep1 != elements + cell->first);
  504|       |  assert(ep0 != elements + cell->first + cell->length);
  505|       |
  506|       |  /* Update new cell parameters */
  507|       |  new_cell->first = ep1 - elements;
  508|       |  new_cell->length = cell->length - (new_cell->first - cell->first);
  509|       |  new_cell->next = cell->next;
  510|       |  if(new_cell->next)
  511|       |    new_cell->next->prev = new_cell;
  512|       |  new_cell->prev = cell;
  513|       |  new_cell->split_level = cell->split_level;
  514|       |  /* Update old, splitted cell parameters */
  515|       |  cell->length = new_cell->first - cell->first;
  516|       |  cell->next = new_cell;
  517|       |  cell->split_level = refinement_stack.size()+1;
  518|       |  /* CR */
  519|       |  if(cr_enabled)
  520|       |    cr_create_at_level_trailed(new_cell->first, cr_get_level(cell->first));
  521|       |
  522|       |#endif /* ifdef NEW_SORT1*/
  523|       |
  524|       |  /* Add cell in refinement stack for backtracking */
  525|   144k|  {
  526|   144k|    RefInfo i;
  527|   144k|    i.split_cell_first = new_cell->first;
  528|   144k|    if(cell->prev_nonsingleton)
  ------------------
  |  Branch (528:8): [True: 11.7k, False: 133k]
  ------------------
  529|  11.7k|      i.prev_nonsingleton_first = cell->prev_nonsingleton->first;
  530|   133k|    else
  531|   133k|      i.prev_nonsingleton_first = -1;
  532|   144k|    if(cell->next_nonsingleton)
  ------------------
  |  Branch (532:8): [True: 138k, False: 6.82k]
  ------------------
  533|   138k|      i.next_nonsingleton_first = cell->next_nonsingleton->first;
  534|  6.82k|    else
  535|  6.82k|      i.next_nonsingleton_first = -1;
  536|       |    /* Modify nonsingleton cell list */
  537|   144k|    if(new_cell->length > 1)
  ------------------
  |  Branch (537:8): [True: 139k, False: 5.46k]
  ------------------
  538|   139k|      {
  539|   139k|        new_cell->prev_nonsingleton = cell;
  540|   139k|        new_cell->next_nonsingleton = cell->next_nonsingleton;
  541|   139k|        if(new_cell->next_nonsingleton)
  ------------------
  |  Branch (541:12): [True: 134k, False: 4.91k]
  ------------------
  542|   134k|          new_cell->next_nonsingleton->prev_nonsingleton = new_cell;
  543|   139k|        cell->next_nonsingleton = new_cell;
  544|   139k|      }
  545|  5.46k|    else
  546|  5.46k|      {
  547|  5.46k|        new_cell->next_nonsingleton = 0;
  548|  5.46k|        new_cell->prev_nonsingleton = 0;
  549|  5.46k|        discrete_cell_count++;
  550|  5.46k|      }
  551|   144k|    if(cell->is_unit())
  ------------------
  |  Branch (551:8): [True: 19.2k, False: 125k]
  ------------------
  552|  19.2k|      {
  553|  19.2k|        if(cell->prev_nonsingleton)
  ------------------
  |  Branch (553:12): [True: 3.40k, False: 15.8k]
  ------------------
  554|  3.40k|          cell->prev_nonsingleton->next_nonsingleton = cell->next_nonsingleton;
  555|  15.8k|        else
  556|  15.8k|          first_nonsingleton_cell = cell->next_nonsingleton;
  557|  19.2k|        if(cell->next_nonsingleton)
  ------------------
  |  Branch (557:12): [True: 18.4k, False: 837]
  ------------------
  558|  18.4k|          cell->next_nonsingleton->prev_nonsingleton = cell->prev_nonsingleton;
  559|  19.2k|        cell->next_nonsingleton = 0;
  560|  19.2k|        cell->prev_nonsingleton = 0;
  561|  19.2k|        discrete_cell_count++;
  562|  19.2k|      }
  563|   144k|    refinement_stack.push(i);
  564|   144k|  }
  565|       |
  566|       |
  567|       |  /* Add cells in splitting queue */
  568|   144k|  assert(!new_cell->in_splitting_queue);
  ------------------
  |  Branch (568:3): [True: 144k, False: 0]
  ------------------
  569|   144k|  if(cell->in_splitting_queue) {
  ------------------
  |  Branch (569:6): [True: 4.71k, False: 140k]
  ------------------
  570|       |    /* Both cells must be included in splitting_queue in order to have
  571|       |       refinement to equitable partition */
  572|  4.71k|    splitting_queue_add(new_cell);
  573|   140k|  } else {
  574|   140k|    Cell *min_cell, *max_cell;
  575|   140k|    if(cell->length <= new_cell->length) {
  ------------------
  |  Branch (575:8): [True: 24.5k, False: 115k]
  ------------------
  576|  24.5k|      min_cell = cell;
  577|  24.5k|      max_cell = new_cell;
  578|   115k|    } else {
  579|   115k|      min_cell = new_cell;
  580|   115k|      max_cell = cell;
  581|   115k|    }
  582|       |    /* Put the smaller cell in splitting_queue */
  583|   140k|    splitting_queue_add(min_cell);
  584|   140k|    if(max_cell->is_unit()) {
  ------------------
  |  Branch (584:8): [True: 1.09k, False: 139k]
  ------------------
  585|       |      /* Put the "larger" cell also in splitting_queue */
  586|  1.09k|      splitting_queue_add(max_cell);
  587|  1.09k|    }
  588|   140k|  }
  589|       |
  590|       |
  591|   144k|  return new_cell;
  592|   144k|}
_ZN5bliss9Partition18dcs_cumulate_countEj:
  605|  58.9k|{
  606|  58.9k|  assert(max <= 255);
  ------------------
  |  Branch (606:3): [True: 58.9k, False: 0]
  ------------------
  607|  58.9k|  unsigned int* count_p = dcs_count;
  608|  58.9k|  unsigned int* start_p = dcs_start;
  609|  58.9k|  unsigned int sum = 0;
  610|   245k|  for(unsigned int i = max+1; i > 0; i--)
  ------------------
  |  Branch (610:31): [True: 186k, False: 58.9k]
  ------------------
  611|   186k|    {
  612|   186k|      *start_p = sum;
  613|   186k|      start_p++;
  614|   186k|      sum += *count_p;
  615|   186k|      count_p++;
  616|   186k|    }
  617|  58.9k|}
_ZN5bliss9Partition22sort_and_split_cell255EPNS0_4CellEj:
  626|  58.9k|{
  627|  58.9k|  assert(max_ival <= 255);
  ------------------
  |  Branch (627:3): [True: 58.9k, False: 0]
  ------------------
  628|       |
  629|  58.9k|  if(cell->is_unit())
  ------------------
  |  Branch (629:6): [True: 0, False: 58.9k]
  ------------------
  630|      0|    {
  631|       |      /* Reset invariant value */
  632|      0|      invariant_values[elements[cell->first]] = 0;
  633|      0|      return cell;
  634|      0|    }
  635|       |
  636|       |#ifdef BLISS_CONSISTENCY_CHECKS
  637|       |  for(unsigned int i = 0; i < 256; i++)
  638|       |    assert(dcs_count[i] == 0);
  639|       |#endif
  640|       |
  641|       |  /*
  642|       |   * Compute the distribution of invariant values to the count array
  643|       |   */
  644|  58.9k|  {
  645|  58.9k|    const unsigned int *ep = elements + cell->first;
  646|  58.9k|    assert(element_to_cell_map[*ep] == cell);
  ------------------
  |  Branch (646:5): [True: 58.9k, False: 0]
  ------------------
  647|  58.9k|    const unsigned int ival = invariant_values[*ep];
  648|  58.9k|    assert(ival <= 255);
  ------------------
  |  Branch (648:5): [True: 58.9k, False: 0]
  ------------------
  649|  58.9k|    dcs_count[ival]++;
  650|  58.9k|    ep++;
  651|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  652|       |    bool equal_invariant_values = true;
  653|       |#endif
  654|   876k|    for(unsigned int i = cell->length - 1; i != 0; i--)
  ------------------
  |  Branch (654:44): [True: 817k, False: 58.9k]
  ------------------
  655|   817k|      {
  656|   817k|        assert(element_to_cell_map[*ep] == cell);
  ------------------
  |  Branch (656:9): [True: 817k, False: 0]
  ------------------
  657|   817k|        const unsigned int ival2 = invariant_values[*ep];
  658|   817k|        assert(ival2 <= 255);
  ------------------
  |  Branch (658:9): [True: 817k, False: 0]
  ------------------
  659|   817k|        assert(ival2 <= max_ival);
  ------------------
  |  Branch (659:9): [True: 817k, False: 0]
  ------------------
  660|   817k|        dcs_count[ival2]++;
  661|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  662|       |        if(ival2 != ival) {
  663|       |          equal_invariant_values = false;
  664|       |        }
  665|       |#endif
  666|   817k|        ep++;
  667|   817k|      }
  668|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  669|       |    assert(!equal_invariant_values);
  670|       |    if(equal_invariant_values) {
  671|       |      assert(dcs_count[ival] == cell->length);
  672|       |      dcs_count[ival] = 0;
  673|       |      clear_ivs(cell);
  674|       |      return cell;
  675|       |    }
  676|       |#endif
  677|  58.9k|  }
  678|       |
  679|       |  /* Build start array */
  680|  58.9k|  dcs_cumulate_count(max_ival);
  681|       |
  682|       |  //assert(dcs_start[255] + dcs_count[255] == cell->length);
  683|  58.9k|  assert(dcs_start[max_ival] + dcs_count[max_ival] == cell->length);
  ------------------
  |  Branch (683:3): [True: 58.9k, False: 0]
  ------------------
  684|       |
  685|       |  /* Do the sorting */
  686|   245k|  for(unsigned int i = 0; i <= max_ival; i++)
  ------------------
  |  Branch (686:27): [True: 186k, False: 58.9k]
  ------------------
  687|   186k|    {
  688|   186k|      unsigned int *ep = elements + cell->first + dcs_start[i];
  689|   892k|      for(unsigned int j = dcs_count[i]; j > 0; j--)
  ------------------
  |  Branch (689:42): [True: 706k, False: 186k]
  ------------------
  690|   706k|        {
  691|   876k|          while(true)
  ------------------
  |  Branch (691:17): [True: 876k, Folded]
  ------------------
  692|   876k|            {
  693|   876k|              const unsigned int element = *ep;
  694|   876k|              const unsigned int ival = invariant_values[element];
  695|   876k|              if(ival == i)
  ------------------
  |  Branch (695:18): [True: 706k, False: 169k]
  ------------------
  696|   706k|                break;
  697|   876k|              assert(ival > i);
  ------------------
  |  Branch (697:15): [True: 169k, False: 0]
  ------------------
  698|   169k|              assert(dcs_count[ival] > 0);
  ------------------
  |  Branch (698:15): [True: 169k, False: 0]
  ------------------
  699|   169k|              *ep = elements[cell->first + dcs_start[ival]];
  700|   169k|              elements[cell->first + dcs_start[ival]] = element;
  701|   169k|              dcs_start[ival]++;
  702|   169k|              dcs_count[ival]--;
  703|   169k|            }
  704|   706k|          ep++;
  705|   706k|        }
  706|   186k|      dcs_count[i] = 0;
  707|   186k|    }
  708|       |
  709|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  710|       |  for(unsigned int i = 0; i < 256; i++)
  711|       |    assert(dcs_count[i] == 0);
  712|       |#endif
  713|       |
  714|       |  /* split cell */
  715|  58.9k|  Cell* const new_cell = split_cell(cell);
  716|  58.9k|  assert(new_cell != cell);
  ------------------
  |  Branch (716:3): [True: 58.9k, False: 0]
  ------------------
  717|  58.9k|  return new_cell;
  718|  58.9k|}
_ZN5bliss9Partition9clear_ivsEPNS0_4CellE:
  781|   180k|{
  782|   180k|  unsigned int* ep = elements + cell->first;
  783|   643k|  for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (783:38): [True: 462k, False: 180k]
  ------------------
  784|   462k|    invariant_values[*ep] = 0;
  785|   180k|}
_ZN5bliss9Partition10split_cellEPNS0_4CellE:
  794|  58.9k|{
  795|  58.9k|  Cell* cell = original_cell;
  796|  58.9k|  const bool original_cell_was_in_splitting_queue =
  797|  58.9k|    original_cell->in_splitting_queue;
  798|  58.9k|  Cell* largest_new_cell = 0;
  799|       |
  800|   131k|  while(true)
  ------------------
  |  Branch (800:9): [True: 131k, Folded]
  ------------------
  801|   131k|    {
  802|   131k|      unsigned int* ep = elements + cell->first;
  803|   131k|      const unsigned int* const lp = ep + cell->length;
  804|   131k|      const unsigned int ival = invariant_values[*ep];
  805|   131k|      invariant_values[*ep] = 0;
  806|   131k|      element_to_cell_map[*ep] = cell;
  807|   131k|      in_pos[*ep] = ep;
  808|   131k|      ep++;
  809|   876k|      while(ep < lp)
  ------------------
  |  Branch (809:13): [True: 817k, False: 58.9k]
  ------------------
  810|   817k|        {
  811|   817k|          const unsigned int e = *ep;
  812|   817k|          if(invariant_values[e] != ival)
  ------------------
  |  Branch (812:14): [True: 72.3k, False: 744k]
  ------------------
  813|  72.3k|            break;
  814|   744k|          invariant_values[e] = 0;
  815|   744k|          in_pos[e] = ep;
  816|   744k|          ep++;
  817|   744k|          element_to_cell_map[e] = cell;
  818|   744k|        }
  819|   131k|      if(ep == lp)
  ------------------
  |  Branch (819:10): [True: 58.9k, False: 72.3k]
  ------------------
  820|  58.9k|        break;
  821|       |
  822|  72.3k|      Cell* const new_cell = aux_split_in_two(cell,
  823|  72.3k|                                              (ep - elements) - cell->first);
  824|       |
  825|  72.3k|      if(graph and graph->compute_eqref_hash)
  ------------------
  |  Branch (825:10): [True: 72.3k, False: 0]
  |  Branch (825:20): [True: 0, False: 72.3k]
  ------------------
  826|      0|        {
  827|      0|          graph->eqref_hash.update(new_cell->first);
  828|      0|          graph->eqref_hash.update(new_cell->length);
  829|      0|          graph->eqref_hash.update(ival);
  830|      0|        }
  831|       |
  832|       |      /* Add cells in splitting_queue */
  833|  72.3k|      assert(!new_cell->is_in_splitting_queue());
  ------------------
  |  Branch (833:7): [True: 72.3k, False: 0]
  ------------------
  834|  72.3k|      if(original_cell_was_in_splitting_queue)
  ------------------
  |  Branch (834:10): [True: 1.55k, False: 70.7k]
  ------------------
  835|  1.55k|        {
  836|       |          /* In this case, all new cells are inserted in splitting_queue */
  837|  1.55k|          assert(cell->is_in_splitting_queue());
  ------------------
  |  Branch (837:11): [True: 1.55k, False: 0]
  ------------------
  838|  1.55k|          splitting_queue_add(new_cell);
  839|  1.55k|        }
  840|  70.7k|      else
  841|  70.7k|        {
  842|       |          /* Otherwise, we can omit one new cell from splitting_queue */
  843|  70.7k|          assert(!cell->is_in_splitting_queue());
  ------------------
  |  Branch (843:11): [True: 70.7k, False: 0]
  ------------------
  844|  70.7k|          if(largest_new_cell == 0) {
  ------------------
  |  Branch (844:14): [True: 57.7k, False: 13.0k]
  ------------------
  845|  57.7k|            largest_new_cell = cell;
  846|  57.7k|          } else {
  847|  13.0k|            assert(!largest_new_cell->is_in_splitting_queue());
  ------------------
  |  Branch (847:13): [True: 13.0k, False: 0]
  ------------------
  848|  13.0k|            if(cell->length > largest_new_cell->length) {
  ------------------
  |  Branch (848:16): [True: 3.58k, False: 9.43k]
  ------------------
  849|  3.58k|              splitting_queue_add(largest_new_cell);
  850|  3.58k|              largest_new_cell = cell;
  851|  9.43k|            } else {
  852|  9.43k|              splitting_queue_add(cell);
  853|  9.43k|            }
  854|  13.0k|          }
  855|  70.7k|        }
  856|       |      /* Process the rest of the cell */
  857|  72.3k|      cell = new_cell;
  858|  72.3k|    }
  859|       |
  860|       |
  861|  58.9k|  if(original_cell == cell) {
  ------------------
  |  Branch (861:6): [True: 0, False: 58.9k]
  ------------------
  862|       |    /* All the elements in cell had the same invariant value */
  863|      0|    return cell;
  864|      0|  }
  865|       |
  866|       |  /* Add cells in splitting_queue */
  867|  58.9k|  if(!original_cell_was_in_splitting_queue)
  ------------------
  |  Branch (867:6): [True: 57.7k, False: 1.18k]
  ------------------
  868|  57.7k|    {
  869|       |      /* Also consider the last new cell */
  870|  57.7k|      assert(largest_new_cell);
  ------------------
  |  Branch (870:7): [True: 57.7k, False: 0]
  ------------------
  871|  57.7k|      if(cell->length > largest_new_cell->length)
  ------------------
  |  Branch (871:10): [True: 1.48k, False: 56.2k]
  ------------------
  872|  1.48k|        {
  873|  1.48k|          splitting_queue_add(largest_new_cell);
  874|  1.48k|          largest_new_cell = cell;
  875|  1.48k|        }
  876|  56.2k|      else
  877|  56.2k|        {
  878|  56.2k|          splitting_queue_add(cell);
  879|  56.2k|        }
  880|  57.7k|      if(largest_new_cell->is_unit())
  ------------------
  |  Branch (880:10): [True: 1.09k, False: 56.6k]
  ------------------
  881|  1.09k|        {
  882|       |          /* Needed in certificate computation */
  883|  1.09k|          splitting_queue_add(largest_new_cell);
  884|  1.09k|        }
  885|  57.7k|    }
  886|       |
  887|  58.9k|  return cell;
  888|  58.9k|}
_ZN5bliss9Partition10zplit_cellEPNS0_4CellEb:
  894|   388k|{
  895|   388k|  assert(cell != 0);
  ------------------
  |  Branch (895:3): [True: 388k, False: 0]
  ------------------
  896|       |
  897|   388k|  Cell* last_new_cell = cell;
  898|       |
  899|   388k|  if(!max_ival_info_ok)
  ------------------
  |  Branch (899:6): [True: 0, False: 388k]
  ------------------
  900|      0|    {
  901|       |      /* Compute max_ival info */
  902|      0|      assert(cell->max_ival == 0);
  ------------------
  |  Branch (902:7): [True: 0, False: 0]
  ------------------
  903|      0|      assert(cell->max_ival_count == 0);
  ------------------
  |  Branch (903:7): [True: 0, False: 0]
  ------------------
  904|      0|      unsigned int *ep = elements + cell->first;
  905|      0|      for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (905:42): [True: 0, False: 0]
  ------------------
  906|      0|        {
  907|      0|          const unsigned int ival = invariant_values[*ep];
  908|      0|          if(ival > cell->max_ival)
  ------------------
  |  Branch (908:14): [True: 0, False: 0]
  ------------------
  909|      0|            {
  910|      0|              cell->max_ival = ival;
  911|      0|              cell->max_ival_count = 1;
  912|      0|            }
  913|      0|          else if(ival == cell->max_ival)
  ------------------
  |  Branch (913:19): [True: 0, False: 0]
  ------------------
  914|      0|            {
  915|      0|              cell->max_ival_count++;
  916|      0|            }
  917|      0|        }
  918|      0|    }
  919|       |
  920|       |#ifdef BLISS_CONSISTENCY_CHECKS
  921|       |  /* Verify max_ival info */
  922|       |  {
  923|       |    unsigned int nof_zeros = 0;
  924|       |    unsigned int max_ival = 0;
  925|       |    unsigned int max_ival_count = 0;
  926|       |    unsigned int *ep = elements + cell->first;
  927|       |    for(unsigned int i = cell->length; i > 0; i--, ep++)
  928|       |      {
  929|       |        const unsigned int ival = invariant_values[*ep];
  930|       |        if(ival == 0)
  931|       |          nof_zeros++;
  932|       |        if(ival > max_ival)
  933|       |          {
  934|       |            max_ival = ival;
  935|       |            max_ival_count = 1;
  936|       |          }
  937|       |        else if(ival == max_ival)
  938|       |          max_ival_count++;
  939|       |      }
  940|       |    assert(max_ival == cell->max_ival);
  941|       |    assert(max_ival_count == cell->max_ival_count);
  942|       |  }
  943|       |#endif
  944|       |
  945|       |  /* max_ival info has been computed */
  946|       |
  947|   388k|  if(cell->max_ival_count == cell->length)
  ------------------
  |  Branch (947:6): [True: 184k, False: 203k]
  ------------------
  948|   184k|    {
  949|       |      /* All invariant values are the same, clear 'em */
  950|   184k|      if(cell->max_ival > 0)
  ------------------
  |  Branch (950:10): [True: 167k, False: 17.4k]
  ------------------
  951|   167k|        clear_ivs(cell);
  952|   184k|    }
  953|   203k|  else
  954|   203k|    {
  955|       |      /* All invariant values are not the same */
  956|   203k|      if(cell->max_ival == 1)
  ------------------
  |  Branch (956:10): [True: 144k, False: 58.9k]
  ------------------
  957|   144k|        {
  958|       |          /* Specialized splitting for cells with binary invariant values */
  959|   144k|          last_new_cell = sort_and_split_cell1(cell);
  960|   144k|        }
  961|  58.9k|      else if(cell->max_ival < 256)
  ------------------
  |  Branch (961:15): [True: 58.9k, False: 0]
  ------------------
  962|  58.9k|        {
  963|       |          /* Specialized splitting for cells with invariant values < 256 */
  964|  58.9k|          last_new_cell = sort_and_split_cell255(cell, cell->max_ival);
  965|  58.9k|        }
  966|      0|      else
  967|      0|        {
  968|       |          /* Generic sorting and splitting */
  969|      0|          const bool sorted = shellsort_cell(cell);
  970|      0|          assert(sorted);
  ------------------
  |  Branch (970:11): [True: 0, False: 0]
  ------------------
  971|      0|          IGRAPH_UNUSED(sorted);
  ------------------
  |  |   30|      0|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  972|      0|          last_new_cell = split_cell(cell);
  973|      0|        }
  974|   203k|    }
  975|   388k|  cell->max_ival = 0;
  976|   388k|  cell->max_ival_count = 0;
  977|   388k|  return last_new_cell;
  978|   388k|}
_ZN5bliss9Partition7cr_initEv:
  989|  8.08k|{
  990|  8.08k|  assert(bt_stack.empty());
  ------------------
  |  Branch (990:3): [True: 8.08k, False: 0]
  ------------------
  991|       |
  992|  8.08k|  cr_enabled = true;
  993|       |
  994|  8.08k|  delete[] cr_cells;
  995|  8.08k|  cr_cells = new CRCell[N];
  996|       |
  997|  8.08k|  delete[] cr_levels;
  998|  8.08k|  cr_levels = new CRCell*[N];
  999|       |
 1000|   335k|  for(unsigned int i = 0; i < N; i++) {
  ------------------
  |  Branch (1000:27): [True: 327k, False: 8.08k]
  ------------------
 1001|   327k|    cr_levels[i] = 0;
 1002|   327k|    cr_cells[i].level = UINT_MAX;
 1003|   327k|    cr_cells[i].next = 0;
 1004|   327k|    cr_cells[i].prev_next_ptr = 0;
 1005|   327k|  }
 1006|       |
 1007|  16.1k|  for(const Cell *cell = first_cell; cell; cell = cell->next)
  ------------------
  |  Branch (1007:38): [True: 8.08k, False: 8.08k]
  ------------------
 1008|  8.08k|    cr_create_at_level_trailed(cell->first, 0);
 1009|       |
 1010|  8.08k|  cr_max_level = 0;
 1011|  8.08k|}
_ZN5bliss9Partition7cr_freeEv:
 1016|  8.08k|{
 1017|  8.08k|  delete[] cr_cells; cr_cells = nullptr;
 1018|  8.08k|  delete[] cr_levels; cr_levels = nullptr;
 1019|       |
 1020|  8.08k|  cr_created_trail.clear();
 1021|  8.08k|  cr_splitted_level_trail.clear();
 1022|  8.08k|  cr_bt_info.clear();
 1023|  8.08k|  cr_max_level = 0;
 1024|       |
 1025|  8.08k|  cr_enabled = false;
 1026|  8.08k|}
_ZN5bliss9Partition14cr_split_levelEjRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
 1032|  97.5k|{
 1033|  97.5k|  assert(cr_enabled);
  ------------------
  |  Branch (1033:3): [True: 97.5k, False: 0]
  ------------------
 1034|  97.5k|  assert(level <= cr_max_level);
  ------------------
  |  Branch (1034:3): [True: 97.5k, False: 0]
  ------------------
 1035|  97.5k|  cr_levels[++cr_max_level] = 0;
 1036|  97.5k|  cr_splitted_level_trail.push_back(level);
 1037|       |
 1038|   207k|  for(unsigned int i = 0; i < splitted_cells.size(); i++)
  ------------------
  |  Branch (1038:27): [True: 109k, False: 97.5k]
  ------------------
 1039|   109k|    {
 1040|   109k|      const unsigned int cell_index = splitted_cells[i];
 1041|   109k|      assert(cell_index < N);
  ------------------
  |  Branch (1041:7): [True: 109k, False: 0]
  ------------------
 1042|   109k|      CRCell& cr_cell = cr_cells[cell_index];
 1043|   109k|      assert(cr_cell.level == level);
  ------------------
  |  Branch (1043:7): [True: 109k, False: 0]
  ------------------
 1044|   109k|      cr_cell.detach();
 1045|   109k|      cr_create_at_level(cell_index, cr_max_level);
 1046|   109k|    }
 1047|       |
 1048|  97.5k|  return cr_max_level;
 1049|  97.5k|}
_ZN5bliss9Partition22cr_get_backtrack_pointEv:
 1054|  9.59M|{
 1055|  9.59M|  assert(cr_enabled);
  ------------------
  |  Branch (1055:3): [True: 9.59M, False: 0]
  ------------------
 1056|  9.59M|  CR_BTInfo info;
 1057|  9.59M|  info.created_trail_index = cr_created_trail.size();
 1058|  9.59M|  info.splitted_level_trail_index = cr_splitted_level_trail.size();
 1059|  9.59M|  cr_bt_info.push_back(info);
 1060|  9.59M|  return cr_bt_info.size()-1;
 1061|  9.59M|}
_ZN5bliss9Partition23cr_goto_backtrack_pointEj:
 1066|  5.17M|{
 1067|  5.17M|  assert(cr_enabled);
  ------------------
  |  Branch (1067:3): [True: 5.17M, False: 0]
  ------------------
 1068|  5.17M|  assert(btpoint < cr_bt_info.size());
  ------------------
  |  Branch (1068:3): [True: 5.17M, False: 0]
  ------------------
 1069|  10.6M|  while(cr_created_trail.size() > cr_bt_info[btpoint].created_trail_index)
  ------------------
  |  Branch (1069:9): [True: 5.50M, False: 5.17M]
  ------------------
 1070|  5.50M|    {
 1071|  5.50M|      const unsigned int cell_index = cr_created_trail.back();
 1072|  5.50M|      cr_created_trail.pop_back();
 1073|  5.50M|      CRCell& cr_cell = cr_cells[cell_index];
 1074|  5.50M|      assert(cr_cell.level != UINT_MAX);
  ------------------
  |  Branch (1074:7): [True: 5.50M, False: 0]
  ------------------
 1075|  5.50M|      assert(cr_cell.prev_next_ptr);
  ------------------
  |  Branch (1075:7): [True: 5.50M, False: 0]
  ------------------
 1076|  5.50M|      cr_cell.detach();
 1077|  5.50M|    }
 1078|       |
 1079|  5.26M|  while(cr_splitted_level_trail.size() >
  ------------------
  |  Branch (1079:9): [True: 91.9k, False: 5.17M]
  ------------------
 1080|  5.26M|        cr_bt_info[btpoint].splitted_level_trail_index)
 1081|  91.9k|    {
 1082|  91.9k|      const unsigned int dest_level = cr_splitted_level_trail.back();
 1083|  91.9k|      cr_splitted_level_trail.pop_back();
 1084|  91.9k|      assert(cr_max_level > 0);
  ------------------
  |  Branch (1084:7): [True: 91.9k, False: 0]
  ------------------
 1085|  91.9k|      assert(dest_level < cr_max_level);
  ------------------
  |  Branch (1085:7): [True: 91.9k, False: 0]
  ------------------
 1086|   193k|      while(cr_levels[cr_max_level]) {
  ------------------
  |  Branch (1086:13): [True: 101k, False: 91.9k]
  ------------------
 1087|   101k|        CRCell *cr_cell = cr_levels[cr_max_level];
 1088|   101k|        cr_cell->detach();
 1089|   101k|        cr_create_at_level(cr_cell - cr_cells, dest_level);
 1090|   101k|      }
 1091|  91.9k|      cr_max_level--;
 1092|  91.9k|    }
 1093|  5.17M|  cr_bt_info.resize(btpoint);
 1094|  5.17M|}
_ZN5bliss9Partition18cr_create_at_levelEjj:
 1100|  5.76M|{
 1101|  5.76M|  assert(cr_enabled);
  ------------------
  |  Branch (1101:3): [True: 5.76M, False: 0]
  ------------------
 1102|  5.76M|  assert(cell_index < N);
  ------------------
  |  Branch (1102:3): [True: 5.76M, False: 0]
  ------------------
 1103|  5.76M|  assert(level < N);
  ------------------
  |  Branch (1103:3): [True: 5.76M, False: 0]
  ------------------
 1104|  5.76M|  CRCell& cr_cell = cr_cells[cell_index];
 1105|  5.76M|  assert(cr_cell.level == UINT_MAX);
  ------------------
  |  Branch (1105:3): [True: 5.76M, False: 0]
  ------------------
 1106|  5.76M|  assert(cr_cell.next == 0);
  ------------------
  |  Branch (1106:3): [True: 5.76M, False: 0]
  ------------------
 1107|  5.76M|  assert(cr_cell.prev_next_ptr == 0);
  ------------------
  |  Branch (1107:3): [True: 5.76M, False: 0]
  ------------------
 1108|  5.76M|  if(cr_levels[level])
  ------------------
  |  Branch (1108:6): [True: 5.57M, False: 190k]
  ------------------
 1109|  5.57M|    cr_levels[level]->prev_next_ptr = &(cr_cell.next);
 1110|  5.76M|  cr_cell.next = cr_levels[level];
 1111|  5.76M|  cr_levels[level] = &cr_cell;
 1112|  5.76M|  cr_cell.prev_next_ptr = &cr_levels[level];
 1113|  5.76M|  cr_cell.level = level;
 1114|  5.76M|}
_ZN5bliss9Partition26cr_create_at_level_trailedEjj:
 1120|  5.55M|{
 1121|  5.55M|  assert(cr_enabled);
  ------------------
  |  Branch (1121:3): [True: 5.55M, False: 0]
  ------------------
 1122|  5.55M|  cr_create_at_level(cell_index, level);
 1123|  5.55M|  cr_created_trail.push_back(cell_index);
 1124|  5.55M|}

_ZNK5bliss9Partition4Cell7is_unitEv:
   73|  31.3M|    bool is_unit() const {return(length == 1); }
_ZNK5bliss9Partition4Cell21is_in_splitting_queueEv:
   75|   768k|    bool is_in_splitting_queue() const {return(in_splitting_queue); }
_ZNK5bliss9Partition8get_cellEj:
  160|  27.3M|  Cell* get_cell(const unsigned int e) const {
  161|  27.3M|    assert(e < N);
  ------------------
  |  Branch (161:5): [True: 27.3M, False: 0]
  ------------------
  162|  27.3M|    return element_to_cell_map[e];
  163|  27.3M|  }
_ZNK5bliss9Partition11is_discreteEv:
  180|  19.0M|  bool is_discrete() const {return(free_cells == 0); }
_ZNK5bliss9Partition18nof_discrete_cellsEv:
  182|  13.7M|  unsigned int nof_discrete_cells() const {return(discrete_cell_count); }
_ZN5bliss9Partition6CRCell6detachEv:
  223|  5.71M|    void detach() {
  224|  5.71M|      if(next)
  ------------------
  |  Branch (224:10): [True: 5.44M, False: 276k]
  ------------------
  225|  5.44M|        next->prev_next_ptr = prev_next_ptr;
  226|  5.71M|      *(prev_next_ptr) = next;
  227|       |      level = UINT_MAX;
  228|  5.71M|      next = 0;
  229|  5.71M|      prev_next_ptr = 0;
  230|  5.71M|    }
_ZN5bliss9Partition19splitting_queue_popEv:
  273|  6.10M|{
  274|  6.10M|  assert(!splitting_queue.is_empty());
  ------------------
  |  Branch (274:3): [True: 6.10M, False: 0]
  ------------------
  275|  6.10M|  Cell* const cell = splitting_queue.pop_front();
  276|  6.10M|  assert(cell->in_splitting_queue);
  ------------------
  |  Branch (276:3): [True: 6.10M, False: 0]
  ------------------
  277|  6.10M|  cell->in_splitting_queue = false;
  278|  6.10M|  return cell;
  279|  6.10M|}
_ZNK5bliss9Partition24splitting_queue_is_emptyEv:
  283|  10.8M|{
  284|  10.8M|  return splitting_queue.is_empty();
  285|  10.8M|}
_ZNK5bliss9Partition12cr_get_levelEj:
  290|  10.0M|{
  291|  10.0M|  assert(cr_enabled);
  ------------------
  |  Branch (291:3): [True: 10.0M, False: 0]
  ------------------
  292|  10.0M|  assert(cell_index < N);
  ------------------
  |  Branch (292:3): [True: 10.0M, False: 0]
  ------------------
  293|  10.0M|  assert(cr_cells[cell_index].level != UINT_MAX);
  ------------------
  |  Branch (293:3): [True: 10.0M, False: 0]
  ------------------
  294|  10.0M|  return(cr_cells[cell_index].level);
  295|  10.0M|}

_ZN5bliss5StatsC2Ev:
   64|  8.11k|  Stats() { reset(); }
_ZN5bliss5Stats5resetEv:
   53|  16.2k|  {
   54|  16.2k|    group_size.assign(1);
   55|  16.2k|    group_size_approx = 1.0;
   56|  16.2k|    nof_nodes = 0;
   57|  16.2k|    nof_leaf_nodes = 0;
   58|  16.2k|    nof_bad_nodes = 0;
   59|  16.2k|    nof_canupdates = 0;
   60|  16.2k|    nof_generators = 0;
   61|  16.2k|    max_level = 0;
   62|  16.2k|  }
_ZNK5bliss5Stats13get_max_levelEv:
   82|  8.11k|  unsigned long int get_max_level() const {return max_level;}
_ZNK5bliss5Stats13get_nof_nodesEv:
   72|  8.11k|  long unsigned int get_nof_nodes() const {return nof_nodes;}
_ZNK5bliss5Stats18get_nof_leaf_nodesEv:
   74|  8.11k|  long unsigned int get_nof_leaf_nodes() const {return nof_leaf_nodes;}
_ZNK5bliss5Stats17get_nof_bad_nodesEv:
   76|  8.11k|  long unsigned int get_nof_bad_nodes() const {return nof_bad_nodes;}
_ZNK5bliss5Stats18get_nof_canupdatesEv:
   78|  8.11k|  long unsigned int get_nof_canupdates() const {return nof_canupdates;}
_ZNK5bliss5Stats18get_nof_generatorsEv:
   80|  8.11k|  long unsigned int get_nof_generators() const {return nof_generators;}
_ZNK5bliss5Stats14get_group_sizeEv:
   67|  8.11k|  const BigNum& get_group_size() const {return group_size;}

_ZN5bliss11UintSeqHash6updateEj:
   97|   182k|{
   98|   182k|  i++;
   99|   445k|  while(i > 0)
  ------------------
  |  Branch (99:9): [True: 263k, False: 182k]
  ------------------
  100|   263k|    {
  101|   263k|      h ^= rtab[i & 0xff];
  102|   263k|#if 1
  103|   263k|      const unsigned int b = (h & 0x80000000) >> 31;
  104|   263k|      i = i >> 8;
  105|   263k|      h = (h << 1) | b;
  106|       |#else
  107|       |      const unsigned int b = h & 0x80000000;
  108|       |      h = h << 1;
  109|       |      if(b != 0)
  110|       |        h++;
  111|       |      i = i >> 8;
  112|       |#endif
  113|   263k|    }
  114|   182k|}

_ZN5bliss11UintSeqHashC2Ev:
   33|  6.60M|  UintSeqHash() {h = 0; }
_ZN5bliss11UintSeqHashC2ERKS0_:
   34|  8.75M|  UintSeqHash(const UintSeqHash &other) {h = other.h; }
_ZN5bliss11UintSeqHashaSERKS0_:
   35|  6.50M|  UintSeqHash& operator=(const UintSeqHash &other) {h = other.h; return *this; }
_ZN5bliss11UintSeqHash5resetEv:
   38|  4.75M|  void reset() {h = 0; }
_ZNK5bliss11UintSeqHash9get_valueEv:
   44|  75.7k|  unsigned int get_value() const {return h; }
_ZNK5bliss11UintSeqHash3cmpERKS0_:
   49|  10.4M|  int cmp(const UintSeqHash &other) const {
   50|  10.4M|    return (h < other.h)?-1:((h == other.h)?0:1);
  ------------------
  |  Branch (50:12): [True: 0, False: 10.4M]
  |  Branch (50:30): [True: 10.4M, False: 0]
  ------------------
   51|  10.4M|  }

igraph_get_edgelist:
  327|  2.95k|igraph_error_t igraph_get_edgelist(const igraph_t *graph, igraph_vector_int_t *res, igraph_bool_t bycol) {
  328|  2.95k|    return igraph_edges(graph, igraph_ess_all(IGRAPH_EDGEORDER_ID), res, bycol);
  329|  2.95k|}

igraph_invert_permutation:
   39|  66.6k|igraph_error_t igraph_invert_permutation(const igraph_vector_int_t *permutation, igraph_vector_int_t *inverse) {
   40|  66.6k|    const igraph_int_t n = igraph_vector_int_size(permutation);
   41|       |
   42|  66.6k|    IGRAPH_CHECK(igraph_vector_int_resize(inverse, n));
  ------------------
  |  |  656|  66.6k|    do { \
  |  |  657|  66.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  66.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
   43|  66.6k|    igraph_vector_int_fill(inverse, -1);
   44|       |
   45|  3.56M|    for (igraph_int_t i = 0; i < n; i++) {
  ------------------
  |  Branch (45:30): [True: 3.49M, False: 66.6k]
  ------------------
   46|  3.49M|        igraph_int_t j = VECTOR(*permutation)[i];
  ------------------
  |  |   60|  3.49M|#define VECTOR(v) ((v).stor_begin)
  ------------------
   47|  3.49M|        if (j < 0 || j >= n) {
  ------------------
  |  Branch (47:13): [True: 0, False: 3.49M]
  |  Branch (47:22): [True: 0, False: 3.49M]
  ------------------
   48|      0|            IGRAPH_ERROR("Invalid index in permutation vector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   49|      0|        }
   50|  3.49M|        if (VECTOR(*inverse)[j] != -1) {
  ------------------
  |  |   60|  3.49M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (50:13): [True: 0, False: 3.49M]
  ------------------
   51|       |            /* This element of 'inverse' has already been set, 'j' is a duplicate value. */
   52|      0|            IGRAPH_ERROR("Duplicate entry in permutation vector.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   53|      0|        }
   54|  3.49M|        VECTOR(*inverse)[j] = i;
  ------------------
  |  |   60|  3.49M|#define VECTOR(v) ((v).stor_begin)
  ------------------
   55|  3.49M|    }
   56|       |
   57|  66.6k|    return IGRAPH_SUCCESS;
   58|  66.6k|}
igraph_permute_vertices:
   81|  66.6k|                                       const igraph_vector_int_t *permutation) {
   82|       |
   83|  66.6k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
   84|  66.6k|    igraph_int_t no_of_edges = igraph_ecount(graph);
   85|  66.6k|    igraph_vector_int_t edges;
   86|  66.6k|    igraph_vector_int_t index;
   87|  66.6k|    igraph_int_t p;
   88|       |
   89|  66.6k|    if (igraph_vector_int_size(permutation) != no_of_nodes) {
  ------------------
  |  Branch (89:9): [True: 0, False: 66.6k]
  ------------------
   90|      0|        IGRAPH_ERROR("Permute vertices: invalid permutation vector size.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   91|      0|    }
   92|       |
   93|  66.6k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index, no_of_nodes);
  ------------------
  |  |  119|  66.6k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  66.6k|    do { \
  |  |  |  |  657|  66.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  66.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  66.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  66.6k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  66.6k|    do { \
  |  |  |  |  604|  66.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  66.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  66.6k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  66.6k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  |  |  608|  66.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  66.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
   94|       |
   95|       |    /* Also checks that 'permutation' is valid: */
   96|  66.6k|    IGRAPH_CHECK(igraph_invert_permutation(permutation, &index));
  ------------------
  |  |  656|  66.6k|    do { \
  |  |  657|  66.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  66.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
   97|       |
   98|  66.6k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&edges, no_of_edges * 2);
  ------------------
  |  |  119|  66.6k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  66.6k|    do { \
  |  |  |  |  657|  66.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  66.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  66.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  66.6k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  66.6k|    do { \
  |  |  |  |  604|  66.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  66.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  66.6k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  66.6k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  |  |  608|  66.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  66.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
   99|       |
  100|  66.6k|    p = 0;
  101|  1.01M|    for (igraph_int_t i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (101:30): [True: 951k, False: 66.6k]
  ------------------
  102|   951k|        VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |  115|   951k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  103|   951k|        VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |  128|   951k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   951k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  104|   951k|    }
  105|       |
  106|  66.6k|    IGRAPH_CHECK(igraph_create(res, &edges, no_of_nodes, igraph_is_directed(graph)));
  ------------------
  |  |  656|  66.6k|    do { \
  |  |  657|  66.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  66.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  66.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
  107|  66.6k|    IGRAPH_FINALLY(igraph_destroy, res);
  ------------------
  |  |  603|  66.6k|    do { \
  |  |  604|  66.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  66.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  66.6k|         * incorrect destructor function with the pointer */ \
  |  |  607|  66.6k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 66.6k]
  |  |  ------------------
  |  |  608|  66.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  66.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 66.6k]
  |  |  ------------------
  ------------------
  108|       |
  109|       |    /* Attributes */
  110|  66.6k|    if (graph->attr) {
  ------------------
  |  Branch (110:9): [True: 0, False: 66.6k]
  ------------------
  111|      0|        igraph_vector_int_t vtypes;
  112|      0|        IGRAPH_CHECK(igraph_i_attribute_copy(res, graph, true, /* vertex= */ false, true));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  113|      0|        IGRAPH_VECTOR_INT_INIT_FINALLY(&vtypes, 0);
  ------------------
  |  |  119|      0|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|      0|    do { \
  |  |  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|      0|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|      0|    do { \
  |  |  |  |  604|      0|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|      0|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|      0|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|      0|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  608|      0|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 0]
  |  |  ------------------
  ------------------
  114|      0|        IGRAPH_CHECK(igraph_i_attribute_get_info(graph, 0, 0, 0, &vtypes, 0, 0));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  115|      0|        if (igraph_vector_int_size(&vtypes) != 0) {
  ------------------
  |  Branch (115:13): [True: 0, False: 0]
  ------------------
  116|      0|            IGRAPH_CHECK(igraph_i_attribute_permute_vertices(graph, res, permutation));
  ------------------
  |  |  656|      0|    do { \
  |  |  657|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      0|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  117|      0|        }
  118|      0|        igraph_vector_int_destroy(&vtypes);
  119|      0|        IGRAPH_FINALLY_CLEAN(1);
  120|      0|    }
  121|       |
  122|  66.6k|    igraph_vector_int_destroy(&index);
  123|  66.6k|    igraph_vector_int_destroy(&edges);
  124|  66.6k|    IGRAPH_FINALLY_CLEAN(3); /* +1 for res */
  125|       |
  126|  66.6k|    return IGRAPH_SUCCESS;
  127|  66.6k|}

igraph_has_multiple:
  176|  5.60k|igraph_error_t igraph_has_multiple(const igraph_t *graph, igraph_bool_t *res) {
  177|  5.60k|    igraph_int_t vc = igraph_vcount(graph);
  178|  5.60k|    igraph_int_t ec = igraph_ecount(graph);
  179|  5.60k|    igraph_bool_t directed = igraph_is_directed(graph);
  180|       |
  181|  5.60k|    IGRAPH_RETURN_IF_CACHED_BOOL(graph, IGRAPH_PROP_HAS_MULTI, res);
  ------------------
  |  |   97|  5.60k|    do { \
  |  |   98|  5.60k|        if (igraph_i_property_cache_has((graphptr), (prop))) { \
  |  |  ------------------
  |  |  |  Branch (98:13): [True: 0, False: 5.60k]
  |  |  ------------------
  |  |   99|      0|            *(resptr) = igraph_i_property_cache_get_bool((graphptr), (prop)); \
  |  |  100|      0|            return IGRAPH_SUCCESS; \
  |  |  101|      0|        } \
  |  |  102|  5.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (102:14): [Folded, False: 5.60k]
  |  |  ------------------
  ------------------
  182|       |
  183|  5.60k|    if (vc == 0 || ec == 0) {
  ------------------
  |  Branch (183:9): [True: 22, False: 5.58k]
  |  Branch (183:20): [True: 0, False: 5.58k]
  ------------------
  184|     22|        *res = false;
  185|  5.58k|    } else {
  186|  5.58k|        igraph_vector_int_t neis;
  187|  5.58k|        igraph_int_t i, j, n;
  188|  5.58k|        igraph_bool_t found = false;
  189|  5.58k|        IGRAPH_VECTOR_INT_INIT_FINALLY(&neis, 0);
  ------------------
  |  |  119|  5.58k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  5.58k|    do { \
  |  |  |  |  657|  5.58k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  5.58k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  5.58k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.58k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  5.58k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 5.58k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  5.58k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  5.58k|    do { \
  |  |  |  |  604|  5.58k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  5.58k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  5.58k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  5.58k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 5.58k]
  |  |  |  |  ------------------
  |  |  |  |  608|  5.58k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  5.58k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 5.58k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 5.58k]
  |  |  ------------------
  ------------------
  190|   214k|        for (i = 0; i < vc && !found; i++) {
  ------------------
  |  Branch (190:21): [True: 208k, False: 5.15k]
  |  Branch (190:31): [True: 208k, False: 428]
  ------------------
  191|   208k|            IGRAPH_CHECK(igraph_neighbors(
  ------------------
  |  |  656|   208k|    do { \
  |  |  657|   208k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   208k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   208k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 208k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|   208k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 208k]
  |  |  ------------------
  ------------------
  192|   208k|                graph, &neis, i, IGRAPH_OUT, IGRAPH_LOOPS, IGRAPH_MULTIPLE
  193|   208k|            ));
  194|   208k|            n = igraph_vector_int_size(&neis);
  195|   257k|            for (j = 1; j < n; j++) {
  ------------------
  |  Branch (195:25): [True: 49.2k, False: 208k]
  ------------------
  196|  49.2k|                if (VECTOR(neis)[j - 1] == VECTOR(neis)[j]) {
  ------------------
  |  |   60|  49.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              if (VECTOR(neis)[j - 1] == VECTOR(neis)[j]) {
  ------------------
  |  |   60|  49.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (196:21): [True: 1.23k, False: 48.0k]
  ------------------
  197|       |                    /* If the graph is undirected, loop edges appear twice in the neighbor
  198|       |                     * list, so check the next item as well */
  199|  1.23k|                    if (directed) {
  ------------------
  |  Branch (199:25): [True: 21, False: 1.20k]
  ------------------
  200|       |                        /* Directed, so this is a real multiple edge */
  201|     21|                        found = true; break;
  202|  1.20k|                    } else if (VECTOR(neis)[j - 1] != i) {
  ------------------
  |  |   60|  1.20k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (202:32): [True: 404, False: 805]
  ------------------
  203|       |                        /* Undirected, but not a loop edge */
  204|    404|                        found = true; break;
  205|    805|                    } else if (j < n - 1 && VECTOR(neis)[j] == VECTOR(neis)[j + 1]) {
  ------------------
  |  |   60|    381|#define VECTOR(v) ((v).stor_begin)
  ------------------
                                  } else if (j < n - 1 && VECTOR(neis)[j] == VECTOR(neis)[j + 1]) {
  ------------------
  |  |   60|    381|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (205:32): [True: 381, False: 424]
  |  Branch (205:45): [True: 17, False: 364]
  ------------------
  206|       |                        /* Undirected, loop edge, multiple times */
  207|     17|                        found = true; break;
  208|     17|                    }
  209|  1.23k|                }
  210|  49.2k|            }
  211|   208k|        }
  212|  5.58k|        *res = found;
  213|  5.58k|        igraph_vector_int_destroy(&neis);
  214|  5.58k|        IGRAPH_FINALLY_CLEAN(1);
  215|  5.58k|    }
  216|       |
  217|  5.60k|    igraph_i_property_cache_set_bool_checked(graph, IGRAPH_PROP_HAS_MULTI, *res);
  218|       |
  219|  5.60k|    return IGRAPH_SUCCESS;
  220|  5.60k|}

igraph_rng_default:
  188|   122k|igraph_rng_t *igraph_rng_default(void) {
  189|   122k|    return igraph_i_rng_default_ptr;
  190|   122k|}
igraph_rng_seed:
  260|  2.81k|igraph_error_t igraph_rng_seed(igraph_rng_t *rng, igraph_uint_t seed) {
  261|  2.81k|    const igraph_rng_type_t *type = rng->type;
  262|  2.81k|    IGRAPH_CHECK(type->seed(rng->state, seed));
  ------------------
  |  |  656|  2.81k|    do { \
  |  |  657|  2.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  2.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.81k]
  |  |  ------------------
  ------------------
  263|  2.81k|    rng->is_seeded = true;
  264|  2.81k|    return IGRAPH_SUCCESS;
  265|  2.81k|}
igraph_rng_bits:
  277|   119k|igraph_int_t igraph_rng_bits(const igraph_rng_t* rng) {
  278|   119k|    return rng->type->bits;
  279|   119k|}
igraph_rng_get_integer:
  593|   119k|) {
  594|   119k|    const igraph_rng_type_t *type = rng->type;
  595|   119k|    igraph_uint_t range;
  596|       |
  597|   119k|    assert(h >= l);
  ------------------
  |  Branch (597:5): [True: 0, False: 119k]
  |  Branch (597:5): [True: 119k, False: 0]
  ------------------
  598|       |
  599|   119k|    if (h == l) {
  ------------------
  |  Branch (599:9): [True: 0, False: 119k]
  ------------------
  600|      0|        return l;
  601|      0|    }
  602|       |
  603|   119k|    if (type->get_int) {
  ------------------
  |  Branch (603:9): [True: 0, False: 119k]
  ------------------
  604|      0|        return type->get_int(rng->state, l, h);
  605|      0|    }
  606|       |
  607|   119k|    if (IGRAPH_UNLIKELY(l == IGRAPH_INTEGER_MIN && h == IGRAPH_INTEGER_MAX)) {
  ------------------
  |  |  612|   119k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  ------------------
  |  |  |  Branch (612:32): [True: 0, False: 119k]
  |  |  |  Branch (612:52): [True: 0, False: 119k]
  |  |  |  Branch (612:52): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  608|       |        /* Full uint range is needed, we can just grab a random number from
  609|       |         * the uint range and cast it to a signed integer */
  610|      0|        return (igraph_int_t) igraph_i_rng_get_uint(rng);
  611|   119k|    } else if (l >= 0 || h < 0) {
  ------------------
  |  Branch (611:16): [True: 119k, False: 0]
  |  Branch (611:26): [True: 0, False: 0]
  ------------------
  612|       |        /* this is okay, (h - l) will not overflow an igraph_int_t */
  613|   119k|        range = (igraph_uint_t)(h - l) + 1;
  614|   119k|    } else {
  615|       |        /* (h - l) could potentially overflow so we need to play it safe. If we
  616|       |         * are here, l < 0 and h >= 0 so we can cast -l into an igraph_uint_t
  617|       |         * safely and do the subtraction that way */
  618|      0|        range = ((igraph_uint_t)(h)) + ((igraph_uint_t)(-l)) + 1;
  619|      0|    }
  620|       |
  621|   119k|    return l + igraph_i_rng_get_uint_bounded(rng, range);
  622|   119k|}
random.c:igraph_i_rng_get_random_bits:
  336|   119k|static igraph_uint_t igraph_i_rng_get_random_bits(igraph_rng_t *rng, uint8_t bits) {
  337|   119k|    const igraph_rng_type_t *type = rng->type;
  338|   119k|    igraph_int_t rng_bitwidth = igraph_rng_bits(rng);
  339|   119k|    igraph_uint_t result;
  340|       |
  341|   119k|    if (rng_bitwidth >= bits) {
  ------------------
  |  Branch (341:9): [True: 119k, False: 0]
  ------------------
  342|       |        /* keep the high bits as RNGs sometimes tend to have lower entropy in
  343|       |         * low bits than in high bits */
  344|   119k|        result = type->get(rng->state) >> (rng_bitwidth - bits);
  345|   119k|    } else {
  346|      0|        result = 0;
  347|      0|        do {
  348|      0|            result = (result << rng_bitwidth) + type->get(rng->state);
  349|      0|            bits -= rng_bitwidth;
  350|      0|        } while (bits > rng_bitwidth);
  ------------------
  |  Branch (350:18): [True: 0, False: 0]
  ------------------
  351|       |
  352|       |        /* and now the last piece */
  353|      0|        result = (result << bits) + (type->get(rng->state) >> (rng_bitwidth - bits));
  354|      0|    }
  355|       |
  356|   119k|    return result;
  357|   119k|}
random.c:igraph_i_rng_get_uint_bounded:
  532|   119k|static igraph_uint_t igraph_i_rng_get_uint_bounded(igraph_rng_t *rng, igraph_uint_t range) {
  533|       |    /* We must make this function behave the same way for range < 2^32 so igraph
  534|       |     * behaves the same way on 32-bit and 64-bit platforms as long as we stick
  535|       |     * to integers less than 2^32. This is to ensure that the unit tests are
  536|       |     * consistent */
  537|       |
  538|       |#if IGRAPH_INTEGER_SIZE == 32
  539|       |    return igraph_i_rng_get_uint32_bounded(rng, range);
  540|       |#else
  541|   119k|    if (range <= UINT32_MAX) {
  ------------------
  |  Branch (541:9): [True: 119k, False: 0]
  ------------------
  542|   119k|        return igraph_i_rng_get_uint32_bounded(rng, range);
  543|   119k|    } else {
  544|      0|        return igraph_i_rng_get_uint64_bounded(rng, range);
  545|      0|    }
  546|   119k|#endif
  547|   119k|}
random.c:igraph_i_rng_get_uint32_bounded:
  428|   119k|static uint32_t igraph_i_rng_get_uint32_bounded(igraph_rng_t *rng, uint32_t range) {
  429|       |    /* Debiased integer multiplication -- Lemire's method
  430|       |     * from https://www.pcg-random.org/posts/bounded-rands.html */
  431|   119k|    uint32_t x, l, t = (-range) % range;
  432|   119k|    uint64_t m;
  433|   119k|    do {
  434|   119k|        x = igraph_i_rng_get_uint32(rng);
  435|   119k|        m = (uint64_t)(x) * (uint64_t)(range);
  436|   119k|        l = (uint32_t)m;
  437|   119k|    } while (l < t);
  ------------------
  |  Branch (437:14): [True: 0, False: 119k]
  ------------------
  438|   119k|    return m >> 32;
  439|   119k|}
random.c:igraph_i_rng_get_uint32:
  416|   119k|static uint32_t igraph_i_rng_get_uint32(igraph_rng_t *rng) {
  417|   119k|    return igraph_i_rng_get_random_bits(rng, 32);
  418|   119k|}

rng_pcg32.c:igraph_rng_pcg32_seed:
   41|  2.81k|static igraph_error_t igraph_rng_pcg32_seed(void *vstate, igraph_uint_t seed) {
   42|  2.81k|    pcg32_random_t *state = (pcg32_random_t*) vstate;
   43|       |
   44|       |    /* PCG32 is seeded by a 64-bit state and a 64-bit sequence number (well, only
   45|       |     * 63 bits are used from the sequence number, though). Since the unified
   46|       |     * igraph RNG seeding interface provides a single igraph_uint_t as the seed,
   47|       |     * we use the seed to fill in the sequence number and use the state from
   48|       |     * PCG32_INITIALIZER */
   49|  2.81k|    if (seed == 0) {
  ------------------
  |  Branch (49:9): [True: 0, False: 2.81k]
  ------------------
   50|       |        /* If you feel the temptation to unify the two branches by running
   51|       |         * seed = pcg32_initializer.inc >> 1, don't.
   52|       |         * seed is an igraph_uint_t, so it can be 32-bit or 64-bit.
   53|       |         * pcg32_initializer.inc is always 64-bit.
   54|       |         */
   55|      0|        pcg32_srandom_r(state, pcg32_initializer.state, pcg32_initializer.inc >> 1);
  ------------------
  |  | 2398|      0|#define pcg32_srandom_r                 pcg_setseq_64_srandom_r
  ------------------
   56|  2.81k|    } else {
   57|  2.81k|        pcg32_srandom_r(state, pcg32_initializer.state, seed);
  ------------------
  |  | 2398|  2.81k|#define pcg32_srandom_r                 pcg_setseq_64_srandom_r
  ------------------
   58|  2.81k|    }
   59|       |
   60|  2.81k|    return IGRAPH_SUCCESS;
   61|  2.81k|}
rng_pcg32.c:igraph_rng_pcg32_get:
   36|   119k|static igraph_uint_t igraph_rng_pcg32_get(void *vstate) {
   37|   119k|    pcg32_random_t *state = (pcg32_random_t*) vstate;
   38|   119k|    return pcg32_random_r(state);
  ------------------
  |  | 2388|   119k|#define pcg32_random_r                  pcg_setseq_64_xsh_rr_32_random_r
  ------------------
   39|   119k|}

