_Z19check_automorphismsPK8igraph_t17igraph_bliss_sh_t:
   26|  2.05k|void check_automorphisms(const igraph_t *graph, igraph_bliss_sh_t heur) {
   27|  2.05k|    igraph_vector_int_list_t generators;
   28|  2.05k|    igraph_bliss_info_t info;
   29|       |
   30|  2.05k|    igraph_vector_int_list_init(&generators, 0);
   31|  2.05k|    igraph_automorphism_group_bliss(graph, nullptr, &generators, heur, &info);
   32|  2.05k|    igraph_free(info.group_size);
   33|  58.4k|    for (igraph_int_t i=0; i < igraph_vector_int_list_size(&generators); i++) {
  ------------------
  |  Branch (33:28): [True: 56.3k, False: 2.05k]
  ------------------
   34|  56.3k|        igraph_t mapped;
   35|  56.3k|        igraph_bool_t same;
   36|  56.3k|        igraph_permute_vertices(graph, &mapped, igraph_vector_int_list_get_ptr(&generators, i));
   37|  56.3k|        igraph_is_same_graph(graph, &mapped, &same);
   38|  56.3k|        IGRAPH_ASSERT(same);
  ------------------
  |  |  924|  56.3k|    do { \
  |  |  925|  56.3k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
   39|  56.3k|        igraph_destroy(&mapped);
   40|  56.3k|    }
   41|  2.05k|    igraph_vector_int_list_destroy(&generators);
   42|  2.05k|}
_Z17check_isomorphismPK8igraph_t17igraph_bliss_sh_t:
   48|  3.12k|void check_isomorphism(const igraph_t *graph, igraph_bliss_sh_t heur) {
   49|  3.12k|    igraph_t permuted, mapped;
   50|  3.12k|    igraph_vector_int_t perm, map21;
   51|  3.12k|    igraph_bliss_info_t info1, info2;
   52|  3.12k|    igraph_bool_t iso, same;
   53|       |
   54|  3.12k|    igraph_vector_int_init_range(&perm, 0, igraph_vcount(graph));
   55|  3.12k|    igraph_vector_int_shuffle(&perm);
   56|  3.12k|    igraph_permute_vertices(graph, &permuted, &perm);
   57|  3.12k|    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|  3.12k|    igraph_vector_int_init(&map21, 0);
   62|  3.12k|    igraph_isomorphic_bliss(graph, &permuted, nullptr, nullptr, &iso, nullptr, &map21, heur, &info1, &info2);
   63|  3.12k|    igraph_free(info1.group_size);
   64|  3.12k|    igraph_free(info2.group_size);
   65|  3.12k|    IGRAPH_ASSERT(iso);
  ------------------
  |  |  924|  3.12k|    do { \
  |  |  925|  3.12k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
   66|  3.12k|    igraph_permute_vertices(graph, &mapped, &map21);
   67|  3.12k|    igraph_is_same_graph(&mapped, &permuted, &same);
   68|  3.12k|    IGRAPH_ASSERT(same);
  ------------------
  |  |  924|  3.12k|    do { \
  |  |  925|  3.12k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
   69|  3.12k|    igraph_destroy(&mapped);
   70|  3.12k|    igraph_vector_int_destroy(&map21);
   71|       |
   72|  3.12k|    igraph_destroy(&permuted);
   73|  3.12k|}
LLVMFuzzerTestOneInput:
   75|  2.87k|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.87k|    igraph_t graph;
   80|  2.87k|    igraph_vector_int_t edges;
   81|       |
   82|  2.87k|    igraph_bliss_sh_t heurs[] = {
   83|  2.87k|        IGRAPH_BLISS_F, IGRAPH_BLISS_FL,
   84|  2.87k|        IGRAPH_BLISS_FS, IGRAPH_BLISS_FM,
   85|  2.87k|        IGRAPH_BLISS_FLM, IGRAPH_BLISS_FSM
   86|  2.87k|    };
   87|  2.87k|    igraph_bliss_sh_t heur;
   88|       |
   89|  2.87k|    const igraph_int_t max_vcount  = 64;
   90|       |
   91|  2.87k|    igraph_set_warning_handler(igraph_warning_handler_ignore);
   92|       |
   93|  2.87k|    if (Size % 2 == 0 || Size > 512+1 || Size < 1) {
  ------------------
  |  Branch (93:9): [True: 3, False: 2.87k]
  |  Branch (93:26): [True: 11, False: 2.86k]
  |  Branch (93:42): [True: 0, False: 2.86k]
  ------------------
   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.86k|    const size_t heur_count = sizeof(heurs) / sizeof(heurs[0]);
  100|  2.86k|    if (Data[0] >= 2 * heur_count) {
  ------------------
  |  Branch (100:9): [True: 5, False: 2.85k]
  ------------------
  101|      5|        return 0;
  102|      5|    }
  103|       |
  104|  2.85k|    heur = heurs[Data[0] % heur_count];
  105|  2.85k|    const bool isomorphism_mode = Data[0] >= heur_count;
  106|       |
  107|  2.85k|    igraph_vector_int_init(&edges, Size-1);
  108|  90.6k|    for (size_t i=0; i < Size-1; ++i) {
  ------------------
  |  Branch (108:22): [True: 87.7k, False: 2.85k]
  ------------------
  109|  87.7k|        VECTOR(edges)[i] = Data[i+1];
  ------------------
  |  |   60|  87.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  110|  87.7k|    }
  111|       |
  112|  2.85k|    igraph_rng_seed(igraph_rng_default(), 42);
  113|       |
  114|       |    /* Undirected */
  115|  2.85k|    if (igraph_create(&graph, &edges, 0, IGRAPH_UNDIRECTED) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (115:9): [True: 2.85k, False: 0]
  ------------------
  116|  2.85k|        if (igraph_vcount(&graph) <= max_vcount) {
  ------------------
  |  Branch (116:13): [True: 2.84k, False: 15]
  ------------------
  117|  2.84k|            igraph_bool_t multi;
  118|       |
  119|  2.84k|            igraph_has_multiple(&graph, &multi);
  120|       |
  121|       |            /* Bliss does not support multigraphs and the input is currently not checked */
  122|  2.84k|            if (! multi) {
  ------------------
  |  Branch (122:17): [True: 2.36k, False: 478]
  ------------------
  123|  2.36k|                if (isomorphism_mode) {
  ------------------
  |  Branch (123:21): [True: 1.40k, False: 960]
  ------------------
  124|  1.40k|                    check_isomorphism(&graph, heur);
  125|  1.40k|                } else {
  126|    960|                    check_automorphisms(&graph, heur);
  127|    960|                }
  128|  2.36k|            }
  129|  2.84k|        }
  130|       |
  131|  2.85k|        igraph_destroy(&graph);
  132|  2.85k|    }
  133|       |
  134|       |    /* Directed */
  135|  2.85k|    if (igraph_create(&graph, &edges, 0, IGRAPH_DIRECTED) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (135:9): [True: 2.85k, False: 0]
  ------------------
  136|  2.85k|        if (igraph_vcount(&graph) <= max_vcount) {
  ------------------
  |  Branch (136:13): [True: 2.84k, False: 15]
  ------------------
  137|  2.84k|            igraph_bool_t multi;
  138|       |
  139|  2.84k|            igraph_has_multiple(&graph, &multi);
  140|       |
  141|       |            /* Bliss does not support multigraphs and the input is currently not checked */
  142|  2.84k|            if (! multi) {
  ------------------
  |  Branch (142:17): [True: 2.82k, False: 15]
  ------------------
  143|  2.82k|                if (isomorphism_mode) {
  ------------------
  |  Branch (143:21): [True: 1.72k, False: 1.09k]
  ------------------
  144|  1.72k|                    check_isomorphism(&graph, heur);
  145|  1.72k|                } else {
  146|  1.09k|                    check_automorphisms(&graph, heur);
  147|  1.09k|                }
  148|  2.82k|            }
  149|  2.84k|        }
  150|       |
  151|  2.85k|        igraph_destroy(&graph);
  152|  2.85k|    }
  153|       |
  154|  2.85k|    igraph_vector_int_destroy(&edges);
  155|       |
  156|  2.85k|    IGRAPH_ASSERT(IGRAPH_FINALLY_STACK_EMPTY);
  ------------------
  |  |  924|  2.85k|    do { \
  |  |  925|  2.85k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.85k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.85k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  2.85k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.85k]
  |  |  ------------------
  ------------------
  157|       |
  158|  2.85k|    return 0;  // Non-zero return values are reserved for future use.
  159|  2.85k|}

igraph_create:
   54|  68.3k|                             igraph_int_t n, igraph_bool_t directed) {
   55|  68.3k|    igraph_bool_t has_edges = igraph_vector_int_size(edges) > 0;
   56|  68.3k|    igraph_int_t max;
   57|       |
   58|  68.3k|    if (igraph_vector_int_size(edges) % 2 != 0) {
  ------------------
  |  Branch (58:9): [True: 0, False: 68.3k]
  ------------------
   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|  68.3k|    if (!igraph_vector_int_isininterval(edges, 0, IGRAPH_VCOUNT_MAX-1)) {
  ------------------
  |  |  102|  68.3k|#define IGRAPH_VCOUNT_MAX (IGRAPH_INTEGER_MAX-1)
  |  |  ------------------
  |  |  |  |   74|  68.3k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (61:9): [True: 0, False: 68.3k]
  ------------------
   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|  68.3k|    max = has_edges ? igraph_vector_int_max(edges) + 1 : 0;
  ------------------
  |  Branch (67:11): [True: 68.2k, False: 40]
  ------------------
   68|       |
   69|  68.3k|    IGRAPH_CHECK(igraph_empty(graph, n, directed));
  ------------------
  |  |  656|  68.3k|    do { \
  |  |  657|  68.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  68.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  68.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 68.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  68.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 68.3k]
  |  |  ------------------
  ------------------
   70|  68.3k|    IGRAPH_FINALLY(igraph_destroy, graph);
  ------------------
  |  |  603|  68.3k|    do { \
  |  |  604|  68.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  68.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  68.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  68.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 68.3k]
  |  |  ------------------
  |  |  608|  68.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  68.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 68.3k]
  |  |  ------------------
  ------------------
   71|  68.3k|    if (has_edges) {
  ------------------
  |  Branch (71:9): [True: 68.2k, False: 40]
  ------------------
   72|  68.2k|        n = igraph_vcount(graph);
   73|  68.2k|        if (n < max) {
  ------------------
  |  Branch (73:13): [True: 5.69k, False: 62.5k]
  ------------------
   74|  5.69k|            IGRAPH_CHECK(igraph_add_vertices(graph, (max - n), 0));
  ------------------
  |  |  656|  5.69k|    do { \
  |  |  657|  5.69k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.69k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.69k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.69k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.69k]
  |  |  ------------------
  ------------------
   75|  5.69k|        }
   76|  68.2k|        IGRAPH_CHECK(igraph_add_edges(graph, edges, 0));
  ------------------
  |  |  656|  68.2k|    do { \
  |  |  657|  68.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  68.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  68.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 68.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|  68.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 68.2k]
  |  |  ------------------
  ------------------
   77|  68.2k|    }
   78|       |
   79|  68.3k|    IGRAPH_FINALLY_CLEAN(1);
   80|  68.3k|    return IGRAPH_SUCCESS;
   81|  68.3k|}

IGRAPH_FINALLY_REAL:
  320|  1.27M|void IGRAPH_FINALLY_REAL(void (*func)(void*), void* ptr) {
  321|  1.27M|    int no = igraph_i_finally_stack_size;
  322|  1.27M|    if (no < 0) {
  ------------------
  |  Branch (322:9): [True: 0, False: 1.27M]
  ------------------
  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.27M|    if (no >= (int) (sizeof(igraph_i_finally_stack) / sizeof(igraph_i_finally_stack[0]))) {
  ------------------
  |  Branch (327:9): [True: 0, False: 1.27M]
  ------------------
  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.27M|    igraph_i_finally_stack[no].ptr = ptr;
  333|  1.27M|    igraph_i_finally_stack[no].func = func;
  334|  1.27M|    igraph_i_finally_stack[no].level = igraph_i_finally_stack_level;
  335|  1.27M|    igraph_i_finally_stack_size++;
  336|  1.27M|}
IGRAPH_FINALLY_CLEAN:
  338|   436k|void IGRAPH_FINALLY_CLEAN(int minus) {
  339|   436k|    igraph_i_finally_stack_size -= minus;
  340|   436k|    if (igraph_i_finally_stack_size < 0) {
  ------------------
  |  Branch (340:9): [True: 0, False: 436k]
  ------------------
  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|   436k|}
IGRAPH_FINALLY_STACK_SIZE:
  359|  2.85k|int IGRAPH_FINALLY_STACK_SIZE(void) {
  360|  2.85k|    return igraph_i_finally_stack_size;
  361|  2.85k|}
IGRAPH_FINALLY_ENTER:
  377|  68.2k|void IGRAPH_FINALLY_ENTER(void) {
  378|  68.2k|    int no = igraph_i_finally_stack_size;
  379|       |    /* Level indices must always be in increasing order in the finally stack */
  380|  68.2k|    if (no > 0 && igraph_i_finally_stack[no-1].level > igraph_i_finally_stack_level) {
  ------------------
  |  Branch (380:9): [True: 68.2k, False: 0]
  |  Branch (380:19): [True: 0, False: 68.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|  68.2k|    igraph_i_finally_stack_level++;
  386|  68.2k|}
IGRAPH_FINALLY_EXIT:
  399|  68.2k|void IGRAPH_FINALLY_EXIT(void) {
  400|  68.2k|    igraph_i_finally_stack_level--;
  401|  68.2k|    if (igraph_i_finally_stack_level < 0) {
  ------------------
  |  Branch (401:9): [True: 0, False: 68.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|  68.2k|}
igraph_set_warning_handler:
  514|  2.87k|igraph_warning_handler_t *igraph_set_warning_handler(igraph_warning_handler_t *new_handler) {
  515|  2.87k|    igraph_warning_handler_t *previous_handler = igraph_i_warning_handler;
  516|  2.87k|    igraph_i_warning_handler = new_handler;
  517|  2.87k|    return previous_handler;
  518|  2.87k|}

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

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

igraph_vector_int_list_init:
  109|  2.05k|igraph_error_t FUNCTION(init)(TYPE *v, igraph_int_t size) {
  110|  2.05k|    igraph_int_t alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (110:31): [True: 0, False: 2.05k]
  ------------------
  111|  2.05k|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  2.05k|    do { \
  |  |  925|  2.05k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.05k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.05k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.05k]
  |  |  ------------------
  ------------------
  112|  2.05k|    v->stor_begin = IGRAPH_CALLOC(alloc_size, ITEM_TYPE);
  ------------------
  |  |   33|  2.05k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  4.11k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 2.05k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 2.05k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 2.05k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  113|  2.05k|    if (v->stor_begin == 0) {
  ------------------
  |  Branch (113:9): [True: 0, False: 2.05k]
  ------------------
  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.05k|    v->stor_end = v->stor_begin + alloc_size;
  117|  2.05k|    v->end = v->stor_begin + size;
  118|       |
  119|  2.05k|    IGRAPH_CHECK(INTERNAL_FUNCTION(init_slice)(v, v->stor_begin, v->end));
  ------------------
  |  |  656|  2.05k|    do { \
  |  |  657|  2.05k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.05k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.05k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.05k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.05k]
  |  |  ------------------
  ------------------
  120|       |
  121|  2.05k|    return IGRAPH_SUCCESS;
  122|  2.05k|}
igraph_vector_int_list_destroy:
  176|  2.05k|void FUNCTION(destroy)(TYPE *v) {
  177|  2.05k|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  2.05k|    do { \
  |  |  925|  2.05k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.05k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.05k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.05k]
  |  |  ------------------
  ------------------
  178|       |
  179|  2.05k|    if (v->stor_begin != 0) {
  ------------------
  |  Branch (179:9): [True: 2.05k, False: 0]
  ------------------
  180|  2.05k|        FUNCTION(clear)(v);
  ------------------
  |  |  139|  2.05k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  2.05k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  2.05k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  181|  2.05k|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  2.05k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  182|       |        v->stor_begin = NULL;
  183|  2.05k|    }
  184|  2.05k|}
igraph_vector_int_list_capacity:
  203|  8.49k|igraph_int_t FUNCTION(capacity)(const TYPE *v) {
  204|  8.49k|    return v->stor_end - v->stor_begin;
  205|  8.49k|}
igraph_vector_int_list_reserve:
  233|  8.49k|igraph_error_t FUNCTION(reserve)(TYPE *v, igraph_int_t capacity) {
  234|  8.49k|    igraph_int_t current_capacity;
  235|  8.49k|    ITEM_TYPE *tmp;
  ------------------
  |  |   31|  8.49k|    #define ITEM_TYPE BASE_VECTOR
  |  |  ------------------
  |  |  |  |   70|  8.49k|    #define BASE_VECTOR igraph_vector_int_t
  |  |  ------------------
  ------------------
  236|       |
  237|  8.49k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  8.49k|    do { \
  |  |  925|  8.49k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.49k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.49k]
  |  |  ------------------
  ------------------
  238|  8.49k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  8.49k|    do { \
  |  |  925|  8.49k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.49k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.49k]
  |  |  ------------------
  ------------------
  239|  8.49k|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  8.49k|    do { \
  |  |  925|  8.49k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.49k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.49k]
  |  |  ------------------
  ------------------
  240|       |
  241|  8.49k|    current_capacity = FUNCTION(capacity)(v);
  ------------------
  |  |  139|  8.49k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  8.49k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  8.49k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  242|       |
  243|  8.49k|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (243:9): [True: 0, False: 8.49k]
  ------------------
  244|      0|        return IGRAPH_SUCCESS;
  245|      0|    }
  246|       |
  247|  8.49k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, ITEM_TYPE);
  ------------------
  |  |   35|  8.49k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  16.9k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 8.49k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 8.49k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 8.49k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  248|  8.49k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for list.");
  ------------------
  |  |  709|  8.49k|    do { \
  |  |  710|  8.49k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  8.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.49k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  8.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 8.49k]
  |  |  ------------------
  ------------------
  249|       |
  250|  8.49k|    v->end = tmp + (v->end - v->stor_begin);
  251|  8.49k|    v->stor_begin = tmp;
  252|  8.49k|    v->stor_end = v->stor_begin + capacity;
  253|       |
  254|  8.49k|    return IGRAPH_SUCCESS;
  255|  8.49k|}
igraph_vector_int_list_size:
  287|  66.9k|igraph_int_t FUNCTION(size)(const TYPE *v) {
  288|  66.9k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  66.9k|    do { \
  |  |  925|  66.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  66.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  66.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 66.9k]
  |  |  ------------------
  ------------------
  289|  66.9k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  66.9k|    do { \
  |  |  925|  66.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  66.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 66.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  66.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 66.9k]
  |  |  ------------------
  ------------------
  290|  66.9k|    return v->end - v->stor_begin;
  291|  66.9k|}
igraph_vector_int_list_clear:
  357|  4.11k|void FUNCTION(clear)(TYPE *v) {
  358|  4.11k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  4.11k|    do { \
  |  |  925|  4.11k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.11k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.11k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.11k]
  |  |  ------------------
  ------------------
  359|  4.11k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  4.11k|    do { \
  |  |  925|  4.11k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.11k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.11k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.11k]
  |  |  ------------------
  ------------------
  360|  4.11k|    INTERNAL_FUNCTION(destroy_slice)(v, v->stor_begin, v->end);
  ------------------
  |  |  140|  4.11k|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  4.11k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  4.11k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  361|  4.11k|    v->end = v->stor_begin;
  362|  4.11k|}
igraph_vector_int_list_get_ptr:
  377|  56.3k|ITEM_TYPE *FUNCTION(get_ptr)(const TYPE *v, igraph_int_t pos) {
  378|  56.3k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  56.3k|    do { \
  |  |  925|  56.3k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
  379|  56.3k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  56.3k|    do { \
  |  |  925|  56.3k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
  380|  56.3k|    return v->stor_begin + pos;
  381|  56.3k|}
igraph_vector_int_list_push_back:
  585|  56.3k|igraph_error_t FUNCTION(push_back)(TYPE *v, ITEM_TYPE *e) {
  586|  56.3k|    IGRAPH_CHECK(INTERNAL_FUNCTION(expand_if_full)(v));
  ------------------
  |  |  656|  56.3k|    do { \
  |  |  657|  56.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  56.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
  587|  56.3k|    *(v->end) = *e;
  588|  56.3k|    v->end += 1;
  589|  56.3k|    return IGRAPH_SUCCESS;
  590|  56.3k|}
vector_list.c:igraph_i_vector_int_list_destroy_item:
 1057|  56.3k|static void INTERNAL_FUNCTION(destroy_item)(ITEM_TYPE *item) {
 1058|  56.3k|    ITEM_FUNCTION(destroy)(item);
  ------------------
  |  |   42|  56.3k|        #define ITEM_FUNCTION(f) CONCAT3(igraph_vector,SHORT,f)
  |  |  ------------------
  |  |  |  |   22|  56.3k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  56.3k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1059|  56.3k|}
vector_list.c:igraph_i_vector_int_list_init_slice:
 1065|  2.05k|static igraph_error_t INTERNAL_FUNCTION(init_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1066|  2.05k|    ITEM_TYPE *current;
  ------------------
  |  |   31|  2.05k|    #define ITEM_TYPE BASE_VECTOR
  |  |  ------------------
  |  |  |  |   70|  2.05k|    #define BASE_VECTOR igraph_vector_int_t
  |  |  ------------------
  ------------------
 1067|  2.05k|    igraph_error_t retval;
 1068|       |
 1069|  2.05k|    for (current = start; current < end; current++) {
  ------------------
  |  Branch (1069:27): [True: 0, False: 2.05k]
  ------------------
 1070|      0|        retval = INTERNAL_FUNCTION(init_item)(list, current);
  ------------------
  |  |  140|      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
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1071|      0|        if (retval) {
  ------------------
  |  Branch (1071:13): [True: 0, False: 0]
  ------------------
 1072|      0|            INTERNAL_FUNCTION(destroy_slice)(list, start, current);
  ------------------
  |  |  140|      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
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1073|      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]
  |  |  ------------------
  ------------------
 1074|      0|        }
 1075|      0|    }
 1076|       |
 1077|  2.05k|    return IGRAPH_SUCCESS;
 1078|  2.05k|}
vector_list.c:igraph_i_vector_int_list_destroy_slice:
 1080|  4.11k|static void INTERNAL_FUNCTION(destroy_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1081|  4.11k|    IGRAPH_UNUSED(list);
  ------------------
  |  |   30|  4.11k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1082|  60.4k|    for (; start < end; start++) {
  ------------------
  |  Branch (1082:12): [True: 56.3k, False: 4.11k]
  ------------------
 1083|  56.3k|        INTERNAL_FUNCTION(destroy_item)(start);
  ------------------
  |  |  140|  56.3k|        #define INTERNAL_FUNCTION(c) CONCAT4(igraph_i_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  56.3k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  56.3k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1084|  56.3k|    }
 1085|  4.11k|}
vector_list.c:igraph_i_vector_int_list_expand_if_full:
 1091|  56.3k|static igraph_error_t INTERNAL_FUNCTION(expand_if_full)(TYPE *v) {
 1092|  56.3k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  56.3k|    do { \
  |  |  925|  56.3k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
 1093|  56.3k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  56.3k|    do { \
  |  |  925|  56.3k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  56.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 56.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  56.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 56.3k]
  |  |  ------------------
  ------------------
 1094|       |
 1095|  56.3k|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (1095:9): [True: 8.49k, False: 47.8k]
  ------------------
 1096|  8.49k|        igraph_int_t old_size = FUNCTION(size)(v);
  ------------------
  |  |  139|  8.49k|        #define FUNCTION(c) CONCAT4(igraph_vector,SHORT,list,c)
  |  |  ------------------
  |  |  |  |   24|  8.49k|#define CONCAT4(a,b,c,d) CONCAT4x(a,b,c,d)
  |  |  |  |  ------------------
  |  |  |  |  |  |   23|  8.49k|#define CONCAT4x(a,b,c,d) a ## _ ## b ## _ ## c ## _ ## d
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1097|  8.49k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  8.49k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  8.49k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1097:33): [True: 8.49k, False: 0]
  ------------------
 1098|  8.49k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|  8.49k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1098:13): [True: 0, False: 8.49k]
  ------------------
 1099|      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]
  |  |  ------------------
  ------------------
 1100|      0|        }
 1101|  8.49k|        if (new_size == 0) {
  ------------------
  |  Branch (1101:13): [True: 0, False: 8.49k]
  ------------------
 1102|      0|            new_size = 1;
 1103|      0|        }
 1104|  8.49k|        IGRAPH_CHECK(FUNCTION(reserve)(v, new_size));
  ------------------
  |  |  656|  8.49k|    do { \
  |  |  657|  8.49k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  8.49k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  8.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.49k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  8.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 8.49k]
  |  |  ------------------
  ------------------
 1105|  8.49k|    }
 1106|       |
 1107|  56.3k|    return IGRAPH_SUCCESS;
 1108|  56.3k|}

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

igraph_vector_int_init:
  134|  1.05M|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  1.05M|    igraph_int_t alloc_size;
  136|  1.05M|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  1.05M|    do { \
  |  |  925|  1.05M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.05M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.05M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  137|  1.05M|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 634k, False: 421k]
  ------------------
  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.05M|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  1.05M|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  2.11M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 1.05M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 1.05M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 1.05M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.05M|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  1.05M|    do { \
  |  |  710|  1.05M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.05M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.05M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  145|  1.05M|    v->stor_end = v->stor_begin + alloc_size;
  146|  1.05M|    v->end = v->stor_begin + size;
  147|       |
  148|  1.05M|    return IGRAPH_SUCCESS;
  149|  1.05M|}
igraph_vector_int_destroy:
  408|  1.05M|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  1.05M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.05M|    do { \
  |  |  925|  1.05M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.05M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.05M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  1.05M|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 1.05M, False: 0]
  ------------------
  413|  1.05M|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  1.05M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  1.05M|    }
  416|  1.05M|}
igraph_vector_int_capacity:
  436|  1.21M|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|  1.21M|    return v->stor_end - v->stor_begin;
  438|  1.21M|}
igraph_vector_int_reserve:
  468|  1.21M|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|  1.21M|    igraph_int_t current_capacity;
  470|  1.21M|    BASE *tmp;
  ------------------
  |  |   69|  1.21M|    #define BASE igraph_int_t
  ------------------
  471|       |
  472|  1.21M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.21M|    do { \
  |  |  925|  1.21M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.21M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.21M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.21M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.21M]
  |  |  ------------------
  ------------------
  473|  1.21M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.21M|    do { \
  |  |  925|  1.21M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.21M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.21M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.21M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.21M]
  |  |  ------------------
  ------------------
  474|  1.21M|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  1.21M|    do { \
  |  |  925|  1.21M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.21M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.21M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.21M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.21M]
  |  |  ------------------
  ------------------
  475|       |
  476|  1.21M|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  181|  1.21M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  1.21M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  1.21M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|  1.21M|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 818k, False: 398k]
  ------------------
  479|   818k|        return IGRAPH_SUCCESS;
  480|   818k|    }
  481|       |
  482|   398k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|   398k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|   797k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 398k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 398k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 398k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|   398k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|   398k|    do { \
  |  |  710|   398k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   398k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 398k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   398k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 398k]
  |  |  ------------------
  ------------------
  484|       |
  485|   398k|    v->end = tmp + (v->end - v->stor_begin);
  486|   398k|    v->stor_begin = tmp;
  487|   398k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|   398k|    return IGRAPH_SUCCESS;
  490|   398k|}
igraph_vector_int_empty:
  503|  68.2k|igraph_bool_t FUNCTION(igraph_vector, empty)(const TYPE(igraph_vector) *v) {
  504|  68.2k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  68.2k|    do { \
  |  |  925|  68.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  68.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 68.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  68.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 68.2k]
  |  |  ------------------
  ------------------
  505|  68.2k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  68.2k|    do { \
  |  |  925|  68.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  68.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 68.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  68.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 68.2k]
  |  |  ------------------
  ------------------
  506|  68.2k|    return v->stor_begin == v->end;
  507|  68.2k|}
igraph_vector_int_size:
  522|  1.74M|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|  1.74M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.74M|    do { \
  |  |  925|  1.74M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.74M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.74M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.74M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.74M]
  |  |  ------------------
  ------------------
  524|  1.74M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.74M|    do { \
  |  |  925|  1.74M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.74M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.74M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.74M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.74M]
  |  |  ------------------
  ------------------
  525|  1.74M|    return v->end - v->stor_begin;
  526|  1.74M|}
igraph_vector_int_push_back:
  573|  1.95M|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|  1.95M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.95M|    do { \
  |  |  925|  1.95M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.95M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.95M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.95M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.95M]
  |  |  ------------------
  ------------------
  575|  1.95M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.95M|    do { \
  |  |  925|  1.95M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.95M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.95M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.95M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.95M]
  |  |  ------------------
  ------------------
  576|       |
  577|  1.95M|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 0, False: 1.95M]
  ------------------
  578|       |        /* full, allocate more storage */
  579|      0|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  181|      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;
  ------------------
  |  |   74|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (580:33): [True: 0, False: 0]
  ------------------
  581|      0|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|      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|  1.95M|    *(v->end) = e;
  591|  1.95M|    v->end += 1;
  592|       |
  593|  1.95M|    return IGRAPH_SUCCESS;
  594|  1.95M|}
igraph_vector_int_null:
  725|   285k|void FUNCTION(igraph_vector, null)(TYPE(igraph_vector) *v) {
  726|   285k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   285k|    do { \
  |  |  925|   285k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   285k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 285k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   285k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 285k]
  |  |  ------------------
  ------------------
  727|   285k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   285k|    do { \
  |  |  925|   285k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   285k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 285k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   285k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 285k]
  |  |  ------------------
  ------------------
  728|   285k|    if (FUNCTION(igraph_vector, size)(v) > 0) {
  ------------------
  |  |  181|   285k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   285k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   285k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (728:9): [True: 285k, False: 20]
  ------------------
  729|   285k|        memset(v->stor_begin, 0, sizeof(BASE) * FUNCTION(igraph_vector, size)(v));
  ------------------
  |  |  181|   285k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   285k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   285k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  730|   285k|    }
  731|   285k|}
igraph_vector_int_fill:
  745|  62.6k|void FUNCTION(igraph_vector, fill)(TYPE(igraph_vector) *v, BASE e) {
  746|  62.6k|    BASE *ptr;
  ------------------
  |  |   69|  62.6k|    #define BASE igraph_int_t
  ------------------
  747|  62.6k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  62.6k|    do { \
  |  |  925|  62.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
  748|  62.6k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  62.6k|    do { \
  |  |  925|  62.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 62.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|  62.6k|#if defined(BASE_INT)
  754|  62.6k|    if (e == 0) {
  ------------------
  |  Branch (754:9): [True: 0, False: 62.6k]
  ------------------
  755|      0|        FUNCTION(igraph_vector, null)(v);
  ------------------
  |  |  181|      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|  62.6k|    if (e == -1) {
  ------------------
  |  Branch (758:9): [True: 62.6k, False: 0]
  ------------------
  759|  3.32M|        for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (759:35): [True: 3.26M, False: 62.6k]
  ------------------
  760|  3.26M|            *ptr = -1;
  761|  3.26M|        }
  762|  62.6k|        return;
  763|  62.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|   932k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   932k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   932k|    do { \
  |  |  925|   932k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   932k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 932k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   932k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 932k]
  |  |  ------------------
  ------------------
 1266|   932k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   932k|    do { \
  |  |  925|   932k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   932k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 932k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   932k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 932k]
  |  |  ------------------
  ------------------
 1267|   932k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   932k|    do { \
  |  |  657|   932k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   932k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   932k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 932k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   932k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 932k]
  |  |  ------------------
  ------------------
 1268|   932k|    v->end = v->stor_begin + new_size;
 1269|   932k|    return IGRAPH_SUCCESS;
 1270|   932k|}
igraph_vector_int_max:
 1327|  68.2k|BASE FUNCTION(igraph_vector, max)(const TYPE(igraph_vector) *v) {
 1328|  68.2k|    BASE max;
  ------------------
  |  |   69|  68.2k|    #define BASE igraph_int_t
  ------------------
 1329|  68.2k|    BASE *ptr;
  ------------------
  |  |   69|  68.2k|    #define BASE igraph_int_t
  ------------------
 1330|  68.2k|    IGRAPH_ASSERT(!FUNCTION(igraph_vector, empty)(v));
  ------------------
  |  |  924|  68.2k|    do { \
  |  |  925|  68.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  68.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 68.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  68.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 68.2k]
  |  |  ------------------
  ------------------
 1331|  68.2k|    max = *(v->stor_begin);
 1332|       |#if defined(BASE_IGRAPH_REAL)
 1333|       |    if (isnan(max)) { return max; }; /* Result is NaN */
 1334|       |#endif
 1335|  68.2k|    ptr = v->stor_begin + 1;
 1336|  1.95M|    while (ptr < v->end) {
  ------------------
  |  Branch (1336:12): [True: 1.89M, False: 68.2k]
  ------------------
 1337|  1.89M|        if ((*ptr) > max) {
  ------------------
  |  Branch (1337:13): [True: 151k, False: 1.73M]
  ------------------
 1338|   151k|            max = *ptr;
 1339|   151k|        }
 1340|       |#if defined(BASE_IGRAPH_REAL)
 1341|       |        else if (isnan(*ptr))
 1342|       |            return *ptr; /* Result is NaN */
 1343|       |#endif
 1344|  1.89M|        ptr++;
 1345|  1.89M|    }
 1346|  68.2k|    return max;
 1347|  68.2k|}
igraph_vector_int_init_range:
 1691|  3.12k|igraph_error_t FUNCTION(igraph_vector, init_range)(TYPE(igraph_vector) *v, BASE start, BASE end) {
 1692|  3.12k|    BASE *p;
  ------------------
  |  |   69|  3.12k|    #define BASE igraph_int_t
  ------------------
 1693|  3.12k|    IGRAPH_CHECK(FUNCTION(igraph_vector, init)(v, (end - start)));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
 1694|       |
 1695|   132k|    for (p = v->stor_begin; p < v->end; p++) {
  ------------------
  |  Branch (1695:29): [True: 129k, False: 3.12k]
  ------------------
 1696|   129k|        *p = start;
 1697|   129k|        start = start + ONE;
  ------------------
  |  |   75|   129k|    #define ONE 1
  ------------------
 1698|   129k|    }
 1699|       |
 1700|  3.12k|    return IGRAPH_SUCCESS;
 1701|  3.12k|}
igraph_vector_int_isininterval:
 1837|   136k|        BASE high) {
 1838|   136k|    BASE *ptr;
  ------------------
  |  |   69|   136k|    #define BASE igraph_int_t
  ------------------
 1839|   136k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   136k|    do { \
  |  |  925|   136k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   136k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 136k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   136k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 136k]
  |  |  ------------------
  ------------------
 1840|   136k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   136k|    do { \
  |  |  925|   136k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   136k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 136k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   136k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 136k]
  |  |  ------------------
  ------------------
 1841|  4.05M|    for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (1841:31): [True: 3.91M, False: 136k]
  ------------------
 1842|       |        /* Note that the following is not equivalent to *ptr < low || *ptr > high
 1843|       |         * when *ptr is NaN! */
 1844|  3.91M|        if (!(*ptr >= low && *ptr <= high)) {
  ------------------
  |  Branch (1844:15): [True: 3.91M, False: 0]
  |  Branch (1844:30): [True: 3.91M, False: 0]
  ------------------
 1845|      0|            return 0;
 1846|      0|        }
 1847|  3.91M|    }
 1848|   136k|    return 1;
 1849|   136k|}
igraph_vector_int_update:
 2529|  3.12k|                                    const TYPE(igraph_vector) *from) {
 2530|  3.12k|    igraph_int_t n = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  181|  3.12k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  3.12k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  3.12k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|  3.12k|    IGRAPH_CHECK(FUNCTION(igraph_vector, resize)(to, n));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
 2532|  3.12k|    memcpy(to->stor_begin, from->stor_begin, sizeof(BASE)*n);
 2533|  3.12k|    return IGRAPH_SUCCESS;
 2534|  3.12k|}
igraph_vector_int_shuffle:
 2673|  3.12k|void FUNCTION(igraph_vector, shuffle)(TYPE(igraph_vector) *v) {
 2674|  3.12k|    igraph_int_t n = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  181|  3.12k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  3.12k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  3.12k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2675|  3.12k|    igraph_int_t k;
 2676|  3.12k|    BASE dummy;
  ------------------
  |  |   69|  3.12k|    #define BASE igraph_int_t
  ------------------
 2677|       |
 2678|   129k|    while (n > 1) {
  ------------------
  |  Branch (2678:12): [True: 126k, False: 3.12k]
  ------------------
 2679|   126k|        k = RNG_INTEGER(0, n - 1);
  ------------------
  |  |  152|   126k|#define RNG_INTEGER(l,h) (igraph_rng_get_integer(igraph_rng_default(),(l),(h)))
  ------------------
 2680|   126k|        n--;
 2681|   126k|        dummy = VECTOR(*v)[n];
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2682|   126k|        VECTOR(*v)[n] = VECTOR(*v)[k];
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(*v)[n] = VECTOR(*v)[k];
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2683|   126k|        VECTOR(*v)[k] = dummy;
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2684|   126k|    }
 2685|  3.12k|}

igraph_i_attribute_init:
  617|  68.3k|) {
  618|  68.3k|    graph->attr = NULL;
  619|  68.3k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (619:9): [True: 0, False: 68.3k]
  ------------------
  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|  68.3k|    return IGRAPH_SUCCESS;
  626|  68.3k|}
igraph_i_attribute_destroy:
  628|  68.3k|void igraph_i_attribute_destroy(igraph_t *graph) {
  629|  68.3k|    if (graph->attr && igraph_i_attribute_table) {
  ------------------
  |  Branch (629:9): [True: 0, False: 68.3k]
  |  Branch (629:24): [True: 0, False: 0]
  ------------------
  630|      0|        igraph_i_attribute_table->destroy(graph);
  631|      0|    }
  632|       |    graph->attr = NULL;
  633|  68.3k|}

igraph_i_property_cache_init:
   32|  68.3k|igraph_error_t igraph_i_property_cache_init(igraph_i_property_cache_t *cache) {
   33|  68.3k|    IGRAPH_STATIC_ASSERT(IGRAPH_PROP_I_SIZE <= 32);
  ------------------
  |  |   68|  68.3k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
   34|       |
   35|  68.3k|    memset(cache->value, 0, sizeof(cache->value));
   36|  68.3k|    cache->known = 0;
   37|  68.3k|    return IGRAPH_SUCCESS;
   38|  68.3k|}
igraph_i_property_cache_destroy:
   53|  68.3k|void igraph_i_property_cache_destroy(igraph_i_property_cache_t *cache) {
   54|  68.3k|    IGRAPH_UNUSED(cache);
  ------------------
  |  |   30|  68.3k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
   55|       |    /* Nothing to do */
   56|  68.3k|}
igraph_i_property_cache_has:
   84|  5.68k|igraph_bool_t igraph_i_property_cache_has(const igraph_t *graph, igraph_cached_property_t prop) {
   85|  5.68k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.68k|    do { \
  |  |  925|  5.68k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.68k]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.68k]
  |  |  ------------------
  ------------------
   86|  5.68k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (86:5): [True: 0, False: 5.68k]
  |  Branch (86:5): [True: 5.68k, False: 0]
  ------------------
   87|  5.68k|    return graph->cache->known & (1 << prop);
   88|  5.68k|}
igraph_i_property_cache_set_bool:
   97|  5.68k|void igraph_i_property_cache_set_bool(const igraph_t *graph, igraph_cached_property_t prop, igraph_bool_t value) {
   98|  5.68k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.68k|    do { \
  |  |  925|  5.68k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.68k]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.68k]
  |  |  ------------------
  ------------------
   99|  5.68k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (99:5): [True: 0, False: 5.68k]
  |  Branch (99:5): [True: 5.68k, 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.68k|    graph->cache->value[prop] = value;
  104|  5.68k|    graph->cache->known |= (1 << prop);
  105|  5.68k|}
igraph_i_property_cache_set_bool_checked:
  123|  5.68k|void igraph_i_property_cache_set_bool_checked(const igraph_t *graph, igraph_cached_property_t prop, igraph_bool_t value) {
  124|  5.68k|    IGRAPH_ASSERT(prop >= 0 && prop < IGRAPH_PROP_I_SIZE);
  ------------------
  |  |  924|  5.68k|    do { \
  |  |  925|  5.68k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.68k]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  |  Branch (612:52): [True: 5.68k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.68k]
  |  |  ------------------
  ------------------
  125|  5.68k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (125:5): [True: 0, False: 5.68k]
  |  Branch (125:5): [True: 5.68k, 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.68k|    if (graph->cache->known & (1 << prop)) {
  ------------------
  |  Branch (129:9): [True: 0, False: 5.68k]
  ------------------
  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.68k|    } else {
  132|  5.68k|        igraph_i_property_cache_set_bool(graph, prop, value);
  133|  5.68k|    }
  134|  5.68k|}
igraph_i_property_cache_invalidate_conditionally:
  182|   142k|) {
  183|   142k|    uint32_t invalidate = ~keep_always;
  184|   142k|    uint32_t mask;
  185|   142k|    uint32_t maybe_keep;
  186|   142k|    igraph_bool_t cached_value;
  187|       |
  188|   142k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (188:5): [True: 0, False: 142k]
  |  Branch (188:5): [True: 142k, 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|   142k|    maybe_keep = graph->cache->known & invalidate & (keep_when_false | keep_when_true);
  197|       |
  198|   142k|    if (maybe_keep) {
  ------------------
  |  Branch (198:9): [True: 0, False: 142k]
  ------------------
  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|   142k|    graph->cache->known &= ~invalidate;
  216|   142k|}

igraph_es_all:
  924|  3.12k|                  igraph_edgeorder_type_t order) {
  925|  3.12k|    switch (order) {
  926|  3.12k|    case IGRAPH_EDGEORDER_ID:
  ------------------
  |  Branch (926:5): [True: 3.12k, False: 0]
  ------------------
  927|  3.12k|        es->type = IGRAPH_ES_ALL;
  928|  3.12k|        break;
  929|      0|    case IGRAPH_EDGEORDER_FROM:
  ------------------
  |  Branch (929:5): [True: 0, False: 3.12k]
  ------------------
  930|      0|        es->type = IGRAPH_ES_ALLFROM;
  931|      0|        break;
  932|      0|    case IGRAPH_EDGEORDER_TO:
  ------------------
  |  Branch (932:5): [True: 0, False: 3.12k]
  ------------------
  933|      0|        es->type = IGRAPH_ES_ALLTO;
  934|      0|        break;
  935|      0|    default:
  ------------------
  |  Branch (935:5): [True: 0, False: 3.12k]
  ------------------
  936|      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]
  |  |  ------------------
  ------------------
  937|      0|        break;
  938|  3.12k|    }
  939|  3.12k|    return IGRAPH_SUCCESS;
  940|  3.12k|}
igraph_ess_all:
  956|  3.12k|igraph_es_t igraph_ess_all(igraph_edgeorder_type_t order) {
  957|  3.12k|    igraph_es_t es;
  958|  3.12k|    igraph_es_all(&es, order); /* cannot fail */
  959|  3.12k|    return es;
  960|  3.12k|}
igraph_eit_create:
 1928|  3.12k|igraph_error_t igraph_eit_create(const igraph_t *graph, igraph_es_t es, igraph_eit_t *eit) {
 1929|  3.12k|    switch (es.type) {
 1930|  3.12k|    case IGRAPH_ES_ALL:
  ------------------
  |  Branch (1930:5): [True: 3.12k, False: 0]
  ------------------
 1931|  3.12k|        eit->type = IGRAPH_EIT_RANGE;
 1932|  3.12k|        eit->pos = 0;
 1933|  3.12k|        eit->start = 0;
 1934|  3.12k|        eit->end = igraph_ecount(graph);
 1935|  3.12k|        break;
 1936|      0|    case IGRAPH_ES_ALLFROM:
  ------------------
  |  Branch (1936:5): [True: 0, False: 3.12k]
  ------------------
 1937|      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]
  |  |  ------------------
  ------------------
 1938|      0|        break;
 1939|      0|    case IGRAPH_ES_ALLTO:
  ------------------
  |  Branch (1939:5): [True: 0, False: 3.12k]
  ------------------
 1940|      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]
  |  |  ------------------
  ------------------
 1941|      0|        break;
 1942|      0|    case IGRAPH_ES_INCIDENT:
  ------------------
  |  Branch (1942:5): [True: 0, False: 3.12k]
  ------------------
 1943|      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]
  |  |  ------------------
  ------------------
 1944|      0|        break;
 1945|      0|    case IGRAPH_ES_NONE:
  ------------------
  |  Branch (1945:5): [True: 0, False: 3.12k]
  ------------------
 1946|      0|        eit->type = IGRAPH_EIT_RANGE;
 1947|      0|        eit->pos = 0;
 1948|      0|        eit->start = 0;
 1949|      0|        eit->end = 0;
 1950|      0|        break;
 1951|      0|    case IGRAPH_ES_1:
  ------------------
  |  Branch (1951:5): [True: 0, False: 3.12k]
  ------------------
 1952|      0|        if (es.data.eid < 0 || es.data.eid >= igraph_ecount(graph)) {
  ------------------
  |  Branch (1952:13): [True: 0, False: 0]
  |  Branch (1952:32): [True: 0, False: 0]
  ------------------
 1953|      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]
  |  |  ------------------
  ------------------
 1954|      0|        }
 1955|      0|        eit->type = IGRAPH_EIT_RANGE;
 1956|      0|        eit->pos = es.data.eid;
 1957|      0|        eit->start = es.data.eid;
 1958|      0|        eit->end = es.data.eid + 1;
 1959|      0|        break;
 1960|      0|    case IGRAPH_ES_VECTOR:
  ------------------
  |  Branch (1960:5): [True: 0, False: 3.12k]
  ------------------
 1961|      0|    case IGRAPH_ES_VECTORPTR:
  ------------------
  |  Branch (1961:5): [True: 0, False: 3.12k]
  ------------------
 1962|      0|        eit->type = IGRAPH_EIT_VECTORPTR;
 1963|      0|        eit->pos = 0;
 1964|      0|        eit->start = 0;
 1965|      0|        eit->vec = es.data.vecptr;
 1966|      0|        eit->end = igraph_vector_int_size(eit->vec);
 1967|      0|        if (!igraph_vector_int_isininterval(eit->vec, 0, igraph_ecount(graph) - 1)) {
  ------------------
  |  Branch (1967:13): [True: 0, False: 0]
  ------------------
 1968|      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]
  |  |  ------------------
  ------------------
 1969|      0|        }
 1970|      0|        break;
 1971|      0|    case IGRAPH_ES_RANGE:
  ------------------
  |  Branch (1971:5): [True: 0, False: 3.12k]
  ------------------
 1972|      0|        {
 1973|      0|            igraph_int_t no_of_edges = igraph_ecount(graph);
 1974|      0|            if (es.data.range.start < 0 ||
  ------------------
  |  Branch (1974:17): [True: 0, False: 0]
  ------------------
 1975|      0|                es.data.range.start > no_of_edges ||
  ------------------
  |  Branch (1975:17): [True: 0, False: 0]
  ------------------
 1976|      0|                (no_of_edges > 0 && es.data.range.start == no_of_edges)) {
  ------------------
  |  Branch (1976:18): [True: 0, False: 0]
  |  Branch (1976:37): [True: 0, False: 0]
  ------------------
 1977|      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]
  |  |  ------------------
  ------------------
 1978|      0|            }
 1979|      0|            if (es.data.range.end < 0 || es.data.range.end > no_of_edges) {
  ------------------
  |  Branch (1979:17): [True: 0, False: 0]
  |  Branch (1979:42): [True: 0, False: 0]
  ------------------
 1980|      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]
  |  |  ------------------
  ------------------
 1981|      0|            }
 1982|      0|        }
 1983|      0|        eit->type = IGRAPH_EIT_RANGE;
 1984|      0|        eit->pos = es.data.range.start;
 1985|      0|        eit->start = es.data.range.start;
 1986|      0|        eit->end = es.data.range.end;
 1987|      0|        break;
 1988|      0|    case IGRAPH_ES_PAIRS:
  ------------------
  |  Branch (1988:5): [True: 0, False: 3.12k]
  ------------------
 1989|      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]
  |  |  ------------------
  ------------------
 1990|      0|        break;
 1991|      0|    case IGRAPH_ES_PATH:
  ------------------
  |  Branch (1991:5): [True: 0, False: 3.12k]
  ------------------
 1992|      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]
  |  |  ------------------
  ------------------
 1993|      0|        break;
 1994|      0|    case IGRAPH_ES_ALL_BETWEEN:
  ------------------
  |  Branch (1994:5): [True: 0, False: 3.12k]
  ------------------
 1995|      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]
  |  |  ------------------
  ------------------
 1996|      0|        break;
 1997|      0|    default:
  ------------------
  |  Branch (1997:5): [True: 0, False: 3.12k]
  ------------------
 1998|      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]
  |  |  ------------------
  ------------------
 1999|      0|        break;
 2000|  3.12k|    }
 2001|  3.12k|    return IGRAPH_SUCCESS;
 2002|  3.12k|}
igraph_eit_destroy:
 2014|  3.12k|void igraph_eit_destroy(const igraph_eit_t *eit) {
 2015|  3.12k|    switch (eit->type) {
 2016|  3.12k|    case IGRAPH_EIT_RANGE:
  ------------------
  |  Branch (2016:5): [True: 3.12k, False: 0]
  ------------------
 2017|  3.12k|    case IGRAPH_EIT_VECTORPTR:
  ------------------
  |  Branch (2017:5): [True: 0, False: 3.12k]
  ------------------
 2018|  3.12k|        break;
 2019|      0|    case IGRAPH_EIT_VECTOR:
  ------------------
  |  Branch (2019:5): [True: 0, False: 3.12k]
  ------------------
 2020|      0|        igraph_vector_int_destroy((igraph_vector_int_t*)eit->vec);
 2021|      0|        igraph_free((igraph_vector_int_t*)eit->vec);
 2022|      0|        break;
 2023|      0|    default:
  ------------------
  |  Branch (2023:5): [True: 0, False: 3.12k]
  ------------------
 2024|       |        /*     IGRAPH_ERROR("Cannot destroy iterator, unknown type", IGRAPH_EINVAL); */
 2025|      0|        break;
 2026|  3.12k|    }
 2027|  3.12k|}

igraph_empty:
   64|  68.3k|igraph_error_t igraph_empty(igraph_t *graph, igraph_int_t n, igraph_bool_t directed) {
   65|  68.3k|    return igraph_empty_attrs(graph, n, directed, 0);
   66|  68.3k|}
igraph_edges:
  173|  3.12k|) {
  174|  3.12k|    igraph_eit_t eit;
  175|  3.12k|    igraph_int_t n, ptr = 0, ptr2;
  176|       |
  177|  3.12k|    IGRAPH_CHECK(igraph_eit_create(graph, eids, &eit));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  178|  3.12k|    IGRAPH_FINALLY(igraph_eit_destroy, &eit);
  ------------------
  |  |  603|  3.12k|    do { \
  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  ------------------
  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  179|  3.12k|    n = IGRAPH_EIT_SIZE(eit);
  ------------------
  |  |  382|  3.12k|#define IGRAPH_EIT_SIZE(eit)  ((eit).end - (eit).start)
  ------------------
  180|  3.12k|    IGRAPH_CHECK(igraph_vector_int_resize(edges, n * 2));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  181|       |
  182|  3.12k|    if (bycol) {
  ------------------
  |  Branch (182:9): [True: 3.12k, False: 0]
  ------------------
  183|  3.12k|        ptr2 = n;
  184|  3.12k|        if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (184:13): [True: 1.72k, False: 1.40k]
  ------------------
  185|  30.2k|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|  30.2k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|  28.4k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (185:20): [True: 28.4k, False: 1.72k]
  ------------------
  186|  28.4k|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|  28.4k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 28.4k, False: 0]
  |  |  ------------------
  |  |  406|  28.4k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  187|  28.4k|                VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|  28.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|  28.4k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  28.4k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  188|  28.4k|                VECTOR(*edges)[ptr2++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|  28.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr2++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|  28.4k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  28.4k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  189|  28.4k|            }
  190|  1.72k|        } else {
  191|  23.6k|            for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  371|  23.6k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                          for (; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit)) {
  ------------------
  |  |  359|  22.2k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (191:20): [True: 22.2k, False: 1.40k]
  ------------------
  192|  22.2k|                igraph_int_t e = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|  22.2k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 22.2k, False: 0]
  |  |  ------------------
  |  |  406|  22.2k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  193|  22.2k|                VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr++] = IGRAPH_TO(graph, e);
  ------------------
  |  |  128|  22.2k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  194|  22.2k|                VECTOR(*edges)[ptr2++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*edges)[ptr2++] = IGRAPH_FROM(graph, e);
  ------------------
  |  |  115|  22.2k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  195|  22.2k|            }
  196|  1.40k|        }
  197|  3.12k|    } 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|  3.12k|    igraph_eit_destroy(&eit);
  214|  3.12k|    IGRAPH_FINALLY_CLEAN(1);
  215|       |
  216|  3.12k|    return IGRAPH_SUCCESS;
  217|  3.12k|}

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

igraph_automorphism_group_bliss:
  511|  2.05k|) {
  512|  2.05k|    IGRAPH_HANDLE_EXCEPTIONS(
  ------------------
  |  |   30|  2.05k|    IGRAPH_HANDLE_EXCEPTIONS_BEGIN; \
  |  |  ------------------
  |  |  |  |   21|  2.05k|    try {
  |  |  ------------------
  |  |   31|  26.7k|    code; \
  |  |  ------------------
  |  |  |  Branch (31:5): [Folded, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 2.05k]
  |  |  |  Branch (31:5): [True: 0, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 2.05k]
  |  |  |  Branch (31:5): [Folded, False: 2.05k]
  |  |  ------------------
  |  |   32|  8.23k|    IGRAPH_HANDLE_EXCEPTIONS_END;
  |  |  ------------------
  |  |  |  |   23|  2.05k|    } \
  |  |  |  |   24|  2.05k|    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.05k|    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.05k|    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.05k|    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.05k|        AbstractGraph *g = bliss_from_igraph(graph);
  514|  2.05k|        IGRAPH_FINALLY(bliss_free_graph, g);
  515|       |
  516|  2.05k|        IGRAPH_CHECK(bliss_set_sh(g, sh, igraph_is_directed(graph)));
  517|  2.05k|        IGRAPH_CHECK(bliss_set_colors(g, colors));
  518|       |
  519|  2.05k|        Stats stats;
  520|  2.05k|        igraph_vector_int_list_clear(generators);
  521|  2.05k|        AutCollector collector(generators);
  522|  2.05k|        AbortChecker checker;
  523|  2.05k|        g->find_automorphisms(stats, collector, checker);
  524|  2.05k|        if (checker.aborted) {
  525|  2.05k|            return IGRAPH_INTERRUPTED;
  526|  2.05k|        }
  527|  2.05k|        IGRAPH_CHECK(bliss_info_to_igraph(info, stats));
  528|       |
  529|  2.05k|        delete g;
  530|  2.05k|        IGRAPH_FINALLY_CLEAN(1);
  531|  2.05k|    );
  532|       |
  533|  2.05k|    return IGRAPH_SUCCESS;
  534|  2.05k|}
igraph_isomorphic_bliss:
  604|  3.12k|                            igraph_bliss_info_t *info1, igraph_bliss_info_t *info2) {
  605|       |
  606|  3.12k|    igraph_int_t no_of_nodes = igraph_vcount(graph1);
  607|  3.12k|    igraph_int_t no_of_edges = igraph_ecount(graph1);
  608|  3.12k|    igraph_vector_int_t perm1, perm2;
  609|  3.12k|    igraph_vector_int_t vmap12, *mymap12 = &vmap12;
  610|  3.12k|    igraph_vector_int_t from, to, index;
  611|  3.12k|    igraph_vector_int_t from2, to2, index2;
  612|  3.12k|    igraph_bool_t directed;
  613|  3.12k|    igraph_int_t i, j;
  614|       |
  615|  3.12k|    *iso = 0;
  616|  3.12k|    if (info1) {
  ------------------
  |  Branch (616:9): [True: 3.12k, False: 0]
  ------------------
  617|  3.12k|        info1->nof_nodes = info1->nof_leaf_nodes = info1->nof_bad_nodes =
  618|  3.12k|                               info1->nof_canupdates = info1->max_level = info1->nof_generators = 0;
  619|  3.12k|        info1->group_size = 0;
  620|  3.12k|    }
  621|  3.12k|    if (info2) {
  ------------------
  |  Branch (621:9): [True: 3.12k, False: 0]
  ------------------
  622|  3.12k|        info2->nof_nodes = info2->nof_leaf_nodes = info2->nof_bad_nodes =
  623|  3.12k|                               info2->nof_canupdates = info2->max_level = info2->nof_generators = 0;
  624|  3.12k|        info2->group_size = 0;
  625|  3.12k|    }
  626|       |
  627|  3.12k|    directed = igraph_is_directed(graph1);
  628|  3.12k|    if (igraph_is_directed(graph2) != directed) {
  ------------------
  |  Branch (628:9): [True: 0, False: 3.12k]
  ------------------
  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|  3.12k|    if ((colors1 == NULL || colors2 == NULL) && colors1 != colors2) {
  ------------------
  |  Branch (632:10): [True: 3.12k, False: 0]
  |  Branch (632:29): [True: 0, False: 0]
  |  Branch (632:49): [True: 0, False: 3.12k]
  ------------------
  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|  3.12k|    if (no_of_nodes != igraph_vcount(graph2) ||
  ------------------
  |  Branch (637:9): [True: 0, False: 3.12k]
  ------------------
  638|  3.12k|        no_of_edges != igraph_ecount(graph2)) {
  ------------------
  |  Branch (638:9): [True: 0, False: 3.12k]
  ------------------
  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|  3.12k|    if (map12) {
  ------------------
  |  Branch (648:9): [True: 0, False: 3.12k]
  ------------------
  649|      0|        mymap12 = map12;
  650|  3.12k|    } else {
  651|  3.12k|        IGRAPH_VECTOR_INT_INIT_FINALLY(mymap12, 0);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  652|  3.12k|    }
  653|       |
  654|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&perm1, no_of_nodes);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  655|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&perm2, no_of_nodes);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  656|       |
  657|  3.12k|    IGRAPH_CHECK(igraph_i_canonical_permutation_bliss(graph1, colors1, &perm1, sh, info1));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  658|  3.12k|    IGRAPH_CHECK(igraph_i_canonical_permutation_bliss(graph2, colors2, &perm2, sh, info2));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  659|       |
  660|  3.12k|    IGRAPH_CHECK(igraph_vector_int_resize(mymap12, no_of_nodes));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  661|       |
  662|       |    /* The inverse of perm2 is produced in mymap12 */
  663|   132k|    for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (663:17): [True: 129k, False: 3.12k]
  ------------------
  664|   129k|        VECTOR(*mymap12)[ VECTOR(perm2)[i] ] = i;
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(*mymap12)[ VECTOR(perm2)[i] ] = i;
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  665|   129k|    }
  666|       |    /* Now we produce perm2^{-1} o perm1 in perm2 */
  667|   132k|    for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (667:17): [True: 129k, False: 3.12k]
  ------------------
  668|   129k|        VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(perm2)[i] = VECTOR(*mymap12)[ VECTOR(perm1)[i] ];
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  669|   129k|    }
  670|       |    /* Copy it to mymap12 */
  671|  3.12k|    IGRAPH_CHECK(igraph_vector_int_update(mymap12, &perm2));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  672|       |
  673|  3.12k|    igraph_vector_int_destroy(&perm1);
  674|  3.12k|    igraph_vector_int_destroy(&perm2);
  675|  3.12k|    IGRAPH_FINALLY_CLEAN(2);
  676|       |
  677|       |    /* Check isomorphism, we apply the permutation in mymap12 to graph1
  678|       |       and should get graph2 */
  679|       |
  680|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&from, no_of_edges);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  681|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&to, no_of_edges);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  682|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index, no_of_edges);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  683|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&from2, no_of_edges * 2);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  684|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&to2, no_of_edges);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  685|  3.12k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index2, no_of_edges);
  ------------------
  |  |  119|  3.12k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.12k|    do { \
  |  |  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.12k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.12k|    do { \
  |  |  |  |  604|  3.12k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.12k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.12k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.12k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.12k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.12k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  686|       |
  687|  53.8k|    for (i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (687:17): [True: 50.7k, False: 3.12k]
  ------------------
  688|  50.7k|        VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(from)[i] = VECTOR(*mymap12)[ IGRAPH_FROM(graph1, i) ];
  ------------------
  |  |  115|  50.7k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  689|  50.7k|        VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to)[i]   = VECTOR(*mymap12)[ IGRAPH_TO  (graph1, i) ];
  ------------------
  |  |  128|  50.7k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  690|  50.7k|        if (! directed && VECTOR(from)[i] < VECTOR(to)[i]) {
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (! directed && VECTOR(from)[i] < VECTOR(to)[i]) {
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (690:13): [True: 22.2k, False: 28.4k]
  |  Branch (690:27): [True: 7.87k, False: 14.3k]
  ------------------
  691|  7.87k|            igraph_int_t tmp = VECTOR(from)[i];
  ------------------
  |  |   60|  7.87k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  692|  7.87k|            VECTOR(from)[i] = VECTOR(to)[i];
  ------------------
  |  |   60|  7.87k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(from)[i] = VECTOR(to)[i];
  ------------------
  |  |   60|  7.87k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  693|  7.87k|            VECTOR(to)[i] = tmp;
  ------------------
  |  |   60|  7.87k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  694|  7.87k|        }
  695|  50.7k|    }
  696|  3.12k|    igraph_vector_int_pair_order(&from, &to, &index, no_of_nodes);
  697|       |
  698|  3.12k|    igraph_get_edgelist(graph2, &from2, /*bycol=*/ 1);
  699|  53.8k|    for (i = 0, j = no_of_edges; i < no_of_edges; i++, j++) {
  ------------------
  |  Branch (699:34): [True: 50.7k, False: 3.12k]
  ------------------
  700|  50.7k|        VECTOR(to2)[i] = VECTOR(from2)[j];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(to2)[i] = VECTOR(from2)[j];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  701|  50.7k|        if (! directed && VECTOR(from2)[i] < VECTOR(to2)[i]) {
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (! directed && VECTOR(from2)[i] < VECTOR(to2)[i]) {
  ------------------
  |  |   60|  22.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (701:13): [True: 22.2k, False: 28.4k]
  |  Branch (701:27): [True: 21.8k, False: 433]
  ------------------
  702|  21.8k|            igraph_int_t tmp = VECTOR(from2)[i];
  ------------------
  |  |   60|  21.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  703|  21.8k|            VECTOR(from2)[i] = VECTOR(to2)[i];
  ------------------
  |  |   60|  21.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(from2)[i] = VECTOR(to2)[i];
  ------------------
  |  |   60|  21.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  704|  21.8k|            VECTOR(to2)[i] = tmp;
  ------------------
  |  |   60|  21.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  705|  21.8k|        }
  706|  50.7k|    }
  707|  3.12k|    igraph_vector_int_resize(&from2, no_of_edges);
  708|  3.12k|    igraph_vector_int_pair_order(&from2, &to2, &index2, no_of_nodes);
  709|       |
  710|  3.12k|    *iso = 1;
  711|  53.8k|    for (i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (711:17): [True: 50.7k, False: 3.12k]
  ------------------
  712|  50.7k|        igraph_int_t i1 = VECTOR(index)[i];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  713|  50.7k|        igraph_int_t i2 = VECTOR(index2)[i];
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  714|  50.7k|        if (VECTOR(from)[i1] != VECTOR(from2)[i2] ||
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (VECTOR(from)[i1] != VECTOR(from2)[i2] ||
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (714:13): [True: 0, False: 50.7k]
  ------------------
  715|  50.7k|            VECTOR(to)[i1] != VECTOR(to2)[i2]) {
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(to)[i1] != VECTOR(to2)[i2]) {
  ------------------
  |  |   60|  50.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (715:13): [True: 0, False: 50.7k]
  ------------------
  716|      0|            *iso = 0;
  717|      0|            break;
  718|      0|        }
  719|  50.7k|    }
  720|       |
  721|       |    /* If the graphs are coloured, we also need to check that applying the
  722|       |       permutation mymap12 to colors1 gives colors2. */
  723|       |
  724|  3.12k|    if (*iso && colors1 != NULL) {
  ------------------
  |  Branch (724:9): [True: 3.12k, False: 0]
  |  Branch (724:17): [True: 0, False: 3.12k]
  ------------------
  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|  3.12k|    igraph_vector_int_destroy(&index2);
  734|  3.12k|    igraph_vector_int_destroy(&to2);
  735|  3.12k|    igraph_vector_int_destroy(&from2);
  736|  3.12k|    igraph_vector_int_destroy(&index);
  737|  3.12k|    igraph_vector_int_destroy(&to);
  738|  3.12k|    igraph_vector_int_destroy(&from);
  739|  3.12k|    IGRAPH_FINALLY_CLEAN(6);
  740|       |
  741|  3.12k|    if (*iso) {
  ------------------
  |  Branch (741:9): [True: 3.12k, False: 0]
  ------------------
  742|       |        /* The inverse of mymap12 */
  743|  3.12k|        if (map21) {
  ------------------
  |  Branch (743:13): [True: 3.12k, False: 0]
  ------------------
  744|  3.12k|            IGRAPH_CHECK(igraph_vector_int_resize(map21, no_of_nodes));
  ------------------
  |  |  656|  3.12k|    do { \
  |  |  657|  3.12k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.12k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.12k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.12k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  3.12k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.12k]
  |  |  ------------------
  ------------------
  745|   132k|            for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (745:25): [True: 129k, False: 3.12k]
  ------------------
  746|   129k|                VECTOR(*map21)[ VECTOR(*mymap12)[i] ] = i;
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              VECTOR(*map21)[ VECTOR(*mymap12)[i] ] = i;
  ------------------
  |  |   60|   129k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  747|   129k|            }
  748|  3.12k|        }
  749|  3.12k|    } 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|  3.12k|    if (!map12) {
  ------------------
  |  Branch (758:9): [True: 3.12k, False: 0]
  ------------------
  759|  3.12k|        igraph_vector_int_destroy(mymap12);
  760|  3.12k|        IGRAPH_FINALLY_CLEAN(1);
  761|  3.12k|    }
  762|       |
  763|  3.12k|    return IGRAPH_SUCCESS;
  764|  3.12k|}
bliss.cc:_ZL36igraph_i_canonical_permutation_blissPK8igraph_tPK19igraph_vector_int_tPS2_17igraph_bliss_sh_tP19igraph_bliss_info_t:
  325|  6.25k|) {
  326|  6.25k|    IGRAPH_HANDLE_EXCEPTIONS(
  ------------------
  |  |   30|  6.25k|    IGRAPH_HANDLE_EXCEPTIONS_BEGIN; \
  |  |  ------------------
  |  |  |  |   21|  6.25k|    try {
  |  |  ------------------
  |  |   31|   883k|    code; \
  |  |  ------------------
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  |  Branch (31:5): [True: 0, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  |  Branch (31:5): [True: 259k, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 0]
  |  |  |  Branch (31:5): [True: 0, False: 6.25k]
  |  |  |  Branch (31:5): [Folded, False: 6.25k]
  |  |  ------------------
  |  |   32|  31.2k|    IGRAPH_HANDLE_EXCEPTIONS_END;
  |  |  ------------------
  |  |  |  |   23|  6.25k|    } \
  |  |  |  |   24|  6.25k|    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|  6.25k|    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|  6.25k|    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|  6.25k|    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|  6.25k|        AbstractGraph *g = bliss_from_igraph(graph);
  328|  6.25k|        IGRAPH_FINALLY(bliss_free_graph, g);
  329|  6.25k|        const unsigned int N = g->get_nof_vertices();
  330|       |
  331|  6.25k|        IGRAPH_CHECK(bliss_set_sh(g, sh, igraph_is_directed(graph)));
  332|  6.25k|        IGRAPH_CHECK(bliss_set_colors(g, colors));
  333|       |
  334|  6.25k|        Stats stats;
  335|  6.25k|        AbortChecker checker;
  336|  6.25k|        const unsigned int *cl = g->canonical_form(stats, /* report */ nullptr, /* terminate */ checker);
  337|  6.25k|        if (checker.aborted) {
  338|  6.25k|            return IGRAPH_INTERRUPTED;
  339|  6.25k|        }
  340|       |
  341|  6.25k|        IGRAPH_CHECK(igraph_vector_int_resize(labeling, N));
  342|  6.25k|        for (unsigned int i = 0; i < N; i++) {
  343|  6.25k|            VECTOR(*labeling)[i] = cl[i];
  344|  6.25k|        }
  345|       |
  346|  6.25k|        IGRAPH_CHECK(bliss_info_to_igraph(info, stats));
  347|       |
  348|  6.25k|        delete g;
  349|  6.25k|        IGRAPH_FINALLY_CLEAN(1);
  350|  6.25k|    );
  351|       |
  352|  6.25k|    return IGRAPH_SUCCESS;
  353|  6.25k|}
bliss.cc:_ZN12_GLOBAL__N_117bliss_from_igraphEPK8igraph_t:
   79|  8.31k|inline AbstractGraph *bliss_from_igraph(const igraph_t *graph) {
   80|  8.31k|    igraph_int_t nof_vertices = igraph_vcount(graph);
   81|  8.31k|    igraph_int_t nof_edges = igraph_ecount(graph);
   82|       |
   83|  8.31k|    if (nof_vertices > UINT_MAX || nof_edges > UINT_MAX) {
  ------------------
  |  Branch (83:9): [True: 0, False: 8.31k]
  |  Branch (83:36): [True: 0, False: 8.31k]
  ------------------
   84|      0|        throw std::runtime_error("Graph too large for BLISS");
   85|      0|    }
   86|       |
   87|  8.31k|    AbstractGraph *g;
   88|       |
   89|  8.31k|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (89:9): [True: 4.55k, False: 3.76k]
  ------------------
   90|  4.55k|        g = new Digraph(static_cast<int>(nof_vertices));
   91|  4.55k|    } else {
   92|  3.76k|        g = new Graph(static_cast<int>(nof_vertices));
   93|  3.76k|    }
   94|       |
   95|       |    /* g->set_verbose_level(0); */
   96|       |
   97|   136k|    for (unsigned int i = 0; i < static_cast<unsigned int>(nof_edges); i++) {
  ------------------
  |  Branch (97:30): [True: 127k, False: 8.31k]
  ------------------
   98|   127k|        g->add_edge(
   99|   127k|            static_cast<unsigned int>(IGRAPH_FROM(graph, i)),
  ------------------
  |  |  115|   127k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   127k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  100|   127k|            static_cast<unsigned int>(IGRAPH_TO(graph, i))
  ------------------
  |  |  128|   127k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   127k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  101|   127k|        );
  102|   127k|    }
  103|       |
  104|  8.31k|    return g;
  105|  8.31k|}
bliss.cc:_ZN12_GLOBAL__N_112bliss_set_shEPN5bliss13AbstractGraphE17igraph_bliss_sh_tb:
  113|  8.31k|inline igraph_error_t bliss_set_sh(AbstractGraph *g, igraph_bliss_sh_t sh, bool directed) {
  114|  8.31k|    if (directed) {
  ------------------
  |  Branch (114:9): [True: 4.55k, False: 3.76k]
  ------------------
  115|  4.55k|        Digraph::SplittingHeuristic gsh = Digraph::shs_fsm;
  116|  4.55k|        switch (sh) {
  117|    598|        case IGRAPH_BLISS_F:    gsh = Digraph::shs_f;   break;
  ------------------
  |  Branch (117:9): [True: 598, False: 3.95k]
  ------------------
  118|    738|        case IGRAPH_BLISS_FL:   gsh = Digraph::shs_fl;  break;
  ------------------
  |  Branch (118:9): [True: 738, False: 3.81k]
  ------------------
  119|    695|        case IGRAPH_BLISS_FS:   gsh = Digraph::shs_fs;  break;
  ------------------
  |  Branch (119:9): [True: 695, False: 3.85k]
  ------------------
  120|    770|        case IGRAPH_BLISS_FM:   gsh = Digraph::shs_fm;  break;
  ------------------
  |  Branch (120:9): [True: 770, False: 3.78k]
  ------------------
  121|    803|        case IGRAPH_BLISS_FLM:  gsh = Digraph::shs_flm; break;
  ------------------
  |  Branch (121:9): [True: 803, False: 3.74k]
  ------------------
  122|    947|        case IGRAPH_BLISS_FSM:  gsh = Digraph::shs_fsm; break;
  ------------------
  |  Branch (122:9): [True: 947, False: 3.60k]
  ------------------
  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.55k]
  ------------------
  124|  4.55k|        }
  125|  4.55k|        static_cast<Digraph *>(g)->set_splitting_heuristic(gsh);
  126|  4.55k|    } else {
  127|  3.76k|        Graph::SplittingHeuristic gsh = Graph::shs_fsm;
  128|  3.76k|        switch (sh) {
  129|    385|        case IGRAPH_BLISS_F:    gsh = Graph::shs_f;   break;
  ------------------
  |  Branch (129:9): [True: 385, False: 3.37k]
  ------------------
  130|    601|        case IGRAPH_BLISS_FL:   gsh = Graph::shs_fl;  break;
  ------------------
  |  Branch (130:9): [True: 601, False: 3.16k]
  ------------------
  131|    575|        case IGRAPH_BLISS_FS:   gsh = Graph::shs_fs;  break;
  ------------------
  |  Branch (131:9): [True: 575, False: 3.18k]
  ------------------
  132|    677|        case IGRAPH_BLISS_FM:   gsh = Graph::shs_fm;  break;
  ------------------
  |  Branch (132:9): [True: 677, False: 3.08k]
  ------------------
  133|    725|        case IGRAPH_BLISS_FLM:  gsh = Graph::shs_flm; break;
  ------------------
  |  Branch (133:9): [True: 725, False: 3.03k]
  ------------------
  134|    801|        case IGRAPH_BLISS_FSM:  gsh = Graph::shs_fsm; break;
  ------------------
  |  Branch (134:9): [True: 801, 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.76k]
  ------------------
  136|  3.76k|        }
  137|  3.76k|        static_cast<Graph *>(g)->set_splitting_heuristic(gsh);
  138|  3.76k|    }
  139|  8.31k|    return IGRAPH_SUCCESS;
  140|  8.31k|}
bliss.cc:_ZN12_GLOBAL__N_116bliss_set_colorsEPN5bliss13AbstractGraphEPK19igraph_vector_int_t:
  143|  8.31k|inline igraph_error_t bliss_set_colors(AbstractGraph *g, const igraph_vector_int_t *colors) {
  144|  8.31k|    if (colors == NULL) {
  ------------------
  |  Branch (144:9): [True: 8.31k, False: 0]
  ------------------
  145|  8.31k|        return IGRAPH_SUCCESS;
  146|  8.31k|    }
  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.31k|    AbortChecker() : aborted(false) { }
bliss.cc:_ZN12_GLOBAL__N_120bliss_info_to_igraphEP19igraph_bliss_info_tRKN5bliss5StatsE:
  162|  8.31k|inline igraph_error_t bliss_info_to_igraph(igraph_bliss_info_t *info, const Stats &stats) {
  163|  8.31k|    if (info) {
  ------------------
  |  Branch (163:9): [True: 8.31k, False: 0]
  ------------------
  164|  8.31k|        size_t group_size_strlen;
  165|       |
  166|  8.31k|        info->max_level      = stats.get_max_level();
  167|  8.31k|        info->nof_nodes      = stats.get_nof_nodes();
  168|  8.31k|        info->nof_leaf_nodes = stats.get_nof_leaf_nodes();
  169|  8.31k|        info->nof_bad_nodes  = stats.get_nof_bad_nodes();
  170|  8.31k|        info->nof_canupdates = stats.get_nof_canupdates();
  171|  8.31k|        info->nof_generators = stats.get_nof_generators();
  172|       |
  173|  8.31k|        mpz_t group_size;
  174|  8.31k|        mpz_init(group_size);
  175|  8.31k|        stats.get_group_size().get(group_size);
  176|  8.31k|        group_size_strlen = mpz_sizeinbase(group_size, /* base */ 10) + 2;
  177|  8.31k|        info->group_size = IGRAPH_CALLOC(group_size_strlen, char);
  ------------------
  |  |   33|  8.31k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  16.6k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 8.31k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 8.31k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 8.31k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|  8.31k|        if (! info->group_size) {
  ------------------
  |  Branch (178:13): [True: 0, False: 8.31k]
  ------------------
  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.31k|        mpz_get_str(info->group_size, /* base */ 10, group_size);
  182|  8.31k|        mpz_clear(group_size);
  183|  8.31k|    }
  184|       |
  185|  8.31k|    return IGRAPH_SUCCESS;
  186|  8.31k|}
bliss.cc:_ZN12_GLOBAL__N_112AutCollectorC2EP24igraph_vector_int_list_t:
  210|  2.05k|    AutCollector(igraph_vector_int_list_t *generators_) : generators(generators_) { }
bliss.cc:_ZN12_GLOBAL__N_112AbortCheckerclEv:
  194|  10.0M|    bool operator()() {
  195|  10.0M|        if (igraph_allow_interruption() != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (195:13): [True: 0, False: 10.0M]
  ------------------
  196|      0|            aborted = true;
  197|      0|            return true;
  198|      0|        }
  199|  10.0M|        return false;
  200|  10.0M|    }
bliss.cc:_ZN12_GLOBAL__N_112AutCollectorclEjPKj:
  212|  56.3k|    void operator ()(unsigned int n, const unsigned int *aut) {
  213|  56.3k|        igraph_vector_int_t newvector;
  214|  56.3k|        igraph_error_t err;
  215|       |
  216|  56.3k|        err = igraph_vector_int_init(&newvector, n);
  217|  56.3k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (217:13): [True: 0, False: 56.3k]
  ------------------
  218|      0|            throw bad_alloc();
  219|      0|        }
  220|       |
  221|  56.3k|        copy(aut, aut + n, VECTOR(newvector)); // takes care of unsigned int -> igraph_int_t conversion
  ------------------
  |  |   60|  56.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  222|       |
  223|  56.3k|        err = igraph_vector_int_list_push_back(generators, &newvector);
  224|  56.3k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (224:13): [True: 0, False: 56.3k]
  ------------------
  225|      0|            throw bad_alloc();
  226|      0|        }
  227|  56.3k|    }

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

_ZN5bliss13AbstractGraphC2Ev:
   54|  8.31k|{
   55|       |  /* Initialize stuff */
   56|  8.31k|  first_path_labeling = nullptr;
   57|  8.31k|  first_path_labeling_inv = nullptr;
   58|  8.31k|  best_path_labeling = nullptr;
   59|  8.31k|  best_path_labeling_inv = nullptr;
   60|  8.31k|  first_path_automorphism = nullptr;
   61|  8.31k|  best_path_automorphism = nullptr;
   62|  8.31k|  in_search = false;
   63|       |
   64|       |  /* Default value for using "long prune" */
   65|  8.31k|  opt_use_long_prune = true;
   66|       |  /* Default value for using failure recording */
   67|  8.31k|  opt_use_failure_recording = true;
   68|       |  /* Default value for using component recursion */
   69|  8.31k|  opt_use_comprec = true;
   70|       |
   71|       |
   72|       |  /*
   73|       |  verbose_level = 0;
   74|       |  verbstr = stdout;
   75|       |  */
   76|  8.31k|}
_ZN5bliss13AbstractGraphD2Ev:
   80|  8.31k|{
   81|  8.31k|  delete[] first_path_labeling; first_path_labeling = nullptr;
   82|  8.31k|  delete[] first_path_labeling_inv; first_path_labeling_inv = nullptr;
   83|  8.31k|  delete[] first_path_automorphism; first_path_automorphism = nullptr;
   84|       |
   85|  8.31k|  delete[] best_path_labeling; best_path_labeling = nullptr;
   86|  8.31k|  delete[] best_path_labeling_inv; best_path_labeling_inv = nullptr;
   87|  8.31k|  delete[] best_path_automorphism; best_path_automorphism = nullptr;
   88|  8.31k|}
_ZN5bliss13AbstractGraph19refine_to_equitableEv:
  122|  8.28k|{
  123|       |
  124|       |  /* Start refinement from all cells -> push 'em all in the splitting queue */
  125|  38.4k|  for(Partition::Cell* cell = p.first_cell; cell; cell = cell->next)
  ------------------
  |  Branch (125:45): [True: 30.1k, False: 8.28k]
  ------------------
  126|  30.1k|    p.splitting_queue_add(cell);
  127|       |
  128|  8.28k|  do_refine_to_equitable();
  129|       |
  130|  8.28k|}
_ZN5bliss13AbstractGraph19refine_to_equitableEPNS_9Partition4CellE:
  134|  4.59M|{
  135|       |
  136|  4.59M|  p.splitting_queue_add(unit_cell);
  137|       |
  138|  4.59M|  do_refine_to_equitable();
  139|  4.59M|}
_ZN5bliss13AbstractGraph19refine_to_equitableEPNS_9Partition4CellES3_:
  146|   372k|{
  147|       |
  148|   372k|  p.splitting_queue_add(unit_cell1);
  149|   372k|  p.splitting_queue_add(unit_cell2);
  150|       |
  151|   372k|  do_refine_to_equitable();
  152|   372k|}
_ZN5bliss13AbstractGraph22do_refine_to_equitableEv:
  158|  4.97M|{
  159|       |
  160|  4.97M|  eqref_hash.reset();
  161|       |
  162|  11.1M|  while(!p.splitting_queue_is_empty())
  ------------------
  |  Branch (162:9): [True: 6.19M, False: 4.93M]
  ------------------
  163|  6.19M|    {
  164|  6.19M|      Partition::Cell* const cell = p.splitting_queue_pop();
  165|       |
  166|  6.19M|      if(cell->is_unit())
  ------------------
  |  Branch (166:10): [True: 5.94M, False: 244k]
  ------------------
  167|  5.94M|        {
  168|  5.94M|          if(in_search) {
  ------------------
  |  Branch (168:14): [True: 5.92M, False: 27.1k]
  ------------------
  169|  5.92M|            const unsigned int index = cell->first;
  170|  5.92M|            if(first_path_automorphism)
  ------------------
  |  Branch (170:16): [True: 5.92M, False: 0]
  ------------------
  171|  5.92M|              {
  172|       |                /* Build the (potential) automorphism on-the-fly */
  173|  5.92M|                first_path_automorphism[first_path_labeling_inv[index]] =
  174|  5.92M|                  p.elements[index];
  175|  5.92M|              }
  176|  5.92M|            if(best_path_automorphism)
  ------------------
  |  Branch (176:16): [True: 5.92M, False: 0]
  ------------------
  177|  5.92M|              {
  178|       |                /* Build the (potential) automorphism on-the-fly */
  179|  5.92M|                best_path_automorphism[best_path_labeling_inv[index]] =
  180|  5.92M|                  p.elements[index];
  181|  5.92M|              }
  182|  5.92M|          }
  183|  5.94M|          const bool worse = split_neighbourhood_of_unit_cell(cell);
  184|  5.94M|          if(in_search and worse)
  ------------------
  |  Branch (184:14): [True: 5.92M, False: 27.1k]
  |  Branch (184:28): [True: 12.7k, False: 5.90M]
  ------------------
  185|  12.7k|            goto worse_exit;
  186|  5.94M|        }
  187|   244k|      else
  188|   244k|        {
  189|   244k|          const bool worse = split_neighbourhood_of_cell(cell);
  190|   244k|          if(in_search and worse)
  ------------------
  |  Branch (190:14): [True: 218k, False: 25.5k]
  |  Branch (190:28): [True: 27.8k, False: 190k]
  ------------------
  191|  27.8k|            goto worse_exit;
  192|   244k|        }
  193|  6.19M|    }
  194|       |
  195|  4.93M|  return true;
  196|       |
  197|  40.5k| worse_exit:
  198|       |  /* Clear splitting_queue */
  199|  40.5k|  p.splitting_queue_clear();
  200|  40.5k|  return false;
  201|  4.97M|}
_ZN5bliss13AbstractGraph15update_labelingEPj:
  232|    412|{
  233|    412|  const unsigned int N = get_nof_vertices();
  234|    412|  unsigned int* ep = p.elements;
  235|  5.63k|  for(unsigned int i = 0; i < N; i++, ep++)
  ------------------
  |  Branch (235:27): [True: 5.22k, False: 412]
  ------------------
  236|  5.22k|    labeling[*ep] = i;
  237|    412|}
_ZN5bliss13AbstractGraph31update_labeling_and_its_inverseEPjS1_:
  246|  32.1k|{
  247|  32.1k|  const unsigned int N = get_nof_vertices();
  248|  32.1k|  unsigned int* ep = p.elements;
  249|  32.1k|  unsigned int* clip = labeling_inv;
  250|       |
  251|  1.67M|  for(unsigned int i = 0; i < N; ) {
  ------------------
  |  Branch (251:27): [True: 1.64M, False: 32.1k]
  ------------------
  252|  1.64M|    labeling[*ep] = i;
  253|  1.64M|    i++;
  254|  1.64M|    *clip = *ep;
  255|  1.64M|    ep++;
  256|  1.64M|    clip++;
  257|  1.64M|  }
  258|  32.1k|}
_ZN5bliss13AbstractGraph17reset_permutationEPj:
  276|  63.2k|{
  277|  63.2k|  const unsigned int N = get_nof_vertices();
  278|  3.67M|  for(unsigned int i = 0; i < N; i++, perm++)
  ------------------
  |  Branch (278:27): [True: 3.60M, False: 63.2k]
  ------------------
  279|  3.60M|    *perm = i;
  280|  63.2k|}
_ZN5bliss13AbstractGraph8cert_addEjjj:
  312|  2.75M|{
  313|  2.75M|  if(refine_compare_certificate)
  ------------------
  |  Branch (313:6): [True: 2.55M, False: 201k]
  ------------------
  314|  2.55M|    {
  315|  2.55M|      if(refine_equal_to_first)
  ------------------
  |  Branch (315:10): [True: 575k, False: 1.97M]
  ------------------
  316|   575k|        {
  317|       |          /* So far equivalent to the first path... */
  318|   575k|          unsigned int index = certificate_current_path.size();
  319|   575k|          if(index >= refine_first_path_subcertificate_end)
  ------------------
  |  Branch (319:14): [True: 4, False: 575k]
  ------------------
  320|      4|            {
  321|      4|              refine_equal_to_first = false;
  322|      4|            }
  323|   575k|          else if(certificate_first_path[index] != v1)
  ------------------
  |  Branch (323:19): [True: 141, False: 575k]
  ------------------
  324|    141|            {
  325|    141|              refine_equal_to_first = false;
  326|    141|            }
  327|   575k|          else if(certificate_first_path[++index] != v2)
  ------------------
  |  Branch (327:19): [True: 7.16k, False: 568k]
  ------------------
  328|  7.16k|            {
  329|  7.16k|              refine_equal_to_first = false;
  330|  7.16k|            }
  331|   568k|          else if(certificate_first_path[++index] != v3)
  ------------------
  |  Branch (331:19): [True: 8.32k, False: 560k]
  ------------------
  332|  8.32k|            {
  333|  8.32k|              refine_equal_to_first = false;
  334|  8.32k|            }
  335|   575k|          if(opt_use_failure_recording and !refine_equal_to_first)
  ------------------
  |  Branch (335:14): [True: 575k, False: 0]
  |  Branch (335:44): [True: 15.6k, False: 560k]
  ------------------
  336|  15.6k|            {
  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|  15.6k|              UintSeqHash h;
  341|  15.6k|              h.update(v1);
  342|  15.6k|              h.update(v2);
  343|  15.6k|              h.update(v3);
  344|  15.6k|              h.update(index);
  345|  15.6k|              h.update(eqref_hash.get_value());
  346|  15.6k|              failure_recording_fp_deviation = h.get_value();
  347|  15.6k|            }
  348|   575k|        }
  349|  2.55M|      if(refine_cmp_to_best == 0)
  ------------------
  |  Branch (349:10): [True: 719k, False: 1.83M]
  ------------------
  350|   719k|        {
  351|       |          /* So far equivalent to the current best path... */
  352|   719k|          unsigned int index = certificate_current_path.size();
  353|   719k|          if(index >= refine_best_path_subcertificate_end)
  ------------------
  |  Branch (353:14): [True: 1, False: 719k]
  ------------------
  354|      1|            {
  355|      1|              refine_cmp_to_best = 1;
  356|      1|            }
  357|   719k|          else if(v1 > certificate_best_path[index])
  ------------------
  |  Branch (357:19): [True: 37, False: 719k]
  ------------------
  358|     37|            {
  359|     37|              refine_cmp_to_best = 1;
  360|     37|            }
  361|   719k|          else if(v1 < certificate_best_path[index])
  ------------------
  |  Branch (361:19): [True: 65, False: 719k]
  ------------------
  362|     65|            {
  363|     65|              refine_cmp_to_best = -1;
  364|     65|            }
  365|   719k|          else if(v2 > certificate_best_path[++index])
  ------------------
  |  Branch (365:19): [True: 35.3k, False: 683k]
  ------------------
  366|  35.3k|            {
  367|  35.3k|              refine_cmp_to_best = 1;
  368|  35.3k|            }
  369|   683k|          else if(v2 < certificate_best_path[index])
  ------------------
  |  Branch (369:19): [True: 21.1k, False: 662k]
  ------------------
  370|  21.1k|            {
  371|  21.1k|              refine_cmp_to_best = -1;
  372|  21.1k|            }
  373|   662k|          else if(v3 > certificate_best_path[++index])
  ------------------
  |  Branch (373:19): [True: 12.0k, False: 650k]
  ------------------
  374|  12.0k|            {
  375|  12.0k|              refine_cmp_to_best = 1;
  376|  12.0k|            }
  377|   650k|          else if(v3 < certificate_best_path[index])
  ------------------
  |  Branch (377:19): [True: 17.7k, False: 632k]
  ------------------
  378|  17.7k|            {
  379|  17.7k|              refine_cmp_to_best = -1;
  380|  17.7k|            }
  381|   719k|        }
  382|  2.55M|      if((refine_equal_to_first == false) and
  ------------------
  |  Branch (382:10): [True: 1.99M, False: 560k]
  ------------------
  383|  1.99M|         (refine_cmp_to_best < 0))
  ------------------
  |  Branch (383:10): [True: 40.5k, False: 1.95M]
  ------------------
  384|  40.5k|        return;
  385|  2.55M|    }
  386|       |  /* Update the current path certificate */
  387|  2.71M|  certificate_current_path.push_back(v1);
  388|  2.71M|  certificate_current_path.push_back(v2);
  389|  2.71M|  certificate_current_path.push_back(v3);
  390|  2.71M|}
_ZN5bliss13AbstractGraph18cert_add_redundantEjjj:
  397|   436k|{
  398|   436k|  return cert_add(v1, v2, v3);
  399|   436k|}
_ZN5bliss13AbstractGraph15long_prune_initEv:
  419|  7.87k|{
  420|  7.87k|  const unsigned int N = get_nof_vertices();
  421|  7.87k|  long_prune_temp.clear();
  422|  7.87k|  long_prune_temp.resize(N);
  423|       |  /* Of how many automorphisms we can store information in
  424|       |     the predefined, fixed amount of memory? */
  425|  7.87k|  const unsigned int nof_fitting_in_max_mem =
  426|  7.87k|    (long_prune_options_max_mem * 1024 * 1024) / (((N * 2) / 8)+1);
  427|  7.87k|  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.87k|  if(nof_fitting_in_max_mem < long_prune_options_max_stored_auts)
  ------------------
  |  Branch (430:6): [True: 0, False: 7.87k]
  ------------------
  431|      0|    long_prune_max_stored_autss = nof_fitting_in_max_mem;
  432|       |
  433|  7.87k|  long_prune_deallocate();
  434|  7.87k|  long_prune_fixed.resize(N, 0);
  435|  7.87k|  long_prune_mcrs.resize(N, 0);
  436|  7.87k|  long_prune_begin = 0;
  437|  7.87k|  long_prune_end = 0;
  438|  7.87k|}
_ZN5bliss13AbstractGraph21long_prune_deallocateEv:
  442|  15.7k|{
  443|   345k|  while(!long_prune_fixed.empty())
  ------------------
  |  Branch (443:9): [True: 330k, False: 15.7k]
  ------------------
  444|   330k|    {
  445|   330k|      delete long_prune_fixed.back();
  446|   330k|      long_prune_fixed.pop_back();
  447|   330k|    }
  448|   345k|  while(!long_prune_mcrs.empty())
  ------------------
  |  Branch (448:9): [True: 330k, False: 15.7k]
  ------------------
  449|   330k|    {
  450|   330k|      delete long_prune_mcrs.back();
  451|   330k|      long_prune_mcrs.pop_back();
  452|   330k|    }
  453|  15.7k|}
_ZN5bliss13AbstractGraph15long_prune_swapEjj:
  457|  4.26M|{
  458|  4.26M|  const unsigned int real_i = i % long_prune_max_stored_autss;
  459|  4.26M|  const unsigned int real_j = j % long_prune_max_stored_autss;
  460|  4.26M|  std::vector<bool>* tmp = long_prune_fixed[real_i];
  461|  4.26M|  long_prune_fixed[real_i] = long_prune_fixed[real_j];
  462|  4.26M|  long_prune_fixed[real_j] = tmp;
  463|  4.26M|  tmp = long_prune_mcrs[real_i];
  464|  4.26M|  long_prune_mcrs[real_i] = long_prune_mcrs[real_j];
  465|  4.26M|  long_prune_mcrs[real_j] = tmp;
  466|  4.26M|}
_ZN5bliss13AbstractGraph25long_prune_allocget_fixedEj:
  470|   240k|{
  471|   240k|  const unsigned int i = index % long_prune_max_stored_autss;
  472|   240k|  if(!long_prune_fixed[i])
  ------------------
  |  Branch (472:6): [True: 240k, False: 0]
  ------------------
  473|   240k|    long_prune_fixed[i] = new std::vector<bool>(get_nof_vertices());
  474|   240k|  return *long_prune_fixed[i];
  475|   240k|}
_ZN5bliss13AbstractGraph20long_prune_get_fixedEj:
  479|  89.5M|{
  480|  89.5M|  return *long_prune_fixed[index % long_prune_max_stored_autss];
  481|  89.5M|}
_ZN5bliss13AbstractGraph24long_prune_allocget_mcrsEj:
  485|   240k|{
  486|   240k|  const unsigned int i = index % long_prune_max_stored_autss;
  487|   240k|  if(!long_prune_mcrs[i])
  ------------------
  |  Branch (487:6): [True: 240k, False: 0]
  ------------------
  488|   240k|    long_prune_mcrs[i] = new std::vector<bool>(get_nof_vertices());
  489|   240k|  return *long_prune_mcrs[i];
  490|   240k|}
_ZN5bliss13AbstractGraph19long_prune_get_mcrsEj:
  494|  1.44M|{
  495|  1.44M|  return *long_prune_mcrs[index % long_prune_max_stored_autss];
  496|  1.44M|}
_ZN5bliss13AbstractGraph27long_prune_add_automorphismEPKj:
  500|   240k|{
  501|   240k|  if(long_prune_max_stored_autss == 0)
  ------------------
  |  Branch (501:6): [True: 0, False: 240k]
  ------------------
  502|      0|    return;
  503|       |
  504|   240k|  const unsigned int N = get_nof_vertices();
  505|       |
  506|       |
  507|       |  /* If the buffer of stored auts is full, remove the oldest aut */
  508|   240k|  if(long_prune_end - long_prune_begin == long_prune_max_stored_autss)
  ------------------
  |  Branch (508:6): [True: 0, False: 240k]
  ------------------
  509|      0|    {
  510|      0|      long_prune_begin++;
  511|      0|    }
  512|   240k|  long_prune_end++;
  513|   240k|  std::vector<bool>& fixed = long_prune_allocget_fixed(long_prune_end-1);
  514|   240k|  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.6M|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (517:27): [True: 13.4M, False: 240k]
  ------------------
  518|  13.4M|    {
  519|  13.4M|      fixed[i] = (aut[i] == i);
  520|  13.4M|      if(long_prune_temp[i] == false)
  ------------------
  |  Branch (520:10): [True: 13.1M, False: 286k]
  ------------------
  521|  13.1M|        {
  522|  13.1M|          mcrs[i] = true;
  523|  13.1M|          unsigned int j = aut[i];
  524|  13.4M|          while(j != i)
  ------------------
  |  Branch (524:17): [True: 286k, False: 13.1M]
  ------------------
  525|   286k|            {
  526|   286k|              long_prune_temp[j] = true;
  527|   286k|              j = aut[j];
  528|   286k|            }
  529|  13.1M|        }
  530|   286k|      else
  531|   286k|        {
  532|   286k|          mcrs[i] = false;
  533|   286k|        }
  534|       |      /* Clear the temp array on-the-fly... */
  535|  13.4M|      long_prune_temp[i] = false;
  536|  13.4M|    }
  537|       |
  538|       |
  539|   240k|}
_ZN5bliss13AbstractGraph24update_orbit_informationERNS_5OrbitEPKj:
  551|   244k|{
  552|   244k|  const unsigned int N = get_nof_vertices();
  553|  13.8M|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (553:27): [True: 13.6M, False: 244k]
  ------------------
  554|  13.6M|    if(perm[i] != i)
  ------------------
  |  Branch (554:8): [True: 583k, False: 13.0M]
  ------------------
  555|   583k|      o.merge_orbits(i, perm[i]);
  556|   244k|}
_ZN5bliss13AbstractGraph6searchEbRNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
  624|  8.31k|{
  625|  8.31k|  const unsigned int N = get_nof_vertices();
  626|       |
  627|  8.31k|  unsigned int all_same_level = UINT_MAX;
  628|       |
  629|  8.31k|  p.graph = this;
  630|       |
  631|       |  /*
  632|       |   * Must be done!
  633|       |   */
  634|  8.31k|  remove_duplicate_edges();
  635|       |
  636|       |  /*
  637|       |   * Reset search statistics
  638|       |   */
  639|  8.31k|  stats.reset();
  640|  8.31k|  stats.nof_nodes = 1;
  641|  8.31k|  stats.nof_leaf_nodes = 1;
  642|       |
  643|       |  /* Free old first path data structures */
  644|  8.31k|  delete[] first_path_labeling; first_path_labeling = nullptr;
  645|  8.31k|  delete[] first_path_labeling_inv; first_path_labeling_inv = nullptr;
  646|  8.31k|  delete[] first_path_automorphism; first_path_automorphism = nullptr;
  647|       |
  648|       |  /* Free old best path data structures */
  649|  8.31k|  delete[] best_path_labeling; best_path_labeling = nullptr;
  650|  8.31k|  delete[] best_path_labeling_inv; best_path_labeling_inv = nullptr;
  651|  8.31k|  delete[] best_path_automorphism; best_path_automorphism = nullptr;
  652|       |
  653|  8.31k|  if(N == 0)
  ------------------
  |  Branch (653:6): [True: 30, False: 8.28k]
  ------------------
  654|     30|    {
  655|       |      /* Nothing to do, return... */
  656|     30|      return;
  657|     30|    }
  658|       |
  659|       |  /* Initialize the partition ... */
  660|  8.28k|  p.init(N);
  661|       |  /* ... and the component recursion data structures in the partition */
  662|  8.28k|  if(opt_use_comprec)
  ------------------
  |  Branch (662:6): [True: 8.28k, False: 0]
  ------------------
  663|  8.28k|    p.cr_init();
  664|       |
  665|  8.28k|  neighbour_heap.init(N);
  666|       |
  667|  8.28k|  in_search = false;
  668|       |  /* Do not compute certificate when building the initial partition */
  669|  8.28k|  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.28k|  compute_eqref_hash = false;
  674|       |
  675|  8.28k|  make_initial_equitable_partition();
  676|       |
  677|       |  /*
  678|       |   * Allocate space for the "first path" and "best path" labelings
  679|       |   */
  680|  8.28k|  delete[] first_path_labeling;
  681|  8.28k|  first_path_labeling = new unsigned int[N];
  682|       |
  683|  8.28k|  delete[] best_path_labeling;
  684|  8.28k|  best_path_labeling = new unsigned int[N];
  685|   343k|  for(unsigned int i = 0; i < N; i++) best_path_labeling[i] = i;
  ------------------
  |  Branch (685:27): [True: 335k, False: 8.28k]
  ------------------
  686|       |
  687|       |  /*
  688|       |   * Is the initial partition discrete?
  689|       |   */
  690|  8.28k|  if(p.is_discrete())
  ------------------
  |  Branch (690:6): [True: 412, False: 7.87k]
  ------------------
  691|    412|    {
  692|       |      /* Make the best path labeling i.e. the canonical labeling */
  693|    412|      update_labeling(best_path_labeling);
  694|       |      /* Update statistics */
  695|    412|      stats.nof_leaf_nodes = 1;
  696|       |      /* Release component recursion data in partition */
  697|    412|      if(opt_use_comprec)
  ------------------
  |  Branch (697:10): [True: 412, False: 0]
  ------------------
  698|    412|        p.cr_free();
  699|    412|      return;
  700|    412|    }
  701|       |
  702|       |  /*
  703|       |   * Allocate the inverses of the "first path" and "best path" labelings
  704|       |   */
  705|  7.87k|  delete[] first_path_labeling_inv;
  706|  7.87k|  first_path_labeling_inv = new unsigned int[N];
  707|  7.87k|  std::fill_n(first_path_labeling_inv, N, 0);
  708|  7.87k|  delete[] best_path_labeling_inv;
  709|  7.87k|  best_path_labeling_inv = new unsigned int[N];
  710|  7.87k|  std::fill_n(best_path_labeling_inv, N, 0);
  711|       |
  712|       |  /*
  713|       |   * Allocate space for the automorphisms
  714|       |   */
  715|  7.87k|  delete[] first_path_automorphism;
  716|  7.87k|  first_path_automorphism = new unsigned int[N];
  717|  7.87k|  delete[] best_path_automorphism;
  718|  7.87k|  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.87k|  first_path_orbits.init(N);
  724|  7.87k|  best_path_orbits.init(N);
  725|       |
  726|       |  /*
  727|       |   * Initialize certificate memory
  728|       |   */
  729|  7.87k|  initialize_certificate();
  730|       |
  731|  7.87k|  std::vector<TreeNode> search_stack;
  732|  7.87k|  std::vector<PathInfo> first_path_info;
  733|  7.87k|  std::vector<PathInfo> best_path_info;
  734|       |
  735|  7.87k|  search_stack.clear();
  736|       |
  737|       |  /* Initialize "long prune" data structures */
  738|  7.87k|  if(opt_use_long_prune)
  ------------------
  |  Branch (738:6): [True: 7.87k, False: 0]
  ------------------
  739|  7.87k|    long_prune_init();
  740|       |
  741|       |  /*
  742|       |   * Initialize failure recording data structures
  743|       |   */
  744|  7.87k|  typedef std::set<unsigned int, std::less<unsigned int> > FailureRecordingSet;
  745|  7.87k|  std::vector<FailureRecordingSet> failure_recording_hashes;
  746|       |
  747|       |  /*
  748|       |   * Initialize component recursion data structures
  749|       |   */
  750|  7.87k|  cr_cep_stack.clear();
  751|  7.87k|  unsigned int cr_cep_index = 0;
  752|  7.87k|  {
  753|       |    /* Inset a sentinel "component end point" */
  754|  7.87k|    CR_CEP sentinel;
  755|  7.87k|    sentinel.creation_level = 0;
  756|  7.87k|    sentinel.discrete_cell_limit = get_nof_vertices();
  757|  7.87k|    sentinel.next_cr_level = 0;
  758|  7.87k|    sentinel.next_cep_index = 0;
  759|  7.87k|    sentinel.first_checked = false;
  760|  7.87k|    sentinel.best_checked = false;
  761|  7.87k|    cr_cep_index = 0;
  762|  7.87k|    cr_cep_stack.push_back(sentinel);
  763|  7.87k|  }
  764|  7.87k|  cr_level = 0;
  765|  7.87k|  if(opt_use_comprec and
  ------------------
  |  Branch (765:6): [True: 7.87k, False: 0]
  ------------------
  766|  7.87k|     nucr_find_first_component(cr_level) == true and
  ------------------
  |  Branch (766:6): [True: 7.87k, False: 0]
  ------------------
  767|  7.87k|     p.nof_discrete_cells() + cr_component_elements <
  ------------------
  |  Branch (767:6): [True: 5.65k, False: 2.22k]
  ------------------
  768|  7.87k|     cr_cep_stack[cr_cep_index].discrete_cell_limit)
  769|  5.65k|    {
  770|  5.65k|      cr_level = p.cr_split_level(0, cr_component);
  771|  5.65k|      CR_CEP cep;
  772|  5.65k|      cep.creation_level = 0;
  773|  5.65k|      cep.discrete_cell_limit = p.nof_discrete_cells() + cr_component_elements;
  774|  5.65k|      cep.next_cr_level = 0;
  775|  5.65k|      cep.next_cep_index = cr_cep_index;
  776|  5.65k|      cep.first_checked = false;
  777|  5.65k|      cep.best_checked = false;
  778|  5.65k|      cr_cep_index = cr_cep_stack.size();
  779|  5.65k|      cr_cep_stack.push_back(cep);
  780|  5.65k|    }
  781|       |
  782|       |  /*
  783|       |   * Build the root node of the search tree
  784|       |   */
  785|  7.87k|  {
  786|  7.87k|    TreeNode root;
  787|  7.87k|    Partition::Cell* split_cell = find_next_cell_to_be_splitted(p.first_cell);
  788|  7.87k|    root.split_cell_first = split_cell->first;
  789|  7.87k|    root.split_element = TreeNode::SPLIT_START;
  790|  7.87k|    root.partition_bt_point = p.set_backtrack_point();
  791|  7.87k|    root.certificate_index = 0;
  792|  7.87k|    root.fp_on = true;
  793|  7.87k|    root.fp_cert_equal = true;
  794|  7.87k|    root.fp_extendable = TreeNode::MAYBE;
  795|  7.87k|    root.in_best_path = false;
  796|  7.87k|    root.cmp_to_best_path = 0;
  797|  7.87k|    root.long_prune_begin = 0;
  798|       |
  799|  7.87k|    root.failure_recording_ival = 0;
  800|       |
  801|       |    /* Save component recursion info for backtracking */
  802|  7.87k|    root.cr_level = cr_level;
  803|  7.87k|    root.cr_cep_stack_size = cr_cep_stack.size();
  804|  7.87k|    root.cr_cep_index = cr_cep_index;
  805|  7.87k|    search_stack.push_back(root);
  806|  7.87k|  }
  807|       |
  808|       |  /*
  809|       |   * Set status and global flags for search related procedures
  810|       |   */
  811|  7.87k|  in_search = true;
  812|       |  /* Do not compare certificates during refinement until the first path has been traversed to the leaf */
  813|  7.87k|  refine_compare_certificate = false;
  814|       |
  815|       |
  816|       |
  817|       |
  818|       |  /*
  819|       |   * The actual backtracking search
  820|       |   */
  821|  10.0M|  while(!search_stack.empty())
  ------------------
  |  Branch (821:9): [True: 10.0M, False: 7.87k]
  ------------------
  822|  10.0M|    {
  823|  10.0M|      if(terminate and terminate()) {
  ------------------
  |  Branch (823:10): [True: 10.0M, False: 0]
  |  Branch (823:24): [True: 0, False: 10.0M]
  ------------------
  824|      0|        break;
  825|      0|      }
  826|  10.0M|      TreeNode&          current_node  = search_stack.back();
  827|  10.0M|      const unsigned int current_level = (unsigned int)search_stack.size()-1;
  828|       |
  829|       |
  830|  10.0M|      if(opt_use_comprec)
  ------------------
  |  Branch (830:10): [True: 10.0M, False: 0]
  ------------------
  831|  10.0M|        {
  832|  10.0M|          CR_CEP& cep = cr_cep_stack[current_node.cr_cep_index];
  833|  10.0M|          if(cep.first_checked == true and
  ------------------
  |  Branch (833:14): [True: 7.74M, False: 2.28M]
  ------------------
  834|  7.74M|             current_node.fp_extendable == TreeNode::MAYBE and
  ------------------
  |  Branch (834:14): [True: 3.56M, False: 4.18M]
  ------------------
  835|  3.56M|             !search_stack[cep.creation_level].fp_on)
  ------------------
  |  Branch (835:14): [True: 12, False: 3.56M]
  ------------------
  836|     12|            {
  837|     12|              current_node.fp_extendable = TreeNode::NO;
  838|     12|            }
  839|  10.0M|        }
  840|       |
  841|  10.0M|      if(current_node.fp_on)
  ------------------
  |  Branch (841:10): [True: 735k, False: 9.29M]
  ------------------
  842|   735k|        {
  843|   735k|          if(current_node.split_element == TreeNode::SPLIT_END)
  ------------------
  |  Branch (843:14): [True: 237k, False: 497k]
  ------------------
  844|   237k|            {
  845|   237k|              search_stack.pop_back();
  846|   237k|              continue;
  847|   237k|            }
  848|   735k|        }
  849|  9.29M|      else
  850|  9.29M|        {
  851|  9.29M|          if(current_node.fp_extendable == TreeNode::YES)
  ------------------
  |  Branch (851:14): [True: 4.19M, False: 5.09M]
  ------------------
  852|  4.19M|            {
  853|  4.19M|              search_stack.pop_back();
  854|  4.19M|              continue;
  855|  4.19M|            }
  856|  5.09M|          if(current_node.split_element == TreeNode::SPLIT_END)
  ------------------
  |  Branch (856:14): [True: 194k, False: 4.90M]
  ------------------
  857|   194k|            {
  858|   194k|              if(opt_use_failure_recording)
  ------------------
  |  Branch (858:18): [True: 194k, False: 0]
  ------------------
  859|   194k|                {
  860|   194k|                  TreeNode& parent_node = search_stack[current_level-1];
  861|   194k|                  if(parent_node.fp_on)
  ------------------
  |  Branch (861:22): [True: 3.78k, False: 190k]
  ------------------
  862|  3.78k|                    failure_recording_hashes[current_level-1].insert(current_node.failure_recording_ival);
  863|   194k|                }
  864|   194k|              search_stack.pop_back();
  865|   194k|              continue;
  866|   194k|            }
  867|  4.90M|          if(current_node.fp_extendable == TreeNode::NO and
  ------------------
  |  Branch (867:14): [True: 458k, False: 4.44M]
  ------------------
  868|   458k|             (!canonical or current_node.cmp_to_best_path < 0))
  ------------------
  |  Branch (868:15): [True: 189, False: 457k]
  |  Branch (868:29): [True: 138, False: 457k]
  ------------------
  869|    327|            {
  870|    327|              if(opt_use_failure_recording)
  ------------------
  |  Branch (870:18): [True: 327, False: 0]
  ------------------
  871|    327|                {
  872|    327|                  TreeNode& parent_node = search_stack[current_level-1];
  873|    327|                  if(parent_node.fp_on)
  ------------------
  |  Branch (873:22): [True: 125, False: 202]
  ------------------
  874|    125|                    failure_recording_hashes[current_level-1].insert(current_node.failure_recording_ival);
  875|    327|                }
  876|    327|              search_stack.pop_back();
  877|    327|              continue;
  878|    327|            }
  879|  4.90M|        }
  880|       |
  881|       |      /* Restore partition ... */
  882|  5.40M|      p.goto_backtrack_point(current_node.partition_bt_point);
  883|       |      /* ... and re-remember backtracking point */
  884|  5.40M|      current_node.partition_bt_point = p.set_backtrack_point();
  885|       |
  886|       |      /* Restore current path certificate */
  887|  5.40M|      certificate_index = current_node.certificate_index;
  888|  5.40M|      refine_current_path_certificate_index = current_node.certificate_index;
  889|  5.40M|      certificate_current_path.resize(certificate_index);
  890|       |
  891|       |      /* Fetch split cell information */
  892|  5.40M|      Partition::Cell * const cell =
  893|  5.40M|        p.get_cell(p.elements[current_node.split_cell_first]);
  894|       |
  895|       |      /* Restore component recursion information */
  896|  5.40M|      cr_level = current_node.cr_level;
  897|  5.40M|      cr_cep_stack.resize(current_node.cr_cep_stack_size);
  898|  5.40M|      cr_cep_index = current_node.cr_cep_index;
  899|       |
  900|       |
  901|       |      /*
  902|       |       * Update long prune redundancy sets
  903|       |       */
  904|  5.40M|      if(opt_use_long_prune and current_level >= 1 and !current_node.fp_on)
  ------------------
  |  Branch (904:10): [True: 5.40M, False: 0]
  |  Branch (904:33): [True: 5.37M, False: 25.9k]
  |  Branch (904:56): [True: 4.90M, False: 471k]
  ------------------
  905|  4.90M|        {
  906|  4.90M|          unsigned int begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin;
  ------------------
  |  Branch (906:32): [True: 4.44M, False: 456k]
  ------------------
  907|  93.0M|          for(unsigned int i = begin; i < long_prune_end; i++)
  ------------------
  |  Branch (907:39): [True: 88.1M, False: 4.90M]
  ------------------
  908|  88.1M|            {
  909|  88.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|  88.1M|              if(fixed[search_stack[search_stack.size()-1-1].split_element] ==
  ------------------
  |  Branch (914:18): [True: 4.26M, False: 83.8M]
  ------------------
  915|  88.1M|                 false)
  916|  4.26M|                {
  917|  4.26M|                  long_prune_swap(begin, i);
  918|  4.26M|                  begin++;
  919|  4.26M|                  current_node.long_prune_begin = begin;
  920|  4.26M|                  continue;
  921|  4.26M|                }
  922|  88.1M|            }
  923|       |
  924|  4.90M|          if(current_node.split_element == TreeNode::SPLIT_START)
  ------------------
  |  Branch (924:14): [True: 4.63M, False: 271k]
  ------------------
  925|  4.63M|            {
  926|  4.63M|              current_node.needs_long_prune = true;
  927|  4.63M|            }
  928|   271k|          else if(current_node.needs_long_prune)
  ------------------
  |  Branch (928:19): [True: 196k, False: 74.3k]
  ------------------
  929|   196k|            {
  930|   196k|              current_node.needs_long_prune = false;
  931|   196k|              unsigned int begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin;
  ------------------
  |  Branch (931:36): [True: 196k, False: 585]
  ------------------
  932|  1.64M|              for(unsigned int i = begin; i < long_prune_end; i++)
  ------------------
  |  Branch (932:43): [True: 1.44M, False: 196k]
  ------------------
  933|  1.44M|                {
  934|  1.44M|                  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.44M|                  assert(fixed[search_stack[current_level-1].split_element] == true);
  ------------------
  |  Branch (939:19): [True: 1.44M, False: 0]
  ------------------
  940|  1.44M|                  if(fixed[search_stack[current_level-1].split_element] == false)
  ------------------
  |  Branch (940:22): [True: 0, False: 1.44M]
  ------------------
  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.44M|                  const std::vector<bool>& mcrs = long_prune_get_mcrs(i);
  948|  1.44M|                  unsigned int* ep = p.elements + cell->first;
  949|  11.8M|                  for(unsigned int j = cell->length; j > 0; j--, ep++) {
  ------------------
  |  Branch (949:54): [True: 10.3M, False: 1.44M]
  ------------------
  950|  10.3M|                    if(mcrs[*ep] == false)
  ------------------
  |  Branch (950:24): [True: 1.16M, False: 9.18M]
  ------------------
  951|  1.16M|                      current_node.long_prune_redundant.insert(*ep);
  952|  10.3M|                  }
  953|  1.44M|                }
  954|   196k|            }
  955|  4.90M|        }
  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.40M|      {
  963|  5.40M|        unsigned int  next_split_element = UINT_MAX;
  964|       |        //unsigned int* next_split_element_pos = 0;
  965|  5.40M|        unsigned int* ep = p.elements + cell->first;
  966|  5.40M|        if(current_node.fp_on)
  ------------------
  |  Branch (966:12): [True: 497k, False: 4.90M]
  ------------------
  967|   497k|          {
  968|       |            /* Find the next larger splitting element that is
  969|       |             * a minimal orbit representative w.r.t. first_path_orbits */
  970|  10.4M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (970:48): [True: 10.0M, False: 497k]
  ------------------
  971|  10.0M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (971:18): [True: 9.14M, False: 860k]
  ------------------
  972|  9.14M|                 *ep < next_split_element and
  ------------------
  |  Branch (972:18): [True: 8.55M, False: 586k]
  ------------------
  973|  8.55M|                 first_path_orbits.is_minimal_representative(*ep)) {
  ------------------
  |  Branch (973:18): [True: 286k, False: 8.26M]
  ------------------
  974|   286k|                next_split_element = *ep;
  975|       |                //next_split_element_pos = ep;
  976|   286k|              }
  977|  10.0M|            }
  978|   497k|          }
  979|  4.90M|        else if(current_node.in_best_path)
  ------------------
  |  Branch (979:17): [True: 267k, False: 4.63M]
  ------------------
  980|   267k|          {
  981|       |            /* Find the next larger splitting element that is
  982|       |             * a minimal orbit representative w.r.t. best_path_orbits */
  983|  2.43M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (983:48): [True: 2.16M, False: 267k]
  ------------------
  984|  2.16M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (984:18): [True: 1.64M, False: 525k]
  |  Branch (984:18): [True: 80.7k, False: 2.08M]
  ------------------
  985|  1.64M|                 *ep < next_split_element and
  ------------------
  |  Branch (985:18): [True: 1.22M, False: 421k]
  ------------------
  986|  1.22M|                 best_path_orbits.is_minimal_representative(*ep) and
  ------------------
  |  Branch (986:18): [True: 1.21M, False: 6.90k]
  ------------------
  987|  1.21M|                 (!opt_use_long_prune or
  ------------------
  |  Branch (987:19): [True: 0, False: 1.21M]
  ------------------
  988|  1.21M|                  current_node.long_prune_redundant.find(*ep) ==
  ------------------
  |  Branch (988:19): [True: 80.7k, False: 1.13M]
  ------------------
  989|  1.21M|                  current_node.long_prune_redundant.end())) {
  990|  80.7k|                next_split_element = *ep;
  991|       |                //next_split_element_pos = ep;
  992|  80.7k|              }
  993|  2.16M|            }
  994|   267k|          }
  995|  4.63M|        else
  996|  4.63M|          {
  997|       |            /* Find the next larger splitting element */
  998|  76.6M|            for(unsigned int i = cell->length; i > 0; i--, ep++) {
  ------------------
  |  Branch (998:48): [True: 71.9M, False: 4.63M]
  ------------------
  999|  71.9M|              if((int)(*ep) > current_node.split_element and
  ------------------
  |  Branch (999:18): [True: 71.9M, False: 6.61k]
  |  Branch (999:18): [True: 67.9M, False: 4.01M]
  ------------------
 1000|  71.9M|                 *ep < next_split_element and
  ------------------
  |  Branch (1000:18): [True: 67.9M, False: 3.99M]
  ------------------
 1001|  67.9M|                 (!opt_use_long_prune or
  ------------------
  |  Branch (1001:19): [True: 0, False: 67.9M]
  ------------------
 1002|  67.9M|                  current_node.long_prune_redundant.find(*ep) ==
  ------------------
  |  Branch (1002:19): [True: 67.9M, False: 12.8k]
  ------------------
 1003|  67.9M|                  current_node.long_prune_redundant.end())) {
 1004|  67.9M|                next_split_element = *ep;
 1005|       |                //next_split_element_pos = ep;
 1006|  67.9M|              }
 1007|  71.9M|            }
 1008|  4.63M|          }
 1009|  5.40M|        if(next_split_element == UINT_MAX)
  ------------------
  |  Branch (1009:12): [True: 432k, False: 4.96M]
  ------------------
 1010|   432k|          {
 1011|       |            /* No more (unexplored children) in the cell */
 1012|   432k|            current_node.split_element = TreeNode::SPLIT_END;
 1013|   432k|            if(current_node.fp_on)
  ------------------
  |  Branch (1013:16): [True: 237k, False: 194k]
  ------------------
 1014|   237k|              {
 1015|       |                /* Update group size */
 1016|   237k|                const unsigned int index = first_path_orbits.orbit_size(first_path_info[search_stack.size()-1].splitting_element);
 1017|   237k|                stats.group_size.multiply(index);
 1018|   237k|                stats.group_size_approx *= (long double)index;
 1019|       |                /*
 1020|       |                 * Update all_same_level
 1021|       |                 */
 1022|   237k|                if(index == cell->length and all_same_level == current_level+1)
  ------------------
  |  Branch (1022:20): [True: 232k, False: 4.82k]
  |  Branch (1022:46): [True: 160k, False: 72.0k]
  ------------------
 1023|   160k|                  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|   237k|              }
 1036|   432k|            continue;
 1037|   432k|          }
 1038|       |
 1039|       |        /* Split on smallest */
 1040|  4.96M|        current_node.split_element = next_split_element;
 1041|  4.96M|      }
 1042|       |
 1043|      0|      const unsigned int child_level = current_level+1;
 1044|       |      /* Update some statistics */
 1045|  4.96M|      stats.nof_nodes++;
 1046|  4.96M|      if(search_stack.size() > stats.max_level)
  ------------------
  |  Branch (1046:10): [True: 237k, False: 4.73M]
  ------------------
 1047|   237k|        stats.max_level = search_stack.size();
 1048|       |
 1049|       |
 1050|       |
 1051|       |      /* Set flags and indices for the refiner certificate builder */
 1052|  4.96M|      refine_equal_to_first = current_node.fp_cert_equal;
 1053|  4.96M|      refine_cmp_to_best = current_node.cmp_to_best_path;
 1054|  4.96M|      if(!first_path_info.empty())
  ------------------
  |  Branch (1054:10): [True: 4.73M, False: 237k]
  ------------------
 1055|  4.73M|        {
 1056|  4.73M|          if(refine_equal_to_first)
  ------------------
  |  Branch (1056:14): [True: 4.45M, False: 278k]
  ------------------
 1057|  4.45M|            refine_first_path_subcertificate_end =
 1058|  4.45M|              first_path_info[search_stack.size()-1].certificate_index +
 1059|  4.45M|              first_path_info[search_stack.size()-1].subcertificate_length;
 1060|  4.73M|          if(canonical)
  ------------------
  |  Branch (1060:14): [True: 3.72M, False: 1.00M]
  ------------------
 1061|  3.72M|            {
 1062|  3.72M|              if(refine_cmp_to_best == 0)
  ------------------
  |  Branch (1062:18): [True: 3.52M, False: 198k]
  ------------------
 1063|  3.52M|                refine_best_path_subcertificate_end =
 1064|  3.52M|                  best_path_info[search_stack.size()-1].certificate_index +
 1065|  3.52M|                  best_path_info[search_stack.size()-1].subcertificate_length;
 1066|  3.72M|            }
 1067|  1.00M|          else
 1068|  1.00M|            refine_cmp_to_best = -1;
 1069|  4.73M|        }
 1070|       |
 1071|  4.96M|      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.96M|      Partition::Cell* const new_cell =
 1076|  4.96M|        p.individualize(cell, current_node.split_element);
 1077|       |
 1078|       |      /*
 1079|       |       * Refine the new partition to equitable
 1080|       |       */
 1081|  4.96M|      if(cell->is_unit())
  ------------------
  |  Branch (1081:10): [True: 372k, False: 4.59M]
  ------------------
 1082|   372k|        refine_to_equitable(cell, new_cell);
 1083|  4.59M|      else
 1084|  4.59M|        refine_to_equitable(new_cell);
 1085|       |
 1086|       |
 1087|       |
 1088|       |
 1089|       |      /* Update statistics */
 1090|  4.96M|      if(p.is_discrete())
  ------------------
  |  Branch (1090:10): [True: 71.9k, False: 4.89M]
  ------------------
 1091|  71.9k|        stats.nof_leaf_nodes++;
 1092|       |
 1093|       |
 1094|  4.96M|      if(!first_path_info.empty())
  ------------------
  |  Branch (1094:10): [True: 4.73M, False: 237k]
  ------------------
 1095|  4.73M|        {
 1096|       |          /* We are no longer on the first path */
 1097|  4.73M|          const unsigned int subcertificate_length =
 1098|  4.73M|            certificate_current_path.size() - certificate_index;
 1099|  4.73M|          if(refine_equal_to_first)
  ------------------
  |  Branch (1099:14): [True: 4.43M, False: 294k]
  ------------------
 1100|  4.43M|            {
 1101|       |              /* Was equal to the first path so far */
 1102|  4.43M|              PathInfo& first_pinfo = first_path_info[current_level];
 1103|  4.43M|              assert(first_pinfo.certificate_index == certificate_index);
  ------------------
  |  Branch (1103:15): [True: 4.43M, False: 0]
  ------------------
 1104|  4.43M|              if(subcertificate_length != first_pinfo.subcertificate_length)
  ------------------
  |  Branch (1104:18): [True: 4, False: 4.43M]
  ------------------
 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.43M|              else if(first_pinfo.eqref_hash.cmp(eqref_hash) != 0)
  ------------------
  |  Branch (1110:23): [True: 0, False: 4.43M]
  ------------------
 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.43M|            }
 1117|  4.73M|          if(canonical and (refine_cmp_to_best == 0))
  ------------------
  |  Branch (1117:14): [True: 3.72M, False: 1.00M]
  |  Branch (1117:28): [True: 3.43M, False: 285k]
  ------------------
 1118|  3.43M|            {
 1119|       |              /* Was equal to the best path so far */
 1120|  3.43M|              PathInfo& bestp_info = best_path_info[current_level];
 1121|  3.43M|              assert(bestp_info.certificate_index == certificate_index);
  ------------------
  |  Branch (1121:15): [True: 3.43M, False: 0]
  ------------------
 1122|  3.43M|              if(subcertificate_length < bestp_info.subcertificate_length)
  ------------------
  |  Branch (1122:18): [True: 1, False: 3.43M]
  ------------------
 1123|      1|                {
 1124|      1|                  refine_cmp_to_best = -1;
 1125|      1|                }
 1126|  3.43M|              else if(subcertificate_length > bestp_info.subcertificate_length)
  ------------------
  |  Branch (1126:23): [True: 0, False: 3.43M]
  ------------------
 1127|      0|                {
 1128|      0|                  refine_cmp_to_best = 1;
 1129|      0|                }
 1130|  3.43M|              else if(bestp_info.eqref_hash.cmp(eqref_hash) > 0)
  ------------------
  |  Branch (1130:23): [True: 0, False: 3.43M]
  ------------------
 1131|      0|                {
 1132|      0|                  refine_cmp_to_best = -1;
 1133|      0|                }
 1134|  3.43M|              else if(bestp_info.eqref_hash.cmp(eqref_hash) < 0)
  ------------------
  |  Branch (1134:23): [True: 0, False: 3.43M]
  ------------------
 1135|      0|                {
 1136|      0|                  refine_cmp_to_best = 1;
 1137|      0|                }
 1138|  3.43M|            }
 1139|       |
 1140|  4.73M|          if(opt_use_failure_recording and
  ------------------
  |  Branch (1140:14): [True: 4.73M, False: 0]
  ------------------
 1141|  4.73M|             was_fp_cert_equal and
  ------------------
  |  Branch (1141:14): [True: 4.45M, False: 278k]
  ------------------
 1142|  4.45M|             !refine_equal_to_first)
  ------------------
  |  Branch (1142:14): [True: 15.6k, False: 4.43M]
  ------------------
 1143|  15.6k|            {
 1144|  15.6k|              UintSeqHash k;
 1145|  15.6k|              k.update(failure_recording_fp_deviation);
 1146|  15.6k|              k.update(eqref_hash.get_value());
 1147|  15.6k|              failure_recording_fp_deviation = k.get_value();
 1148|       |
 1149|  15.6k|              if(current_node.fp_on)
  ------------------
  |  Branch (1149:18): [True: 14.0k, False: 1.55k]
  ------------------
 1150|  14.0k|                failure_recording_hashes[current_level].insert(failure_recording_fp_deviation);
 1151|  1.55k|              else
 1152|  1.55k|                {
 1153|  2.39k|                  for(unsigned int i = current_level; i > 0; i--)
  ------------------
  |  Branch (1153:55): [True: 2.37k, False: 20]
  ------------------
 1154|  2.37k|                    {
 1155|  2.37k|                      if(search_stack[i].fp_on)
  ------------------
  |  Branch (1155:26): [True: 299, False: 2.07k]
  ------------------
 1156|    299|                        break;
 1157|  2.07k|                      const FailureRecordingSet& s = failure_recording_hashes[i];
 1158|  2.07k|                      if(i == current_level and
  ------------------
  |  Branch (1158:26): [True: 1.55k, False: 522]
  |  Branch (1158:26): [True: 953, False: 1.11k]
  ------------------
 1159|  1.55k|                         s.find(failure_recording_fp_deviation) != s.end())
  ------------------
  |  Branch (1159:26): [True: 953, False: 597]
  ------------------
 1160|    953|                        break;
 1161|  1.11k|                      if(s.find(0) != s.end())
  ------------------
  |  Branch (1161:26): [True: 278, False: 841]
  ------------------
 1162|    278|                        break;
 1163|    841|                      search_stack[i].fp_extendable = TreeNode::NO;
 1164|    841|                    }
 1165|  1.55k|                }
 1166|  15.6k|            }
 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.73M|          if(refine_equal_to_first == false and
  ------------------
  |  Branch (1172:14): [True: 294k, False: 4.43M]
  ------------------
 1173|   294k|             (!canonical or (refine_cmp_to_best < 0)))
  ------------------
  |  Branch (1173:15): [True: 2.65k, False: 291k]
  |  Branch (1173:29): [True: 37.8k, False: 253k]
  ------------------
 1174|  40.5k|            {
 1175|       |              /* Yes, backtrack */
 1176|  40.5k|              stats.nof_bad_nodes++;
 1177|  40.5k|              if(current_node.fp_cert_equal == true and
  ------------------
  |  Branch (1177:18): [True: 10.6k, False: 29.8k]
  ------------------
 1178|  10.6k|                 current_level+1 > all_same_level)
  ------------------
  |  Branch (1178:18): [True: 296, False: 10.4k]
  ------------------
 1179|    296|                {
 1180|    296|                  assert(all_same_level >= 1);
  ------------------
  |  Branch (1180:19): [True: 296, False: 0]
  ------------------
 1181|    296|                  for(unsigned int i = all_same_level;
 1182|    898|                      i < search_stack.size();
  ------------------
  |  Branch (1182:23): [True: 602, False: 296]
  ------------------
 1183|    602|                      i++)
 1184|    602|                    {
 1185|    602|                      search_stack[i].fp_extendable = TreeNode::NO;
 1186|    602|                    }
 1187|    296|                }
 1188|       |
 1189|  40.5k|              continue;
 1190|  40.5k|            }
 1191|  4.73M|        }
 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.92M|      TreeNode child_node;
 1203|       |
 1204|       |      /* No more in the first path */
 1205|  4.92M|      child_node.fp_on = false;
 1206|       |      /* No more in the best path */
 1207|  4.92M|      child_node.in_best_path = false;
 1208|       |
 1209|  4.92M|      child_node.fp_cert_equal = refine_equal_to_first;
 1210|  4.92M|      if(current_node.fp_extendable == TreeNode::NO or
  ------------------
  |  Branch (1210:10): [True: 240k, False: 4.68M]
  ------------------
 1211|  4.68M|         (current_node.fp_extendable == TreeNode::MAYBE and
  ------------------
  |  Branch (1211:11): [True: 4.44M, False: 242k]
  ------------------
 1212|  4.44M|          child_node.fp_cert_equal == false))
  ------------------
  |  Branch (1212:11): [True: 9.11k, False: 4.43M]
  ------------------
 1213|   249k|        child_node.fp_extendable = TreeNode::NO;
 1214|  4.67M|      else
 1215|  4.67M|        child_node.fp_extendable = TreeNode::MAYBE;
 1216|  4.92M|      child_node.cmp_to_best_path = refine_cmp_to_best;
 1217|       |
 1218|  4.92M|      child_node.failure_recording_ival = 0;
 1219|  4.92M|      child_node.cr_cep_stack_size = current_node.cr_cep_stack_size;
 1220|  4.92M|      child_node.cr_cep_index = current_node.cr_cep_index;
 1221|  4.92M|      child_node.cr_level = current_node.cr_level;
 1222|       |
 1223|  4.92M|      certificate_index = certificate_current_path.size();
 1224|       |
 1225|  4.92M|      current_node.eqref_hash = eqref_hash;
 1226|  4.92M|      current_node.subcertificate_length =
 1227|  4.92M|        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.92M|      if(p.is_discrete() and first_path_info.empty())
  ------------------
  |  Branch (1233:10): [True: 71.5k, False: 4.85M]
  |  Branch (1233:30): [True: 7.87k, False: 63.6k]
  ------------------
 1234|  7.87k|        {
 1235|       |          //fprintf(stdout, "Level %u: FIRST\n", child_level); fflush(stdout);
 1236|  7.87k|          stats.nof_canupdates++;
 1237|       |          /*
 1238|       |           * Update labelings and their inverses
 1239|       |           */
 1240|  7.87k|          update_labeling_and_its_inverse(first_path_labeling,
 1241|  7.87k|                                          first_path_labeling_inv);
 1242|  7.87k|          update_labeling_and_its_inverse(best_path_labeling,
 1243|  7.87k|                                          best_path_labeling_inv);
 1244|       |          /*
 1245|       |           * Reset automorphism array
 1246|       |           */
 1247|  7.87k|          reset_permutation(first_path_automorphism);
 1248|  7.87k|          reset_permutation(best_path_automorphism);
 1249|       |          /*
 1250|       |           * Reset orbit information
 1251|       |           */
 1252|  7.87k|          first_path_orbits.reset();
 1253|  7.87k|          best_path_orbits.reset();
 1254|       |          /*
 1255|       |           * Reset group size
 1256|       |           */
 1257|  7.87k|          stats.group_size.assign(1);
 1258|  7.87k|          stats.group_size_approx = 1.0;
 1259|       |          /*
 1260|       |           * Reset all_same_level
 1261|       |           */
 1262|  7.87k|          all_same_level = child_level;
 1263|       |          /*
 1264|       |           * Mark the current path to be the first and best one and save it
 1265|       |           */
 1266|  7.87k|          const unsigned int base_size = search_stack.size();
 1267|  7.87k|          best_path_info.clear();
 1268|       |          //fprintf(stdout, " New base is: ");
 1269|   245k|          for(unsigned int i = 0; i < base_size; i++) {
  ------------------
  |  Branch (1269:35): [True: 237k, False: 7.87k]
  ------------------
 1270|   237k|            search_stack[i].fp_on = true;
 1271|   237k|            search_stack[i].fp_cert_equal = true;
 1272|   237k|            search_stack[i].fp_extendable = TreeNode::YES;
 1273|   237k|            search_stack[i].in_best_path = true;
 1274|   237k|            search_stack[i].cmp_to_best_path = 0;
 1275|   237k|            PathInfo path_info;
 1276|   237k|            path_info.splitting_element = search_stack[i].split_element;
 1277|   237k|            path_info.certificate_index = search_stack[i].certificate_index;
 1278|   237k|            path_info.eqref_hash = search_stack[i].eqref_hash;
 1279|   237k|            path_info.subcertificate_length = search_stack[i].subcertificate_length;
 1280|   237k|            first_path_info.push_back(path_info);
 1281|   237k|            best_path_info.push_back(path_info);
 1282|       |            //fprintf(stdout, "%u ", search_stack[i].split_element);
 1283|   237k|          }
 1284|       |          //fprintf(stdout, "\n"); fflush(stdout);
 1285|       |          /* Copy certificates */
 1286|  7.87k|          certificate_first_path = certificate_current_path;
 1287|  7.87k|          certificate_best_path = certificate_current_path;
 1288|       |
 1289|       |          /* From now on, compare certificates when refining */
 1290|  7.87k|          refine_compare_certificate = true;
 1291|       |
 1292|  7.87k|          if(opt_use_failure_recording)
  ------------------
  |  Branch (1292:14): [True: 7.87k, False: 0]
  ------------------
 1293|  7.87k|            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.87k|          continue;
 1306|  7.87k|        }
 1307|       |
 1308|       |
 1309|  4.92M|      if(p.is_discrete() and child_node.fp_cert_equal)
  ------------------
  |  Branch (1309:10): [True: 63.6k, False: 4.85M]
  |  Branch (1309:30): [True: 45.9k, False: 17.7k]
  ------------------
 1310|  45.9k|        {
 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|  45.9k|          goto handle_first_path_automorphism;
 1316|  45.9k|        }
 1317|       |
 1318|       |
 1319|  4.87M|      if(!p.is_discrete())
  ------------------
  |  Branch (1319:10): [True: 4.85M, False: 17.7k]
  ------------------
 1320|  4.85M|        {
 1321|  4.85M|          Partition::Cell* next_split_cell = 0;
 1322|       |          /*
 1323|       |           * An internal, non-leaf node
 1324|       |           */
 1325|  4.85M|          if(opt_use_comprec)
  ------------------
  |  Branch (1325:14): [True: 4.85M, False: 0]
  ------------------
 1326|  4.85M|            {
 1327|  4.85M|              assert(p.nof_discrete_cells() <=
  ------------------
  |  Branch (1327:15): [True: 4.85M, False: 0]
  ------------------
 1328|  4.85M|                     cr_cep_stack[cr_cep_index].discrete_cell_limit);
 1329|  4.85M|              assert(cr_level == child_node.cr_level);
  ------------------
  |  Branch (1329:15): [True: 4.85M, False: 0]
  ------------------
 1330|       |
 1331|       |
 1332|  4.85M|              if(p.nof_discrete_cells() ==
  ------------------
  |  Branch (1332:18): [True: 316k, False: 4.54M]
  ------------------
 1333|  4.85M|                 cr_cep_stack[cr_cep_index].discrete_cell_limit)
 1334|   316k|                {
 1335|       |                  /* We have reached the end of a component */
 1336|   316k|                  assert(cr_cep_index != 0);
  ------------------
  |  Branch (1336:19): [True: 316k, False: 0]
  ------------------
 1337|   316k|                  CR_CEP& cep = cr_cep_stack[cr_cep_index];
 1338|       |
 1339|       |                  /* First, compare with respect to the first path */
 1340|   316k|                  if(first_path_info.empty() or child_node.fp_cert_equal) {
  ------------------
  |  Branch (1340:22): [True: 12.0k, False: 304k]
  |  Branch (1340:49): [True: 202k, False: 101k]
  ------------------
 1341|   214k|                    if(cep.first_checked == false)
  ------------------
  |  Branch (1341:24): [True: 23.2k, False: 191k]
  ------------------
 1342|  23.2k|                      {
 1343|       |                        /* First time, go to the next component */
 1344|  23.2k|                        cep.first_checked = true;
 1345|  23.2k|                      }
 1346|   191k|                    else
 1347|   191k|                      {
 1348|   191k|                        assert(!first_path_info.empty());
  ------------------
  |  Branch (1348:25): [True: 191k, False: 0]
  ------------------
 1349|   191k|                        assert(cep.creation_level < search_stack.size());
  ------------------
  |  Branch (1349:25): [True: 191k, False: 0]
  ------------------
 1350|   191k|                        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|   191k|                        if(old_info.fp_on)
  ------------------
  |  Branch (1354:28): [True: 191k, False: 73]
  ------------------
 1355|   191k|                          goto handle_first_path_automorphism;
 1356|   191k|                      }
 1357|   214k|                  }
 1358|       |
 1359|   125k|                  if(canonical and
  ------------------
  |  Branch (1359:22): [True: 118k, False: 6.48k]
  ------------------
 1360|   118k|                     !first_path_info.empty() and
  ------------------
  |  Branch (1360:22): [True: 109k, False: 9.14k]
  ------------------
 1361|   109k|                     child_node.cmp_to_best_path >= 0) {
  ------------------
  |  Branch (1361:22): [True: 107k, False: 1.79k]
  ------------------
 1362|   107k|                    if(cep.best_checked == false)
  ------------------
  |  Branch (1362:24): [True: 74.5k, False: 33.0k]
  ------------------
 1363|  74.5k|                      {
 1364|       |                        /* First time, go to the next component */
 1365|  74.5k|                        cep.best_checked = true;
 1366|  74.5k|                      }
 1367|  33.0k|                    else
 1368|  33.0k|                      {
 1369|  33.0k|                        assert(cep.creation_level < search_stack.size());
  ------------------
  |  Branch (1369:25): [True: 33.0k, False: 0]
  ------------------
 1370|  33.0k|                        TreeNode& old_info = search_stack[cep.creation_level];
 1371|  33.0k|                        if(child_node.cmp_to_best_path == 0) {
  ------------------
  |  Branch (1371:28): [True: 2.03k, False: 31.0k]
  ------------------
 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.03k|                          if(old_info.in_best_path)
  ------------------
  |  Branch (1375:30): [True: 1.95k, False: 76]
  ------------------
 1376|  1.95k|                            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|     76|                          child_node.cmp_to_best_path = -1;
 1383|     76|                          if(!child_node.fp_cert_equal)
  ------------------
  |  Branch (1383:30): [True: 10, False: 66]
  ------------------
 1384|     10|                            {
 1385|     10|                              continue;
 1386|     10|                            }
 1387|     76|                        }
 1388|  31.0k|                        else {
 1389|  31.0k|                          assert(child_node.cmp_to_best_path > 0);
  ------------------
  |  Branch (1389:27): [True: 31.0k, False: 0]
  ------------------
 1390|  31.0k|                          if(old_info.in_best_path)
  ------------------
  |  Branch (1390:30): [True: 31.0k, False: 0]
  ------------------
 1391|  31.0k|                            {
 1392|  31.0k|                              stats.nof_canupdates++;
 1393|       |                              /*
 1394|       |                               * Update canonical labeling and its inverse
 1395|       |                               */
 1396|  1.99M|                              for(unsigned int i = 0; i < N; i++) {
  ------------------
  |  Branch (1396:55): [True: 1.96M, False: 31.0k]
  ------------------
 1397|  1.96M|                                if(p.get_cell(p.elements[i])->is_unit()) {
  ------------------
  |  Branch (1397:36): [True: 1.53M, False: 435k]
  ------------------
 1398|  1.53M|                                  best_path_labeling[p.elements[i]] = i;
 1399|  1.53M|                                  best_path_labeling_inv[i] = p.elements[i];
 1400|  1.53M|                                }
 1401|  1.96M|                              }
 1402|       |                              //update_labeling_and_its_inverse(best_path_labeling, best_path_labeling_inv);
 1403|       |                              /* Reset best path automorphism */
 1404|  31.0k|                              reset_permutation(best_path_automorphism);
 1405|       |                              /* Reset best path orbit structure */
 1406|  31.0k|                              best_path_orbits.reset();
 1407|       |                              /* Mark to be the best one and save prefix */
 1408|  31.0k|                              unsigned int postfix_start = cep.creation_level;
 1409|  31.0k|                              assert(postfix_start < best_path_info.size());
  ------------------
  |  Branch (1409:31): [True: 31.0k, False: 0]
  ------------------
 1410|   225k|                              while(p.get_cell(best_path_info[postfix_start].splitting_element)->is_unit()) {
  ------------------
  |  Branch (1410:37): [True: 194k, False: 31.0k]
  ------------------
 1411|   194k|                                postfix_start++;
 1412|   194k|                                assert(postfix_start < best_path_info.size());
  ------------------
  |  Branch (1412:33): [True: 194k, False: 0]
  ------------------
 1413|   194k|                              }
 1414|  31.0k|                              unsigned int postfix_start_cert = best_path_info[postfix_start].certificate_index;
 1415|  31.0k|                              std::vector<PathInfo> best_path_temp = best_path_info;
 1416|  31.0k|                              best_path_info.clear();
 1417|  1.10M|                              for(unsigned int i = 0; i < search_stack.size(); i++) {
  ------------------
  |  Branch (1417:55): [True: 1.07M, False: 31.0k]
  ------------------
 1418|  1.07M|                                TreeNode& ss_info = search_stack[i];
 1419|  1.07M|                                PathInfo  bp_info;
 1420|  1.07M|                                ss_info.cmp_to_best_path = 0;
 1421|  1.07M|                                ss_info.in_best_path = true;
 1422|  1.07M|                                bp_info.splitting_element = ss_info.split_element;
 1423|  1.07M|                                bp_info.certificate_index = ss_info.certificate_index;
 1424|  1.07M|                                bp_info.subcertificate_length = ss_info.subcertificate_length;
 1425|  1.07M|                                bp_info.eqref_hash = ss_info.eqref_hash;
 1426|  1.07M|                                best_path_info.push_back(bp_info);
 1427|  1.07M|                              }
 1428|       |                              /* Copy the postfix of the previous best path */
 1429|  31.0k|                              for(unsigned int i = postfix_start;
 1430|   170k|                                  i < best_path_temp.size();
  ------------------
  |  Branch (1430:35): [True: 139k, False: 31.0k]
  ------------------
 1431|   139k|                                  i++)
 1432|   139k|                                {
 1433|   139k|                                  best_path_info.push_back(best_path_temp[i]);
 1434|   139k|                                  best_path_info[best_path_info.size()-1].certificate_index =
 1435|   139k|                                    best_path_info[best_path_info.size()-2].certificate_index +
 1436|   139k|                                    best_path_info[best_path_info.size()-2].subcertificate_length;
 1437|   139k|                                }
 1438|  31.0k|                              std::vector<unsigned int> certificate_best_path_old = certificate_best_path;
 1439|  31.0k|                              certificate_best_path = certificate_current_path;
 1440|  2.64M|                              for(unsigned int i = postfix_start_cert;  i < certificate_best_path_old.size(); i++)
  ------------------
  |  Branch (1440:73): [True: 2.60M, False: 31.0k]
  ------------------
 1441|  2.60M|                                certificate_best_path.push_back(certificate_best_path_old[i]);
 1442|  31.0k|                              assert(certificate_best_path.size() == best_path_info.back().certificate_index + best_path_info.back().subcertificate_length);
  ------------------
  |  Branch (1442:31): [True: 31.0k, False: 0]
  ------------------
 1443|       |                              /* Backtrack to the previous level */
 1444|  31.0k|                              continue;
 1445|  31.0k|                            }
 1446|  31.0k|                        }
 1447|  33.0k|                      }
 1448|   107k|                  }
 1449|       |
 1450|       |                  /* No backtracking performed, go to next componenet */
 1451|  92.0k|                  cr_level = cep.next_cr_level;
 1452|  92.0k|                  cr_cep_index = cep.next_cep_index;
 1453|  92.0k|                }
 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.63M|              if(nucr_find_first_component(cr_level, cr_component,
  ------------------
  |  Branch (1460:18): [True: 4.63M, False: 0]
  ------------------
 1461|  4.63M|                                           cr_component_elements,
 1462|  4.63M|                                           next_split_cell) == true and
 1463|  4.63M|                 p.nof_discrete_cells() + cr_component_elements <
  ------------------
  |  Branch (1463:18): [True: 85.3k, False: 4.54M]
  ------------------
 1464|  4.63M|                 cr_cep_stack[cr_cep_index].discrete_cell_limit)
 1465|  85.3k|                {
 1466|  85.3k|                  const unsigned int next_cr_level =
 1467|  85.3k|                    p.cr_split_level(cr_level, cr_component);
 1468|  85.3k|                  CR_CEP cep;
 1469|  85.3k|                  cep.creation_level = search_stack.size();
 1470|  85.3k|                  cep.discrete_cell_limit =
 1471|  85.3k|                    p.nof_discrete_cells() + cr_component_elements;
 1472|  85.3k|                  cep.next_cr_level = cr_level;
 1473|  85.3k|                  cep.next_cep_index = cr_cep_index;
 1474|  85.3k|                  cep.first_checked = false;
 1475|  85.3k|                  cep.best_checked = false;
 1476|  85.3k|                  cr_cep_index = cr_cep_stack.size();
 1477|  85.3k|                  cr_cep_stack.push_back(cep);
 1478|  85.3k|                  cr_level = next_cr_level;
 1479|  85.3k|                }
 1480|  4.63M|            }
 1481|       |
 1482|       |
 1483|       |          /*
 1484|       |           * Build the next node info
 1485|       |           */
 1486|       |          /* Find the next cell to be splitted */
 1487|  4.63M|          if(!next_split_cell)
  ------------------
  |  Branch (1487:14): [True: 0, False: 4.63M]
  ------------------
 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.63M|          child_node.split_cell_first = next_split_cell->first;
 1491|  4.63M|          child_node.split_element = TreeNode::SPLIT_START;
 1492|  4.63M|          child_node.certificate_index = certificate_index;
 1493|  4.63M|          child_node.partition_bt_point = p.set_backtrack_point();
 1494|  4.63M|          child_node.long_prune_redundant.clear();
 1495|  4.63M|          child_node.long_prune_begin = current_node.long_prune_begin;
 1496|       |
 1497|       |          /* Save component recursion info for backtracking */
 1498|  4.63M|          child_node.cr_level = cr_level;
 1499|  4.63M|          child_node.cr_cep_stack_size = cr_cep_stack.size();
 1500|  4.63M|          child_node.cr_cep_index = cr_cep_index;
 1501|       |
 1502|  4.63M|          search_stack.push_back(child_node);
 1503|  4.63M|          continue;
 1504|  4.85M|        }
 1505|       |
 1506|       |      /*
 1507|       |       * A leaf node not in the first path or equivalent to the first path
 1508|       |       */
 1509|       |
 1510|       |
 1511|       |
 1512|  17.7k|      if(child_node.cmp_to_best_path > 0)
  ------------------
  |  Branch (1512:10): [True: 16.4k, False: 1.29k]
  ------------------
 1513|  16.4k|        {
 1514|       |          /*
 1515|       |           * A new, better representative found
 1516|       |           */
 1517|       |          //fprintf(stdout, "Level %u: NEW BEST\n", child_level); fflush(stdout);
 1518|  16.4k|          stats.nof_canupdates++;
 1519|       |          /*
 1520|       |           * Update canonical labeling and its inverse
 1521|       |           */
 1522|  16.4k|          update_labeling_and_its_inverse(best_path_labeling,
 1523|  16.4k|                                          best_path_labeling_inv);
 1524|       |          /* Reset best path automorphism */
 1525|  16.4k|          reset_permutation(best_path_automorphism);
 1526|       |          /* Reset best path orbit structure */
 1527|  16.4k|          best_path_orbits.reset();
 1528|       |          /*
 1529|       |           * Mark the current path to be the best one and save it
 1530|       |           */
 1531|  16.4k|          const unsigned int base_size = search_stack.size();
 1532|  16.4k|          assert(current_level+1 == base_size);
  ------------------
  |  Branch (1532:11): [True: 16.4k, False: 0]
  ------------------
 1533|  16.4k|          best_path_info.clear();
 1534|   677k|          for(unsigned int i = 0; i < base_size; i++) {
  ------------------
  |  Branch (1534:35): [True: 661k, False: 16.4k]
  ------------------
 1535|   661k|            search_stack[i].cmp_to_best_path = 0;
 1536|   661k|            search_stack[i].in_best_path = true;
 1537|   661k|            PathInfo path_info;
 1538|   661k|            path_info.splitting_element = search_stack[i].split_element;
 1539|   661k|            path_info.certificate_index = search_stack[i].certificate_index;
 1540|   661k|            path_info.subcertificate_length = search_stack[i].subcertificate_length;
 1541|   661k|            path_info.eqref_hash = search_stack[i].eqref_hash;
 1542|   661k|            best_path_info.push_back(path_info);
 1543|   661k|          }
 1544|  16.4k|          certificate_best_path = certificate_current_path;
 1545|       |          /*
 1546|       |           * Backtrack to the previous level
 1547|       |           */
 1548|  16.4k|          continue;
 1549|  16.4k|        }
 1550|       |
 1551|       |
 1552|  3.24k|    handle_best_path_automorphism:
 1553|       |      /*
 1554|       |       *
 1555|       |       * Best path automorphism handling
 1556|       |       *
 1557|       |       */
 1558|  3.24k|      {
 1559|       |
 1560|       |        /*
 1561|       |         * Equal to the previous best path
 1562|       |         */
 1563|  3.24k|        if(p.is_discrete())
  ------------------
  |  Branch (1563:12): [True: 1.29k, False: 1.95k]
  ------------------
 1564|  1.29k|          {
 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.29k|          }
 1572|  1.95k|        else
 1573|  1.95k|          {
 1574|       |            /* An automorphism that was found before the partition was discrete.
 1575|       |             * Set the image of all elements in non-disrete cells accordingly */
 1576|  9.96k|            for(Partition::Cell* c = p.first_nonsingleton_cell; c;
  ------------------
  |  Branch (1576:65): [True: 8.01k, False: 1.95k]
  ------------------
 1577|  8.01k|                c = c->next_nonsingleton) {
 1578|  24.5k|              for(unsigned int i = c->first; i < c->first+c->length; i++)
  ------------------
  |  Branch (1578:46): [True: 16.5k, False: 8.01k]
  ------------------
 1579|  16.5k|                if(p.get_cell(p.elements[best_path_labeling[p.elements[i]]])->is_unit())
  ------------------
  |  Branch (1579:20): [True: 0, False: 16.5k]
  ------------------
 1580|      0|                  best_path_automorphism[p.elements[best_path_labeling[p.elements[i]]]] = p.elements[i];
 1581|  16.5k|                else
 1582|  16.5k|                  best_path_automorphism[p.elements[i]] = p.elements[i];
 1583|  8.01k|            }
 1584|  1.95k|          }
 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.24k|        unsigned int gca_level_with_first = 0;
 1593|   114k|        for(unsigned int i = search_stack.size(); i > 0; i--) {
  ------------------
  |  Branch (1593:51): [True: 114k, False: 0]
  ------------------
 1594|   114k|          if((int)first_path_info[gca_level_with_first].splitting_element !=
  ------------------
  |  Branch (1594:14): [True: 3.24k, False: 111k]
  ------------------
 1595|   114k|             search_stack[gca_level_with_first].split_element)
 1596|  3.24k|            break;
 1597|   111k|          gca_level_with_first++;
 1598|   111k|        }
 1599|       |
 1600|  3.24k|        unsigned int gca_level_with_best = 0;
 1601|   118k|        for(unsigned int i = search_stack.size(); i > 0; i--) {
  ------------------
  |  Branch (1601:51): [True: 118k, False: 0]
  ------------------
 1602|   118k|          if((int)best_path_info[gca_level_with_best].splitting_element !=
  ------------------
  |  Branch (1602:14): [True: 3.24k, False: 115k]
  ------------------
 1603|   118k|             search_stack[gca_level_with_best].split_element)
 1604|  3.24k|            break;
 1605|   115k|          gca_level_with_best++;
 1606|   115k|        }
 1607|       |
 1608|  3.24k|        if(opt_use_long_prune)
  ------------------
  |  Branch (1608:12): [True: 3.24k, False: 0]
  ------------------
 1609|  3.24k|          {
 1610|       |            /* Record automorphism */
 1611|  3.24k|            long_prune_add_automorphism(best_path_automorphism);
 1612|  3.24k|          }
 1613|       |
 1614|       |        /*
 1615|       |         * Update orbit information
 1616|       |         */
 1617|  3.24k|        update_orbit_information(best_path_orbits, best_path_automorphism);
 1618|       |
 1619|       |        /*
 1620|       |         * Update orbit information
 1621|       |         */
 1622|  3.24k|        const unsigned int nof_old_orbits = first_path_orbits.nof_orbits();
 1623|  3.24k|        update_orbit_information(first_path_orbits, best_path_automorphism);
 1624|  3.24k|        if(nof_old_orbits != first_path_orbits.nof_orbits())
  ------------------
  |  Branch (1624:12): [True: 2.21k, False: 1.03k]
  ------------------
 1625|  2.21k|          {
 1626|       |            /* Some orbits were merged */
 1627|       |            /* Report automorphism */
 1628|  2.21k|            if(report)
  ------------------
  |  Branch (1628:16): [True: 0, False: 2.21k]
  ------------------
 1629|      0|              report(get_nof_vertices(), best_path_automorphism);
 1630|       |            /* Update statistics */
 1631|  2.21k|            stats.nof_generators++;
 1632|  2.21k|          }
 1633|       |
 1634|       |        /*
 1635|       |         * Compute backjumping level
 1636|       |         */
 1637|  3.24k|        unsigned int backjumping_level = current_level+1-1;
 1638|  3.24k|        if(!first_path_orbits.is_minimal_representative(search_stack[gca_level_with_first].split_element))
  ------------------
  |  Branch (1638:12): [True: 473, False: 2.77k]
  ------------------
 1639|    473|          {
 1640|    473|            backjumping_level = gca_level_with_first;
 1641|    473|          }
 1642|  2.77k|        else
 1643|  2.77k|          {
 1644|  2.77k|            assert(!best_path_orbits.is_minimal_representative(search_stack[gca_level_with_best].split_element));
  ------------------
  |  Branch (1644:13): [True: 2.77k, False: 0]
  ------------------
 1645|  2.77k|            backjumping_level = gca_level_with_best;
 1646|  2.77k|          }
 1647|       |        /* Backtrack */
 1648|  3.24k|        search_stack.resize(backjumping_level + 1);
 1649|  3.24k|        continue;
 1650|  3.24k|      }
 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|   237k|    handle_first_path_automorphism:
 1657|       |      /*
 1658|       |       *
 1659|       |       * A first-path automorphism: aut[i] = elements[first_path_labeling[i]]
 1660|       |       *
 1661|       |       */
 1662|       |
 1663|       |
 1664|   237k|      if(p.is_discrete())
  ------------------
  |  Branch (1664:10): [True: 45.9k, False: 191k]
  ------------------
 1665|  45.9k|        {
 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|  45.9k|        }
 1673|   191k|      else
 1674|   191k|        {
 1675|       |          /* An automorphism that was found before the partition was discrete.
 1676|       |           * Set the image of all elements in non-disrete cells accordingly */
 1677|   629k|          for(Partition::Cell* c = p.first_nonsingleton_cell; c;
  ------------------
  |  Branch (1677:63): [True: 437k, False: 191k]
  ------------------
 1678|   437k|              c = c->next_nonsingleton) {
 1679|  2.93M|            for(unsigned int i = c->first; i < c->first+c->length; i++)
  ------------------
  |  Branch (1679:44): [True: 2.49M, False: 437k]
  ------------------
 1680|  2.49M|              if(p.get_cell(p.elements[first_path_labeling[p.elements[i]]])->is_unit())
  ------------------
  |  Branch (1680:18): [True: 0, False: 2.49M]
  ------------------
 1681|      0|                first_path_automorphism[p.elements[first_path_labeling[p.elements[i]]]] = p.elements[i];
 1682|  2.49M|              else
 1683|  2.49M|                first_path_automorphism[p.elements[i]] = p.elements[i];
 1684|   437k|          }
 1685|   191k|        }
 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|   237k|      if(opt_use_long_prune)
  ------------------
  |  Branch (1693:10): [True: 237k, False: 0]
  ------------------
 1694|   237k|        {
 1695|   237k|          long_prune_add_automorphism(first_path_automorphism);
 1696|   237k|        }
 1697|       |
 1698|       |      /*
 1699|       |       * Update orbit information
 1700|       |       */
 1701|   237k|      update_orbit_information(first_path_orbits, first_path_automorphism);
 1702|       |
 1703|       |      /*
 1704|       |       * Compute backjumping level
 1705|       |       */
 1706|  9.81M|      for(unsigned int i = 0; i < search_stack.size(); i++) {
  ------------------
  |  Branch (1706:31): [True: 9.57M, False: 237k]
  ------------------
 1707|  9.57M|        TreeNode& n = search_stack[i];
 1708|  9.57M|        if(n.fp_on) {
  ------------------
  |  Branch (1708:12): [True: 5.37M, False: 4.19M]
  ------------------
 1709|  5.37M|          ;
 1710|  5.37M|        } else {
 1711|  4.19M|          n.fp_extendable = TreeNode::YES;
 1712|  4.19M|        }
 1713|  9.57M|      }
 1714|       |
 1715|       |      /* Report automorphism by calling the user defined hook function */
 1716|   237k|      if(report)
  ------------------
  |  Branch (1716:10): [True: 56.3k, False: 181k]
  ------------------
 1717|  56.3k|        report(get_nof_vertices(), first_path_automorphism);
 1718|       |      /* Update statistics */
 1719|   237k|      stats.nof_generators++;
 1720|   237k|      continue;
 1721|       |
 1722|      0|    } /* while(!search_stack.empty()) */
 1723|       |
 1724|       |
 1725|       |
 1726|       |
 1727|       |  /* Free "long prune" technique memory */
 1728|  7.87k|  if(opt_use_long_prune)
  ------------------
  |  Branch (1728:6): [True: 7.87k, False: 0]
  ------------------
 1729|  7.87k|    long_prune_deallocate();
 1730|       |
 1731|       |  /* Release component recursion data in partition */
 1732|  7.87k|  if(opt_use_comprec)
  ------------------
  |  Branch (1732:6): [True: 7.87k, False: 0]
  ------------------
 1733|  7.87k|    p.cr_free();
 1734|  7.87k|}
_ZN5bliss13AbstractGraph18find_automorphismsERNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
 1743|  2.05k|{
 1744|  2.05k|  search(false, stats, report, terminate);
 1745|       |
 1746|  2.05k|  delete[] first_path_labeling; first_path_labeling = nullptr;
 1747|  2.05k|  delete[] best_path_labeling; best_path_labeling = nullptr;
 1748|  2.05k|}
_ZN5bliss13AbstractGraph14canonical_formERNS_5StatsERKNSt3__18functionIFvjPKjEEERKNS4_IFbvEEE:
 1755|  6.25k|{
 1756|  6.25k|  search(true, stats, report, terminate);
 1757|       |
 1758|  6.25k|  return best_path_labeling;
 1759|  6.25k|}
_ZN5bliss7Digraph6VertexC2Ev:
 1771|   184k|{
 1772|   184k|  color = 0;
 1773|   184k|}
_ZN5bliss7Digraph6VertexD2Ev:
 1777|   184k|{
 1778|   184k|  ;
 1779|   184k|}
_ZN5bliss7Digraph6Vertex11add_edge_toEj:
 1784|  70.9k|{
 1785|  70.9k|  edges_out.push_back(other_vertex);
 1786|  70.9k|}
_ZN5bliss7Digraph6Vertex13add_edge_fromEj:
 1791|  70.9k|{
 1792|  70.9k|  edges_in.push_back(other_vertex);
 1793|  70.9k|}
_ZN5bliss7Digraph6Vertex22remove_duplicate_edgesERNSt3__16vectorIbNS2_9allocatorIbEEEE:
 1798|   184k|{
 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|   184k|  for(std::vector<unsigned int>::iterator iter = edges_out.begin();
 1804|   255k|      iter != edges_out.end(); )
  ------------------
  |  Branch (1804:7): [True: 70.9k, False: 184k]
  ------------------
 1805|  70.9k|    {
 1806|  70.9k|      const unsigned int dest_vertex = *iter;
 1807|  70.9k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (1807:10): [True: 0, False: 70.9k]
  ------------------
 1808|      0|        {
 1809|       |          /* A duplicate edge found! */
 1810|      0|          iter = edges_out.erase(iter);
 1811|      0|        }
 1812|  70.9k|      else
 1813|  70.9k|        {
 1814|       |          /* Not seen earlier, mark as seen */
 1815|  70.9k|          tmp[dest_vertex] = true;
 1816|  70.9k|          iter++;
 1817|  70.9k|        }
 1818|  70.9k|    }
 1819|       |
 1820|       |  /* Clear tmp */
 1821|   184k|  for(std::vector<unsigned int>::iterator iter = edges_out.begin();
 1822|   255k|      iter != edges_out.end();
  ------------------
  |  Branch (1822:7): [True: 70.9k, False: 184k]
  ------------------
 1823|   184k|      iter++)
 1824|  70.9k|    {
 1825|  70.9k|      tmp[*iter] = false;
 1826|  70.9k|    }
 1827|       |
 1828|   184k|  for(std::vector<unsigned int>::iterator iter = edges_in.begin();
 1829|   255k|      iter != edges_in.end(); )
  ------------------
  |  Branch (1829:7): [True: 70.9k, False: 184k]
  ------------------
 1830|  70.9k|    {
 1831|  70.9k|      const unsigned int dest_vertex = *iter;
 1832|  70.9k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (1832:10): [True: 0, False: 70.9k]
  ------------------
 1833|      0|        {
 1834|       |          /* A duplicate edge found! */
 1835|      0|          iter = edges_in.erase(iter);
 1836|      0|        }
 1837|  70.9k|      else
 1838|  70.9k|        {
 1839|       |          /* Not seen earlier, mark as seen */
 1840|  70.9k|          tmp[dest_vertex] = true;
 1841|  70.9k|          iter++;
 1842|  70.9k|        }
 1843|  70.9k|    }
 1844|       |
 1845|       |  /* Clear tmp */
 1846|   184k|  for(std::vector<unsigned int>::iterator iter = edges_in.begin();
 1847|   255k|      iter != edges_in.end();
  ------------------
  |  Branch (1847:7): [True: 70.9k, False: 184k]
  ------------------
 1848|   184k|      iter++)
 1849|  70.9k|    {
 1850|  70.9k|      tmp[*iter] = false;
 1851|  70.9k|    }
 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|   184k|}
_ZN5bliss7DigraphC2Ej:
 1884|  4.55k|{
 1885|  4.55k|  vertices.resize(nof_vertices);
 1886|  4.55k|  sh = shs_flm;
 1887|  4.55k|}
_ZN5bliss7DigraphD2Ev:
 1891|  4.55k|{
 1892|  4.55k|  ;
 1893|  4.55k|}
_ZN5bliss7Digraph8add_edgeEjj:
 1908|  70.9k|{
 1909|  70.9k|  if(vertex1 >= vertices.size() or vertex2 >= vertices.size())
  ------------------
  |  Branch (1909:6): [True: 0, False: 70.9k]
  |  Branch (1909:36): [True: 0, False: 70.9k]
  ------------------
 1910|      0|    throw std::runtime_error("out-of-bounds vertex number");
 1911|       |  //assert(vertex1 < get_nof_vertices());
 1912|       |  //assert(vertex2 < get_nof_vertices());
 1913|  70.9k|  vertices[vertex1].add_edge_to(vertex2);
 1914|  70.9k|  vertices[vertex2].add_edge_from(vertex1);
 1915|  70.9k|}
_ZN5bliss7Digraph22remove_duplicate_edgesEv:
 2042|  4.55k|{
 2043|  4.55k|  std::vector<bool> tmp(get_nof_vertices(), false);
 2044|       |
 2045|  4.55k|  for(std::vector<Vertex>::iterator vi = vertices.begin();
 2046|   188k|      vi != vertices.end();
  ------------------
  |  Branch (2046:7): [True: 184k, False: 4.55k]
  ------------------
 2047|   184k|      vi++)
 2048|   184k|    {
 2049|       |#if defined(BLISS_EXPENSIVE_CONSISTENCY_CHECKS)
 2050|       |      for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 2051|       |#endif
 2052|   184k|      (*vi).remove_duplicate_edges(tmp);
 2053|   184k|    }
 2054|  4.55k|}
_ZN5bliss7Digraph22vertex_color_invariantEPKS0_j:
 2107|   184k|{
 2108|   184k|  return g->vertices[vnum].color;
 2109|   184k|}
_ZN5bliss7Digraph18indegree_invariantEPKS0_j:
 2113|   182k|{
 2114|   182k|  return g->vertices[vnum].nof_edges_in();
 2115|   182k|}
_ZN5bliss7Digraph19outdegree_invariantEPKS0_j:
 2119|   184k|{
 2120|   184k|  return g->vertices[vnum].nof_edges_out();
 2121|   184k|}
_ZN5bliss7Digraph18selfloop_invariantEPKS0_j:
 2125|   184k|{
 2126|       |  /* Quite inefficient but luckily not in the critical path */
 2127|   184k|  const Vertex& v = g->vertices[vnum];
 2128|   184k|  for(std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2129|   252k|      ei != v.edges_out.end();
  ------------------
  |  Branch (2129:7): [True: 70.1k, False: 182k]
  ------------------
 2130|   184k|      ei++)
 2131|  70.1k|    {
 2132|  70.1k|      if(*ei == vnum)
  ------------------
  |  Branch (2132:10): [True: 1.57k, False: 68.5k]
  ------------------
 2133|  1.57k|        return 1;
 2134|  70.1k|    }
 2135|   182k|  return 0;
 2136|   184k|}
_ZN5bliss7Digraph29refine_according_to_invariantEPFjPKS0_jE:
 2151|  18.1k|{
 2152|  18.1k|  bool refined = false;
 2153|       |
 2154|  42.5k|  for(Partition::Cell* cell = p.first_nonsingleton_cell; cell; )
  ------------------
  |  Branch (2154:58): [True: 24.4k, False: 18.1k]
  ------------------
 2155|  24.4k|    {
 2156|       |
 2157|  24.4k|      Partition::Cell* const next_cell = cell->next_nonsingleton;
 2158|  24.4k|      const unsigned int* ep = p.elements + cell->first;
 2159|   759k|      for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (2159:42): [True: 735k, False: 24.4k]
  ------------------
 2160|   735k|        {
 2161|   735k|          unsigned int ival = inv(this, *ep);
 2162|   735k|          p.invariant_values[*ep] = ival;
 2163|   735k|          if(ival > cell->max_ival) {
  ------------------
  |  Branch (2163:14): [True: 15.8k, False: 719k]
  ------------------
 2164|  15.8k|            cell->max_ival = ival;
 2165|  15.8k|            cell->max_ival_count = 1;
 2166|  15.8k|          }
 2167|   719k|          else if(ival == cell->max_ival) {
  ------------------
  |  Branch (2167:19): [True: 486k, False: 232k]
  ------------------
 2168|   486k|            cell->max_ival_count++;
 2169|   486k|          }
 2170|   735k|        }
 2171|  24.4k|      Partition::Cell* const last_new_cell = p.zplit_cell(cell, true);
 2172|  24.4k|      refined |= (last_new_cell != cell);
 2173|  24.4k|      cell = next_cell;
 2174|  24.4k|    }
 2175|       |
 2176|  18.1k|  return refined;
 2177|  18.1k|}
_ZN5bliss7Digraph27split_neighbourhood_of_cellEPNS_9Partition4CellE:
 2191|  25.0k|{
 2192|       |
 2193|       |
 2194|  25.0k|  const bool was_equal_to_first = refine_equal_to_first;
 2195|       |
 2196|  25.0k|  if(compute_eqref_hash)
  ------------------
  |  Branch (2196:6): [True: 0, False: 25.0k]
  ------------------
 2197|      0|    {
 2198|      0|      eqref_hash.update(cell->first);
 2199|      0|      eqref_hash.update(cell->length);
 2200|      0|    }
 2201|       |
 2202|  25.0k|  const unsigned int* ep = p.elements + cell->first;
 2203|   218k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (2203:38): [True: 193k, False: 25.0k]
  ------------------
 2204|   193k|    {
 2205|   193k|      const Vertex& v = vertices[*ep++];
 2206|       |
 2207|   193k|      std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2208|   273k|      for(unsigned int j = v.nof_edges_out(); j != 0; j--)
  ------------------
  |  Branch (2208:47): [True: 80.5k, False: 193k]
  ------------------
 2209|  80.5k|        {
 2210|  80.5k|          const unsigned int dest_vertex = *ei++;
 2211|  80.5k|          Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2212|  80.5k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2212:14): [True: 10.1k, False: 70.4k]
  ------------------
 2213|  10.1k|            continue;
 2214|  70.4k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 2215|  70.4k|          if(ival > neighbour_cell->max_ival) {
  ------------------
  |  Branch (2215:14): [True: 22.2k, False: 48.1k]
  ------------------
 2216|  22.2k|            neighbour_cell->max_ival = ival;
 2217|  22.2k|            neighbour_cell->max_ival_count = 1;
 2218|  22.2k|            if(ival == 1)
  ------------------
  |  Branch (2218:16): [True: 19.7k, False: 2.43k]
  ------------------
 2219|  19.7k|              neighbour_heap.insert(neighbour_cell->first);
 2220|  22.2k|          }
 2221|  48.1k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (2221:19): [True: 45.0k, False: 3.09k]
  ------------------
 2222|  45.0k|            neighbour_cell->max_ival_count++;
 2223|  45.0k|          }
 2224|  70.4k|        }
 2225|   193k|    }
 2226|       |
 2227|  40.4k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2227:9): [True: 17.7k, False: 22.7k]
  ------------------
 2228|  17.7k|    {
 2229|  17.7k|      const unsigned int start = neighbour_heap.remove();
 2230|  17.7k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2231|       |
 2232|  17.7k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2232:10): [True: 0, False: 17.7k]
  ------------------
 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|  17.7k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 2242|       |
 2243|       |      /* Update certificate and hash if needed */
 2244|  17.7k|      const Partition::Cell* c = neighbour_cell;
 2245|  25.6k|      while(1)
  ------------------
  |  Branch (2245:13): [True: 25.6k, Folded]
  ------------------
 2246|  25.6k|        {
 2247|  25.6k|          if(in_search)
  ------------------
  |  Branch (2247:14): [True: 15.4k, False: 10.1k]
  ------------------
 2248|  15.4k|            {
 2249|       |              /* Build certificate */
 2250|  15.4k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 2251|       |              /* No need to continue? */
 2252|  15.4k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2252:18): [True: 13.7k, False: 1.68k]
  ------------------
 2253|  13.7k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2253:18): [True: 7.92k, False: 5.83k]
  ------------------
 2254|  7.92k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2254:18): [True: 2.35k, False: 5.57k]
  ------------------
 2255|  2.35k|                goto worse_exit;
 2256|  15.4k|            }
 2257|  23.2k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2257:14): [True: 0, False: 23.2k]
  ------------------
 2258|      0|            {
 2259|      0|              eqref_hash.update(c->first);
 2260|      0|              eqref_hash.update(c->length);
 2261|      0|            }
 2262|  23.2k|          if(c == last_new_cell)
  ------------------
  |  Branch (2262:14): [True: 15.3k, False: 7.88k]
  ------------------
 2263|  15.3k|            break;
 2264|  7.88k|          c = c->next;
 2265|  7.88k|        }
 2266|  17.7k|    }
 2267|       |
 2268|  22.7k|  if(cell->is_in_splitting_queue())
  ------------------
  |  Branch (2268:6): [True: 916, False: 21.7k]
  ------------------
 2269|    916|    {
 2270|    916|      return false;
 2271|    916|    }
 2272|       |
 2273|       |
 2274|  21.7k|  ep = p.elements + cell->first;
 2275|   203k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (2275:38): [True: 181k, False: 21.7k]
  ------------------
 2276|   181k|    {
 2277|   181k|      const Vertex& v = vertices[*ep++];
 2278|       |
 2279|   181k|      std::vector<unsigned int>::const_iterator ei = v.edges_in.begin();
 2280|   246k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2280:46): [True: 64.8k, False: 181k]
  ------------------
 2281|  64.8k|        {
 2282|  64.8k|          const unsigned int dest_vertex = *ei++;
 2283|  64.8k|          Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2284|  64.8k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2284:14): [True: 10.7k, False: 54.0k]
  ------------------
 2285|  10.7k|            continue;
 2286|  54.0k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 2287|  54.0k|          if(ival > neighbour_cell->max_ival)
  ------------------
  |  Branch (2287:14): [True: 15.7k, False: 38.2k]
  ------------------
 2288|  15.7k|            {
 2289|  15.7k|              neighbour_cell->max_ival = ival;
 2290|  15.7k|              neighbour_cell->max_ival_count = 1;
 2291|  15.7k|              if(ival == 1)
  ------------------
  |  Branch (2291:18): [True: 13.6k, False: 2.09k]
  ------------------
 2292|  13.6k|                neighbour_heap.insert(neighbour_cell->first);
 2293|  15.7k|            }
 2294|  38.2k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (2294:19): [True: 35.5k, False: 2.77k]
  ------------------
 2295|  35.5k|            neighbour_cell->max_ival_count++;
 2296|  35.5k|          }
 2297|  54.0k|        }
 2298|   181k|    }
 2299|       |
 2300|  34.7k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2300:9): [True: 13.4k, False: 21.2k]
  ------------------
 2301|  13.4k|    {
 2302|  13.4k|      const unsigned int start = neighbour_heap.remove();
 2303|  13.4k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2304|       |
 2305|  13.4k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2305:10): [True: 0, False: 13.4k]
  ------------------
 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|  13.4k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 2314|       |
 2315|       |      /* Update certificate and hash if needed */
 2316|  13.4k|      const Partition::Cell* c = neighbour_cell;
 2317|  19.3k|      while(1)
  ------------------
  |  Branch (2317:13): [True: 19.3k, Folded]
  ------------------
 2318|  19.3k|        {
 2319|  19.3k|          if(in_search)
  ------------------
  |  Branch (2319:14): [True: 8.43k, False: 10.9k]
  ------------------
 2320|  8.43k|            {
 2321|       |              /* Build certificate */
 2322|  8.43k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 2323|       |              /* No need to continue? */
 2324|  8.43k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2324:18): [True: 7.29k, False: 1.13k]
  ------------------
 2325|  7.29k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2325:18): [True: 3.71k, False: 3.58k]
  ------------------
 2326|  3.71k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2326:18): [True: 518, False: 3.19k]
  ------------------
 2327|    518|                goto worse_exit;
 2328|  8.43k|            }
 2329|  18.8k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2329:14): [True: 0, False: 18.8k]
  ------------------
 2330|      0|            {
 2331|      0|              eqref_hash.update(c->first);
 2332|      0|              eqref_hash.update(c->length);
 2333|      0|            }
 2334|  18.8k|          if(c == last_new_cell)
  ------------------
  |  Branch (2334:14): [True: 12.9k, False: 5.90k]
  ------------------
 2335|  12.9k|            break;
 2336|  5.90k|          c = c->next;
 2337|  5.90k|        }
 2338|  13.4k|    }
 2339|       |
 2340|       |
 2341|  21.2k|  if(refine_compare_certificate and
  ------------------
  |  Branch (2341:6): [True: 6.76k, False: 14.5k]
  ------------------
 2342|  6.76k|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (2342:6): [True: 1.76k, False: 5.00k]
  ------------------
 2343|  1.76k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2343:6): [True: 0, False: 1.76k]
  ------------------
 2344|      0|    return true;
 2345|       |
 2346|  21.2k|  return false;
 2347|       |
 2348|  2.87k| worse_exit:
 2349|       |  /* Clear neighbour heap */
 2350|  2.87k|  UintSeqHash rest;
 2351|  5.13k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2351:9): [True: 2.25k, False: 2.87k]
  ------------------
 2352|  2.25k|    {
 2353|  2.25k|      const unsigned int start = neighbour_heap.remove();
 2354|  2.25k|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2355|  2.25k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2355:10): [True: 2.25k, False: 0]
  |  Branch (2355:40): [True: 1.44k, False: 810]
  ------------------
 2356|  1.44k|        {
 2357|  1.44k|          rest.update(neighbour_cell->first);
 2358|  1.44k|          rest.update(neighbour_cell->length);
 2359|  1.44k|          rest.update(neighbour_cell->max_ival);
 2360|  1.44k|          rest.update(neighbour_cell->max_ival_count);
 2361|  1.44k|        }
 2362|  2.25k|      neighbour_cell->max_ival = 0;
 2363|  2.25k|      neighbour_cell->max_ival_count = 0;
 2364|  2.25k|      p.clear_ivs(neighbour_cell);
 2365|  2.25k|    }
 2366|  2.87k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2366:6): [True: 2.87k, False: 0]
  |  Branch (2366:36): [True: 1.94k, False: 931]
  ------------------
 2367|  1.94k|    {
 2368|  8.15k|      for(unsigned int i = p.splitting_queue.size(); i > 0; i--)
  ------------------
  |  Branch (2368:54): [True: 6.21k, False: 1.94k]
  ------------------
 2369|  6.21k|        {
 2370|  6.21k|          Partition::Cell* const cell = p.splitting_queue.pop_front();
 2371|  6.21k|          rest.update(cell->first);
 2372|  6.21k|          rest.update(cell->length);
 2373|  6.21k|          p.splitting_queue.push_back(cell);
 2374|  6.21k|        }
 2375|  1.94k|      rest.update(failure_recording_fp_deviation);
 2376|  1.94k|      failure_recording_fp_deviation = rest.get_value();
 2377|  1.94k|    }
 2378|       |
 2379|  2.87k|   return true;
 2380|  21.2k|}
_ZN5bliss7Digraph32split_neighbourhood_of_unit_cellEPNS_9Partition4CellE:
 2385|  3.06M|{
 2386|       |
 2387|       |
 2388|  3.06M|  const bool was_equal_to_first = refine_equal_to_first;
 2389|       |
 2390|  3.06M|  if(compute_eqref_hash)
  ------------------
  |  Branch (2390:6): [True: 0, False: 3.06M]
  ------------------
 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|  3.06M|  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|  3.06M|  std::vector<unsigned int>::const_iterator ei = v.edges_out.begin();
 2404|  3.49M|  for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (2404:43): [True: 423k, False: 3.06M]
  ------------------
 2405|   423k|    {
 2406|   423k|      const unsigned int dest_vertex = *ei++;
 2407|   423k|      Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2408|       |
 2409|   423k|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (2409:10): [True: 310k, False: 113k]
  ------------------
 2410|   310k|        if(in_search) {
  ------------------
  |  Branch (2410:12): [True: 290k, False: 20.1k]
  ------------------
 2411|       |          /* Remember neighbour in order to generate certificate */
 2412|   290k|          neighbour_heap.insert(neighbour_cell->first);
 2413|   290k|        }
 2414|   310k|        continue;
 2415|   310k|      }
 2416|   113k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (2416:10): [True: 99.8k, False: 13.7k]
  ------------------
 2417|  99.8k|        {
 2418|  99.8k|          neighbour_heap.insert(neighbour_cell->first);
 2419|  99.8k|        }
 2420|   113k|      neighbour_cell->max_ival_count++;
 2421|       |
 2422|   113k|      unsigned int* const swap_position =
 2423|   113k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 2424|   113k|        neighbour_cell->max_ival_count;
 2425|   113k|      *p.in_pos[dest_vertex] = *swap_position;
 2426|   113k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 2427|   113k|      *swap_position = dest_vertex;
 2428|   113k|      p.in_pos[dest_vertex] = swap_position;
 2429|   113k|    }
 2430|       |
 2431|  3.45M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2431:9): [True: 389k, False: 3.06M]
  ------------------
 2432|   389k|    {
 2433|   389k|      const unsigned int start = neighbour_heap.remove();
 2434|   389k|      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|   389k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2446:10): [True: 0, False: 389k]
  ------------------
 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|   389k|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (2453:10): [True: 99.7k, False: 289k]
  ------------------
 2454|  99.7k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (2454:10): [True: 96.6k, False: 3.10k]
  ------------------
 2455|  96.6k|        {
 2456|       |
 2457|  96.6k|          Partition::Cell* const new_cell =
 2458|  96.6k|            p.aux_split_in_two(neighbour_cell,
 2459|  96.6k|                               neighbour_cell->length -
 2460|  96.6k|                               neighbour_cell->max_ival_count);
 2461|  96.6k|          unsigned int* ep = p.elements + new_cell->first;
 2462|  96.6k|          unsigned int* const lp = p.elements+new_cell->first+new_cell->length;
 2463|   202k|          while(ep < lp)
  ------------------
  |  Branch (2463:17): [True: 106k, False: 96.6k]
  ------------------
 2464|   106k|            {
 2465|   106k|              p.element_to_cell_map[*ep] = new_cell;
 2466|   106k|              ep++;
 2467|   106k|            }
 2468|  96.6k|          neighbour_cell->max_ival_count = 0;
 2469|       |
 2470|       |
 2471|  96.6k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2471:14): [True: 0, False: 96.6k]
  ------------------
 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|  96.6k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (2483:14): [True: 5.87k, False: 90.7k]
  ------------------
 2484|       |            /* Both cells must be included in splitting_queue in order
 2485|       |               to have refinement to equitable partition */
 2486|  5.87k|            p.splitting_queue_add(new_cell);
 2487|  90.7k|          } else {
 2488|  90.7k|            Partition::Cell *min_cell, *max_cell;
 2489|  90.7k|          if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (2489:14): [True: 13.6k, False: 77.1k]
  ------------------
 2490|  13.6k|            min_cell = neighbour_cell;
 2491|  13.6k|            max_cell = new_cell;
 2492|  77.1k|          } else {
 2493|  77.1k|            min_cell = new_cell;
 2494|  77.1k|            max_cell = neighbour_cell;
 2495|  77.1k|          }
 2496|       |          /* Put the smaller cell in splitting_queue */
 2497|  90.7k|           p.splitting_queue_add(min_cell);
 2498|  90.7k|          if(max_cell->is_unit()) {
  ------------------
  |  Branch (2498:14): [True: 12.7k, False: 78.0k]
  ------------------
 2499|       |            /* Put the "larger" cell also in splitting_queue */
 2500|  12.7k|            p.splitting_queue_add(max_cell);
 2501|  12.7k|          }
 2502|  90.7k|        }
 2503|       |        /* Update pointer for certificate generation */
 2504|  96.6k|        neighbour_cell = new_cell;
 2505|  96.6k|      }
 2506|   292k|      else
 2507|   292k|        {
 2508|   292k|          neighbour_cell->max_ival_count = 0;
 2509|   292k|        }
 2510|       |
 2511|       |      /*
 2512|       |       * Build certificate if required
 2513|       |       */
 2514|   389k|      if(in_search)
  ------------------
  |  Branch (2514:10): [True: 382k, False: 6.97k]
  ------------------
 2515|   382k|        {
 2516|   382k|          for(unsigned int i = neighbour_cell->first,
 2517|   382k|                j = neighbour_cell->length;
 2518|   775k|              j > 0;
  ------------------
  |  Branch (2518:15): [True: 393k, False: 381k]
  ------------------
 2519|   393k|              j--, i++)
 2520|   393k|            {
 2521|       |              /* Build certificate */
 2522|   393k|              cert_add(CERT_EDGE, unit_cell->first, i);
 2523|       |              /* No need to continue? */
 2524|   393k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2524:18): [True: 352k, False: 41.5k]
  ------------------
 2525|   352k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2525:18): [True: 242k, False: 109k]
  ------------------
 2526|   242k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2526:18): [True: 718, False: 242k]
  ------------------
 2527|    718|                goto worse_exit;
 2528|   393k|            }
 2529|   382k|        } /* if(in_search) */
 2530|   389k|    } /* while(!neighbour_heap.is_empty()) */
 2531|       |
 2532|       |  /*
 2533|       |   * Phase 2
 2534|       |   * Refine neighbours according to the edges that enter the vertex v
 2535|       |   */
 2536|  3.06M|  ei = v.edges_in.begin();
 2537|  3.49M|  for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2537:42): [True: 424k, False: 3.06M]
  ------------------
 2538|   424k|    {
 2539|   424k|      const unsigned int dest_vertex = *ei++;
 2540|   424k|      Partition::Cell* const neighbour_cell = p.get_cell(dest_vertex);
 2541|       |
 2542|   424k|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (2542:10): [True: 243k, False: 181k]
  ------------------
 2543|   243k|        if(in_search) {
  ------------------
  |  Branch (2543:12): [True: 222k, False: 21.3k]
  ------------------
 2544|   222k|          neighbour_heap.insert(neighbour_cell->first);
 2545|   222k|        }
 2546|   243k|        continue;
 2547|   243k|      }
 2548|   181k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (2548:10): [True: 167k, False: 13.5k]
  ------------------
 2549|   167k|        {
 2550|   167k|          neighbour_heap.insert(neighbour_cell->first);
 2551|   167k|        }
 2552|   181k|      neighbour_cell->max_ival_count++;
 2553|       |
 2554|   181k|      unsigned int* const swap_position =
 2555|   181k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 2556|   181k|        neighbour_cell->max_ival_count;
 2557|   181k|      *p.in_pos[dest_vertex] = *swap_position;
 2558|   181k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 2559|   181k|      *swap_position = dest_vertex;
 2560|   181k|      p.in_pos[dest_vertex] = swap_position;
 2561|   181k|    }
 2562|       |
 2563|  3.44M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2563:9): [True: 389k, False: 3.05M]
  ------------------
 2564|   389k|    {
 2565|   389k|      const unsigned int start = neighbour_heap.remove();
 2566|   389k|      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|   389k|      if(compute_eqref_hash)
  ------------------
  |  Branch (2578:10): [True: 0, False: 389k]
  ------------------
 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|   389k|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (2585:10): [True: 167k, False: 222k]
  ------------------
 2586|   167k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (2586:10): [True: 164k, False: 3.11k]
  ------------------
 2587|   164k|        {
 2588|   164k|          Partition::Cell* const new_cell =
 2589|   164k|            p.aux_split_in_two(neighbour_cell,
 2590|   164k|                               neighbour_cell->length -
 2591|   164k|                               neighbour_cell->max_ival_count);
 2592|   164k|          unsigned int* ep = p.elements + new_cell->first;
 2593|   164k|          unsigned int* const lp = p.elements+new_cell->first+new_cell->length;
 2594|   338k|          while(ep < lp) {
  ------------------
  |  Branch (2594:17): [True: 174k, False: 164k]
  ------------------
 2595|   174k|            p.element_to_cell_map[*ep] = new_cell;
 2596|   174k|            ep++;
 2597|   174k|          }
 2598|   164k|          neighbour_cell->max_ival_count = 0;
 2599|       |
 2600|       |
 2601|   164k|          if(compute_eqref_hash)
  ------------------
  |  Branch (2601:14): [True: 0, False: 164k]
  ------------------
 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|   164k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (2612:14): [True: 6.22k, False: 158k]
  ------------------
 2613|       |            /* Both cells must be included in splitting_queue in order
 2614|       |               to have refinement to equitable partition */
 2615|  6.22k|            p.splitting_queue_add(new_cell);
 2616|   158k|          } else {
 2617|   158k|            Partition::Cell *min_cell, *max_cell;
 2618|   158k|            if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (2618:16): [True: 23.2k, False: 135k]
  ------------------
 2619|  23.2k|              min_cell = neighbour_cell;
 2620|  23.2k|              max_cell = new_cell;
 2621|   135k|            } else {
 2622|   135k|              min_cell = new_cell;
 2623|   135k|              max_cell = neighbour_cell;
 2624|   135k|            }
 2625|       |            /* Put the smaller cell in splitting_queue */
 2626|   158k|            p.splitting_queue_add(min_cell);
 2627|   158k|            if(max_cell->is_unit()) {
  ------------------
  |  Branch (2627:16): [True: 21.5k, False: 136k]
  ------------------
 2628|       |              /* Put the "larger" cell also in splitting_queue */
 2629|  21.5k|              p.splitting_queue_add(max_cell);
 2630|  21.5k|            }
 2631|   158k|          }
 2632|       |          /* Update pointer for certificate generation */
 2633|   164k|          neighbour_cell = new_cell;
 2634|   164k|        }
 2635|   225k|      else
 2636|   225k|        {
 2637|   225k|          neighbour_cell->max_ival_count = 0;
 2638|   225k|        }
 2639|       |
 2640|       |      /*
 2641|       |       * Build certificate if required
 2642|       |       */
 2643|   389k|      if(in_search)
  ------------------
  |  Branch (2643:10): [True: 383k, False: 5.95k]
  ------------------
 2644|   383k|        {
 2645|   383k|          for(unsigned int i = neighbour_cell->first,
 2646|   383k|                j = neighbour_cell->length;
 2647|   768k|              j > 0;
  ------------------
  |  Branch (2647:15): [True: 395k, False: 372k]
  ------------------
 2648|   384k|              j--, i++)
 2649|   395k|            {
 2650|       |              /* Build certificate */
 2651|   395k|              cert_add(CERT_EDGE, i, unit_cell->first);
 2652|       |              /* No need to continue? */
 2653|   395k|              if(refine_compare_certificate and
  ------------------
  |  Branch (2653:18): [True: 353k, False: 41.8k]
  ------------------
 2654|   353k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (2654:18): [True: 246k, False: 106k]
  ------------------
 2655|   246k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2655:18): [True: 10.9k, False: 235k]
  ------------------
 2656|  10.9k|                goto worse_exit;
 2657|   395k|            }
 2658|   383k|        } /* if(in_search) */
 2659|   389k|    } /* while(!neighbour_heap.is_empty()) */
 2660|       |
 2661|  3.05M|  if(refine_compare_certificate and
  ------------------
  |  Branch (2661:6): [True: 2.87M, False: 184k]
  ------------------
 2662|  2.87M|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (2662:6): [True: 219k, False: 2.65M]
  ------------------
 2663|   219k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (2663:6): [True: 0, False: 219k]
  ------------------
 2664|      0|    return true;
 2665|       |
 2666|  3.05M|  return false;
 2667|       |
 2668|  11.6k| worse_exit:
 2669|       |  /* Clear neighbour heap */
 2670|  11.6k|  UintSeqHash rest;
 2671|  12.4k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (2671:9): [True: 856, False: 11.6k]
  ------------------
 2672|    856|    {
 2673|    856|      const unsigned int start = neighbour_heap.remove();
 2674|    856|      Partition::Cell* const neighbour_cell = p.get_cell(p.elements[start]);
 2675|    856|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2675:10): [True: 856, False: 0]
  |  Branch (2675:40): [True: 595, False: 261]
  ------------------
 2676|    595|        {
 2677|    595|          rest.update(neighbour_cell->first);
 2678|    595|          rest.update(neighbour_cell->length);
 2679|    595|          rest.update(neighbour_cell->max_ival_count);
 2680|    595|        }
 2681|    856|      neighbour_cell->max_ival_count = 0;
 2682|    856|    }
 2683|  11.6k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (2683:6): [True: 11.6k, False: 0]
  |  Branch (2683:36): [True: 2.62k, False: 8.99k]
  ------------------
 2684|  2.62k|    {
 2685|  2.62k|      rest.update(failure_recording_fp_deviation);
 2686|  2.62k|      failure_recording_fp_deviation = rest.get_value();
 2687|  2.62k|    }
 2688|  11.6k|  return true;
 2689|  3.05M|}
_ZN5bliss7Digraph32make_initial_equitable_partitionEv:
 2823|  4.53k|{
 2824|  4.53k|  refine_according_to_invariant(&vertex_color_invariant);
 2825|  4.53k|  p.splitting_queue_clear();
 2826|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2827|       |
 2828|  4.53k|  refine_according_to_invariant(&selfloop_invariant);
 2829|  4.53k|  p.splitting_queue_clear();
 2830|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2831|       |
 2832|  4.53k|  refine_according_to_invariant(&outdegree_invariant);
 2833|  4.53k|  p.splitting_queue_clear();
 2834|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2835|       |
 2836|  4.53k|  refine_according_to_invariant(&indegree_invariant);
 2837|  4.53k|  p.splitting_queue_clear();
 2838|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2839|       |
 2840|  4.53k|  refine_to_equitable();
 2841|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 2842|  4.53k|}
_ZN5bliss7Digraph29find_next_cell_to_be_splittedEPNS_9Partition4CellE:
 2856|  4.16k|{
 2857|  4.16k|  switch(sh) {
 2858|    575|  case shs_f:   return sh_first();
  ------------------
  |  Branch (2858:3): [True: 575, False: 3.58k]
  ------------------
 2859|    630|  case shs_fs:  return sh_first_smallest();
  ------------------
  |  Branch (2859:3): [True: 630, False: 3.53k]
  ------------------
 2860|    698|  case shs_fl:  return sh_first_largest();
  ------------------
  |  Branch (2860:3): [True: 698, False: 3.46k]
  ------------------
 2861|    678|  case shs_fm:  return sh_first_max_neighbours();
  ------------------
  |  Branch (2861:3): [True: 678, False: 3.48k]
  ------------------
 2862|    853|  case shs_fsm: return sh_first_smallest_max_neighbours();
  ------------------
  |  Branch (2862:3): [True: 853, False: 3.31k]
  ------------------
 2863|    730|  case shs_flm: return sh_first_largest_max_neighbours();
  ------------------
  |  Branch (2863:3): [True: 730, False: 3.43k]
  ------------------
 2864|      0|  default:
  ------------------
  |  Branch (2864:3): [True: 0, False: 4.16k]
  ------------------
 2865|      0|    fatal_error("Internal error - unknown splitting heuristics");
 2866|      0|    return 0;
 2867|  4.16k|  }
 2868|  4.16k|}
_ZN5bliss7Digraph8sh_firstEv:
 2877|    575|{
 2878|    575|  Partition::Cell* best_cell = 0;
 2879|    575|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2880|    575|      cell;
  ------------------
  |  Branch (2880:7): [True: 575, False: 0]
  ------------------
 2881|    575|      cell = cell->next_nonsingleton)
 2882|    575|    {
 2883|    575|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2883:10): [True: 575, False: 0]
  |  Branch (2883:30): [True: 0, False: 575]
  ------------------
 2884|      0|        continue;
 2885|    575|      best_cell = cell;
 2886|    575|      break;
 2887|    575|    }
 2888|    575|  return best_cell;
 2889|    575|}
_ZN5bliss7Digraph17sh_first_smallestEv:
 2898|    630|{
 2899|    630|  Partition::Cell* best_cell = 0;
 2900|    630|  unsigned int best_size = UINT_MAX;
 2901|    630|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2902|  2.46k|      cell;
  ------------------
  |  Branch (2902:7): [True: 1.83k, False: 630]
  ------------------
 2903|  1.83k|      cell = cell->next_nonsingleton)
 2904|  1.83k|    {
 2905|  1.83k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2905:10): [True: 1.83k, False: 0]
  |  Branch (2905:30): [True: 1.03k, False: 799]
  ------------------
 2906|  1.03k|        continue;
 2907|    799|      if(cell->length < best_size)
  ------------------
  |  Branch (2907:10): [True: 650, False: 149]
  ------------------
 2908|    650|        {
 2909|    650|          best_size = cell->length;
 2910|    650|          best_cell = cell;
 2911|    650|        }
 2912|    799|    }
 2913|    630|  return best_cell;
 2914|    630|}
_ZN5bliss7Digraph16sh_first_largestEv:
 2923|    698|{
 2924|    698|  Partition::Cell* best_cell = 0;
 2925|    698|  unsigned int best_size = 0;
 2926|    698|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2927|  2.89k|      cell;
  ------------------
  |  Branch (2927:7): [True: 2.19k, False: 698]
  ------------------
 2928|  2.19k|      cell = cell->next_nonsingleton)
 2929|  2.19k|    {
 2930|  2.19k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2930:10): [True: 2.19k, False: 0]
  |  Branch (2930:30): [True: 1.26k, False: 933]
  ------------------
 2931|  1.26k|        continue;
 2932|    933|      if(cell->length > best_size)
  ------------------
  |  Branch (2932:10): [True: 704, False: 229]
  ------------------
 2933|    704|        {
 2934|    704|          best_size = cell->length;
 2935|    704|          best_cell = cell;
 2936|    704|        }
 2937|    933|    }
 2938|    698|  return best_cell;
 2939|    698|}
_ZN5bliss7Digraph23sh_first_max_neighboursEv:
 2950|    678|{
 2951|    678|  Partition::Cell* best_cell = 0;
 2952|    678|  int best_value = -1;
 2953|    678|  KStack<Partition::Cell*> neighbour_cells_visited;
 2954|    678|  neighbour_cells_visited.init(get_nof_vertices());
 2955|    678|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 2956|  2.66k|      cell;
  ------------------
  |  Branch (2956:7): [True: 1.98k, False: 678]
  ------------------
 2957|  1.98k|      cell = cell->next_nonsingleton)
 2958|  1.98k|    {
 2959|  1.98k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (2959:10): [True: 1.98k, False: 0]
  |  Branch (2959:30): [True: 935, False: 1.05k]
  ------------------
 2960|    935|        continue;
 2961|  1.05k|      int value = 0;
 2962|  1.05k|      const Vertex &v = vertices[p.elements[cell->first]];
 2963|  1.05k|      std::vector<unsigned int>::const_iterator ei;
 2964|  1.05k|      ei = v.edges_in.begin();
 2965|  1.76k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (2965:46): [True: 710, False: 1.05k]
  ------------------
 2966|    710|        {
 2967|    710|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 2968|    710|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2968:14): [True: 62, False: 648]
  ------------------
 2969|     62|            continue;
 2970|    648|          neighbour_cell->max_ival++;
 2971|    648|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (2971:14): [True: 554, False: 94]
  ------------------
 2972|    554|            neighbour_cells_visited.push(neighbour_cell);
 2973|    648|        }
 2974|  1.60k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (2974:13): [True: 554, False: 1.05k]
  ------------------
 2975|    554|        {
 2976|    554|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 2977|    554|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (2977:14): [True: 508, False: 46]
  ------------------
 2978|    508|            value++;
 2979|    554|          neighbour_cell->max_ival = 0;
 2980|    554|        }
 2981|       |
 2982|  1.05k|      ei = v.edges_out.begin();
 2983|  1.72k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (2983:47): [True: 666, False: 1.05k]
  ------------------
 2984|    666|        {
 2985|    666|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 2986|    666|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (2986:14): [True: 47, False: 619]
  ------------------
 2987|     47|            continue;
 2988|    619|          neighbour_cell->max_ival++;
 2989|    619|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (2989:14): [True: 540, False: 79]
  ------------------
 2990|    540|            neighbour_cells_visited.push(neighbour_cell);
 2991|    619|        }
 2992|  1.59k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (2992:13): [True: 540, False: 1.05k]
  ------------------
 2993|    540|        {
 2994|    540|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 2995|    540|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (2995:14): [True: 508, False: 32]
  ------------------
 2996|    508|            value++;
 2997|    540|          neighbour_cell->max_ival = 0;
 2998|    540|        }
 2999|       |
 3000|  1.05k|      if(value > best_value)
  ------------------
  |  Branch (3000:10): [True: 770, False: 284]
  ------------------
 3001|    770|        {
 3002|    770|          best_value = value;
 3003|    770|          best_cell = cell;
 3004|    770|        }
 3005|  1.05k|    }
 3006|    678|  return best_cell;
 3007|    678|}
_ZN5bliss7Digraph32sh_first_smallest_max_neighboursEv:
 3018|    853|{
 3019|    853|  Partition::Cell* best_cell = 0;
 3020|    853|  int best_value = -1;
 3021|    853|  unsigned int best_size = UINT_MAX;
 3022|    853|  KStack<Partition::Cell*> neighbour_cells_visited;
 3023|    853|  neighbour_cells_visited.init(get_nof_vertices());
 3024|    853|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 3025|  3.49k|      cell;
  ------------------
  |  Branch (3025:7): [True: 2.63k, False: 853]
  ------------------
 3026|  2.63k|      cell = cell->next_nonsingleton)
 3027|  2.63k|    {
 3028|       |
 3029|  2.63k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (3029:10): [True: 2.63k, False: 0]
  |  Branch (3029:30): [True: 1.27k, False: 1.36k]
  ------------------
 3030|  1.27k|        continue;
 3031|       |
 3032|  1.36k|      int value = 0;
 3033|  1.36k|      const Vertex& v = vertices[p.elements[cell->first]];
 3034|  1.36k|      std::vector<unsigned int>::const_iterator ei;
 3035|       |
 3036|  1.36k|      ei = v.edges_in.begin();
 3037|  2.25k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3037:46): [True: 896, False: 1.36k]
  ------------------
 3038|    896|        {
 3039|    896|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 3040|    896|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3040:14): [True: 64, False: 832]
  ------------------
 3041|     64|            continue;
 3042|    832|          neighbour_cell->max_ival++;
 3043|    832|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3043:14): [True: 721, False: 111]
  ------------------
 3044|    721|            neighbour_cells_visited.push(neighbour_cell);
 3045|    832|        }
 3046|  2.08k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3046:13): [True: 721, False: 1.36k]
  ------------------
 3047|    721|        {
 3048|    721|          Partition::Cell * const neighbour_cell = neighbour_cells_visited.pop();
 3049|    721|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3049:14): [True: 692, False: 29]
  ------------------
 3050|    692|            value++;
 3051|    721|          neighbour_cell->max_ival = 0;
 3052|    721|        }
 3053|       |
 3054|  1.36k|      ei = v.edges_out.begin();
 3055|  2.26k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3055:47): [True: 908, False: 1.36k]
  ------------------
 3056|    908|        {
 3057|    908|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 3058|    908|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3058:14): [True: 59, False: 849]
  ------------------
 3059|     59|            continue;
 3060|    849|          neighbour_cell->max_ival++;
 3061|    849|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3061:14): [True: 723, False: 126]
  ------------------
 3062|    723|            neighbour_cells_visited.push(neighbour_cell);
 3063|    849|        }
 3064|  2.08k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3064:13): [True: 723, False: 1.36k]
  ------------------
 3065|    723|        {
 3066|    723|          Partition::Cell * const neighbour_cell = neighbour_cells_visited.pop();
 3067|    723|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3067:14): [True: 692, False: 31]
  ------------------
 3068|    692|            value++;
 3069|    723|          neighbour_cell->max_ival = 0;
 3070|    723|        }
 3071|       |
 3072|  1.36k|      if((value > best_value) or
  ------------------
  |  Branch (3072:10): [True: 959, False: 402]
  ------------------
 3073|    402|         (value == best_value and cell->length < best_size))
  ------------------
  |  Branch (3073:11): [True: 304, False: 98]
  |  Branch (3073:35): [True: 19, False: 285]
  ------------------
 3074|    978|        {
 3075|    978|          best_value = value;
 3076|    978|          best_size = cell->length;
 3077|    978|          best_cell = cell;
 3078|    978|        }
 3079|  1.36k|    }
 3080|    853|  return best_cell;
 3081|    853|}
_ZN5bliss7Digraph31sh_first_largest_max_neighboursEv:
 3092|    730|{
 3093|    730|  Partition::Cell* best_cell = 0;
 3094|    730|  int best_value = -1;
 3095|    730|  unsigned int best_size = 0;
 3096|    730|  KStack<Partition::Cell*> neighbour_cells_visited;
 3097|    730|  neighbour_cells_visited.init(get_nof_vertices());
 3098|    730|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 3099|  2.95k|      cell;
  ------------------
  |  Branch (3099:7): [True: 2.22k, False: 730]
  ------------------
 3100|  2.22k|      cell = cell->next_nonsingleton)
 3101|  2.22k|    {
 3102|       |
 3103|  2.22k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (3103:10): [True: 2.22k, False: 0]
  |  Branch (3103:30): [True: 982, False: 1.24k]
  ------------------
 3104|    982|        continue;
 3105|       |
 3106|  1.24k|      int value = 0;
 3107|  1.24k|      const Vertex &v = vertices[p.elements[cell->first]];
 3108|  1.24k|      std::vector<unsigned int>::const_iterator ei;
 3109|       |
 3110|  1.24k|      ei = v.edges_in.begin();
 3111|  2.05k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3111:46): [True: 808, False: 1.24k]
  ------------------
 3112|    808|        {
 3113|    808|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 3114|    808|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3114:14): [True: 62, False: 746]
  ------------------
 3115|     62|            continue;
 3116|    746|          neighbour_cell->max_ival++;
 3117|    746|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3117:14): [True: 664, False: 82]
  ------------------
 3118|    664|            neighbour_cells_visited.push(neighbour_cell);
 3119|    746|        }
 3120|  1.90k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3120:13): [True: 664, False: 1.24k]
  ------------------
 3121|    664|        {
 3122|    664|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 3123|    664|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3123:14): [True: 639, False: 25]
  ------------------
 3124|    639|            value++;
 3125|    664|          neighbour_cell->max_ival = 0;
 3126|    664|        }
 3127|       |
 3128|  1.24k|      ei = v.edges_out.begin();
 3129|  2.10k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3129:47): [True: 863, False: 1.24k]
  ------------------
 3130|    863|        {
 3131|    863|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 3132|    863|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3132:14): [True: 71, False: 792]
  ------------------
 3133|     71|            continue;
 3134|    792|          neighbour_cell->max_ival++;
 3135|    792|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3135:14): [True: 678, False: 114]
  ------------------
 3136|    678|            neighbour_cells_visited.push(neighbour_cell);
 3137|    792|        }
 3138|  1.92k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (3138:13): [True: 678, False: 1.24k]
  ------------------
 3139|    678|        {
 3140|    678|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 3141|    678|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (3141:14): [True: 639, False: 39]
  ------------------
 3142|    639|            value++;
 3143|    678|          neighbour_cell->max_ival = 0;
 3144|    678|        }
 3145|       |
 3146|  1.24k|      if((value > best_value) ||
  ------------------
  |  Branch (3146:10): [True: 836, False: 408]
  ------------------
 3147|    408|         (value == best_value && cell->length > best_size))
  ------------------
  |  Branch (3147:11): [True: 287, False: 121]
  |  Branch (3147:34): [True: 18, False: 269]
  ------------------
 3148|    854|        {
 3149|    854|          best_value = value;
 3150|    854|          best_size = cell->length;
 3151|    854|          best_cell = cell;
 3152|    854|        }
 3153|  1.24k|    }
 3154|    730|  return best_cell;
 3155|    730|}
_ZN5bliss7Digraph22initialize_certificateEv:
 3170|  4.16k|{
 3171|  4.16k|  certificate_index = 0;
 3172|  4.16k|  certificate_current_path.clear();
 3173|  4.16k|  certificate_first_path.clear();
 3174|  4.16k|  certificate_best_path.clear();
 3175|  4.16k|}
_ZN5bliss7Digraph25nucr_find_first_componentEj:
 3279|  4.16k|{
 3280|       |
 3281|  4.16k|  cr_component.clear();
 3282|  4.16k|  cr_component_elements = 0;
 3283|       |
 3284|       |  /* Find first non-discrete cell in the component level */
 3285|  4.16k|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 3286|  4.16k|  while(first_cell)
  ------------------
  |  Branch (3286:9): [True: 4.16k, False: 0]
  ------------------
 3287|  4.16k|    {
 3288|  4.16k|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (3288:10): [True: 4.16k, False: 0]
  ------------------
 3289|  4.16k|        break;
 3290|      0|      first_cell = first_cell->next_nonsingleton;
 3291|      0|    }
 3292|       |
 3293|       |  /* The component is discrete, return false */
 3294|  4.16k|  if(!first_cell)
  ------------------
  |  Branch (3294:6): [True: 0, False: 4.16k]
  ------------------
 3295|      0|    return false;
 3296|       |
 3297|  4.16k|  std::vector<Partition::Cell*> component;
 3298|  4.16k|  first_cell->max_ival = 1;
 3299|  4.16k|  component.push_back(first_cell);
 3300|       |
 3301|  10.1k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (3301:27): [True: 5.98k, False: 4.16k]
  ------------------
 3302|  5.98k|    {
 3303|  5.98k|      Partition::Cell* const cell = component[i];
 3304|       |
 3305|  5.98k|      const Vertex& v = vertices[p.elements[cell->first]];
 3306|  5.98k|      std::vector<unsigned int>::const_iterator ei;
 3307|       |
 3308|  5.98k|      ei = v.edges_out.begin();
 3309|  9.02k|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3309:47): [True: 3.04k, False: 5.98k]
  ------------------
 3310|  3.04k|        {
 3311|  3.04k|          const unsigned int neighbour = *ei++;
 3312|  3.04k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3313|       |
 3314|       |          /* Skip unit neighbours */
 3315|  3.04k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3315:14): [True: 190, False: 2.85k]
  ------------------
 3316|    190|            continue;
 3317|       |          /* Already marked to be in the same component? */
 3318|  2.85k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3318:14): [True: 2.11k, False: 736]
  ------------------
 3319|  2.11k|            continue;
 3320|       |          /* Is the neighbour at the same component recursion level? */
 3321|    736|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (3321:14): [True: 0, False: 736]
  ------------------
 3322|      0|            continue;
 3323|       |
 3324|    736|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3324:14): [True: 580, False: 156]
  ------------------
 3325|    580|            neighbour_heap.insert(neighbour_cell->first);
 3326|    736|          neighbour_cell->max_ival_count++;
 3327|    736|        }
 3328|  6.56k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (3328:13): [True: 580, False: 5.98k]
  ------------------
 3329|    580|        {
 3330|    580|          const unsigned int start = neighbour_heap.remove();
 3331|    580|          Partition::Cell* const neighbour_cell =
 3332|    580|            p.get_cell(p.elements[start]);
 3333|       |
 3334|       |          /* Skip saturated neighbour cells */
 3335|    580|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3335:14): [True: 68, False: 512]
  ------------------
 3336|     68|            {
 3337|     68|              neighbour_cell->max_ival_count = 0;
 3338|     68|              continue;
 3339|     68|            }
 3340|    512|          neighbour_cell->max_ival_count = 0;
 3341|    512|          neighbour_cell->max_ival = 1;
 3342|    512|          component.push_back(neighbour_cell);
 3343|    512|        }
 3344|       |
 3345|  5.98k|      ei = v.edges_in.begin();
 3346|  8.98k|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3346:46): [True: 3.00k, False: 5.98k]
  ------------------
 3347|  3.00k|        {
 3348|  3.00k|          const unsigned int neighbour = *ei++;
 3349|       |
 3350|  3.00k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3351|       |
 3352|       |          /* Skip unit neighbours */
 3353|  3.00k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3353:14): [True: 209, False: 2.79k]
  ------------------
 3354|    209|            continue;
 3355|       |          /* Already marked to be in the same component? */
 3356|  2.79k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (3356:14): [True: 1.21k, False: 1.57k]
  ------------------
 3357|  1.21k|            continue;
 3358|       |          /* Is the neighbour at the same component recursion level? */
 3359|  1.57k|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (3359:14): [True: 0, False: 1.57k]
  ------------------
 3360|      0|            continue;
 3361|       |
 3362|  1.57k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3362:14): [True: 1.36k, False: 211]
  ------------------
 3363|  1.36k|            neighbour_heap.insert(neighbour_cell->first);
 3364|  1.57k|          neighbour_cell->max_ival_count++;
 3365|  1.57k|        }
 3366|  7.34k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (3366:13): [True: 1.36k, False: 5.98k]
  ------------------
 3367|  1.36k|        {
 3368|  1.36k|          const unsigned int start = neighbour_heap.remove();
 3369|  1.36k|          Partition::Cell* const neighbour_cell =
 3370|  1.36k|            p.get_cell(p.elements[start]);
 3371|       |
 3372|       |          /* Skip saturated neighbour cells */
 3373|  1.36k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3373:14): [True: 61, False: 1.30k]
  ------------------
 3374|     61|            {
 3375|     61|              neighbour_cell->max_ival_count = 0;
 3376|     61|              continue;
 3377|     61|            }
 3378|  1.30k|          neighbour_cell->max_ival_count = 0;
 3379|  1.30k|          neighbour_cell->max_ival = 1;
 3380|  1.30k|          component.push_back(neighbour_cell);
 3381|  1.30k|        }
 3382|  5.98k|    }
 3383|       |
 3384|  10.1k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (3384:27): [True: 5.98k, False: 4.16k]
  ------------------
 3385|  5.98k|    {
 3386|  5.98k|      Partition::Cell* const cell = component[i];
 3387|  5.98k|      cell->max_ival = 0;
 3388|  5.98k|      cr_component.push_back(cell->first);
 3389|  5.98k|      cr_component_elements += cell->length;
 3390|  5.98k|    }
 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|  4.16k|  return true;
 3401|  4.16k|}
_ZN5bliss7Digraph25nucr_find_first_componentEjRNSt3__16vectorIjNS1_9allocatorIjEEEERjRPNS_9Partition4CellE:
 3412|  2.48M|{
 3413|       |
 3414|  2.48M|  component.clear();
 3415|  2.48M|  component_elements = 0;
 3416|  2.48M|  sh_return = 0;
 3417|  2.48M|  unsigned int sh_first  = 0;
 3418|  2.48M|  unsigned int sh_size   = 0;
 3419|  2.48M|  unsigned int sh_nuconn = 0;
 3420|       |
 3421|       |  /* Find first non-discrete cell in the component level */
 3422|  2.48M|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 3423|  2.49M|  while(first_cell)
  ------------------
  |  Branch (3423:9): [True: 2.49M, False: 0]
  ------------------
 3424|  2.49M|    {
 3425|  2.49M|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (3425:10): [True: 2.48M, False: 1.22k]
  ------------------
 3426|  2.48M|        break;
 3427|  1.22k|      first_cell = first_cell->next_nonsingleton;
 3428|  1.22k|    }
 3429|       |
 3430|  2.48M|  if(!first_cell)
  ------------------
  |  Branch (3430:6): [True: 0, False: 2.48M]
  ------------------
 3431|      0|    {
 3432|       |      /* The component is discrete, return false */
 3433|      0|      return false;
 3434|      0|    }
 3435|       |
 3436|  2.48M|  std::vector<Partition::Cell*> comp;
 3437|  2.48M|  KStack<Partition::Cell*> neighbours;
 3438|  2.48M|  neighbours.init(get_nof_vertices());
 3439|       |
 3440|  2.48M|  first_cell->max_ival = 1;
 3441|  2.48M|  comp.push_back(first_cell);
 3442|       |
 3443|  5.01M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (3443:27): [True: 2.52M, False: 2.48M]
  ------------------
 3444|  2.52M|    {
 3445|  2.52M|      Partition::Cell* const cell = comp[i];
 3446|       |
 3447|  2.52M|      unsigned int nuconn = 1;
 3448|       |
 3449|  2.52M|      const Vertex& v = vertices[p.elements[cell->first]];
 3450|  2.52M|      std::vector<unsigned int>::const_iterator ei;
 3451|       |
 3452|       |      /*| Phase 1: outgoing edges */
 3453|  2.52M|      ei = v.edges_out.begin();
 3454|  2.62M|      for(unsigned int j = v.nof_edges_out(); j > 0; j--)
  ------------------
  |  Branch (3454:47): [True: 96.3k, False: 2.52M]
  ------------------
 3455|  96.3k|        {
 3456|  96.3k|          const unsigned int neighbour = *ei++;
 3457|       |
 3458|  96.3k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3459|       |
 3460|       |          /* Skip unit neighbours */
 3461|  96.3k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3461:14): [True: 12.3k, False: 83.9k]
  ------------------
 3462|  12.3k|            continue;
 3463|       |          /* Is the neighbour at the same component recursion level? */
 3464|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 3465|       |          //  continue;
 3466|  83.9k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3466:14): [True: 80.8k, False: 3.09k]
  ------------------
 3467|  80.8k|            neighbours.push(neighbour_cell);
 3468|  83.9k|          neighbour_cell->max_ival_count++;
 3469|  83.9k|        }
 3470|  2.60M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (3470:13): [True: 80.8k, False: 2.52M]
  ------------------
 3471|  80.8k|        {
 3472|  80.8k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 3473|       |          /* Skip saturated neighbour cells */
 3474|  80.8k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3474:14): [True: 167, False: 80.7k]
  ------------------
 3475|    167|            {
 3476|    167|              neighbour_cell->max_ival_count = 0;
 3477|    167|              continue;
 3478|    167|            }
 3479|  80.7k|          nuconn++;
 3480|  80.7k|          neighbour_cell->max_ival_count = 0;
 3481|  80.7k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (3481:14): [True: 1.89k, False: 78.8k]
  ------------------
 3482|  1.89k|            comp.push_back(neighbour_cell);
 3483|  1.89k|            neighbour_cell->max_ival = 1;
 3484|  1.89k|          }
 3485|  80.7k|        }
 3486|       |
 3487|       |      /*| Phase 2: incoming edges */
 3488|  2.52M|      ei = v.edges_in.begin();
 3489|  2.62M|      for(unsigned int j = v.nof_edges_in(); j > 0; j--)
  ------------------
  |  Branch (3489:46): [True: 98.7k, False: 2.52M]
  ------------------
 3490|  98.7k|        {
 3491|  98.7k|          const unsigned int neighbour = *ei++;
 3492|  98.7k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 3493|       |          /*| Skip unit neighbours */
 3494|  98.7k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (3494:14): [True: 13.9k, False: 84.7k]
  ------------------
 3495|  13.9k|            continue;
 3496|       |          /* Is the neighbour at the same component recursion level? */
 3497|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 3498|       |          //  continue;
 3499|  84.7k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (3499:14): [True: 81.0k, False: 3.74k]
  ------------------
 3500|  81.0k|            neighbours.push(neighbour_cell);
 3501|  84.7k|          neighbour_cell->max_ival_count++;
 3502|  84.7k|        }
 3503|  2.60M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (3503:13): [True: 81.0k, False: 2.52M]
  ------------------
 3504|  81.0k|        {
 3505|  81.0k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 3506|       |          /* Skip saturated neighbour cells */
 3507|  81.0k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (3507:14): [True: 307, False: 80.7k]
  ------------------
 3508|    307|            {
 3509|    307|              neighbour_cell->max_ival_count = 0;
 3510|    307|              continue;
 3511|    307|            }
 3512|  80.7k|          nuconn++;
 3513|  80.7k|          neighbour_cell->max_ival_count = 0;
 3514|  80.7k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (3514:14): [True: 34.6k, False: 46.0k]
  ------------------
 3515|  34.6k|            comp.push_back(neighbour_cell);
 3516|  34.6k|            neighbour_cell->max_ival = 1;
 3517|  34.6k|          }
 3518|  80.7k|        }
 3519|       |
 3520|       |      /*| Phase 3: splitting heuristics */
 3521|  2.52M|      switch(sh) {
 3522|   410k|      case shs_f:
  ------------------
  |  Branch (3522:7): [True: 410k, False: 2.11M]
  ------------------
 3523|   410k|        if(sh_return == 0 or
  ------------------
  |  Branch (3523:12): [True: 409k, False: 1.76k]
  ------------------
 3524|   409k|           cell->first <= sh_first) {
  ------------------
  |  Branch (3524:12): [True: 0, False: 1.76k]
  ------------------
 3525|   409k|          sh_return = cell;
 3526|   409k|          sh_first = cell->first;
 3527|   409k|        }
 3528|   410k|        break;
 3529|   421k|      case shs_fs:
  ------------------
  |  Branch (3529:7): [True: 421k, False: 2.10M]
  ------------------
 3530|   421k|        if(sh_return == 0 or
  ------------------
  |  Branch (3530:12): [True: 415k, False: 5.98k]
  ------------------
 3531|  5.98k|           cell->length < sh_size or
  ------------------
  |  Branch (3531:12): [True: 645, False: 5.34k]
  ------------------
 3532|   416k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (3532:13): [True: 3.97k, False: 1.37k]
  |  Branch (3532:41): [True: 88, False: 3.88k]
  ------------------
 3533|   416k|          sh_return = cell;
 3534|   416k|          sh_first = cell->first;
 3535|   416k|          sh_size = cell->length;
 3536|   416k|        }
 3537|   421k|        break;
 3538|   483k|      case shs_fl:
  ------------------
  |  Branch (3538:7): [True: 483k, False: 2.04M]
  ------------------
 3539|   483k|        if(sh_return == 0 or
  ------------------
  |  Branch (3539:12): [True: 478k, False: 5.50k]
  ------------------
 3540|  5.50k|           cell->length > sh_size or
  ------------------
  |  Branch (3540:12): [True: 433, False: 5.07k]
  ------------------
 3541|   478k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (3541:13): [True: 4.71k, False: 354]
  |  Branch (3541:41): [True: 80, False: 4.63k]
  ------------------
 3542|   478k|          sh_return = cell;
 3543|   478k|          sh_first = cell->first;
 3544|   478k|          sh_size = cell->length;
 3545|   478k|        }
 3546|   483k|        break;
 3547|   379k|      case shs_fm:
  ------------------
  |  Branch (3547:7): [True: 379k, False: 2.14M]
  ------------------
 3548|   379k|        if(sh_return == 0 or
  ------------------
  |  Branch (3548:12): [True: 373k, False: 6.30k]
  ------------------
 3549|  6.30k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3549:12): [True: 462, False: 5.84k]
  ------------------
 3550|   374k|           (nuconn == sh_nuconn and cell->first <= sh_first)) {
  ------------------
  |  Branch (3550:13): [True: 5.47k, False: 371]
  |  Branch (3550:37): [True: 92, False: 5.37k]
  ------------------
 3551|   374k|          sh_return = cell;
 3552|   374k|          sh_first = cell->first;
 3553|   374k|          sh_nuconn = nuconn;
 3554|   374k|        }
 3555|   379k|        break;
 3556|   480k|      case shs_fsm:
  ------------------
  |  Branch (3556:7): [True: 480k, False: 2.04M]
  ------------------
 3557|   480k|        if(sh_return == 0 or
  ------------------
  |  Branch (3557:12): [True: 471k, False: 8.81k]
  ------------------
 3558|  8.81k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3558:12): [True: 661, False: 8.15k]
  ------------------
 3559|  8.15k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (3559:13): [True: 7.46k, False: 682]
  ------------------
 3560|  7.46k|            (cell->length < sh_size or
  ------------------
  |  Branch (3560:14): [True: 628, False: 6.84k]
  ------------------
 3561|   472k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (3561:15): [True: 6.36k, False: 479]
  |  Branch (3561:43): [True: 153, False: 6.20k]
  ------------------
 3562|   472k|          sh_return = cell;
 3563|   472k|          sh_first = cell->first;
 3564|   472k|          sh_size = cell->length;
 3565|   472k|          sh_nuconn = nuconn;
 3566|   472k|        }
 3567|   480k|        break;
 3568|   350k|      case shs_flm:
  ------------------
  |  Branch (3568:7): [True: 350k, False: 2.17M]
  ------------------
 3569|   350k|        if(sh_return == 0 or
  ------------------
  |  Branch (3569:12): [True: 342k, False: 8.17k]
  ------------------
 3570|  8.17k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (3570:12): [True: 455, False: 7.72k]
  ------------------
 3571|  7.72k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (3571:13): [True: 7.27k, False: 450]
  ------------------
 3572|  7.27k|            (cell->length > sh_size or
  ------------------
  |  Branch (3572:14): [True: 342, False: 6.93k]
  ------------------
 3573|   343k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (3573:15): [True: 6.72k, False: 208]
  |  Branch (3573:43): [True: 134, False: 6.58k]
  ------------------
 3574|   343k|          sh_return = cell;
 3575|   343k|          sh_first = cell->first;
 3576|   343k|          sh_size = cell->length;
 3577|   343k|          sh_nuconn = nuconn;
 3578|   343k|        }
 3579|   350k|        break;
 3580|      0|      default:
  ------------------
  |  Branch (3580:7): [True: 0, False: 2.52M]
  ------------------
 3581|      0|        fatal_error("Internal error - unknown splitting heuristics");
 3582|      0|        return 0;
 3583|  2.52M|      }
 3584|  2.52M|    }
 3585|  2.48M|  assert(sh_return);
  ------------------
  |  Branch (3585:3): [True: 2.48M, False: 0]
  ------------------
 3586|       |
 3587|  5.01M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (3587:27): [True: 2.52M, False: 2.48M]
  ------------------
 3588|  2.52M|    {
 3589|  2.52M|      Partition::Cell* const cell = comp[i];
 3590|  2.52M|      cell->max_ival = 0;
 3591|  2.52M|      component.push_back(cell->first);
 3592|  2.52M|      component_elements += cell->length;
 3593|  2.52M|    }
 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.48M|  return true;
 3604|  2.48M|}
_ZN5bliss5Graph6VertexC2Ev:
 3616|   151k|{
 3617|   151k|  color = 0;
 3618|   151k|}
_ZN5bliss5Graph6VertexD2Ev:
 3622|   151k|{
 3623|   151k|  ;
 3624|   151k|}
_ZN5bliss5Graph6Vertex8add_edgeEj:
 3629|   113k|{
 3630|   113k|  edges.push_back(other_vertex);
 3631|   113k|}
_ZN5bliss5Graph6Vertex22remove_duplicate_edgesERNSt3__16vectorIbNS2_9allocatorIbEEEE:
 3636|   151k|{
 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|   151k|  for(std::vector<unsigned int>::iterator iter = edges.begin();
 3642|   264k|      iter != edges.end(); )
  ------------------
  |  Branch (3642:7): [True: 113k, False: 151k]
  ------------------
 3643|   113k|    {
 3644|   113k|      const unsigned int dest_vertex = *iter;
 3645|   113k|      if(tmp[dest_vertex] == true)
  ------------------
  |  Branch (3645:10): [True: 1.16k, False: 112k]
  ------------------
 3646|  1.16k|        {
 3647|       |          /* A duplicate edge found! */
 3648|  1.16k|          iter = edges.erase(iter);
 3649|  1.16k|        }
 3650|   112k|      else
 3651|   112k|        {
 3652|       |          /* Not seen earlier, mark as seen */
 3653|   112k|          tmp[dest_vertex] = true;
 3654|   112k|          iter++;
 3655|   112k|        }
 3656|   113k|    }
 3657|       |
 3658|       |  /* Clear tmp */
 3659|   151k|  for(std::vector<unsigned int>::iterator iter = edges.begin();
 3660|   263k|      iter != edges.end();
  ------------------
  |  Branch (3660:7): [True: 112k, False: 151k]
  ------------------
 3661|   151k|      iter++)
 3662|   112k|    {
 3663|   112k|      tmp[*iter] = false;
 3664|   112k|    }
 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|   151k|}
_ZN5bliss5GraphC2Ej:
 3694|  3.76k|{
 3695|  3.76k|  vertices.resize(nof_vertices);
 3696|  3.76k|  sh = shs_flm;
 3697|  3.76k|}
_ZN5bliss5GraphD2Ev:
 3701|  3.76k|{
 3702|  3.76k|  ;
 3703|  3.76k|}
_ZN5bliss5Graph8add_edgeEjj:
 3718|  56.8k|{
 3719|       |  //fprintf(stderr, "(%u,%u) ", vertex1, vertex2);
 3720|  56.8k|  if(vertex1 >= vertices.size() or vertex2 >= vertices.size())
  ------------------
  |  Branch (3720:6): [True: 0, False: 56.8k]
  |  Branch (3720:36): [True: 0, False: 56.8k]
  ------------------
 3721|      0|    throw std::runtime_error("out-of-bounds vertex number");
 3722|  56.8k|  vertices[vertex1].add_edge(vertex2);
 3723|  56.8k|  vertices[vertex2].add_edge(vertex1);
 3724|  56.8k|}
_ZN5bliss5Graph22remove_duplicate_edgesEv:
 3889|  3.76k|{
 3890|  3.76k|  std::vector<bool> tmp(vertices.size(), false);
 3891|       |
 3892|  3.76k|  for(std::vector<Vertex>::iterator vi = vertices.begin();
 3893|   154k|      vi != vertices.end();
  ------------------
  |  Branch (3893:7): [True: 151k, False: 3.76k]
  ------------------
 3894|   151k|      vi++)
 3895|   151k|    {
 3896|       |#if defined(BLISS_EXPENSIVE_CONSISTENCY_CHECKS)
 3897|       |      for(unsigned int i = 0; i < tmp.size(); i++) assert(tmp[i] == false);
 3898|       |#endif
 3899|   151k|      (*vi).remove_duplicate_edges(tmp);
 3900|   151k|    }
 3901|  3.76k|}
_ZN5bliss5Graph22vertex_color_invariantEPKS0_j:
 3919|   151k|{
 3920|   151k|  return g->vertices[v].color;
 3921|   151k|}
_ZN5bliss5Graph16degree_invariantEPKS0_j:
 3929|   150k|{
 3930|   150k|  return g->vertices[v].nof_edges();
 3931|   150k|}
_ZN5bliss5Graph18selfloop_invariantEPKS0_j:
 3939|   151k|{
 3940|   151k|  const Vertex& vertex = g->vertices[v];
 3941|   151k|  for(std::vector<unsigned int>::const_iterator ei = vertex.edges.begin();
 3942|   261k|      ei != vertex.edges.end();
  ------------------
  |  Branch (3942:7): [True: 111k, False: 149k]
  ------------------
 3943|   151k|      ei++)
 3944|   111k|    {
 3945|   111k|      if(*ei == v)
  ------------------
  |  Branch (3945:10): [True: 1.15k, False: 110k]
  ------------------
 3946|  1.15k|        return 1;
 3947|   111k|    }
 3948|   149k|  return 0;
 3949|   151k|}
_ZN5bliss5Graph29refine_according_to_invariantEPFjPKS0_jE:
 3962|  11.2k|{
 3963|  11.2k|  bool refined = false;
 3964|       |
 3965|  22.7k|  for(Partition::Cell* cell = p.first_nonsingleton_cell; cell; )
  ------------------
  |  Branch (3965:58): [True: 11.5k, False: 11.2k]
  ------------------
 3966|  11.5k|    {
 3967|       |
 3968|  11.5k|      Partition::Cell* const next_cell = cell->next_nonsingleton;
 3969|       |
 3970|  11.5k|      const unsigned int* ep = p.elements + cell->first;
 3971|   464k|      for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (3971:42): [True: 452k, False: 11.5k]
  ------------------
 3972|   452k|        {
 3973|   452k|          const unsigned int ival = inv(this, *ep);
 3974|   452k|          p.invariant_values[*ep] = ival;
 3975|   452k|          if(ival > cell->max_ival)
  ------------------
  |  Branch (3975:14): [True: 5.75k, False: 447k]
  ------------------
 3976|  5.75k|            {
 3977|  5.75k|              cell->max_ival = ival;
 3978|  5.75k|              cell->max_ival_count = 1;
 3979|  5.75k|            }
 3980|   447k|          else if(ival == cell->max_ival)
  ------------------
  |  Branch (3980:19): [True: 327k, False: 119k]
  ------------------
 3981|   327k|            {
 3982|   327k|              cell->max_ival_count++;
 3983|   327k|            }
 3984|   452k|        }
 3985|  11.5k|      Partition::Cell* const last_new_cell = p.zplit_cell(cell, true);
 3986|  11.5k|      refined |= (last_new_cell != cell);
 3987|  11.5k|      cell = next_cell;
 3988|  11.5k|    }
 3989|       |
 3990|  11.2k|  return refined;
 3991|  11.2k|}
_ZN5bliss5Graph27split_neighbourhood_of_cellEPNS_9Partition4CellE:
 4012|   219k|{
 4013|       |
 4014|       |
 4015|   219k|  const bool was_equal_to_first = refine_equal_to_first;
 4016|       |
 4017|   219k|  if(compute_eqref_hash)
  ------------------
  |  Branch (4017:6): [True: 0, False: 219k]
  ------------------
 4018|      0|    {
 4019|      0|      eqref_hash.update(cell->first);
 4020|      0|      eqref_hash.update(cell->length);
 4021|      0|    }
 4022|       |
 4023|   219k|  const unsigned int* ep = p.elements + cell->first;
 4024|   809k|  for(unsigned int i = cell->length; i > 0; i--)
  ------------------
  |  Branch (4024:38): [True: 590k, False: 219k]
  ------------------
 4025|   590k|    {
 4026|   590k|      const Vertex& v = vertices[*ep++];
 4027|       |
 4028|   590k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4029|  1.63M|      for(unsigned int j = v.nof_edges(); j != 0; j--)
  ------------------
  |  Branch (4029:43): [True: 1.03M, False: 590k]
  ------------------
 4030|  1.03M|        {
 4031|  1.03M|          const unsigned int dest_vertex = *ei++;
 4032|  1.03M|          Partition::Cell * const neighbour_cell = p.get_cell(dest_vertex);
 4033|  1.03M|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4033:14): [True: 252k, False: 786k]
  ------------------
 4034|   252k|            continue;
 4035|   786k|          const unsigned int ival = ++p.invariant_values[dest_vertex];
 4036|   786k|          if(ival > neighbour_cell->max_ival)
  ------------------
  |  Branch (4036:14): [True: 360k, False: 425k]
  ------------------
 4037|   360k|            {
 4038|   360k|              neighbour_cell->max_ival = ival;
 4039|   360k|              neighbour_cell->max_ival_count = 1;
 4040|   360k|              if(ival == 1) {
  ------------------
  |  Branch (4040:18): [True: 306k, False: 54.5k]
  ------------------
 4041|   306k|                neighbour_heap.insert(neighbour_cell->first);
 4042|   306k|              }
 4043|   360k|            }
 4044|   425k|          else if(ival == neighbour_cell->max_ival) {
  ------------------
  |  Branch (4044:19): [True: 375k, False: 49.9k]
  ------------------
 4045|   375k|            neighbour_cell->max_ival_count++;
 4046|   375k|          }
 4047|   786k|        }
 4048|   590k|    }
 4049|       |
 4050|   489k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4050:9): [True: 295k, False: 194k]
  ------------------
 4051|   295k|    {
 4052|   295k|      const unsigned int start = neighbour_heap.remove();
 4053|   295k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4054|       |
 4055|   295k|      if(compute_eqref_hash)
  ------------------
  |  Branch (4055:10): [True: 0, False: 295k]
  ------------------
 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|   295k|      Partition::Cell* const last_new_cell = p.zplit_cell(neighbour_cell, true);
 4065|       |
 4066|       |      /* Update certificate and hash if needed */
 4067|   295k|      const Partition::Cell* c = neighbour_cell;
 4068|   429k|      while(1)
  ------------------
  |  Branch (4068:13): [True: 429k, Folded]
  ------------------
 4069|   429k|        {
 4070|   429k|          if(in_search)
  ------------------
  |  Branch (4070:14): [True: 412k, False: 17.1k]
  ------------------
 4071|   412k|            {
 4072|       |              /* Build certificate */
 4073|   412k|              cert_add_redundant(CERT_SPLIT, c->first, c->length);
 4074|       |              /* No need to continue? */
 4075|   412k|              if(refine_compare_certificate and
  ------------------
  |  Branch (4075:18): [True: 399k, False: 13.1k]
  ------------------
 4076|   399k|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (4076:18): [True: 369k, False: 29.8k]
  ------------------
 4077|   369k|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4077:18): [True: 24.9k, False: 344k]
  ------------------
 4078|  24.9k|                goto worse_exit;
 4079|   412k|            }
 4080|   404k|          if(compute_eqref_hash)
  ------------------
  |  Branch (4080:14): [True: 0, False: 404k]
  ------------------
 4081|      0|            {
 4082|      0|              eqref_hash.update(c->first);
 4083|      0|              eqref_hash.update(c->length);
 4084|      0|            }
 4085|   404k|          if(c == last_new_cell)
  ------------------
  |  Branch (4085:14): [True: 270k, False: 134k]
  ------------------
 4086|   270k|            break;
 4087|   134k|          c = c->next;
 4088|   134k|        }
 4089|   295k|    }
 4090|       |
 4091|   194k|  if(refine_compare_certificate and
  ------------------
  |  Branch (4091:6): [True: 175k, False: 18.5k]
  ------------------
 4092|   175k|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (4092:6): [True: 159k, False: 16.3k]
  ------------------
 4093|   159k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4093:6): [True: 0, False: 159k]
  ------------------
 4094|      0|    return true;
 4095|       |
 4096|   194k|  return false;
 4097|       |
 4098|  24.9k| worse_exit:
 4099|       |  /* Clear neighbour heap */
 4100|  24.9k|  UintSeqHash rest;
 4101|  35.5k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4101:9): [True: 10.5k, False: 24.9k]
  ------------------
 4102|  10.5k|    {
 4103|  10.5k|      const unsigned int start = neighbour_heap.remove();
 4104|  10.5k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4105|  10.5k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4105:10): [True: 10.5k, False: 0]
  |  Branch (4105:40): [True: 3.35k, False: 7.18k]
  ------------------
 4106|  3.35k|        {
 4107|  3.35k|          rest.update(neighbour_cell->first);
 4108|  3.35k|          rest.update(neighbour_cell->length);
 4109|  3.35k|          rest.update(neighbour_cell->max_ival);
 4110|  3.35k|          rest.update(neighbour_cell->max_ival_count);
 4111|  3.35k|        }
 4112|  10.5k|      neighbour_cell->max_ival = 0;
 4113|  10.5k|      neighbour_cell->max_ival_count = 0;
 4114|  10.5k|     p.clear_ivs(neighbour_cell);
 4115|  10.5k|    }
 4116|  24.9k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4116:6): [True: 24.9k, False: 0]
  |  Branch (4116:36): [True: 4.84k, False: 20.1k]
  ------------------
 4117|  4.84k|    {
 4118|  12.6k|      for(unsigned int i = p.splitting_queue.size(); i > 0; i--)
  ------------------
  |  Branch (4118:54): [True: 7.79k, False: 4.84k]
  ------------------
 4119|  7.79k|        {
 4120|  7.79k|          Partition::Cell* const cell = p.splitting_queue.pop_front();
 4121|  7.79k|          rest.update(cell->first);
 4122|  7.79k|          rest.update(cell->length);
 4123|  7.79k|          p.splitting_queue.push_back(cell);
 4124|  7.79k|        }
 4125|  4.84k|      rest.update(failure_recording_fp_deviation);
 4126|  4.84k|      failure_recording_fp_deviation = rest.get_value();
 4127|  4.84k|    }
 4128|       |
 4129|  24.9k|  return true;
 4130|   194k|}
_ZN5bliss5Graph32split_neighbourhood_of_unit_cellEPNS_9Partition4CellE:
 4136|  2.87M|{
 4137|       |
 4138|       |
 4139|  2.87M|  const bool was_equal_to_first = refine_equal_to_first;
 4140|       |
 4141|  2.87M|  if(compute_eqref_hash)
  ------------------
  |  Branch (4141:6): [True: 0, False: 2.87M]
  ------------------
 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.87M|  const Vertex& v = vertices[p.elements[unit_cell->first]];
 4149|       |
 4150|  2.87M|  std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4151|  4.41M|  for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4151:39): [True: 1.53M, False: 2.87M]
  ------------------
 4152|  1.53M|    {
 4153|  1.53M|      const unsigned int dest_vertex = *ei++;
 4154|  1.53M|      Partition::Cell * const neighbour_cell = p.get_cell(dest_vertex);
 4155|       |
 4156|  1.53M|      if(neighbour_cell->is_unit()) {
  ------------------
  |  Branch (4156:10): [True: 951k, False: 587k]
  ------------------
 4157|   951k|        if(in_search) {
  ------------------
  |  Branch (4157:12): [True: 946k, False: 5.13k]
  ------------------
 4158|       |          /* Remember neighbour in order to generate certificate */
 4159|   946k|          neighbour_heap.insert(neighbour_cell->first);
 4160|   946k|        }
 4161|   951k|        continue;
 4162|   951k|      }
 4163|   587k|      if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4163:10): [True: 370k, False: 216k]
  ------------------
 4164|   370k|        {
 4165|   370k|          neighbour_heap.insert(neighbour_cell->first);
 4166|   370k|        }
 4167|   587k|      neighbour_cell->max_ival_count++;
 4168|       |
 4169|   587k|      unsigned int * const swap_position =
 4170|   587k|        p.elements + neighbour_cell->first + neighbour_cell->length -
 4171|   587k|        neighbour_cell->max_ival_count;
 4172|   587k|      *p.in_pos[dest_vertex] = *swap_position;
 4173|   587k|      p.in_pos[*swap_position] = p.in_pos[dest_vertex];
 4174|   587k|      *swap_position = dest_vertex;
 4175|   587k|      p.in_pos[dest_vertex] = swap_position;
 4176|   587k|    }
 4177|       |
 4178|  4.19M|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4178:9): [True: 1.31M, False: 2.87M]
  ------------------
 4179|  1.31M|    {
 4180|  1.31M|      const unsigned int start = neighbour_heap.remove();
 4181|  1.31M|      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.31M|      if(compute_eqref_hash)
  ------------------
  |  Branch (4189:10): [True: 0, False: 1.31M]
  ------------------
 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.31M|      if(neighbour_cell->length > 1 and
  ------------------
  |  Branch (4196:10): [True: 370k, False: 945k]
  ------------------
 4197|   370k|         neighbour_cell->max_ival_count != neighbour_cell->length)
  ------------------
  |  Branch (4197:10): [True: 302k, False: 68.2k]
  ------------------
 4198|   302k|        {
 4199|   302k|          Partition::Cell * const new_cell =
 4200|   302k|            p.aux_split_in_two(neighbour_cell,
 4201|   302k|                               neighbour_cell->length -
 4202|   302k|                               neighbour_cell->max_ival_count);
 4203|   302k|          unsigned int *ep = p.elements + new_cell->first;
 4204|   302k|          unsigned int * const lp = p.elements+new_cell->first+new_cell->length;
 4205|   750k|          while(ep < lp)
  ------------------
  |  Branch (4205:17): [True: 447k, False: 302k]
  ------------------
 4206|   447k|            {
 4207|   447k|              p.element_to_cell_map[*ep] = new_cell;
 4208|   447k|              ep++;
 4209|   447k|            }
 4210|   302k|          neighbour_cell->max_ival_count = 0;
 4211|       |
 4212|       |
 4213|   302k|          if(compute_eqref_hash)
  ------------------
  |  Branch (4213:14): [True: 0, False: 302k]
  ------------------
 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|   302k|          if(neighbour_cell->is_in_splitting_queue()) {
  ------------------
  |  Branch (4225:14): [True: 5.88k, False: 296k]
  ------------------
 4226|       |            /* Both cells must be included in splitting_queue in order
 4227|       |               to ensure refinement into equitable partition */
 4228|  5.88k|            p.splitting_queue_add(new_cell);
 4229|   296k|          } else {
 4230|   296k|            Partition::Cell *min_cell, *max_cell;
 4231|   296k|            if(neighbour_cell->length <= new_cell->length) {
  ------------------
  |  Branch (4231:16): [True: 124k, False: 172k]
  ------------------
 4232|   124k|              min_cell = neighbour_cell;
 4233|   124k|              max_cell = new_cell;
 4234|   172k|            } else {
 4235|   172k|              min_cell = new_cell;
 4236|   172k|              max_cell = neighbour_cell;
 4237|   172k|            }
 4238|       |            /* Put the smaller cell in splitting_queue */
 4239|   296k|            p.splitting_queue_add(min_cell);
 4240|   296k|            if(max_cell->is_unit()) {
  ------------------
  |  Branch (4240:16): [True: 109k, False: 187k]
  ------------------
 4241|       |              /* Put the "larger" cell also in splitting_queue */
 4242|   109k|              p.splitting_queue_add(max_cell);
 4243|   109k|            }
 4244|   296k|          }
 4245|       |          /* Update pointer for certificate generation */
 4246|   302k|          neighbour_cell = new_cell;
 4247|   302k|        }
 4248|  1.01M|      else
 4249|  1.01M|        {
 4250|       |          /* neighbour_cell->length == 1 ||
 4251|       |             neighbour_cell->max_ival_count == neighbour_cell->length */
 4252|  1.01M|          neighbour_cell->max_ival_count = 0;
 4253|  1.01M|        }
 4254|       |
 4255|       |      /*
 4256|       |       * Build certificate if required
 4257|       |       */
 4258|  1.31M|      if(in_search)
  ------------------
  |  Branch (4258:10): [True: 1.31M, False: 2.32k]
  ------------------
 4259|  1.31M|        {
 4260|  1.31M|          for(unsigned int i = neighbour_cell->first,
 4261|  1.31M|                j = neighbour_cell->length;
 4262|  2.84M|              j > 0;
  ------------------
  |  Branch (4262:15): [True: 1.52M, False: 1.31M]
  ------------------
 4263|  1.52M|              j--, i++)
 4264|  1.52M|            {
 4265|       |              /* Build certificate */
 4266|  1.52M|              cert_add(CERT_EDGE, unit_cell->first, i);
 4267|       |              /* No need to continue? */
 4268|  1.52M|              if(refine_compare_certificate and
  ------------------
  |  Branch (4268:18): [True: 1.42M, False: 102k]
  ------------------
 4269|  1.42M|                 (refine_equal_to_first == false) and
  ------------------
  |  Branch (4269:18): [True: 1.12M, False: 304k]
  ------------------
 4270|  1.12M|                 (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4270:18): [True: 1.08k, False: 1.11M]
  ------------------
 4271|  1.08k|                goto worse_exit;
 4272|  1.52M|            }
 4273|  1.31M|        } /* if(in_search) */
 4274|  1.31M|    } /* while(!neighbour_heap.is_empty()) */
 4275|       |
 4276|  2.87M|  if(refine_compare_certificate and
  ------------------
  |  Branch (4276:6): [True: 2.72M, False: 151k]
  ------------------
 4277|  2.72M|     (refine_equal_to_first == false) and
  ------------------
  |  Branch (4277:6): [True: 547k, False: 2.17M]
  ------------------
 4278|   547k|     (refine_cmp_to_best < 0))
  ------------------
  |  Branch (4278:6): [True: 0, False: 547k]
  ------------------
 4279|      0|    return true;
 4280|       |
 4281|  2.87M|  return false;
 4282|       |
 4283|  1.08k| worse_exit:
 4284|       |  /* Clear neighbour heap */
 4285|  1.08k|  UintSeqHash rest;
 4286|  2.61k|  while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4286:9): [True: 1.53k, False: 1.08k]
  ------------------
 4287|  1.53k|    {
 4288|  1.53k|      const unsigned int start = neighbour_heap.remove();
 4289|  1.53k|      Partition::Cell * const neighbour_cell = p.get_cell(p.elements[start]);
 4290|  1.53k|      if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4290:10): [True: 1.53k, False: 0]
  |  Branch (4290:40): [True: 1.21k, False: 319]
  ------------------
 4291|  1.21k|        {
 4292|  1.21k|          rest.update(neighbour_cell->first);
 4293|  1.21k|          rest.update(neighbour_cell->length);
 4294|  1.21k|          rest.update(neighbour_cell->max_ival_count);
 4295|  1.21k|        }
 4296|  1.53k|      neighbour_cell->max_ival_count = 0;
 4297|  1.53k|    }
 4298|  1.08k|  if(opt_use_failure_recording and was_equal_to_first)
  ------------------
  |  Branch (4298:6): [True: 1.08k, False: 0]
  |  Branch (4298:36): [True: 841, False: 240]
  ------------------
 4299|    841|    {
 4300|    841|      rest.update(failure_recording_fp_deviation);
 4301|    841|      failure_recording_fp_deviation = rest.get_value();
 4302|    841|    }
 4303|  1.08k|  return true;
 4304|  2.87M|}
_ZN5bliss5Graph32make_initial_equitable_partitionEv:
 4389|  3.74k|{
 4390|  3.74k|  refine_according_to_invariant(&vertex_color_invariant);
 4391|  3.74k|  p.splitting_queue_clear();
 4392|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4393|       |
 4394|  3.74k|  refine_according_to_invariant(&selfloop_invariant);
 4395|  3.74k|  p.splitting_queue_clear();
 4396|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4397|       |
 4398|  3.74k|  refine_according_to_invariant(&degree_invariant);
 4399|  3.74k|  p.splitting_queue_clear();
 4400|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4401|       |
 4402|  3.74k|  refine_to_equitable();
 4403|       |  //p.print_signature(stderr); fprintf(stderr, "\n");
 4404|       |
 4405|       |
 4406|  3.74k|}
_ZN5bliss5Graph29find_next_cell_to_be_splittedEPNS_9Partition4CellE:
 4423|  3.70k|{
 4424|  3.70k|  switch(sh) {
 4425|    380|  case shs_f:   return sh_first();
  ------------------
  |  Branch (4425:3): [True: 380, False: 3.32k]
  ------------------
 4426|    564|  case shs_fs:  return sh_first_smallest();
  ------------------
  |  Branch (4426:3): [True: 564, False: 3.14k]
  ------------------
 4427|    592|  case shs_fl:  return sh_first_largest();
  ------------------
  |  Branch (4427:3): [True: 592, False: 3.11k]
  ------------------
 4428|    663|  case shs_fm:  return sh_first_max_neighbours();
  ------------------
  |  Branch (4428:3): [True: 663, False: 3.04k]
  ------------------
 4429|    793|  case shs_fsm: return sh_first_smallest_max_neighbours();
  ------------------
  |  Branch (4429:3): [True: 793, False: 2.91k]
  ------------------
 4430|    717|  case shs_flm: return sh_first_largest_max_neighbours();
  ------------------
  |  Branch (4430:3): [True: 717, False: 2.99k]
  ------------------
 4431|      0|  default:
  ------------------
  |  Branch (4431:3): [True: 0, False: 3.70k]
  ------------------
 4432|      0|    fatal_error("Internal error - unknown splitting heuristics");
 4433|      0|    return 0;
 4434|  3.70k|  }
 4435|  3.70k|}
_ZN5bliss5Graph8sh_firstEv:
 4443|    380|{
 4444|    380|  Partition::Cell* best_cell = 0;
 4445|    380|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4446|    380|      cell;
  ------------------
  |  Branch (4446:7): [True: 380, False: 0]
  ------------------
 4447|    380|      cell = cell->next_nonsingleton)
 4448|    380|    {
 4449|    380|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4449:10): [True: 380, False: 0]
  |  Branch (4449:30): [True: 0, False: 380]
  ------------------
 4450|      0|        continue;
 4451|    380|      best_cell = cell;
 4452|    380|      break;
 4453|    380|    }
 4454|    380|  return best_cell;
 4455|    380|}
_ZN5bliss5Graph17sh_first_smallestEv:
 4463|    564|{
 4464|    564|  Partition::Cell* best_cell = 0;
 4465|    564|  unsigned int best_size = UINT_MAX;
 4466|    564|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4467|  2.31k|      cell;
  ------------------
  |  Branch (4467:7): [True: 1.75k, False: 564]
  ------------------
 4468|  1.75k|      cell = cell->next_nonsingleton)
 4469|  1.75k|    {
 4470|  1.75k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4470:10): [True: 1.75k, False: 0]
  |  Branch (4470:30): [True: 1.04k, False: 711]
  ------------------
 4471|  1.04k|        continue;
 4472|    711|      if(cell->length < best_size)
  ------------------
  |  Branch (4472:10): [True: 580, False: 131]
  ------------------
 4473|    580|        {
 4474|    580|          best_size = cell->length;
 4475|    580|          best_cell = cell;
 4476|    580|        }
 4477|    711|    }
 4478|    564|  return best_cell;
 4479|    564|}
_ZN5bliss5Graph16sh_first_largestEv:
 4487|    592|{
 4488|    592|  Partition::Cell* best_cell = 0;
 4489|    592|  unsigned int best_size = 0;
 4490|    592|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4491|  2.63k|      cell;
  ------------------
  |  Branch (4491:7): [True: 2.03k, False: 592]
  ------------------
 4492|  2.03k|      cell = cell->next_nonsingleton)
 4493|  2.03k|    {
 4494|  2.03k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4494:10): [True: 2.03k, False: 0]
  |  Branch (4494:30): [True: 1.17k, False: 866]
  ------------------
 4495|  1.17k|        continue;
 4496|    866|      if(cell->length > best_size)
  ------------------
  |  Branch (4496:10): [True: 609, False: 257]
  ------------------
 4497|    609|        {
 4498|    609|          best_size = cell->length;
 4499|    609|          best_cell = cell;
 4500|    609|        }
 4501|    866|    }
 4502|    592|  return best_cell;
 4503|    592|}
_ZN5bliss5Graph23sh_first_max_neighboursEv:
 4514|    663|{
 4515|    663|  Partition::Cell* best_cell = 0;
 4516|    663|  int best_value = -1;
 4517|    663|  KStack<Partition::Cell*> neighbour_cells_visited;
 4518|    663|  neighbour_cells_visited.init(get_nof_vertices());
 4519|    663|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4520|  2.87k|      cell;
  ------------------
  |  Branch (4520:7): [True: 2.21k, False: 663]
  ------------------
 4521|  2.21k|      cell = cell->next_nonsingleton)
 4522|  2.21k|    {
 4523|  2.21k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4523:10): [True: 2.21k, False: 0]
  |  Branch (4523:30): [True: 999, False: 1.21k]
  ------------------
 4524|    999|        continue;
 4525|  1.21k|      const Vertex& v = vertices[p.elements[cell->first]];
 4526|  1.21k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4527|  2.92k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4527:43): [True: 1.71k, False: 1.21k]
  ------------------
 4528|  1.71k|        {
 4529|  1.71k|          Partition::Cell * const neighbour_cell = p.get_cell(*ei++);
 4530|  1.71k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4530:14): [True: 60, False: 1.65k]
  ------------------
 4531|     60|            continue;
 4532|  1.65k|          neighbour_cell->max_ival++;
 4533|  1.65k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4533:14): [True: 1.41k, False: 238]
  ------------------
 4534|  1.41k|            neighbour_cells_visited.push(neighbour_cell);
 4535|  1.65k|        }
 4536|  1.21k|      int value = 0;
 4537|  2.62k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4537:13): [True: 1.41k, False: 1.21k]
  ------------------
 4538|  1.41k|        {
 4539|  1.41k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4540|  1.41k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4540:14): [True: 1.31k, False: 99]
  ------------------
 4541|  1.31k|            value++;
 4542|  1.41k|          neighbour_cell->max_ival = 0;
 4543|  1.41k|        }
 4544|  1.21k|      if(value > best_value)
  ------------------
  |  Branch (4544:10): [True: 790, False: 424]
  ------------------
 4545|    790|        {
 4546|    790|          best_value = value;
 4547|    790|          best_cell = cell;
 4548|    790|        }
 4549|  1.21k|    }
 4550|    663|  return best_cell;
 4551|    663|}
_ZN5bliss5Graph32sh_first_smallest_max_neighboursEv:
 4562|    793|{
 4563|    793|  Partition::Cell* best_cell = 0;
 4564|    793|  int best_value = -1;
 4565|    793|  unsigned int best_size = UINT_MAX;
 4566|    793|  KStack<Partition::Cell*> neighbour_cells_visited;
 4567|    793|  neighbour_cells_visited.init(get_nof_vertices());
 4568|    793|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4569|  3.29k|      cell;
  ------------------
  |  Branch (4569:7): [True: 2.49k, False: 793]
  ------------------
 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.16k, False: 1.33k]
  ------------------
 4574|  1.16k|        continue;
 4575|       |
 4576|  1.33k|      const Vertex& v = vertices[p.elements[cell->first]];
 4577|  1.33k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4578|  3.15k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4578:43): [True: 1.82k, False: 1.33k]
  ------------------
 4579|  1.82k|        {
 4580|  1.82k|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 4581|  1.82k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4581:14): [True: 69, False: 1.75k]
  ------------------
 4582|     69|            continue;
 4583|  1.75k|          neighbour_cell->max_ival++;
 4584|  1.75k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4584:14): [True: 1.41k, False: 346]
  ------------------
 4585|  1.41k|            neighbour_cells_visited.push(neighbour_cell);
 4586|  1.75k|        }
 4587|  1.33k|      int value = 0;
 4588|  2.74k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4588:13): [True: 1.41k, False: 1.33k]
  ------------------
 4589|  1.41k|        {
 4590|  1.41k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4591|  1.41k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4591:14): [True: 1.30k, False: 108]
  ------------------
 4592|  1.30k|            value++;
 4593|  1.41k|          neighbour_cell->max_ival = 0;
 4594|  1.41k|        }
 4595|  1.33k|      if((value > best_value) or
  ------------------
  |  Branch (4595:10): [True: 926, False: 404]
  ------------------
 4596|    404|         (value == best_value and cell->length < best_size))
  ------------------
  |  Branch (4596:11): [True: 350, False: 54]
  |  Branch (4596:35): [True: 53, False: 297]
  ------------------
 4597|    979|        {
 4598|    979|          best_value = value;
 4599|    979|          best_size = cell->length;
 4600|    979|          best_cell = cell;
 4601|    979|        }
 4602|  1.33k|    }
 4603|    793|  return best_cell;
 4604|    793|}
_ZN5bliss5Graph31sh_first_largest_max_neighboursEv:
 4615|    717|{
 4616|    717|  Partition::Cell* best_cell = 0;
 4617|    717|  int best_value = -1;
 4618|    717|  unsigned int best_size = 0;
 4619|    717|  KStack<Partition::Cell*> neighbour_cells_visited;
 4620|    717|  neighbour_cells_visited.init(get_nof_vertices());
 4621|    717|  for(Partition::Cell* cell = p.first_nonsingleton_cell;
 4622|  3.19k|      cell;
  ------------------
  |  Branch (4622:7): [True: 2.47k, False: 717]
  ------------------
 4623|  2.47k|      cell = cell->next_nonsingleton)
 4624|  2.47k|    {
 4625|       |
 4626|  2.47k|      if(opt_use_comprec and p.cr_get_level(cell->first) != cr_level)
  ------------------
  |  Branch (4626:10): [True: 2.47k, False: 0]
  |  Branch (4626:30): [True: 1.13k, False: 1.34k]
  ------------------
 4627|  1.13k|        continue;
 4628|  1.34k|      const Vertex& v = vertices[p.elements[cell->first]];
 4629|  1.34k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4630|  3.33k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4630:43): [True: 1.99k, False: 1.34k]
  ------------------
 4631|  1.99k|        {
 4632|  1.99k|          Partition::Cell* const neighbour_cell = p.get_cell(*ei++);
 4633|  1.99k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4633:14): [True: 72, False: 1.91k]
  ------------------
 4634|     72|            continue;
 4635|  1.91k|          neighbour_cell->max_ival++;
 4636|  1.91k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4636:14): [True: 1.61k, False: 303]
  ------------------
 4637|  1.61k|            neighbour_cells_visited.push(neighbour_cell);
 4638|  1.91k|        }
 4639|  1.34k|      int value = 0;
 4640|  2.96k|      while(!neighbour_cells_visited.is_empty())
  ------------------
  |  Branch (4640:13): [True: 1.61k, False: 1.34k]
  ------------------
 4641|  1.61k|        {
 4642|  1.61k|          Partition::Cell* const neighbour_cell = neighbour_cells_visited.pop();
 4643|  1.61k|          if(neighbour_cell->max_ival != neighbour_cell->length)
  ------------------
  |  Branch (4643:14): [True: 1.51k, False: 101]
  ------------------
 4644|  1.51k|            value++;
 4645|  1.61k|          neighbour_cell->max_ival = 0;
 4646|  1.61k|        }
 4647|  1.34k|      if((value > best_value) or
  ------------------
  |  Branch (4647:10): [True: 863, False: 482]
  ------------------
 4648|    482|         (value == best_value and cell->length > best_size))
  ------------------
  |  Branch (4648:11): [True: 432, False: 50]
  |  Branch (4648:35): [True: 30, False: 402]
  ------------------
 4649|    893|        {
 4650|    893|          best_value = value;
 4651|    893|          best_size = cell->length;
 4652|    893|          best_cell = cell;
 4653|    893|        }
 4654|  1.34k|    }
 4655|    717|  return best_cell;
 4656|    717|}
_ZN5bliss5Graph22initialize_certificateEv:
 4685|  3.70k|{
 4686|  3.70k|  certificate_index = 0;
 4687|  3.70k|  certificate_current_path.clear();
 4688|  3.70k|  certificate_first_path.clear();
 4689|  3.70k|  certificate_best_path.clear();
 4690|  3.70k|}
_ZN5bliss5Graph25nucr_find_first_componentEj:
 4781|  3.70k|{
 4782|       |
 4783|  3.70k|  cr_component.clear();
 4784|  3.70k|  cr_component_elements = 0;
 4785|       |
 4786|       |  /* Find first non-discrete cell in the component level */
 4787|  3.70k|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 4788|  3.70k|  while(first_cell)
  ------------------
  |  Branch (4788:9): [True: 3.70k, False: 0]
  ------------------
 4789|  3.70k|    {
 4790|  3.70k|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (4790:10): [True: 3.70k, False: 0]
  ------------------
 4791|  3.70k|        break;
 4792|      0|      first_cell = first_cell->next_nonsingleton;
 4793|      0|    }
 4794|       |
 4795|       |  /* The component is discrete, return false */
 4796|  3.70k|  if(!first_cell)
  ------------------
  |  Branch (4796:6): [True: 0, False: 3.70k]
  ------------------
 4797|      0|    return false;
 4798|       |
 4799|  3.70k|  std::vector<Partition::Cell*> component;
 4800|  3.70k|  first_cell->max_ival = 1;
 4801|  3.70k|  component.push_back(first_cell);
 4802|       |
 4803|  9.57k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (4803:27): [True: 5.86k, False: 3.70k]
  ------------------
 4804|  5.86k|    {
 4805|  5.86k|      Partition::Cell* const cell = component[i];
 4806|       |
 4807|  5.86k|      const Vertex& v = vertices[p.elements[cell->first]];
 4808|  5.86k|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4809|  12.7k|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4809:43): [True: 6.92k, False: 5.86k]
  ------------------
 4810|  6.92k|        {
 4811|  6.92k|          const unsigned int neighbour = *ei++;
 4812|       |
 4813|  6.92k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 4814|       |
 4815|       |          /* Skip unit neighbours */
 4816|  6.92k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4816:14): [True: 228, False: 6.69k]
  ------------------
 4817|    228|            continue;
 4818|       |          /* Already marked to be in the same component? */
 4819|  6.69k|          if(neighbour_cell->max_ival == 1)
  ------------------
  |  Branch (4819:14): [True: 3.99k, False: 2.69k]
  ------------------
 4820|  3.99k|            continue;
 4821|       |          /* Is the neighbour at the same component recursion level? */
 4822|  2.69k|          if(p.cr_get_level(neighbour_cell->first) != level)
  ------------------
  |  Branch (4822:14): [True: 0, False: 2.69k]
  ------------------
 4823|      0|            continue;
 4824|       |
 4825|  2.69k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4825:14): [True: 2.32k, False: 375]
  ------------------
 4826|  2.32k|            neighbour_heap.insert(neighbour_cell->first);
 4827|  2.69k|          neighbour_cell->max_ival_count++;
 4828|  2.69k|        }
 4829|  8.18k|      while(!neighbour_heap.is_empty())
  ------------------
  |  Branch (4829:13): [True: 2.32k, False: 5.86k]
  ------------------
 4830|  2.32k|        {
 4831|  2.32k|          const unsigned int start = neighbour_heap.remove();
 4832|  2.32k|          Partition::Cell* const neighbour_cell =
 4833|  2.32k|            p.get_cell(p.elements[start]);
 4834|       |
 4835|       |          /* Skip saturated neighbour cells */
 4836|  2.32k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (4836:14): [True: 166, False: 2.15k]
  ------------------
 4837|    166|            {
 4838|    166|              neighbour_cell->max_ival_count = 0;
 4839|    166|              continue;
 4840|    166|            }
 4841|  2.15k|          neighbour_cell->max_ival_count = 0;
 4842|  2.15k|          neighbour_cell->max_ival = 1;
 4843|  2.15k|          component.push_back(neighbour_cell);
 4844|  2.15k|        }
 4845|  5.86k|    }
 4846|       |
 4847|  9.57k|  for(unsigned int i = 0; i < component.size(); i++)
  ------------------
  |  Branch (4847:27): [True: 5.86k, False: 3.70k]
  ------------------
 4848|  5.86k|    {
 4849|  5.86k|      Partition::Cell* const cell = component[i];
 4850|  5.86k|      cell->max_ival = 0;
 4851|  5.86k|      cr_component.push_back(cell->first);
 4852|  5.86k|      cr_component_elements += cell->length;
 4853|  5.86k|    }
 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.70k|  return true;
 4864|  3.70k|}
_ZN5bliss5Graph25nucr_find_first_componentEjRNSt3__16vectorIjNS1_9allocatorIjEEEERjRPNS_9Partition4CellE:
 4874|  2.14M|{
 4875|       |
 4876|  2.14M|  component.clear();
 4877|  2.14M|  component_elements = 0;
 4878|  2.14M|  sh_return = 0;
 4879|  2.14M|  unsigned int sh_first  = 0;
 4880|  2.14M|  unsigned int sh_size   = 0;
 4881|  2.14M|  unsigned int sh_nuconn = 0;
 4882|       |
 4883|       |  /* Find first non-discrete cell in the component level */
 4884|  2.14M|  Partition::Cell* first_cell = p.first_nonsingleton_cell;
 4885|  2.14M|  while(first_cell)
  ------------------
  |  Branch (4885:9): [True: 2.14M, False: 0]
  ------------------
 4886|  2.14M|    {
 4887|  2.14M|      if(p.cr_get_level(first_cell->first) == level)
  ------------------
  |  Branch (4887:10): [True: 2.14M, False: 487]
  ------------------
 4888|  2.14M|        break;
 4889|    487|      first_cell = first_cell->next_nonsingleton;
 4890|    487|    }
 4891|       |
 4892|  2.14M|  if(!first_cell)
  ------------------
  |  Branch (4892:6): [True: 0, False: 2.14M]
  ------------------
 4893|      0|    {
 4894|       |      /* The component is discrete, return false */
 4895|      0|      return false;
 4896|      0|    }
 4897|       |
 4898|  2.14M|  std::vector<Partition::Cell*> comp;
 4899|  2.14M|  KStack<Partition::Cell*> neighbours;
 4900|  2.14M|  neighbours.init(get_nof_vertices());
 4901|       |
 4902|  2.14M|  first_cell->max_ival = 1;
 4903|  2.14M|  comp.push_back(first_cell);
 4904|       |
 4905|  4.38M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (4905:27): [True: 2.24M, False: 2.14M]
  ------------------
 4906|  2.24M|    {
 4907|  2.24M|      Partition::Cell* const cell = comp[i];
 4908|       |
 4909|  2.24M|      const Vertex& v = vertices[p.elements[cell->first]];
 4910|  2.24M|      std::vector<unsigned int>::const_iterator ei = v.edges.begin();
 4911|  2.90M|      for(unsigned int j = v.nof_edges(); j > 0; j--)
  ------------------
  |  Branch (4911:43): [True: 661k, False: 2.24M]
  ------------------
 4912|   661k|        {
 4913|   661k|          const unsigned int neighbour = *ei++;
 4914|       |
 4915|   661k|          Partition::Cell* const neighbour_cell = p.get_cell(neighbour);
 4916|       |
 4917|       |          /* Skip unit neighbours */
 4918|   661k|          if(neighbour_cell->is_unit())
  ------------------
  |  Branch (4918:14): [True: 195k, False: 466k]
  ------------------
 4919|   195k|            continue;
 4920|       |          /* Is the neighbour at the same component recursion level? */
 4921|       |          //if(p.cr_get_level(neighbour_cell->first) != level)
 4922|       |          //  continue;
 4923|   466k|          if(neighbour_cell->max_ival_count == 0)
  ------------------
  |  Branch (4923:14): [True: 381k, False: 84.9k]
  ------------------
 4924|   381k|            neighbours.push(neighbour_cell);
 4925|   466k|          neighbour_cell->max_ival_count++;
 4926|   466k|        }
 4927|  2.24M|      unsigned int nuconn = 1;
 4928|  2.62M|      while(!neighbours.is_empty())
  ------------------
  |  Branch (4928:13): [True: 381k, False: 2.24M]
  ------------------
 4929|   381k|        {
 4930|   381k|          Partition::Cell* const neighbour_cell = neighbours.pop();
 4931|       |          //neighbours.pop_back();
 4932|       |
 4933|       |          /* Skip saturated neighbour cells */
 4934|   381k|          if(neighbour_cell->max_ival_count == neighbour_cell->length)
  ------------------
  |  Branch (4934:14): [True: 1.18k, False: 379k]
  ------------------
 4935|  1.18k|            {
 4936|  1.18k|              neighbour_cell->max_ival_count = 0;
 4937|  1.18k|              continue;
 4938|  1.18k|            }
 4939|   379k|          nuconn++;
 4940|   379k|          neighbour_cell->max_ival_count = 0;
 4941|   379k|          if(neighbour_cell->max_ival == 0) {
  ------------------
  |  Branch (4941:14): [True: 104k, False: 275k]
  ------------------
 4942|   104k|            comp.push_back(neighbour_cell);
 4943|   104k|            neighbour_cell->max_ival = 1;
 4944|   104k|          }
 4945|   379k|        }
 4946|       |
 4947|  2.24M|      switch(sh) {
 4948|   285k|      case shs_f:
  ------------------
  |  Branch (4948:7): [True: 285k, False: 1.96M]
  ------------------
 4949|   285k|        if(sh_return == 0 or
  ------------------
  |  Branch (4949:12): [True: 273k, False: 11.9k]
  ------------------
 4950|   273k|           cell->first <= sh_first) {
  ------------------
  |  Branch (4950:12): [True: 0, False: 11.9k]
  ------------------
 4951|   273k|          sh_return = cell;
 4952|   273k|          sh_first = cell->first;
 4953|   273k|        }
 4954|   285k|        break;
 4955|   357k|      case shs_fs:
  ------------------
  |  Branch (4955:7): [True: 357k, False: 1.88M]
  ------------------
 4956|   357k|        if(sh_return == 0 or
  ------------------
  |  Branch (4956:12): [True: 351k, False: 6.04k]
  ------------------
 4957|  6.04k|           cell->length < sh_size or
  ------------------
  |  Branch (4957:12): [True: 1.81k, False: 4.22k]
  ------------------
 4958|   353k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (4958:13): [True: 4.06k, False: 168]
  |  Branch (4958:41): [True: 139, False: 3.92k]
  ------------------
 4959|   353k|          sh_return = cell;
 4960|   353k|          sh_first = cell->first;
 4961|   353k|          sh_size = cell->length;
 4962|   353k|        }
 4963|   357k|        break;
 4964|   422k|      case shs_fl:
  ------------------
  |  Branch (4964:7): [True: 422k, False: 1.82M]
  ------------------
 4965|   422k|        if(sh_return == 0 or
  ------------------
  |  Branch (4965:12): [True: 399k, False: 22.8k]
  ------------------
 4966|  22.8k|           cell->length > sh_size or
  ------------------
  |  Branch (4966:12): [True: 253, False: 22.6k]
  ------------------
 4967|   399k|           (cell->length == sh_size and cell->first <= sh_first)) {
  ------------------
  |  Branch (4967:13): [True: 21.4k, False: 1.18k]
  |  Branch (4967:41): [True: 81, False: 21.3k]
  ------------------
 4968|   399k|          sh_return = cell;
 4969|   399k|          sh_first = cell->first;
 4970|   399k|          sh_size = cell->length;
 4971|   399k|        }
 4972|   422k|        break;
 4973|   439k|      case shs_fm:
  ------------------
  |  Branch (4973:7): [True: 439k, False: 1.80M]
  ------------------
 4974|   439k|        if(sh_return == 0 or
  ------------------
  |  Branch (4974:12): [True: 393k, False: 45.8k]
  ------------------
 4975|  45.8k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4975:12): [True: 7.70k, False: 38.1k]
  ------------------
 4976|   401k|           (nuconn == sh_nuconn and cell->first <= sh_first)) {
  ------------------
  |  Branch (4976:13): [True: 16.3k, False: 21.7k]
  |  Branch (4976:37): [True: 116, False: 16.2k]
  ------------------
 4977|   401k|          sh_return = cell;
 4978|   401k|          sh_first = cell->first;
 4979|   401k|          sh_nuconn = nuconn;
 4980|   401k|        }
 4981|   439k|        break;
 4982|   410k|      case shs_fsm:
  ------------------
  |  Branch (4982:7): [True: 410k, False: 1.83M]
  ------------------
 4983|   410k|        if(sh_return == 0 or
  ------------------
  |  Branch (4983:12): [True: 404k, False: 6.20k]
  ------------------
 4984|  6.20k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4984:12): [True: 974, False: 5.22k]
  ------------------
 4985|  5.22k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (4985:13): [True: 3.37k, False: 1.85k]
  ------------------
 4986|  3.37k|            (cell->length < sh_size or
  ------------------
  |  Branch (4986:14): [True: 1.62k, False: 1.74k]
  ------------------
 4987|   406k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (4987:15): [True: 1.63k, False: 113]
  |  Branch (4987:43): [True: 131, False: 1.50k]
  ------------------
 4988|   406k|          sh_return = cell;
 4989|   406k|          sh_first = cell->first;
 4990|   406k|          sh_size = cell->length;
 4991|   406k|          sh_nuconn = nuconn;
 4992|   406k|        }
 4993|   410k|        break;
 4994|   332k|      case shs_flm:
  ------------------
  |  Branch (4994:7): [True: 332k, False: 1.91M]
  ------------------
 4995|   332k|        if(sh_return == 0 or
  ------------------
  |  Branch (4995:12): [True: 321k, False: 11.3k]
  ------------------
 4996|  11.3k|           nuconn > sh_nuconn or
  ------------------
  |  Branch (4996:12): [True: 1.69k, False: 9.67k]
  ------------------
 4997|  9.67k|           (nuconn == sh_nuconn and
  ------------------
  |  Branch (4997:13): [True: 5.26k, False: 4.41k]
  ------------------
 4998|  5.26k|            (cell->length > sh_size or
  ------------------
  |  Branch (4998:14): [True: 71, False: 5.19k]
  ------------------
 4999|   322k|             (cell->length == sh_size and cell->first <= sh_first)))) {
  ------------------
  |  Branch (4999:15): [True: 4.35k, False: 843]
  |  Branch (4999:43): [True: 136, False: 4.21k]
  ------------------
 5000|   322k|          sh_return = cell;
 5001|   322k|          sh_first = cell->first;
 5002|   322k|          sh_size = cell->length;
 5003|   322k|          sh_nuconn = nuconn;
 5004|   322k|        }
 5005|   332k|        break;
 5006|      0|      default:
  ------------------
  |  Branch (5006:7): [True: 0, False: 2.24M]
  ------------------
 5007|      0|        fatal_error("Internal error - unknown splitting heuristics");
 5008|      0|        return 0;
 5009|  2.24M|      }
 5010|  2.24M|    }
 5011|  2.14M|  assert(sh_return);
  ------------------
  |  Branch (5011:3): [True: 2.14M, False: 0]
  ------------------
 5012|       |
 5013|  4.38M|  for(unsigned int i = 0; i < comp.size(); i++)
  ------------------
  |  Branch (5013:27): [True: 2.24M, False: 2.14M]
  ------------------
 5014|  2.24M|    {
 5015|  2.24M|      Partition::Cell* const cell = comp[i];
 5016|  2.24M|      cell->max_ival = 0;
 5017|  2.24M|      component.push_back(cell->first);
 5018|  2.24M|      component_elements += cell->length;
 5019|  2.24M|    }
 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.14M|  return true;
 5030|  2.14M|}

_ZN5bliss7Digraph23set_splitting_heuristicENS0_18SplittingHeuristicE:
  862|  4.55k|  void set_splitting_heuristic(SplittingHeuristic shs) {sh = shs; }
_ZN5bliss5Graph23set_splitting_heuristicENS0_18SplittingHeuristicE:
  659|  3.76k|  void set_splitting_heuristic(const SplittingHeuristic shs) {sh = shs; }
_ZNK5bliss5Graph6Vertex9nof_edgesEv:
  517|  5.87M|    unsigned int nof_edges() const {
  518|  5.87M|      return static_cast<unsigned int>(edges.size());
  519|  5.87M|    }
_ZNK5bliss5Graph16get_nof_verticesEv:
  615|  2.68M|  unsigned int get_nof_vertices() const {
  616|  2.68M|    return static_cast<unsigned int>(vertices.size());
  617|  2.68M|  }
_ZNK5bliss7Digraph6Vertex12nof_edges_inEv:
  719|  5.96M|    unsigned int nof_edges_in() const { return static_cast<unsigned int>(edges_in.size()); }
_ZNK5bliss7Digraph6Vertex13nof_edges_outEv:
  720|  5.98M|    unsigned int nof_edges_out() const { return static_cast<unsigned int>(edges_out.size()); }
_ZNK5bliss7Digraph16get_nof_verticesEv:
  826|  3.10M|  unsigned int get_nof_vertices() const { return static_cast<unsigned int>(vertices.size()); }

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

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

_ZNK5bliss6KQueueIPNS_9Partition4CellEE8is_emptyEv:
  115|  17.5M|{
  116|  17.5M|  return head == tail;
  117|  17.5M|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE9pop_frontEv:
  136|  6.29M|{
  137|  6.29M|  assert(head != tail);
  ------------------
  |  Branch (137:3): [True: 6.29M, False: 0]
  ------------------
  138|  6.29M|  Type *old_head = head;
  139|  6.29M|  head++;
  140|  6.29M|  if(head == end)
  ------------------
  |  Branch (140:6): [True: 42.5k, False: 6.25M]
  ------------------
  141|  42.5k|    head = entries;
  142|  6.29M|  return *old_head;
  143|  6.29M|}
_ZNK5bliss6KQueueIPNS_9Partition4CellEE4sizeEv:
  121|  6.79k|{
  122|  6.79k|  if(tail >= head)
  ------------------
  |  Branch (122:6): [True: 6.49k, False: 291]
  ------------------
  123|  6.49k|    return(tail - head);
  124|    291|  return (end - head) + (tail - entries);
  125|  6.79k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE9push_backES3_:
  158|   315k|{
  159|   315k|  *tail = e;
  160|   315k|  tail++;
  161|   315k|  if(tail == end)
  ------------------
  |  Branch (161:6): [True: 4.00k, False: 311k]
  ------------------
  162|  4.00k|    tail = entries;
  163|       |  assert(head != tail);
  ------------------
  |  Branch (163:3): [True: 315k, False: 0]
  ------------------
  164|   315k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEEC2Ev:
   78|  8.31k|{
   79|  8.31k|  entries = nullptr;
   80|  8.31k|  end = nullptr;
   81|  8.31k|  head = nullptr;
   82|  8.31k|  tail = nullptr;
   83|  8.31k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEED2Ev:
   87|  8.31k|{
   88|  8.31k|  delete[] entries;
   89|  8.31k|  entries = nullptr;
   90|  8.31k|  end = nullptr;
   91|  8.31k|  head = nullptr;
   92|  8.31k|  tail = nullptr;
   93|  8.31k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE4initEj:
   97|  8.28k|{
   98|  8.28k|  assert(k > 0);
  ------------------
  |  Branch (98:3): [True: 8.28k, False: 0]
  ------------------
   99|  8.28k|  delete[] entries;
  100|  8.28k|  entries = new Type[k+1];
  101|  8.28k|  end = entries + k + 1;
  102|  8.28k|  head = entries;
  103|  8.28k|  tail = head;
  104|  8.28k|}
_ZN5bliss6KQueueIPNS_9Partition4CellEE10push_frontES3_:
  147|  5.97M|{
  148|  5.97M|  if(head == entries)
  ------------------
  |  Branch (148:6): [True: 38.5k, False: 5.94M]
  ------------------
  149|  38.5k|    head = end - 1;
  150|  5.94M|  else
  151|  5.94M|    head--;
  152|  5.97M|  assert(head != tail);
  ------------------
  |  Branch (152:3): [True: 5.97M, False: 0]
  ------------------
  153|  5.97M|  *head = e;
  154|  5.97M|}

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

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

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

_ZN5bliss9PartitionC2Ev:
   36|  8.31k|{
   37|  8.31k|  N = 0;
   38|  8.31k|  elements = 0;
   39|  8.31k|  in_pos = 0;
   40|  8.31k|  invariant_values = 0;
   41|  8.31k|  cells = 0;
   42|  8.31k|  free_cells = 0;
   43|  8.31k|  element_to_cell_map = 0;
   44|  8.31k|  graph = 0;
   45|  8.31k|  discrete_cell_count = 0;
   46|       |  /* Initialize a distribution count sorting array. */
   47|  2.13M|  for(unsigned int i = 0; i < 256; i++)
  ------------------
  |  Branch (47:27): [True: 2.12M, False: 8.31k]
  ------------------
   48|  2.12M|    dcs_count[i] = 0;
   49|       |
   50|  8.31k|  cr_enabled = false;
   51|  8.31k|  cr_cells = 0;
   52|  8.31k|  cr_levels = 0;
   53|  8.31k|}
_ZN5bliss9PartitionD2Ev:
   58|  8.31k|{
   59|  8.31k|  delete[] elements; elements = nullptr;
   60|  8.31k|  delete[] cells; cells = nullptr;
   61|  8.31k|  delete[] element_to_cell_map; element_to_cell_map = nullptr;
   62|  8.31k|  delete[] in_pos; in_pos = nullptr;
   63|  8.31k|  delete[] invariant_values; invariant_values = nullptr;
   64|  8.31k|  N = 0;
   65|  8.31k|}
_ZN5bliss9Partition4initEj:
   70|  8.28k|{
   71|  8.28k|  assert(M > 0);
  ------------------
  |  Branch (71:3): [True: 8.28k, False: 0]
  ------------------
   72|  8.28k|  N = M;
   73|       |
   74|  8.28k|  delete[] elements;
   75|  8.28k|  elements = new unsigned int[N];
   76|   343k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (76:27): [True: 335k, False: 8.28k]
  ------------------
   77|   335k|    elements[i] = i;
   78|       |
   79|  8.28k|  delete[] in_pos;
   80|  8.28k|  in_pos = new unsigned int*[N];
   81|   343k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (81:27): [True: 335k, False: 8.28k]
  ------------------
   82|   335k|    in_pos[i] = elements + i;
   83|       |
   84|  8.28k|  delete[] invariant_values;
   85|  8.28k|  invariant_values = new unsigned int[N];
   86|   343k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (86:27): [True: 335k, False: 8.28k]
  ------------------
   87|   335k|    invariant_values[i] = 0;
   88|       |
   89|  8.28k|  delete[] cells;
   90|  8.28k|  cells = new Cell[N];
   91|       |
   92|  8.28k|  cells[0].first = 0;
   93|  8.28k|  cells[0].length = N;
   94|  8.28k|  cells[0].max_ival = 0;
   95|  8.28k|  cells[0].max_ival_count = 0;
   96|  8.28k|  cells[0].in_splitting_queue = false;
   97|  8.28k|  cells[0].in_neighbour_heap = false;
   98|  8.28k|  cells[0].prev = 0;
   99|  8.28k|  cells[0].next = 0;
  100|  8.28k|  cells[0].next_nonsingleton = 0;
  101|  8.28k|  cells[0].prev_nonsingleton = 0;
  102|  8.28k|  cells[0].split_level = 0;
  103|  8.28k|  first_cell = &cells[0];
  104|  8.28k|  if(N == 1)
  ------------------
  |  Branch (104:6): [True: 6, False: 8.27k]
  ------------------
  105|      6|    {
  106|      6|      first_nonsingleton_cell = 0;
  107|      6|      discrete_cell_count = 1;
  108|      6|    }
  109|  8.27k|  else
  110|  8.27k|    {
  111|  8.27k|      first_nonsingleton_cell = &cells[0];
  112|  8.27k|      discrete_cell_count = 0;
  113|  8.27k|    }
  114|       |
  115|   335k|  for(unsigned int i = 1; i < N; i++)
  ------------------
  |  Branch (115:27): [True: 327k, False: 8.28k]
  ------------------
  116|   327k|    {
  117|   327k|      cells[i].first = 0;
  118|   327k|      cells[i].length = 0;
  119|   327k|      cells[i].max_ival = 0;
  120|   327k|      cells[i].max_ival_count = 0;
  121|   327k|      cells[i].in_splitting_queue = false;
  122|   327k|      cells[i].in_neighbour_heap = false;
  123|   327k|      cells[i].prev = 0;
  124|   327k|      cells[i].next = (i < N-1)?&cells[i+1]:0;
  ------------------
  |  Branch (124:23): [True: 318k, False: 8.27k]
  ------------------
  125|   327k|      cells[i].next_nonsingleton = 0;
  126|   327k|      cells[i].prev_nonsingleton = 0;
  127|   327k|    }
  128|  8.28k|  if(N > 1)
  ------------------
  |  Branch (128:6): [True: 8.27k, False: 6]
  ------------------
  129|  8.27k|    free_cells = &cells[1];
  130|      6|  else
  131|      6|    free_cells = 0;
  132|       |
  133|  8.28k|  delete[] element_to_cell_map;
  134|  8.28k|  element_to_cell_map = new Cell*[N];
  135|   343k|  for(unsigned int i = 0; i < N; i++)
  ------------------
  |  Branch (135:27): [True: 335k, False: 8.28k]
  ------------------
  136|   335k|    element_to_cell_map[i] = first_cell;
  137|       |
  138|  8.28k|  splitting_queue.init(N);
  139|  8.28k|  refinement_stack.init(N);
  140|       |
  141|       |  /* Reset the main backtracking stack */
  142|  8.28k|  bt_stack.clear();
  143|  8.28k|}
_ZN5bliss9Partition19set_backtrack_pointEv:
  152|  10.0M|{
  153|  10.0M|  BacktrackInfo info;
  154|  10.0M|  info.refinement_stack_size = refinement_stack.size();
  155|  10.0M|  if(cr_enabled)
  ------------------
  |  Branch (155:6): [True: 10.0M, False: 0]
  ------------------
  156|  10.0M|    info.cr_backtrack_point = cr_get_backtrack_point();
  157|  10.0M|  BacktrackPoint p = bt_stack.size();
  158|  10.0M|  bt_stack.push_back(info);
  159|  10.0M|  return p;
  160|  10.0M|}
_ZN5bliss9Partition20goto_backtrack_pointEj:
  166|  5.40M|{
  167|  5.40M|  assert(p < bt_stack.size());
  ------------------
  |  Branch (167:3): [True: 5.40M, False: 0]
  ------------------
  168|  5.40M|  BacktrackInfo info = bt_stack[p];
  169|  5.40M|  bt_stack.resize(p);
  170|       |
  171|  5.40M|  if(cr_enabled)
  ------------------
  |  Branch (171:6): [True: 5.40M, False: 0]
  ------------------
  172|  5.40M|    cr_goto_backtrack_point(info.cr_backtrack_point);
  173|       |
  174|  5.40M|  const unsigned int dest_refinement_stack_size = info.refinement_stack_size;
  175|       |
  176|  5.40M|  assert(refinement_stack.size() >= dest_refinement_stack_size);
  ------------------
  |  Branch (176:3): [True: 5.40M, False: 0]
  ------------------
  177|  11.0M|  while(refinement_stack.size() > dest_refinement_stack_size)
  ------------------
  |  Branch (177:9): [True: 5.68M, False: 5.40M]
  ------------------
  178|  5.68M|    {
  179|  5.68M|      RefInfo i = refinement_stack.pop();
  180|  5.68M|      const unsigned int first = i.split_cell_first;
  181|  5.68M|      Cell* cell = get_cell(elements[first]);
  182|       |
  183|  5.68M|      if(cell->first != first)
  ------------------
  |  Branch (183:10): [True: 4.80M, False: 887k]
  ------------------
  184|  4.80M|        {
  185|  4.80M|          assert(cell->first < first);
  ------------------
  |  Branch (185:11): [True: 4.80M, False: 0]
  ------------------
  186|  4.80M|          assert(cell->split_level <= dest_refinement_stack_size);
  ------------------
  |  Branch (186:11): [True: 4.80M, False: 0]
  ------------------
  187|  4.80M|          goto done;
  188|  4.80M|        }
  189|  5.68M|      assert(cell->split_level > dest_refinement_stack_size);
  ------------------
  |  Branch (189:7): [True: 887k, False: 0]
  ------------------
  190|       |
  191|  1.84M|      while(cell->split_level > dest_refinement_stack_size)
  ------------------
  |  Branch (191:13): [True: 960k, False: 887k]
  ------------------
  192|   960k|        {
  193|   960k|          assert(cell->prev);
  ------------------
  |  Branch (193:11): [True: 960k, False: 0]
  ------------------
  194|   960k|          cell = cell->prev;
  195|   960k|        }
  196|  6.57M|      while(cell->next and
  ------------------
  |  Branch (196:13): [True: 6.55M, False: 20.5k]
  ------------------
  197|  6.55M|            cell->next->split_level > dest_refinement_stack_size)
  ------------------
  |  Branch (197:13): [True: 5.68M, False: 867k]
  ------------------
  198|  5.68M|        {
  199|       |          /* Merge next cell */
  200|  5.68M|          Cell* const next_cell = cell->next;
  201|  5.68M|          if(cell->length == 1)
  ------------------
  |  Branch (201:14): [True: 508k, False: 5.18M]
  ------------------
  202|   508k|            discrete_cell_count--;
  203|  5.68M|          if(next_cell->length == 1)
  ------------------
  |  Branch (203:14): [True: 5.44M, False: 240k]
  ------------------
  204|  5.44M|            discrete_cell_count--;
  205|       |          /* Update element_to_cell_map values of elements added in cell */
  206|  5.68M|          unsigned int* ep = elements + next_cell->first;
  207|  5.68M|          unsigned int* const lp = ep + next_cell->length;
  208|  11.6M|          for( ; ep < lp; ep++)
  ------------------
  |  Branch (208:18): [True: 5.97M, False: 5.68M]
  ------------------
  209|  5.97M|            element_to_cell_map[*ep] = cell;
  210|       |          /* Update cell parameters */
  211|  5.68M|          cell->length += next_cell->length;
  212|  5.68M|          if(next_cell->next)
  ------------------
  |  Branch (212:14): [True: 5.66M, False: 20.5k]
  ------------------
  213|  5.66M|            next_cell->next->prev = cell;
  214|  5.68M|          cell->next = next_cell->next;
  215|       |          /* (Pseudo)free next_cell */
  216|  5.68M|          next_cell->first = 0;
  217|  5.68M|          next_cell->length = 0;
  218|  5.68M|          next_cell->prev = 0;
  219|  5.68M|          next_cell->next = free_cells;
  220|  5.68M|          free_cells = next_cell;
  221|  5.68M|        }
  222|       |
  223|  5.68M|    done:
  224|  5.68M|      if(i.prev_nonsingleton_first >= 0)
  ------------------
  |  Branch (224:10): [True: 107k, False: 5.58M]
  ------------------
  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.58M|      else
  232|  5.58M|        {
  233|       |          //assert(cell->prev_nonsingleton == 0);
  234|  5.58M|          cell->prev_nonsingleton = 0;
  235|  5.58M|          first_nonsingleton_cell = cell;
  236|  5.58M|        }
  237|       |
  238|  5.68M|      if(i.next_nonsingleton_first >= 0)
  ------------------
  |  Branch (238:10): [True: 4.69M, False: 989k]
  ------------------
  239|  4.69M|        {
  240|  4.69M|          Cell* const next_cell = get_cell(elements[i.next_nonsingleton_first]);
  241|  4.69M|          assert(next_cell->length > 1);
  ------------------
  |  Branch (241:11): [True: 4.69M, False: 0]
  ------------------
  242|  4.69M|          cell->next_nonsingleton = next_cell;
  243|  4.69M|          next_cell->prev_nonsingleton = cell;
  244|  4.69M|        }
  245|   989k|      else
  246|   989k|        {
  247|       |          //assert(cell->next_nonsingleton == 0);
  248|   989k|          cell->next_nonsingleton = 0;
  249|   989k|        }
  250|  5.68M|    }
  251|       |
  252|  5.40M|}
_ZN5bliss9Partition13individualizeEPNS0_4CellEj:
  259|  4.96M|{
  260|  4.96M|  assert(!cell->is_unit());
  ------------------
  |  Branch (260:3): [True: 4.96M, False: 0]
  ------------------
  261|       |
  262|  4.96M|  unsigned int * const pos = in_pos[element];
  263|  4.96M|  assert((unsigned int)(pos - elements) >= cell->first);
  ------------------
  |  Branch (263:3): [True: 4.96M, False: 0]
  ------------------
  264|  4.96M|  assert((unsigned int)(pos - elements) < cell->first + cell->length);
  ------------------
  |  Branch (264:3): [True: 4.96M, False: 0]
  ------------------
  265|  4.96M|  assert(*pos == element);
  ------------------
  |  Branch (265:3): [True: 4.96M, False: 0]
  ------------------
  266|       |
  267|  4.96M|  const unsigned int last = cell->first + cell->length - 1;
  268|  4.96M|  *pos = elements[last];
  269|  4.96M|  in_pos[*pos] = pos;
  270|  4.96M|  elements[last] = element;
  271|  4.96M|  in_pos[element] = elements + last;
  272|       |
  273|  4.96M|  Partition::Cell * const new_cell = aux_split_in_two(cell, cell->length-1);
  274|  4.96M|  assert(elements[new_cell->first] == element);
  ------------------
  |  Branch (274:3): [True: 4.96M, False: 0]
  ------------------
  275|  4.96M|  element_to_cell_map[element] = new_cell;
  276|       |
  277|  4.96M|  return new_cell;
  278|  4.96M|}
_ZN5bliss9Partition16aux_split_in_twoEPNS0_4CellEj:
  285|  5.59M|{
  286|  5.59M|  RefInfo i;
  287|       |
  288|  5.59M|  assert(0 < first_half_size && first_half_size < cell->length);
  ------------------
  |  Branch (288:3): [True: 5.59M, False: 0]
  |  Branch (288:3): [True: 5.59M, False: 0]
  |  Branch (288:3): [True: 5.59M, False: 0]
  ------------------
  289|       |
  290|       |  /* (Pseudo)allocate new cell */
  291|  5.59M|  Cell * const new_cell = free_cells;
  292|  5.59M|  assert(new_cell != 0);
  ------------------
  |  Branch (292:3): [True: 5.59M, False: 0]
  ------------------
  293|  5.59M|  free_cells = new_cell->next;
  294|       |  /* Update new cell parameters */
  295|  5.59M|  new_cell->first = cell->first + first_half_size;
  296|  5.59M|  new_cell->length = cell->length - first_half_size;
  297|  5.59M|  new_cell->next = cell->next;
  298|  5.59M|  if(new_cell->next)
  ------------------
  |  Branch (298:6): [True: 5.56M, False: 32.1k]
  ------------------
  299|  5.56M|    new_cell->next->prev = new_cell;
  300|  5.59M|  new_cell->prev = cell;
  301|  5.59M|  new_cell->split_level = refinement_stack.size()+1;
  302|       |  /* Update old, splitted cell parameters */
  303|  5.59M|  cell->length = first_half_size;
  304|  5.59M|  cell->next = new_cell;
  305|       |  /* CR */
  306|  5.59M|  if(cr_enabled)
  ------------------
  |  Branch (306:6): [True: 5.59M, False: 0]
  ------------------
  307|  5.59M|    cr_create_at_level_trailed(new_cell->first, cr_get_level(cell->first));
  308|       |
  309|       |  /* Add cell in refinement_stack for backtracking */
  310|  5.59M|  i.split_cell_first = new_cell->first;
  311|  5.59M|  if(cell->prev_nonsingleton)
  ------------------
  |  Branch (311:6): [True: 122k, False: 5.47M]
  ------------------
  312|   122k|    i.prev_nonsingleton_first = cell->prev_nonsingleton->first;
  313|  5.47M|  else
  314|  5.47M|    i.prev_nonsingleton_first = -1;
  315|  5.59M|  if(cell->next_nonsingleton)
  ------------------
  |  Branch (315:6): [True: 4.59M, False: 1.00M]
  ------------------
  316|  4.59M|    i.next_nonsingleton_first = cell->next_nonsingleton->first;
  317|  1.00M|  else
  318|  1.00M|    i.next_nonsingleton_first = -1;
  319|  5.59M|  refinement_stack.push(i);
  320|       |
  321|       |  /* Modify nonsingleton cell list */
  322|  5.59M|  if(new_cell->length > 1)
  ------------------
  |  Branch (322:6): [True: 177k, False: 5.42M]
  ------------------
  323|   177k|    {
  324|   177k|      new_cell->prev_nonsingleton = cell;
  325|   177k|      new_cell->next_nonsingleton = cell->next_nonsingleton;
  326|   177k|      if(new_cell->next_nonsingleton)
  ------------------
  |  Branch (326:10): [True: 152k, False: 24.5k]
  ------------------
  327|   152k|        new_cell->next_nonsingleton->prev_nonsingleton = new_cell;
  328|   177k|      cell->next_nonsingleton = new_cell;
  329|   177k|    }
  330|  5.42M|  else
  331|  5.42M|    {
  332|  5.42M|      new_cell->next_nonsingleton = 0;
  333|  5.42M|      new_cell->prev_nonsingleton = 0;
  334|  5.42M|      discrete_cell_count++;
  335|  5.42M|    }
  336|       |
  337|  5.59M|  if(cell->is_unit())
  ------------------
  |  Branch (337:6): [True: 536k, False: 5.06M]
  ------------------
  338|   536k|    {
  339|   536k|      if(cell->prev_nonsingleton)
  ------------------
  |  Branch (339:10): [True: 44.1k, False: 492k]
  ------------------
  340|  44.1k|        cell->prev_nonsingleton->next_nonsingleton = cell->next_nonsingleton;
  341|   492k|      else
  342|   492k|        first_nonsingleton_cell = cell->next_nonsingleton;
  343|   536k|      if(cell->next_nonsingleton)
  ------------------
  |  Branch (343:10): [True: 447k, False: 88.7k]
  ------------------
  344|   447k|        cell->next_nonsingleton->prev_nonsingleton = cell->prev_nonsingleton;
  345|   536k|      cell->next_nonsingleton = 0;
  346|   536k|      cell->prev_nonsingleton = 0;
  347|   536k|      discrete_cell_count++;
  348|   536k|    }
  349|       |
  350|  5.59M|  return new_cell;
  351|  5.59M|}
_ZN5bliss9Partition19splitting_queue_addEPNS0_4CellE:
  357|  6.28M|{
  358|  6.28M|  static const unsigned int smallish_cell_threshold = 1;
  359|  6.28M|  assert(!cell->in_splitting_queue);
  ------------------
  |  Branch (359:3): [True: 6.28M, False: 0]
  ------------------
  360|  6.28M|  cell->in_splitting_queue = true;
  361|  6.28M|  if(cell->length <= smallish_cell_threshold)
  ------------------
  |  Branch (361:6): [True: 5.97M, False: 301k]
  ------------------
  362|  5.97M|    splitting_queue.push_front(cell);
  363|   301k|  else
  364|   301k|    splitting_queue.push_back(cell);
  365|  6.28M|}
_ZN5bliss9Partition21splitting_queue_clearEv:
  371|  69.9k|{
  372|   159k|  while(!splitting_queue_is_empty())
  ------------------
  |  Branch (372:9): [True: 89.0k, False: 69.9k]
  ------------------
  373|  89.0k|    splitting_queue_pop();
  374|  69.9k|}
_ZN5bliss9Partition20sort_and_split_cell1EPNS0_4CellE:
  386|   132k|{
  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|   132k|  Cell* const new_cell = free_cells;
  409|   132k|  assert(new_cell != 0);
  ------------------
  |  Branch (409:3): [True: 132k, False: 0]
  ------------------
  410|   132k|  free_cells = new_cell->next;
  411|       |
  412|   132k|#define NEW_SORT1
  413|   132k|#ifdef NEW_SORT1
  414|   132k|      unsigned int *ep0 = elements + cell->first;
  415|   132k|      unsigned int *ep1 = ep0 + cell->length - cell->max_ival_count;
  416|   132k|      if(cell->max_ival_count > cell->length / 2)
  ------------------
  |  Branch (416:10): [True: 17.6k, False: 114k]
  ------------------
  417|  17.6k|        {
  418|       |          /* There are more ones than zeros, only move zeros */
  419|  17.6k|          unsigned int * const end = ep0 + cell->length;
  420|  77.5k|          while(ep1 < end)
  ------------------
  |  Branch (420:17): [True: 59.8k, False: 17.6k]
  ------------------
  421|  59.8k|            {
  422|  74.4k|              while(invariant_values[*ep1] == 0)
  ------------------
  |  Branch (422:21): [True: 14.5k, False: 59.8k]
  ------------------
  423|  14.5k|                {
  424|  14.5k|                  const unsigned int tmp = *ep1;
  425|  14.5k|                  *ep1 = *ep0;
  426|  14.5k|                  *ep0 = tmp;
  427|  14.5k|                  in_pos[tmp] = ep0;
  428|  14.5k|                  in_pos[*ep1] = ep1;
  429|  14.5k|                  ep0++;
  430|  14.5k|                }
  431|  59.8k|              element_to_cell_map[*ep1] = new_cell;
  432|  59.8k|              invariant_values[*ep1] = 0;
  433|  59.8k|              ep1++;
  434|  59.8k|            }
  435|  17.6k|        }
  436|   114k|      else
  437|   114k|        {
  438|       |          /* There are more zeros than ones, only move ones */
  439|   114k|          unsigned int * const end = ep1;
  440|  1.50M|          while(ep0 < end)
  ------------------
  |  Branch (440:17): [True: 1.39M, False: 114k]
  ------------------
  441|  1.39M|            {
  442|  1.62M|              while(invariant_values[*ep0] != 0)
  ------------------
  |  Branch (442:21): [True: 236k, False: 1.39M]
  ------------------
  443|   236k|                {
  444|   236k|                  const unsigned int tmp = *ep0;
  445|   236k|                  *ep0 = *ep1;
  446|   236k|                  *ep1 = tmp;
  447|   236k|                  in_pos[tmp] = ep1;
  448|   236k|                  in_pos[*ep0] = ep0;
  449|   236k|                  ep1++;
  450|   236k|                }
  451|  1.39M|              ep0++;
  452|  1.39M|            }
  453|   114k|          ep1 = end;
  454|   378k|          while(ep1 < elements + cell->first + cell->length)
  ------------------
  |  Branch (454:17): [True: 263k, False: 114k]
  ------------------
  455|   263k|            {
  456|   263k|              element_to_cell_map[*ep1] = new_cell;
  457|   263k|              invariant_values[*ep1] = 0;
  458|   263k|              ep1++;
  459|   263k|            }
  460|   114k|        }
  461|       |  /* Update new cell parameters */
  462|   132k|  new_cell->first = cell->first + cell->length - cell->max_ival_count;
  463|   132k|  new_cell->length = cell->length - (new_cell->first - cell->first);
  464|   132k|  new_cell->next = cell->next;
  465|   132k|  if(new_cell->next)
  ------------------
  |  Branch (465:6): [True: 127k, False: 4.66k]
  ------------------
  466|   127k|    new_cell->next->prev = new_cell;
  467|   132k|  new_cell->prev = cell;
  468|   132k|  new_cell->split_level = refinement_stack.size()+1;
  469|       |  /* Update old, splitted cell parameters */
  470|   132k|  cell->length = new_cell->first - cell->first;
  471|   132k|  cell->next = new_cell;
  472|       |  /* CR */
  473|   132k|  if(cr_enabled)
  ------------------
  |  Branch (473:6): [True: 132k, False: 0]
  ------------------
  474|   132k|    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|   132k|  {
  526|   132k|    RefInfo i;
  527|   132k|    i.split_cell_first = new_cell->first;
  528|   132k|    if(cell->prev_nonsingleton)
  ------------------
  |  Branch (528:8): [True: 11.9k, False: 120k]
  ------------------
  529|  11.9k|      i.prev_nonsingleton_first = cell->prev_nonsingleton->first;
  530|   120k|    else
  531|   120k|      i.prev_nonsingleton_first = -1;
  532|   132k|    if(cell->next_nonsingleton)
  ------------------
  |  Branch (532:8): [True: 125k, False: 6.96k]
  ------------------
  533|   125k|      i.next_nonsingleton_first = cell->next_nonsingleton->first;
  534|  6.96k|    else
  535|  6.96k|      i.next_nonsingleton_first = -1;
  536|       |    /* Modify nonsingleton cell list */
  537|   132k|    if(new_cell->length > 1)
  ------------------
  |  Branch (537:8): [True: 126k, False: 6.21k]
  ------------------
  538|   126k|      {
  539|   126k|        new_cell->prev_nonsingleton = cell;
  540|   126k|        new_cell->next_nonsingleton = cell->next_nonsingleton;
  541|   126k|        if(new_cell->next_nonsingleton)
  ------------------
  |  Branch (541:12): [True: 121k, False: 4.96k]
  ------------------
  542|   121k|          new_cell->next_nonsingleton->prev_nonsingleton = new_cell;
  543|   126k|        cell->next_nonsingleton = new_cell;
  544|   126k|      }
  545|  6.21k|    else
  546|  6.21k|      {
  547|  6.21k|        new_cell->next_nonsingleton = 0;
  548|  6.21k|        new_cell->prev_nonsingleton = 0;
  549|  6.21k|        discrete_cell_count++;
  550|  6.21k|      }
  551|   132k|    if(cell->is_unit())
  ------------------
  |  Branch (551:8): [True: 18.9k, False: 113k]
  ------------------
  552|  18.9k|      {
  553|  18.9k|        if(cell->prev_nonsingleton)
  ------------------
  |  Branch (553:12): [True: 3.84k, False: 15.0k]
  ------------------
  554|  3.84k|          cell->prev_nonsingleton->next_nonsingleton = cell->next_nonsingleton;
  555|  15.0k|        else
  556|  15.0k|          first_nonsingleton_cell = cell->next_nonsingleton;
  557|  18.9k|        if(cell->next_nonsingleton)
  ------------------
  |  Branch (557:12): [True: 17.9k, False: 976]
  ------------------
  558|  17.9k|          cell->next_nonsingleton->prev_nonsingleton = cell->prev_nonsingleton;
  559|  18.9k|        cell->next_nonsingleton = 0;
  560|  18.9k|        cell->prev_nonsingleton = 0;
  561|  18.9k|        discrete_cell_count++;
  562|  18.9k|      }
  563|   132k|    refinement_stack.push(i);
  564|   132k|  }
  565|       |
  566|       |
  567|       |  /* Add cells in splitting queue */
  568|   132k|  assert(!new_cell->in_splitting_queue);
  ------------------
  |  Branch (568:3): [True: 132k, False: 0]
  ------------------
  569|   132k|  if(cell->in_splitting_queue) {
  ------------------
  |  Branch (569:6): [True: 5.18k, False: 127k]
  ------------------
  570|       |    /* Both cells must be included in splitting_queue in order to have
  571|       |       refinement to equitable partition */
  572|  5.18k|    splitting_queue_add(new_cell);
  573|   127k|  } else {
  574|   127k|    Cell *min_cell, *max_cell;
  575|   127k|    if(cell->length <= new_cell->length) {
  ------------------
  |  Branch (575:8): [True: 24.0k, False: 103k]
  ------------------
  576|  24.0k|      min_cell = cell;
  577|  24.0k|      max_cell = new_cell;
  578|   103k|    } else {
  579|   103k|      min_cell = new_cell;
  580|   103k|      max_cell = cell;
  581|   103k|    }
  582|       |    /* Put the smaller cell in splitting_queue */
  583|   127k|    splitting_queue_add(min_cell);
  584|   127k|    if(max_cell->is_unit()) {
  ------------------
  |  Branch (584:8): [True: 1.39k, False: 125k]
  ------------------
  585|       |      /* Put the "larger" cell also in splitting_queue */
  586|  1.39k|      splitting_queue_add(max_cell);
  587|  1.39k|    }
  588|   127k|  }
  589|       |
  590|       |
  591|   132k|  return new_cell;
  592|   132k|}
_ZN5bliss9Partition18dcs_cumulate_countEj:
  605|  54.0k|{
  606|  54.0k|  assert(max <= 255);
  ------------------
  |  Branch (606:3): [True: 54.0k, False: 0]
  ------------------
  607|  54.0k|  unsigned int* count_p = dcs_count;
  608|  54.0k|  unsigned int* start_p = dcs_start;
  609|  54.0k|  unsigned int sum = 0;
  610|   225k|  for(unsigned int i = max+1; i > 0; i--)
  ------------------
  |  Branch (610:31): [True: 171k, False: 54.0k]
  ------------------
  611|   171k|    {
  612|   171k|      *start_p = sum;
  613|   171k|      start_p++;
  614|   171k|      sum += *count_p;
  615|   171k|      count_p++;
  616|   171k|    }
  617|  54.0k|}
_ZN5bliss9Partition22sort_and_split_cell255EPNS0_4CellEj:
  626|  54.0k|{
  627|  54.0k|  assert(max_ival <= 255);
  ------------------
  |  Branch (627:3): [True: 54.0k, False: 0]
  ------------------
  628|       |
  629|  54.0k|  if(cell->is_unit())
  ------------------
  |  Branch (629:6): [True: 0, False: 54.0k]
  ------------------
  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|  54.0k|  {
  645|  54.0k|    const unsigned int *ep = elements + cell->first;
  646|  54.0k|    assert(element_to_cell_map[*ep] == cell);
  ------------------
  |  Branch (646:5): [True: 54.0k, False: 0]
  ------------------
  647|  54.0k|    const unsigned int ival = invariant_values[*ep];
  648|  54.0k|    assert(ival <= 255);
  ------------------
  |  Branch (648:5): [True: 54.0k, False: 0]
  ------------------
  649|  54.0k|    dcs_count[ival]++;
  650|  54.0k|    ep++;
  651|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  652|       |    bool equal_invariant_values = true;
  653|       |#endif
  654|   811k|    for(unsigned int i = cell->length - 1; i != 0; i--)
  ------------------
  |  Branch (654:44): [True: 757k, False: 54.0k]
  ------------------
  655|   757k|      {
  656|   757k|        assert(element_to_cell_map[*ep] == cell);
  ------------------
  |  Branch (656:9): [True: 757k, False: 0]
  ------------------
  657|   757k|        const unsigned int ival2 = invariant_values[*ep];
  658|   757k|        assert(ival2 <= 255);
  ------------------
  |  Branch (658:9): [True: 757k, False: 0]
  ------------------
  659|   757k|        assert(ival2 <= max_ival);
  ------------------
  |  Branch (659:9): [True: 757k, False: 0]
  ------------------
  660|   757k|        dcs_count[ival2]++;
  661|       |#if defined(BLISS_CONSISTENCY_CHECKS)
  662|       |        if(ival2 != ival) {
  663|       |          equal_invariant_values = false;
  664|       |        }
  665|       |#endif
  666|   757k|        ep++;
  667|   757k|      }
  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|  54.0k|  }
  678|       |
  679|       |  /* Build start array */
  680|  54.0k|  dcs_cumulate_count(max_ival);
  681|       |
  682|       |  //assert(dcs_start[255] + dcs_count[255] == cell->length);
  683|  54.0k|  assert(dcs_start[max_ival] + dcs_count[max_ival] == cell->length);
  ------------------
  |  Branch (683:3): [True: 54.0k, False: 0]
  ------------------
  684|       |
  685|       |  /* Do the sorting */
  686|   225k|  for(unsigned int i = 0; i <= max_ival; i++)
  ------------------
  |  Branch (686:27): [True: 171k, False: 54.0k]
  ------------------
  687|   171k|    {
  688|   171k|      unsigned int *ep = elements + cell->first + dcs_start[i];
  689|   822k|      for(unsigned int j = dcs_count[i]; j > 0; j--)
  ------------------
  |  Branch (689:42): [True: 650k, False: 171k]
  ------------------
  690|   650k|        {
  691|   811k|          while(true)
  ------------------
  |  Branch (691:17): [True: 811k, Folded]
  ------------------
  692|   811k|            {
  693|   811k|              const unsigned int element = *ep;
  694|   811k|              const unsigned int ival = invariant_values[element];
  695|   811k|              if(ival == i)
  ------------------
  |  Branch (695:18): [True: 650k, False: 161k]
  ------------------
  696|   650k|                break;
  697|   811k|              assert(ival > i);
  ------------------
  |  Branch (697:15): [True: 161k, False: 0]
  ------------------
  698|   161k|              assert(dcs_count[ival] > 0);
  ------------------
  |  Branch (698:15): [True: 161k, False: 0]
  ------------------
  699|   161k|              *ep = elements[cell->first + dcs_start[ival]];
  700|   161k|              elements[cell->first + dcs_start[ival]] = element;
  701|   161k|              dcs_start[ival]++;
  702|   161k|              dcs_count[ival]--;
  703|   161k|            }
  704|   650k|          ep++;
  705|   650k|        }
  706|   171k|      dcs_count[i] = 0;
  707|   171k|    }
  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|  54.0k|  Cell* const new_cell = split_cell(cell);
  716|  54.0k|  assert(new_cell != cell);
  ------------------
  |  Branch (716:3): [True: 54.0k, False: 0]
  ------------------
  717|  54.0k|  return new_cell;
  718|  54.0k|}
_ZN5bliss9Partition9clear_ivsEPNS0_4CellE:
  781|   171k|{
  782|   171k|  unsigned int* ep = elements + cell->first;
  783|   613k|  for(unsigned int i = cell->length; i > 0; i--, ep++)
  ------------------
  |  Branch (783:38): [True: 442k, False: 171k]
  ------------------
  784|   442k|    invariant_values[*ep] = 0;
  785|   171k|}
_ZN5bliss9Partition10split_cellEPNS0_4CellE:
  794|  54.0k|{
  795|  54.0k|  Cell* cell = original_cell;
  796|  54.0k|  const bool original_cell_was_in_splitting_queue =
  797|  54.0k|    original_cell->in_splitting_queue;
  798|  54.0k|  Cell* largest_new_cell = 0;
  799|       |
  800|   121k|  while(true)
  ------------------
  |  Branch (800:9): [True: 121k, Folded]
  ------------------
  801|   121k|    {
  802|   121k|      unsigned int* ep = elements + cell->first;
  803|   121k|      const unsigned int* const lp = ep + cell->length;
  804|   121k|      const unsigned int ival = invariant_values[*ep];
  805|   121k|      invariant_values[*ep] = 0;
  806|   121k|      element_to_cell_map[*ep] = cell;
  807|   121k|      in_pos[*ep] = ep;
  808|   121k|      ep++;
  809|   811k|      while(ep < lp)
  ------------------
  |  Branch (809:13): [True: 757k, False: 54.0k]
  ------------------
  810|   757k|        {
  811|   757k|          const unsigned int e = *ep;
  812|   757k|          if(invariant_values[e] != ival)
  ------------------
  |  Branch (812:14): [True: 67.0k, False: 690k]
  ------------------
  813|  67.0k|            break;
  814|   690k|          invariant_values[e] = 0;
  815|   690k|          in_pos[e] = ep;
  816|   690k|          ep++;
  817|   690k|          element_to_cell_map[e] = cell;
  818|   690k|        }
  819|   121k|      if(ep == lp)
  ------------------
  |  Branch (819:10): [True: 54.0k, False: 67.0k]
  ------------------
  820|  54.0k|        break;
  821|       |
  822|  67.0k|      Cell* const new_cell = aux_split_in_two(cell,
  823|  67.0k|                                              (ep - elements) - cell->first);
  824|       |
  825|  67.0k|      if(graph and graph->compute_eqref_hash)
  ------------------
  |  Branch (825:10): [True: 67.0k, False: 0]
  |  Branch (825:20): [True: 0, False: 67.0k]
  ------------------
  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|  67.0k|      assert(!new_cell->is_in_splitting_queue());
  ------------------
  |  Branch (833:7): [True: 67.0k, False: 0]
  ------------------
  834|  67.0k|      if(original_cell_was_in_splitting_queue)
  ------------------
  |  Branch (834:10): [True: 1.69k, False: 65.3k]
  ------------------
  835|  1.69k|        {
  836|       |          /* In this case, all new cells are inserted in splitting_queue */
  837|  1.69k|          assert(cell->is_in_splitting_queue());
  ------------------
  |  Branch (837:11): [True: 1.69k, False: 0]
  ------------------
  838|  1.69k|          splitting_queue_add(new_cell);
  839|  1.69k|        }
  840|  65.3k|      else
  841|  65.3k|        {
  842|       |          /* Otherwise, we can omit one new cell from splitting_queue */
  843|  65.3k|          assert(!cell->is_in_splitting_queue());
  ------------------
  |  Branch (843:11): [True: 65.3k, False: 0]
  ------------------
  844|  65.3k|          if(largest_new_cell == 0) {
  ------------------
  |  Branch (844:14): [True: 52.7k, False: 12.5k]
  ------------------
  845|  52.7k|            largest_new_cell = cell;
  846|  52.7k|          } else {
  847|  12.5k|            assert(!largest_new_cell->is_in_splitting_queue());
  ------------------
  |  Branch (847:13): [True: 12.5k, False: 0]
  ------------------
  848|  12.5k|            if(cell->length > largest_new_cell->length) {
  ------------------
  |  Branch (848:16): [True: 3.52k, False: 9.07k]
  ------------------
  849|  3.52k|              splitting_queue_add(largest_new_cell);
  850|  3.52k|              largest_new_cell = cell;
  851|  9.07k|            } else {
  852|  9.07k|              splitting_queue_add(cell);
  853|  9.07k|            }
  854|  12.5k|          }
  855|  65.3k|        }
  856|       |      /* Process the rest of the cell */
  857|  67.0k|      cell = new_cell;
  858|  67.0k|    }
  859|       |
  860|       |
  861|  54.0k|  if(original_cell == cell) {
  ------------------
  |  Branch (861:6): [True: 0, False: 54.0k]
  ------------------
  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|  54.0k|  if(!original_cell_was_in_splitting_queue)
  ------------------
  |  Branch (867:6): [True: 52.7k, False: 1.31k]
  ------------------
  868|  52.7k|    {
  869|       |      /* Also consider the last new cell */
  870|  52.7k|      assert(largest_new_cell);
  ------------------
  |  Branch (870:7): [True: 52.7k, False: 0]
  ------------------
  871|  52.7k|      if(cell->length > largest_new_cell->length)
  ------------------
  |  Branch (871:10): [True: 1.48k, False: 51.2k]
  ------------------
  872|  1.48k|        {
  873|  1.48k|          splitting_queue_add(largest_new_cell);
  874|  1.48k|          largest_new_cell = cell;
  875|  1.48k|        }
  876|  51.2k|      else
  877|  51.2k|        {
  878|  51.2k|          splitting_queue_add(cell);
  879|  51.2k|        }
  880|  52.7k|      if(largest_new_cell->is_unit())
  ------------------
  |  Branch (880:10): [True: 1.12k, False: 51.6k]
  ------------------
  881|  1.12k|        {
  882|       |          /* Needed in certificate computation */
  883|  1.12k|          splitting_queue_add(largest_new_cell);
  884|  1.12k|        }
  885|  52.7k|    }
  886|       |
  887|  54.0k|  return cell;
  888|  54.0k|}
_ZN5bliss9Partition10zplit_cellEPNS0_4CellEb:
  894|   362k|{
  895|   362k|  assert(cell != 0);
  ------------------
  |  Branch (895:3): [True: 362k, False: 0]
  ------------------
  896|       |
  897|   362k|  Cell* last_new_cell = cell;
  898|       |
  899|   362k|  if(!max_ival_info_ok)
  ------------------
  |  Branch (899:6): [True: 0, False: 362k]
  ------------------
  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|   362k|  if(cell->max_ival_count == cell->length)
  ------------------
  |  Branch (947:6): [True: 176k, False: 186k]
  ------------------
  948|   176k|    {
  949|       |      /* All invariant values are the same, clear 'em */
  950|   176k|      if(cell->max_ival > 0)
  ------------------
  |  Branch (950:10): [True: 158k, False: 18.0k]
  ------------------
  951|   158k|        clear_ivs(cell);
  952|   176k|    }
  953|   186k|  else
  954|   186k|    {
  955|       |      /* All invariant values are not the same */
  956|   186k|      if(cell->max_ival == 1)
  ------------------
  |  Branch (956:10): [True: 132k, False: 54.0k]
  ------------------
  957|   132k|        {
  958|       |          /* Specialized splitting for cells with binary invariant values */
  959|   132k|          last_new_cell = sort_and_split_cell1(cell);
  960|   132k|        }
  961|  54.0k|      else if(cell->max_ival < 256)
  ------------------
  |  Branch (961:15): [True: 54.0k, False: 0]
  ------------------
  962|  54.0k|        {
  963|       |          /* Specialized splitting for cells with invariant values < 256 */
  964|  54.0k|          last_new_cell = sort_and_split_cell255(cell, cell->max_ival);
  965|  54.0k|        }
  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|   186k|    }
  975|   362k|  cell->max_ival = 0;
  976|   362k|  cell->max_ival_count = 0;
  977|   362k|  return last_new_cell;
  978|   362k|}
_ZN5bliss9Partition7cr_initEv:
  989|  8.28k|{
  990|  8.28k|  assert(bt_stack.empty());
  ------------------
  |  Branch (990:3): [True: 8.28k, False: 0]
  ------------------
  991|       |
  992|  8.28k|  cr_enabled = true;
  993|       |
  994|  8.28k|  delete[] cr_cells;
  995|  8.28k|  cr_cells = new CRCell[N];
  996|       |
  997|  8.28k|  delete[] cr_levels;
  998|  8.28k|  cr_levels = new CRCell*[N];
  999|       |
 1000|   343k|  for(unsigned int i = 0; i < N; i++) {
  ------------------
  |  Branch (1000:27): [True: 335k, False: 8.28k]
  ------------------
 1001|   335k|    cr_levels[i] = 0;
 1002|   335k|    cr_cells[i].level = UINT_MAX;
 1003|   335k|    cr_cells[i].next = 0;
 1004|   335k|    cr_cells[i].prev_next_ptr = 0;
 1005|   335k|  }
 1006|       |
 1007|  16.5k|  for(const Cell *cell = first_cell; cell; cell = cell->next)
  ------------------
  |  Branch (1007:38): [True: 8.28k, False: 8.28k]
  ------------------
 1008|  8.28k|    cr_create_at_level_trailed(cell->first, 0);
 1009|       |
 1010|  8.28k|  cr_max_level = 0;
 1011|  8.28k|}
_ZN5bliss9Partition7cr_freeEv:
 1016|  8.28k|{
 1017|  8.28k|  delete[] cr_cells; cr_cells = nullptr;
 1018|  8.28k|  delete[] cr_levels; cr_levels = nullptr;
 1019|       |
 1020|  8.28k|  cr_created_trail.clear();
 1021|  8.28k|  cr_splitted_level_trail.clear();
 1022|  8.28k|  cr_bt_info.clear();
 1023|  8.28k|  cr_max_level = 0;
 1024|       |
 1025|  8.28k|  cr_enabled = false;
 1026|  8.28k|}
_ZN5bliss9Partition14cr_split_levelEjRKNSt3__16vectorIjNS1_9allocatorIjEEEE:
 1032|  90.9k|{
 1033|  90.9k|  assert(cr_enabled);
  ------------------
  |  Branch (1033:3): [True: 90.9k, False: 0]
  ------------------
 1034|  90.9k|  assert(level <= cr_max_level);
  ------------------
  |  Branch (1034:3): [True: 90.9k, False: 0]
  ------------------
 1035|  90.9k|  cr_levels[++cr_max_level] = 0;
 1036|  90.9k|  cr_splitted_level_trail.push_back(level);
 1037|       |
 1038|   193k|  for(unsigned int i = 0; i < splitted_cells.size(); i++)
  ------------------
  |  Branch (1038:27): [True: 102k, False: 90.9k]
  ------------------
 1039|   102k|    {
 1040|   102k|      const unsigned int cell_index = splitted_cells[i];
 1041|   102k|      assert(cell_index < N);
  ------------------
  |  Branch (1041:7): [True: 102k, False: 0]
  ------------------
 1042|   102k|      CRCell& cr_cell = cr_cells[cell_index];
 1043|   102k|      assert(cr_cell.level == level);
  ------------------
  |  Branch (1043:7): [True: 102k, False: 0]
  ------------------
 1044|   102k|      cr_cell.detach();
 1045|   102k|      cr_create_at_level(cell_index, cr_max_level);
 1046|   102k|    }
 1047|       |
 1048|  90.9k|  return cr_max_level;
 1049|  90.9k|}
_ZN5bliss9Partition22cr_get_backtrack_pointEv:
 1054|  10.0M|{
 1055|  10.0M|  assert(cr_enabled);
  ------------------
  |  Branch (1055:3): [True: 10.0M, False: 0]
  ------------------
 1056|  10.0M|  CR_BTInfo info;
 1057|  10.0M|  info.created_trail_index = cr_created_trail.size();
 1058|  10.0M|  info.splitted_level_trail_index = cr_splitted_level_trail.size();
 1059|  10.0M|  cr_bt_info.push_back(info);
 1060|  10.0M|  return cr_bt_info.size()-1;
 1061|  10.0M|}
_ZN5bliss9Partition23cr_goto_backtrack_pointEj:
 1066|  5.40M|{
 1067|  5.40M|  assert(cr_enabled);
  ------------------
  |  Branch (1067:3): [True: 5.40M, False: 0]
  ------------------
 1068|  5.40M|  assert(btpoint < cr_bt_info.size());
  ------------------
  |  Branch (1068:3): [True: 5.40M, False: 0]
  ------------------
 1069|  11.0M|  while(cr_created_trail.size() > cr_bt_info[btpoint].created_trail_index)
  ------------------
  |  Branch (1069:9): [True: 5.68M, False: 5.40M]
  ------------------
 1070|  5.68M|    {
 1071|  5.68M|      const unsigned int cell_index = cr_created_trail.back();
 1072|  5.68M|      cr_created_trail.pop_back();
 1073|  5.68M|      CRCell& cr_cell = cr_cells[cell_index];
 1074|  5.68M|      assert(cr_cell.level != UINT_MAX);
  ------------------
  |  Branch (1074:7): [True: 5.68M, False: 0]
  ------------------
 1075|  5.68M|      assert(cr_cell.prev_next_ptr);
  ------------------
  |  Branch (1075:7): [True: 5.68M, False: 0]
  ------------------
 1076|  5.68M|      cr_cell.detach();
 1077|  5.68M|    }
 1078|       |
 1079|  5.48M|  while(cr_splitted_level_trail.size() >
  ------------------
  |  Branch (1079:9): [True: 85.3k, False: 5.40M]
  ------------------
 1080|  5.48M|        cr_bt_info[btpoint].splitted_level_trail_index)
 1081|  85.3k|    {
 1082|  85.3k|      const unsigned int dest_level = cr_splitted_level_trail.back();
 1083|  85.3k|      cr_splitted_level_trail.pop_back();
 1084|  85.3k|      assert(cr_max_level > 0);
  ------------------
  |  Branch (1084:7): [True: 85.3k, False: 0]
  ------------------
 1085|  85.3k|      assert(dest_level < cr_max_level);
  ------------------
  |  Branch (1085:7): [True: 85.3k, False: 0]
  ------------------
 1086|   179k|      while(cr_levels[cr_max_level]) {
  ------------------
  |  Branch (1086:13): [True: 94.1k, False: 85.3k]
  ------------------
 1087|  94.1k|        CRCell *cr_cell = cr_levels[cr_max_level];
 1088|  94.1k|        cr_cell->detach();
 1089|  94.1k|        cr_create_at_level(cr_cell - cr_cells, dest_level);
 1090|  94.1k|      }
 1091|  85.3k|      cr_max_level--;
 1092|  85.3k|    }
 1093|  5.40M|  cr_bt_info.resize(btpoint);
 1094|  5.40M|}
_ZN5bliss9Partition18cr_create_at_levelEjj:
 1100|  5.93M|{
 1101|  5.93M|  assert(cr_enabled);
  ------------------
  |  Branch (1101:3): [True: 5.93M, False: 0]
  ------------------
 1102|  5.93M|  assert(cell_index < N);
  ------------------
  |  Branch (1102:3): [True: 5.93M, False: 0]
  ------------------
 1103|  5.93M|  assert(level < N);
  ------------------
  |  Branch (1103:3): [True: 5.93M, False: 0]
  ------------------
 1104|  5.93M|  CRCell& cr_cell = cr_cells[cell_index];
 1105|  5.93M|  assert(cr_cell.level == UINT_MAX);
  ------------------
  |  Branch (1105:3): [True: 5.93M, False: 0]
  ------------------
 1106|  5.93M|  assert(cr_cell.next == 0);
  ------------------
  |  Branch (1106:3): [True: 5.93M, False: 0]
  ------------------
 1107|  5.93M|  assert(cr_cell.prev_next_ptr == 0);
  ------------------
  |  Branch (1107:3): [True: 5.93M, False: 0]
  ------------------
 1108|  5.93M|  if(cr_levels[level])
  ------------------
  |  Branch (1108:6): [True: 5.75M, False: 178k]
  ------------------
 1109|  5.75M|    cr_levels[level]->prev_next_ptr = &(cr_cell.next);
 1110|  5.93M|  cr_cell.next = cr_levels[level];
 1111|  5.93M|  cr_levels[level] = &cr_cell;
 1112|  5.93M|  cr_cell.prev_next_ptr = &cr_levels[level];
 1113|  5.93M|  cr_cell.level = level;
 1114|  5.93M|}
_ZN5bliss9Partition26cr_create_at_level_trailedEjj:
 1120|  5.74M|{
 1121|  5.74M|  assert(cr_enabled);
  ------------------
  |  Branch (1121:3): [True: 5.74M, False: 0]
  ------------------
 1122|  5.74M|  cr_create_at_level(cell_index, level);
 1123|  5.74M|  cr_created_trail.push_back(cell_index);
 1124|  5.74M|}

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

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

_ZN5bliss11UintSeqHash6updateEj:
   97|   172k|{
   98|   172k|  i++;
   99|   422k|  while(i > 0)
  ------------------
  |  Branch (99:9): [True: 250k, False: 172k]
  ------------------
  100|   250k|    {
  101|   250k|      h ^= rtab[i & 0xff];
  102|   250k|#if 1
  103|   250k|      const unsigned int b = (h & 0x80000000) >> 31;
  104|   250k|      i = i >> 8;
  105|   250k|      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|   250k|    }
  114|   172k|}

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

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

igraph_invert_permutation:
   39|  62.6k|igraph_error_t igraph_invert_permutation(const igraph_vector_int_t *permutation, igraph_vector_int_t *inverse) {
   40|  62.6k|    const igraph_int_t n = igraph_vector_int_size(permutation);
   41|       |
   42|  62.6k|    IGRAPH_CHECK(igraph_vector_int_resize(inverse, n));
  ------------------
  |  |  656|  62.6k|    do { \
  |  |  657|  62.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  62.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.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|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
   43|  62.6k|    igraph_vector_int_fill(inverse, -1);
   44|       |
   45|  3.32M|    for (igraph_int_t i = 0; i < n; i++) {
  ------------------
  |  Branch (45:30): [True: 3.26M, False: 62.6k]
  ------------------
   46|  3.26M|        igraph_int_t j = VECTOR(*permutation)[i];
  ------------------
  |  |   60|  3.26M|#define VECTOR(v) ((v).stor_begin)
  ------------------
   47|  3.26M|        if (j < 0 || j >= n) {
  ------------------
  |  Branch (47:13): [True: 0, False: 3.26M]
  |  Branch (47:22): [True: 0, False: 3.26M]
  ------------------
   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.26M|        if (VECTOR(*inverse)[j] != -1) {
  ------------------
  |  |   60|  3.26M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (50:13): [True: 0, False: 3.26M]
  ------------------
   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.26M|        VECTOR(*inverse)[j] = i;
  ------------------
  |  |   60|  3.26M|#define VECTOR(v) ((v).stor_begin)
  ------------------
   55|  3.26M|    }
   56|       |
   57|  62.6k|    return IGRAPH_SUCCESS;
   58|  62.6k|}
igraph_permute_vertices:
   81|  62.6k|                                       const igraph_vector_int_t *permutation) {
   82|       |
   83|  62.6k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
   84|  62.6k|    igraph_int_t no_of_edges = igraph_ecount(graph);
   85|  62.6k|    igraph_vector_int_t edges;
   86|  62.6k|    igraph_vector_int_t index;
   87|  62.6k|    igraph_int_t p;
   88|       |
   89|  62.6k|    if (igraph_vector_int_size(permutation) != no_of_nodes) {
  ------------------
  |  Branch (89:9): [True: 0, False: 62.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|  62.6k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&index, no_of_nodes);
  ------------------
  |  |  119|  62.6k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  62.6k|    do { \
  |  |  |  |  657|  62.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  62.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.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|  62.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  62.6k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  62.6k|    do { \
  |  |  |  |  604|  62.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  62.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  62.6k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  62.6k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  |  |  608|  62.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  62.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
   94|       |
   95|       |    /* Also checks that 'permutation' is valid: */
   96|  62.6k|    IGRAPH_CHECK(igraph_invert_permutation(permutation, &index));
  ------------------
  |  |  656|  62.6k|    do { \
  |  |  657|  62.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  62.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.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|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
   97|       |
   98|  62.6k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&edges, no_of_edges * 2);
  ------------------
  |  |  119|  62.6k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  62.6k|    do { \
  |  |  |  |  657|  62.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  62.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.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|  62.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  62.6k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  62.6k|    do { \
  |  |  |  |  604|  62.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  62.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  62.6k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  62.6k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  |  |  608|  62.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  62.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 62.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
   99|       |
  100|  62.6k|    p = 0;
  101|   954k|    for (igraph_int_t i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (101:30): [True: 891k, False: 62.6k]
  ------------------
  102|   891k|        VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_FROM(graph, i) ];
  ------------------
  |  |  115|   891k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  103|   891k|        VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      VECTOR(edges)[p++] = VECTOR(index)[ IGRAPH_TO(graph, i) ];
  ------------------
  |  |  128|   891k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   891k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  104|   891k|    }
  105|       |
  106|  62.6k|    IGRAPH_CHECK(igraph_create(res, &edges, no_of_nodes, igraph_is_directed(graph)));
  ------------------
  |  |  656|  62.6k|    do { \
  |  |  657|  62.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  62.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  62.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.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|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
  107|  62.6k|    IGRAPH_FINALLY(igraph_destroy, res);
  ------------------
  |  |  603|  62.6k|    do { \
  |  |  604|  62.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  62.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  62.6k|         * incorrect destructor function with the pointer */ \
  |  |  607|  62.6k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 62.6k]
  |  |  ------------------
  |  |  608|  62.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  62.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 62.6k]
  |  |  ------------------
  ------------------
  108|       |
  109|       |    /* Attributes */
  110|  62.6k|    if (graph->attr) {
  ------------------
  |  Branch (110:9): [True: 0, False: 62.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|  62.6k|    igraph_vector_int_destroy(&index);
  123|  62.6k|    igraph_vector_int_destroy(&edges);
  124|  62.6k|    IGRAPH_FINALLY_CLEAN(3); /* +1 for res */
  125|       |
  126|  62.6k|    return IGRAPH_SUCCESS;
  127|  62.6k|}

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

igraph_rng_default:
  188|   129k|igraph_rng_t *igraph_rng_default(void) {
  189|   129k|    return igraph_i_rng_default_ptr;
  190|   129k|}
igraph_rng_seed:
  260|  2.85k|igraph_error_t igraph_rng_seed(igraph_rng_t *rng, igraph_uint_t seed) {
  261|  2.85k|    const igraph_rng_type_t *type = rng->type;
  262|  2.85k|    IGRAPH_CHECK(type->seed(rng->state, seed));
  ------------------
  |  |  656|  2.85k|    do { \
  |  |  657|  2.85k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.85k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.85k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.85k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.85k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.85k]
  |  |  ------------------
  ------------------
  263|  2.85k|    rng->is_seeded = true;
  264|  2.85k|    return IGRAPH_SUCCESS;
  265|  2.85k|}
igraph_rng_bits:
  277|   126k|igraph_int_t igraph_rng_bits(const igraph_rng_t* rng) {
  278|   126k|    return rng->type->bits;
  279|   126k|}
igraph_rng_get_integer:
  593|   126k|) {
  594|   126k|    const igraph_rng_type_t *type = rng->type;
  595|   126k|    igraph_uint_t range;
  596|       |
  597|   126k|    assert(h >= l);
  ------------------
  |  Branch (597:5): [True: 0, False: 126k]
  |  Branch (597:5): [True: 126k, False: 0]
  ------------------
  598|       |
  599|   126k|    if (h == l) {
  ------------------
  |  Branch (599:9): [True: 0, False: 126k]
  ------------------
  600|      0|        return l;
  601|      0|    }
  602|       |
  603|   126k|    if (type->get_int) {
  ------------------
  |  Branch (603:9): [True: 0, False: 126k]
  ------------------
  604|      0|        return type->get_int(rng->state, l, h);
  605|      0|    }
  606|       |
  607|   126k|    if (IGRAPH_UNLIKELY(l == IGRAPH_INTEGER_MIN && h == IGRAPH_INTEGER_MAX)) {
  ------------------
  |  |  612|   126k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  ------------------
  |  |  |  Branch (612:32): [True: 0, False: 126k]
  |  |  |  Branch (612:52): [True: 0, False: 126k]
  |  |  |  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|   126k|    } else if (l >= 0 || h < 0) {
  ------------------
  |  Branch (611:16): [True: 126k, False: 0]
  |  Branch (611:26): [True: 0, False: 0]
  ------------------
  612|       |        /* this is okay, (h - l) will not overflow an igraph_int_t */
  613|   126k|        range = (igraph_uint_t)(h - l) + 1;
  614|   126k|    } 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|   126k|    return l + igraph_i_rng_get_uint_bounded(rng, range);
  622|   126k|}
random.c:igraph_i_rng_get_random_bits:
  336|   126k|static igraph_uint_t igraph_i_rng_get_random_bits(igraph_rng_t *rng, uint8_t bits) {
  337|   126k|    const igraph_rng_type_t *type = rng->type;
  338|   126k|    igraph_int_t rng_bitwidth = igraph_rng_bits(rng);
  339|   126k|    igraph_uint_t result;
  340|       |
  341|   126k|    if (rng_bitwidth >= bits) {
  ------------------
  |  Branch (341:9): [True: 126k, False: 0]
  ------------------
  342|       |        /* keep the high bits as RNGs sometimes tend to have lower entropy in
  343|       |         * low bits than in high bits */
  344|   126k|        result = type->get(rng->state) >> (rng_bitwidth - bits);
  345|   126k|    } 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|   126k|    return result;
  357|   126k|}
random.c:igraph_i_rng_get_uint_bounded:
  532|   126k|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|   126k|    if (range <= UINT32_MAX) {
  ------------------
  |  Branch (541:9): [True: 126k, False: 0]
  ------------------
  542|   126k|        return igraph_i_rng_get_uint32_bounded(rng, range);
  543|   126k|    } else {
  544|      0|        return igraph_i_rng_get_uint64_bounded(rng, range);
  545|      0|    }
  546|   126k|#endif
  547|   126k|}
random.c:igraph_i_rng_get_uint32_bounded:
  428|   126k|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|   126k|    uint32_t x, l, t = (-range) % range;
  432|   126k|    uint64_t m;
  433|   126k|    do {
  434|   126k|        x = igraph_i_rng_get_uint32(rng);
  435|   126k|        m = (uint64_t)(x) * (uint64_t)(range);
  436|   126k|        l = (uint32_t)m;
  437|   126k|    } while (l < t);
  ------------------
  |  Branch (437:14): [True: 0, False: 126k]
  ------------------
  438|   126k|    return m >> 32;
  439|   126k|}
random.c:igraph_i_rng_get_uint32:
  416|   126k|static uint32_t igraph_i_rng_get_uint32(igraph_rng_t *rng) {
  417|   126k|    return igraph_i_rng_get_random_bits(rng, 32);
  418|   126k|}

rng_pcg32.c:igraph_rng_pcg32_seed:
   41|  2.85k|static igraph_error_t igraph_rng_pcg32_seed(void *vstate, igraph_uint_t seed) {
   42|  2.85k|    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.85k|    if (seed == 0) {
  ------------------
  |  Branch (49:9): [True: 0, False: 2.85k]
  ------------------
   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.85k|    } else {
   57|  2.85k|        pcg32_srandom_r(state, pcg32_initializer.state, seed);
  ------------------
  |  | 2398|  2.85k|#define pcg32_srandom_r                 pcg_setseq_64_srandom_r
  ------------------
   58|  2.85k|    }
   59|       |
   60|  2.85k|    return IGRAPH_SUCCESS;
   61|  2.85k|}
rng_pcg32.c:igraph_rng_pcg32_get:
   36|   126k|static igraph_uint_t igraph_rng_pcg32_get(void *vstate) {
   37|   126k|    pcg32_random_t *state = (pcg32_random_t*) vstate;
   38|   126k|    return pcg32_random_r(state);
  ------------------
  |  | 2388|   126k|#define pcg32_random_r                  pcg_setseq_64_xsh_rr_32_random_r
  ------------------
   39|   126k|}

