igraph_gml_yylex:
 1220|  3.25M|YY_DECL {
 1221|  3.25M|	yy_state_type yy_current_state;
 1222|  3.25M|	char *yy_cp, *yy_bp;
 1223|  3.25M|	int yy_act;
 1224|  3.25M|    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1225|       |
 1226|  3.25M|    yylval = yylval_param;
  ------------------
  |  |  997|  3.25M|    #    define yylval yyg->yylval_r
  ------------------
 1227|       |
 1228|  3.25M|    yylloc = yylloc_param;
  ------------------
  |  |  999|  3.25M|    #    define yylloc yyg->yylloc_r
  ------------------
 1229|       |
 1230|  3.25M|	if ( !yyg->yy_init ) {
  ------------------
  |  Branch (1230:7): [True: 3.33k, False: 3.25M]
  ------------------
 1231|  3.33k|		yyg->yy_init = 1;
 1232|       |
 1233|       |#ifdef YY_USER_INIT
 1234|       |		YY_USER_INIT;
 1235|       |#endif
 1236|       |
 1237|  3.33k|		if ( ! yyg->yy_start ) {
  ------------------
  |  Branch (1237:8): [True: 3.33k, False: 0]
  ------------------
 1238|  3.33k|			yyg->yy_start = 1;	/* first start state */
 1239|  3.33k|		}
 1240|  3.33k|		if ( ! yyin ) {
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1240:8): [True: 0, False: 3.33k]
  ------------------
 1241|       |
 1242|      0|			yyin = stdin;
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1243|       |
 1244|      0|		}
 1245|  3.33k|		if ( ! yyout ) {
  ------------------
  |  |  405|  3.33k|#define yyout yyg->yyout_r
  ------------------
  |  Branch (1245:8): [True: 3.33k, False: 0]
  ------------------
 1246|       |
 1247|  3.33k|			yyout = stdout;
  ------------------
  |  |  405|  3.33k|#define yyout yyg->yyout_r
  ------------------
 1248|       |
 1249|  3.33k|		}
 1250|  3.33k|		if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 0, False: 3.33k]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
  |  Branch (1250:8): [True: 3.33k, False: 0]
  ------------------
 1251|  3.33k|			yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|  3.33k|#define yyensure_buffer_stack igraph_gml_yyensure_buffer_stack
  ------------------
 1252|  3.33k|			YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1253|  3.33k|				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|  3.33k|#define yy_create_buffer igraph_gml_yy_create_buffer
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|  3.33k|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|  3.33k|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1254|  3.33k|		}
 1255|       |
 1256|  3.33k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.33k|#define yy_load_buffer_state igraph_gml_yy_load_buffer_state
  ------------------
 1257|  3.33k|	}
 1258|       |
 1259|       |	/* open scope of user declarationns */
 1260|  3.25M|	{
 1261|       |/* %% [4.0] user's declarations go here */
 1262|  3.25M|#line 80 "/src/igraph/src/io/gml-lexer.l"
 1263|       |
 1264|       |
 1265|  3.25M|#line 1266 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1266|       |
 1267|  8.70M|		while ( /*CONSTCOND*/1 ) {		/* loops until end-of-file is reached */
  ------------------
  |  Branch (1267:24): [True: 8.70M, Folded]
  ------------------
 1268|       |
 1269|       |			/* Support of yytext. The character was taken from the end
 1270|       |			 * of the last token, which is behind yy_c_buf_p when
 1271|       |			 * yyinput() has read characters since. */
 1272|  8.70M|			*yyg->yy_hold_ptr = yyg->yy_hold_char;
 1273|  8.70M|			yy_cp = yyg->yy_c_buf_p;
 1274|       |
 1275|       |			/* yy_bp points to the position in yy_ch_buf of the start of
 1276|       |			 * the current run.
 1277|       |			 */
 1278|  8.70M|			yy_bp = yy_cp;
 1279|       |
 1280|       |	/* Generate the code to find the start state. */
 1281|       |
 1282|  8.70M|			yy_current_state = yyg->yy_start;
 1283|  8.70M|yy_current_state += YY_AT_BOL();
  ------------------
  |  |  644|  8.70M|#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  |  |  ------------------
  |  |  |  |  611|  8.70M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1284|       |			/* Set up for storing up states. */
 1285|       |			
 1286|  8.73M|	yy_match:
 1287|       |			/* Generate the code to find the next match. */
 1288|       |
 1289|   211M|			do {
 1290|       |				
 1291|   211M|	int yy_c = *(yy_ec+YY_SC_TO_UI(*yy_cp));
  ------------------
  |  |  394|   211M|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
 1292|       |	/* Save the backing-up info \before/ computing the next state
 1293|       |	 * because we always compute one more state than needed - we
 1294|       |	 * always proceed until we reach a jam state
 1295|       |	 */
 1296|       |	
 1297|       |		/* Generate code to keep backing-up information. */
 1298|       |
 1299|   211M|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1299:8): [True: 33.9M, False: 177M]
  ------------------
 1300|       |
 1301|  33.9M|			yyg->yy_last_accepting_state = yy_current_state;
 1302|  33.9M|			yyg->yy_last_accepting_cpos = yy_cp;
 1303|  33.9M|		}
 1304|       |
 1305|   416M|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1305:10): [True: 204M, False: 211M]
  ------------------
 1306|   204M|		yy_current_state = (int) yy_def[yy_current_state];
 1307|       |
 1308|       |		/* We've arranged it so that templates are never chained
 1309|       |		 * to one another.  This means we can afford to make a
 1310|       |		 * very simple test to see if we need to convert to
 1311|       |		 * yy_c's meta-equivalence class without worrying
 1312|       |		 * about erroneously looking up the meta-equivalence
 1313|       |		 * class twice
 1314|       |		 */
 1315|       |
 1316|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1317|   204M|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|   204M|#define YY_JAMSTATE 42
  ------------------
  |  Branch (1317:7): [True: 191M, False: 13.1M]
  ------------------
 1318|   191M|			yy_c = yy_meta[yy_c];
 1319|   191M|		}
 1320|       |
 1321|   204M|	}
 1322|   211M|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1323|       |
 1324|   211M|				++yy_cp;
 1325|       |
 1326|   211M|			}
 1327|   211M|			while ( yy_base[yy_current_state] != YY_JAMBASE );
  ------------------
  |  |  706|   211M|#define YY_JAMBASE 85
  ------------------
  |  Branch (1327:12): [True: 202M, False: 8.73M]
  ------------------
 1328|       |			
 1329|  8.73M|	yy_find_action:
 1330|       |			/* code to find the action number goes here */
 1331|       |			
 1332|  8.73M|		yy_act = yy_accept[yy_current_state];
 1333|  8.73M|			if ( yy_act == 0 ) { /* have to back up */
  ------------------
  |  Branch (1333:9): [True: 7.70M, False: 1.03M]
  ------------------
 1334|  7.70M|				yy_cp = yyg->yy_last_accepting_cpos;
 1335|  7.70M|				yy_current_state = yyg->yy_last_accepting_state;
 1336|  7.70M|				yy_act = yy_accept[yy_current_state];
 1337|  7.70M|			}
 1338|       |
 1339|  8.73M|			YY_DO_BEFORE_ACTION;
  ------------------
  |  |  741|  8.73M|	do { \
  |  |  742|  8.73M|	 \
  |  |  743|  8.73M|	yyg->yytext_ptr = yy_bp; \
  |  |  ------------------
  |  |  |  |  669|  8.73M|#define yytext_ptr yytext_r
  |  |  ------------------
  |  |  744|  8.73M|	 \
  |  |  745|  8.73M|	yyleng = (int) (yy_cp - yy_bp); \
  |  |  ------------------
  |  |  |  |  407|  8.73M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  746|  8.73M|	 \
  |  |  747|  8.73M|	yyg->yy_hold_char = *yy_cp; \
  |  |  748|  8.73M|	yyg->yy_hold_ptr = yy_cp; \
  |  |  749|  8.73M|	*yy_cp = '\0'; \
  |  |  750|  8.73M| \
  |  |  751|  8.73M|	yyg->yy_c_buf_p = yy_cp; \
  |  |  752|  8.73M|	} while(0)
  |  |  ------------------
  |  |  |  Branch (752:10): [Folded, False: 8.73M]
  |  |  ------------------
  ------------------
 1340|       |
 1341|  8.73M|			if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) {
  ------------------
  |  |  705|  17.4M|#define YY_END_OF_BUFFER 12
  ------------------
  |  Branch (1341:9): [True: 8.69M, False: 35.2k]
  |  Branch (1341:39): [True: 2.46M, False: 6.23M]
  ------------------
 1342|  2.46M|				int yyl;
 1343|   173M|				for ( yyl = 0; yyl < yyleng; ++yyl ) {
  ------------------
  |  |  407|   173M|#define yyleng yyg->yyleng_r
  ------------------
  |  Branch (1343:20): [True: 171M, False: 2.46M]
  ------------------
 1344|   171M|					if ( yytext[yyl] == '\n' ) {
  ------------------
  |  |  408|   171M|#define yytext yyg->yytext_r
  ------------------
  |  Branch (1344:11): [True: 10.0M, False: 161M]
  ------------------
 1345|       |						
 1346|  10.0M|    do{ yylineno++;
  ------------------
  |  |  409|  10.0M|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  ------------------
  |  |  |  |  611|  10.0M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1347|  10.0M|        yycolumn=0;
  ------------------
  |  |  410|  10.0M|#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  |  |  ------------------
  |  |  |  |  611|  10.0M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1348|  10.0M|    }while(0)
  ------------------
  |  Branch (1348:12): [Folded, False: 10.0M]
  ------------------
 1349|  10.0M|;
 1350|       |
 1351|  10.0M|					}
 1352|   171M|				}
 1353|  2.46M|			}
 1354|       |
 1355|  8.73M|		do_action:	/* This label is used only to access EOF actions. */
 1356|       |
 1357|  8.73M|			switch ( yy_act ) { /* beginning of action switch */
 1358|       |
 1359|      0|			case 0: /* must back up */
  ------------------
  |  Branch (1359:4): [True: 0, False: 8.73M]
  ------------------
 1360|       |				/* undo the effects of YY_DO_BEFORE_ACTION */
 1361|      0|				*yy_cp = yyg->yy_hold_char;
 1362|       |
 1363|       |				/* Backing-up info for compressed tables is taken \after/ */
 1364|       |				/* yy_cp has been incremented for the next state. */
 1365|      0|				yy_cp = yyg->yy_last_accepting_cpos;
 1366|       |				
 1367|      0|				yy_current_state = yyg->yy_last_accepting_state;
 1368|      0|				goto yy_find_action;
 1369|       |
 1370|       |/* %% [5.0] user actions get inserted here */
 1371|      0|	case 1:
  ------------------
  |  Branch (1371:2): [True: 0, False: 8.73M]
  ------------------
 1372|      0|YY_RULE_SETUP
  ------------------
  |  | 1211|      0|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|      0|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 0, Folded]
  |  |  ------------------
  |  | 1212|      0|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|      0|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 1214|      0|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|      0|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|      0|	} \
  |  | 1216|      0|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1373|       |
 1374|      0|#line 82 "/src/igraph/src/io/gml-lexer.l"
 1375|      0|{ /* comments ignored */ }
 1376|      0|#line 1377 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1377|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1378|   255k|	case 2:
  ------------------
  |  Branch (1378:2): [True: 255k, False: 8.48M]
  ------------------
 1379|       |/* rule 2 can match eol */
 1380|   255k|YY_RULE_SETUP
  ------------------
  |  | 1211|   255k|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|   255k|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 255k, Folded]
  |  |  ------------------
  |  | 1212|   255k|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   255k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   255k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|   255k|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|   255k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 255k, False: 0]
  |  |  ------------------
  |  | 1214|   255k|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|   255k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|   255k|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|   255k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|   255k|	} \
  |  | 1216|   255k|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|   255k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|   255k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   255k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   255k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1381|       |
 1382|   255k|#line 84 "/src/igraph/src/io/gml-lexer.l"
 1383|   255k|{ BEGIN(INITIAL); return STRING; }
  ------------------
  |  |  419|   255k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(INITIAL); return STRING; }
  ------------------
  |  |  939|   255k|#define INITIAL 0
  ------------------
 1384|      0|#line 1385 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1385|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1386|      0|	case 3:
  ------------------
  |  Branch (1386:2): [True: 0, False: 8.73M]
  ------------------
 1387|      0|YY_RULE_SETUP
  ------------------
  |  | 1211|      0|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|      0|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 0, Folded]
  |  |  ------------------
  |  | 1212|      0|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|      0|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 1214|      0|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|      0|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|      0|	} \
  |  | 1216|      0|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1388|       |
 1389|      0|#line 85 "/src/igraph/src/io/gml-lexer.l"
 1390|      0|{ BEGIN(INITIAL); return NUM; }
  ------------------
  |  |  419|      0|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(INITIAL); return NUM; }
  ------------------
  |  |  939|      0|#define INITIAL 0
  ------------------
 1391|      0|#line 1392 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1392|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1393|   792k|	case 4:
  ------------------
  |  Branch (1393:2): [True: 792k, False: 7.94M]
  ------------------
 1394|   792k|YY_RULE_SETUP
  ------------------
  |  | 1211|   792k|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|   792k|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 792k, Folded]
  |  |  ------------------
  |  | 1212|   792k|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   792k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   792k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|   792k|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|   792k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 792k, False: 0]
  |  |  ------------------
  |  | 1214|   792k|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|   792k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|   792k|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|   792k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|   792k|	} \
  |  | 1216|   792k|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|   792k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|   792k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   792k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   792k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1395|       |
 1396|   792k|#line 86 "/src/igraph/src/io/gml-lexer.l"
 1397|   792k|{ BEGIN(INITIAL); return NUM; }
  ------------------
  |  |  419|   792k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(INITIAL); return NUM; }
  ------------------
  |  |  939|   792k|#define INITIAL 0
  ------------------
 1398|      0|#line 1399 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1399|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1400|  1.43M|	case 5:
  ------------------
  |  Branch (1400:2): [True: 1.43M, False: 7.30M]
  ------------------
 1401|  1.43M|YY_RULE_SETUP
  ------------------
  |  | 1211|  1.43M|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|  1.43M|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 1.43M, Folded]
  |  |  ------------------
  |  | 1212|  1.43M|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  1.43M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  1.43M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|  1.43M|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|  1.43M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 1.43M, False: 0]
  |  |  ------------------
  |  | 1214|  1.43M|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|  1.43M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|  1.43M|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|  1.43M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|  1.43M|	} \
  |  | 1216|  1.43M|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|  1.43M|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|  1.43M|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|  1.43M|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|  1.43M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1402|       |
 1403|  1.43M|#line 87 "/src/igraph/src/io/gml-lexer.l"
 1404|  1.43M|{ BEGIN(VALUE); return KEYWORD; }
  ------------------
  |  |  419|  1.43M|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(VALUE); return KEYWORD; }
  ------------------
  |  |  940|  1.43M|#define VALUE 1
  ------------------
 1405|      0|#line 1406 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1406|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1407|   386k|	case 6:
  ------------------
  |  Branch (1407:2): [True: 386k, False: 8.35M]
  ------------------
 1408|   386k|YY_RULE_SETUP
  ------------------
  |  | 1211|   386k|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|   386k|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 386k, Folded]
  |  |  ------------------
  |  | 1212|   386k|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|   386k|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|   386k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 386k, False: 0]
  |  |  ------------------
  |  | 1214|   386k|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|   386k|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|   386k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|   386k|	} \
  |  | 1216|   386k|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|   386k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|   386k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   386k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1409|       |
 1410|   386k|#line 88 "/src/igraph/src/io/gml-lexer.l"
 1411|   386k|{
 1412|   386k|                          BEGIN(INITIAL);
  ------------------
  |  |  419|   386k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
                                        BEGIN(INITIAL);
  ------------------
  |  |  939|   386k|#define INITIAL 0
  ------------------
 1413|   386k|                          yyextra->depth++;
  ------------------
  |  |  406|   386k|#define yyextra yyg->yyextra_r
  ------------------
 1414|   386k|                          if (yyextra->depth >= 32) {
  ------------------
  |  |  406|   386k|#define yyextra yyg->yyextra_r
  ------------------
  |  Branch (1414:31): [True: 0, False: 386k]
  ------------------
 1415|      0|                            return ERROR;
 1416|   386k|                          } else {
 1417|   386k|                            return LISTOPEN;
 1418|   386k|                          }
 1419|   386k|                        }
 1420|      0|#line 1421 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1421|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1422|   386k|	case 7:
  ------------------
  |  Branch (1422:2): [True: 386k, False: 8.35M]
  ------------------
 1423|   386k|YY_RULE_SETUP
  ------------------
  |  | 1211|   386k|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|   386k|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 386k, Folded]
  |  |  ------------------
  |  | 1212|   386k|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|   386k|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|   386k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 386k, False: 0]
  |  |  ------------------
  |  | 1214|   386k|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|   386k|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|   386k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|   386k|	} \
  |  | 1216|   386k|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|   386k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|   386k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   386k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   386k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1424|       |
 1425|   386k|#line 97 "/src/igraph/src/io/gml-lexer.l"
 1426|   386k|{
 1427|   386k|                          yyextra->depth--;
  ------------------
  |  |  406|   386k|#define yyextra yyg->yyextra_r
  ------------------
 1428|   386k|                          return LISTCLOSE;
 1429|   386k|                        }
 1430|      0|#line 1431 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1431|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1432|  3.23M|	case 8:
  ------------------
  |  Branch (1432:2): [True: 3.23M, False: 5.49M]
  ------------------
 1433|  3.23M|YY_RULE_SETUP
  ------------------
  |  | 1211|  3.23M|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|  3.23M|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 3.23M, Folded]
  |  |  ------------------
  |  | 1212|  3.23M|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  3.23M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  3.23M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|  3.23M|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|  3.23M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 3.23M, False: 0]
  |  |  ------------------
  |  | 1214|  3.23M|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|  3.23M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|  3.23M|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|  3.23M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|  3.23M|	} \
  |  | 1216|  3.23M|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|  3.23M|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|  3.23M|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|  3.23M|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|  3.23M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1434|       |
 1435|  3.23M|#line 101 "/src/igraph/src/io/gml-lexer.l"
 1436|  3.23M|{ /* other whitespace ignored */ }
 1437|  3.23M|#line 1438 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1438|  3.23M|	YY_BREAK
  ------------------
  |  | 1207|  3.23M|#define YY_BREAK /*LINTED*/break;
  ------------------
 1439|  2.20M|	case 9:
  ------------------
  |  Branch (1439:2): [True: 2.20M, False: 6.53M]
  ------------------
 1440|       |/* rule 9 can match eol */
 1441|  2.20M|YY_RULE_SETUP
  ------------------
  |  | 1211|  2.20M|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|  2.20M|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 2.20M, Folded]
  |  |  ------------------
  |  | 1212|  2.20M|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  2.20M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|  2.20M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|  2.20M|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|  2.20M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 2.20M, False: 0]
  |  |  ------------------
  |  | 1214|  2.20M|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|  2.20M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|  2.20M|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|  2.20M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|  2.20M|	} \
  |  | 1216|  2.20M|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|  2.20M|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|  2.20M|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|  2.20M|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|  2.20M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1442|       |
 1443|  2.20M|#line 102 "/src/igraph/src/io/gml-lexer.l"
 1444|  2.20M|{ yy_set_bol(true); /* set "beginning of line" even after \r */ }
  ------------------
  |  |  646|  2.20M|	{ \
  |  |  647|  2.20M|	if ( yy_current_buffer() == NULL ) { \
  |  |  ------------------
  |  |  |  |  603|  2.20M|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (603:31): [True: 2.20M, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  604|  2.20M|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  |  |  605|  2.20M|                          : NULL)
  |  |  ------------------
  |  |  |  Branch (647:7): [True: 0, False: 2.20M]
  |  |  ------------------
  |  |  648|      0|		yyensure_buffer_stack (yyscanner);	\
  |  |  ------------------
  |  |  |  |  115|      0|#define yyensure_buffer_stack igraph_gml_yyensure_buffer_stack
  |  |  ------------------
  |  |  649|      0|		YY_CURRENT_BUFFER_LVALUE =    \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |  650|      0|            yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
  |  |  ------------------
  |  |  |  |   49|      0|#define yy_create_buffer igraph_gml_yy_create_buffer
  |  |  ------------------
  |  |                           yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
  |  |  ------------------
  |  |  |  |  404|      0|#define yyin yyg->yyin_r
  |  |  ------------------
  |  |                           yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \
  |  |  ------------------
  |  |  |  |  693|      0|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  |  |  ------------------
  |  |  |  |  |  |  682|      0|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  651|      0|	} \
  |  |  652|  2.20M|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  |  |  ------------------
  |  |  |  |  611|  2.20M|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |  653|  2.20M|}
  ------------------
 1445|  2.20M|#line 1446 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1446|  2.20M|	YY_BREAK
  ------------------
  |  | 1207|  2.20M|#define YY_BREAK /*LINTED*/break;
  ------------------
 1447|      0|	case 10:
  ------------------
  |  Branch (1447:2): [True: 0, False: 8.73M]
  ------------------
 1448|      0|YY_RULE_SETUP
  ------------------
  |  | 1211|      0|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|      0|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 0, Folded]
  |  |  ------------------
  |  | 1212|      0|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|      0|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 1214|      0|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|      0|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|      0|	} \
  |  | 1216|      0|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1449|       |
 1450|      0|#line 104 "/src/igraph/src/io/gml-lexer.l"
 1451|      0|{ return ERROR; }
 1452|      0|#line 1453 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1453|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1454|      0|	case 11:
  ------------------
  |  Branch (1454:2): [True: 0, False: 8.73M]
  ------------------
 1455|       |/* rule 11 can match eol */
 1456|      0|YY_RULE_SETUP
  ------------------
  |  | 1211|      0|		if ( ! YY_MORE_ADJ ) \
  |  |  ------------------
  |  |  |  |  870|      0|#define YY_MORE_ADJ 0
  |  |  ------------------
  |  |  |  Branch (1211:8): [True: 0, Folded]
  |  |  ------------------
  |  | 1212|      0|		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               		YY_CURRENT_BUFFER_LVALUE->yy_at_bol_before_match = YY_CURRENT_BUFFER_LVALUE->yy_at_bol; \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  | 1213|      0|	if ( yyleng > 0 ) {  \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  |  Branch (1213:7): [True: 0, False: 0]
  |  |  ------------------
  |  | 1214|      0|	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  408|      0|#define yytext yyg->yytext_r
  |  |  ------------------
  |  |               	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
  |  |  ------------------
  |  |  |  |  407|      0|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  | 1215|      0|	} \
  |  | 1216|      0|	YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  924|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  999|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1457|       |
 1458|      0|YY_FATAL_ERROR("flex scanner jammed");
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1459|      0|	YY_BREAK
  ------------------
  |  | 1207|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1460|      0|#line 1461 "/src/igraph/build/src/io/parsers/gml-lexer.c"
 1461|  3.33k|	case YY_STATE_EOF(INITIAL):
  ------------------
  |  |  427|  3.33k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.33k|#define YY_END_OF_BUFFER 12
  |  |  ------------------
  ------------------
  |  Branch (1461:2): [True: 3.33k, False: 8.73M]
  ------------------
 1462|       |
 1463|  3.33k|	;
 1464|  3.33k|	#if defined(__has_attribute)
 1465|  3.33k|	#if __has_attribute(__fallthrough__)
 1466|  3.33k|	__attribute__((__fallthrough__));
 1467|       |	#elif defined(__has_cpp_attribute)
 1468|       |	#if __has_cpp_attribute(__fallthrough__)
 1469|       |	[[__fallthrough__]];
 1470|       |	#endif
 1471|       |	#endif
 1472|       |	#elif defined(__has_cpp_attribute)
 1473|       |	#if __has_cpp_attribute(__fallthrough__)
 1474|       |	[[__fallthrough__]];
 1475|       |	#endif
 1476|       |	#endif
 1477|       |
 1478|  3.33k|	case YY_STATE_EOF(VALUE):
  ------------------
  |  |  427|  3.33k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.33k|#define YY_END_OF_BUFFER 12
  |  |  ------------------
  ------------------
  |  Branch (1478:2): [True: 0, False: 8.73M]
  ------------------
 1479|  3.33k|		yyterminate();
  ------------------
  |  | 1175|  3.33k|#define yyterminate() return YY_NULL
  |  |  ------------------
  |  |  |  |  389|  3.33k|#define YY_NULL 0
  |  |  ------------------
  ------------------
 1480|       |
 1481|  35.2k|			case YY_END_OF_BUFFER:
  ------------------
  |  |  705|  35.2k|#define YY_END_OF_BUFFER 12
  ------------------
  |  Branch (1481:4): [True: 35.2k, False: 8.70M]
  ------------------
 1482|  35.2k|			{
 1483|       |				/* Amount of text matched not including the EOB char. */
 1484|  35.2k|				int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  ------------------
  |  |  669|  35.2k|#define yytext_ptr yytext_r
  ------------------
 1485|       |
 1486|       |				/* Undo the effects of YY_DO_BEFORE_ACTION. */
 1487|  35.2k|				*yy_cp = yyg->yy_hold_char;
 1488|  35.2k|				YY_RESTORE_YY_MORE_OFFSET
 1489|       |
 1490|  35.2k|				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  580|  35.2k|#define YY_BUFFER_NEW 0
  ------------------
  |  Branch (1490:10): [True: 3.33k, False: 31.8k]
  ------------------
 1491|       |					/* We're scanning a new file or input source.  It's
 1492|       |					 * possible that this happened because the user
 1493|       |					 * just pointed yyin at a new source and called
 1494|       |					 * yylex().  If so, then we have to assure
 1495|       |					 * consistency between yy_current_buffer() and our
 1496|       |					 * globals.  Here is the right place to do so, because
 1497|       |					 * this is the first action (other than possibly a
 1498|       |					 * back-up) that will match for the new input source.
 1499|       |					 */
 1500|  3.33k|					yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1501|       |
 1502|  3.33k|					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
 1503|       |
 1504|  3.33k|					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  581|  3.33k|#define YY_BUFFER_NORMAL 1
  ------------------
 1505|  3.33k|				}
 1506|       |
 1507|       |				/* Note that here we test for yy_c_buf_p "<=" to the position
 1508|       |				 * of the first EOB in the buffer, since yy_c_buf_p will
 1509|       |				 * already have been incremented past the NUL character
 1510|       |				 * (since all states make transitions on EOB to the
 1511|       |				 * end-of-buffer state).  Contrast this with the test
 1512|       |				 * in input().
 1513|       |				 */
 1514|  35.2k|				if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) { /* This was really a NUL. */
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1514:10): [True: 0, False: 35.2k]
  ------------------
 1515|      0|					yy_state_type yy_next_state;
 1516|       |
 1517|      0|					yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
 1518|       |
 1519|      0|					yy_current_state = yy_get_previous_state( yyscanner );
 1520|       |
 1521|       |					/* Okay, we're now positioned to make the NUL
 1522|       |					 * transition.  We couldn't have
 1523|       |					 * yy_get_previous_state() go ahead and do it
 1524|       |					 * for us because it doesn't know how to deal
 1525|       |					 * with the possibility of jamming (and we don't
 1526|       |					 * want to build jamming into it because then it
 1527|       |					 * will run more slowly).
 1528|       |					 */
 1529|       |
 1530|      0|					yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
 1531|       |
 1532|      0|					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  870|      0|#define YY_MORE_ADJ 0
  ------------------
 1533|       |
 1534|      0|					if ( yy_next_state ) {
  ------------------
  |  Branch (1534:11): [True: 0, False: 0]
  ------------------
 1535|       |						/* Consume the NUL. */
 1536|      0|						yy_cp = ++yyg->yy_c_buf_p;
 1537|      0|						yy_current_state = yy_next_state;
 1538|      0|						goto yy_match;
 1539|      0|					} else {
 1540|       |						
 1541|       |						/* Still need to initialize yy_cp, though
 1542|       |						 * yy_current_state was set up by
 1543|       |						 * yy_get_previous_state().
 1544|       |						 */
 1545|      0|						yy_cp = yyg->yy_c_buf_p;
 1546|       |
 1547|      0|						goto yy_find_action;
 1548|      0|					}
 1549|  35.2k|				} else {	/* not a NUL */
 1550|  35.2k|					switch ( yy_get_next_buffer( yyscanner ) ) {
 1551|  3.33k|					case EOB_ACT_END_OF_FILE:
  ------------------
  |  |  475|  3.33k|#define EOB_ACT_END_OF_FILE 1
  ------------------
  |  Branch (1551:6): [True: 3.33k, False: 31.8k]
  ------------------
 1552|  3.33k|						yyg->yy_did_buffer_switch_on_eof = 0;
 1553|       |
 1554|  3.33k|						if ( yywrap( yyscanner ) ) {
  ------------------
  |  |  245|  3.33k|#define yywrap igraph_gml_yywrap
  |  |  ------------------
  |  |  |  |  657|  3.33k|#define igraph_gml_yywrap(yyscanner) (/*CONSTCOND*/1)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (657:38): [True: 3.33k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1555|       |							/* Note: because we've taken care in
 1556|       |							 * yy_get_next_buffer() to have set up
 1557|       |							 * yytext, we can now set up
 1558|       |							 * yy_c_buf_p so that if some total
 1559|       |							 * hoser (like flex itself) wants to
 1560|       |							 * call the scanner after we return the
 1561|       |							 * YY_NULL, it'll still work - another
 1562|       |							 * YY_NULL will get returned.
 1563|       |							 */
 1564|  3.33k|							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  3.33k|#define yytext_ptr yytext_r
  ------------------
              							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  870|  3.33k|#define YY_MORE_ADJ 0
  ------------------
 1565|       |
 1566|  3.33k|							yy_act = YY_STATE_EOF(YY_START);
  ------------------
  |  |  427|  3.33k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.33k|#define YY_END_OF_BUFFER 12
  |  |  ------------------
  ------------------
 1567|  3.33k|							goto do_action;
 1568|  3.33k|						} else {
 1569|      0|							if ( ! yyg->yy_did_buffer_switch_on_eof ) {
  ------------------
  |  Branch (1569:13): [True: 0, False: 0]
  ------------------
 1570|      0|								YY_NEW_FILE;
  ------------------
  |  |  429|      0|#define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  127|      0|#define yyrestart igraph_gml_yyrestart
  |  |  ------------------
  |  |               #define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  404|      0|#define yyin yyg->yyin_r
  |  |  ------------------
  ------------------
 1571|      0|							}
 1572|      0|						}
 1573|      0|						break;
 1574|  28.5k|					case EOB_ACT_CONTINUE_SCAN:
  ------------------
  |  |  474|  28.5k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
  |  Branch (1574:6): [True: 28.5k, False: 6.67k]
  ------------------
 1575|  28.5k|						yyg->yy_c_buf_p =
 1576|  28.5k|							yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|  28.5k|#define yytext_ptr yytext_r
  ------------------
 1577|       |
 1578|  28.5k|						yy_current_state = yy_get_previous_state( yyscanner );
 1579|       |
 1580|  28.5k|						yy_cp = yyg->yy_c_buf_p;
 1581|  28.5k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  28.5k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  870|  28.5k|#define YY_MORE_ADJ 0
  ------------------
 1582|  28.5k|						goto yy_match;
 1583|       |
 1584|  3.33k|					case EOB_ACT_LAST_MATCH:
  ------------------
  |  |  476|  3.33k|#define EOB_ACT_LAST_MATCH 2
  ------------------
  |  Branch (1584:6): [True: 3.33k, False: 31.8k]
  ------------------
 1585|  3.33k|						yyg->yy_c_buf_p =
 1586|  3.33k|						&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1587|       |
 1588|  3.33k|						yy_current_state = yy_get_previous_state( yyscanner );
 1589|       |
 1590|  3.33k|						yy_cp = yyg->yy_c_buf_p;
 1591|  3.33k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  3.33k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  870|  3.33k|#define YY_MORE_ADJ 0
  ------------------
 1592|  3.33k|						goto yy_find_action;
 1593|      0|					default:
  ------------------
  |  Branch (1593:6): [True: 0, False: 35.2k]
  ------------------
 1594|      0|						YY_FATAL_ERROR("unexpected return value from yy_get_next_buffer()");
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1595|  35.2k|					} /* end EOB inner switch */
 1596|  35.2k|				} /* end if */
 1597|      0|				break;
 1598|  35.2k|			} /* case YY_END_OF_BUFFER */
 1599|      0|			default:
  ------------------
  |  Branch (1599:4): [True: 0, False: 8.73M]
  ------------------
 1600|      0|				YY_FATAL_ERROR("fatal flex scanner internal error--no action found" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1601|  8.73M|			} /* end of action switch */
 1602|  8.73M|		} /* end of scanning one token */
 1603|  3.25M|	} /* end of user's declarations */
 1604|  3.25M|} /* end of yylex */
igraph_gml_yyrestart:
 1968|  3.33k|{
 1969|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1970|       |
 1971|  3.33k|	if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.33k, False: 0]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
  |  Branch (1971:7): [True: 0, False: 3.33k]
  ------------------
 1972|      0|		yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|      0|#define yyensure_buffer_stack igraph_gml_yyensure_buffer_stack
  ------------------
 1973|      0|		YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1974|      0|	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|      0|#define yy_create_buffer igraph_gml_yy_create_buffer
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|      0|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|      0|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1975|      0|	}
 1976|       |
 1977|  3.33k|	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |   79|  3.33k|#define yy_init_buffer igraph_gml_yy_init_buffer
  ------------------
              	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1978|  3.33k|	yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.33k|#define yy_load_buffer_state igraph_gml_yy_load_buffer_state
  ------------------
 1979|       |
 1980|       |	/* We don't actually know whether we did this switch during
 1981|       |	 * EOF (yywrap()) processing, but the only time this flag
 1982|       |	 * is looked at is after yywrap() is called, so it's safe
 1983|       |	 * to go ahead and always set it.
 1984|       |	 */
 1985|  3.33k|	yyg->yy_did_buffer_switch_on_eof = 1;
 1986|  3.33k|}
igraph_gml_yy_create_buffer:
 2048|  3.33k|{
 2049|  3.33k|	yybuffer b;
 2050|       |
 2051|  3.33k|	b = (yybuffer) yyalloc( sizeof( *b ) , yyscanner );
  ------------------
  |  |  275|  3.33k|#define yyalloc igraph_gml_yyalloc
  ------------------
 2052|  3.33k|	if (  b == NULL ) {
  ------------------
  |  Branch (2052:8): [True: 0, False: 3.33k]
  ------------------
 2053|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2054|      0|	}
 2055|  3.33k|	b->yy_buf_size = size;
 2056|       |
 2057|       |	/* yy_ch_buf has to be 2 characters longer than the size given because
 2058|       |	 * we need to put in 2 end-of-buffer characters.
 2059|       |	 */
 2060|  3.33k|	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
  ------------------
  |  |  275|  3.33k|#define yyalloc igraph_gml_yyalloc
  ------------------
 2061|  3.33k|	if ( b->yy_ch_buf == NULL ) {
  ------------------
  |  Branch (2061:7): [True: 0, False: 3.33k]
  ------------------
 2062|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2063|      0|	}
 2064|  3.33k|	b->yy_is_our_buffer = 1;
 2065|       |
 2066|  3.33k|	yy_init_buffer( b, file , yyscanner);
  ------------------
  |  |   79|  3.33k|#define yy_init_buffer igraph_gml_yy_init_buffer
  ------------------
 2067|       |
 2068|  3.33k|	return b;
 2069|  3.33k|}
igraph_gml_yy_delete_buffer:
 2078|  3.33k|{
 2079|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2080|       |
 2081|  3.33k|	if ( b == NULL ) {
  ------------------
  |  Branch (2081:7): [True: 0, False: 3.33k]
  ------------------
 2082|      0|		return;
 2083|      0|	}
 2084|  3.33k|	if ( b == yy_current_buffer() ) {	/* Not sure if we should pop here. */
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.33k, False: 0]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
  |  Branch (2084:7): [True: 3.33k, False: 0]
  ------------------
 2085|  3.33k|		YY_CURRENT_BUFFER_LVALUE = (yybuffer) 0;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2086|  3.33k|	}
 2087|  3.33k|	if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (2087:7): [True: 3.33k, False: 0]
  ------------------
 2088|  3.33k|		yyfree( (void *) b->yy_ch_buf , yyscanner );
  ------------------
  |  |  287|  3.33k|#define yyfree igraph_gml_yyfree
  ------------------
 2089|  3.33k|	}
 2090|  3.33k|	yyfree( (void *) b , yyscanner );
  ------------------
  |  |  287|  3.33k|#define yyfree igraph_gml_yyfree
  ------------------
 2091|  3.33k|}
igraph_gml_yy_flush_buffer:
 2145|  6.67k|{
 2146|  6.67k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2147|  6.67k|	if ( b == NULL ) {
  ------------------
  |  Branch (2147:7): [True: 0, False: 6.67k]
  ------------------
 2148|      0|		return;
 2149|      0|	}
 2150|  6.67k|	b->yy_n_chars = 0;
 2151|       |
 2152|       |	/* We always need two end-of-buffer characters.  The first causes
 2153|       |	 * a transition to the end-of-buffer state.  The second causes
 2154|       |	 * a jam in that state.
 2155|       |	 */
 2156|  6.67k|	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.67k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2157|  6.67k|	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.67k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2158|       |
 2159|  6.67k|	b->yy_buf_pos = &b->yy_ch_buf[0];
 2160|       |
 2161|  6.67k|	b->yy_at_bol = 1;
 2162|  6.67k|	b->yy_at_bol_before_match = 1;
 2163|  6.67k|	b->yy_buffer_status = YY_BUFFER_NEW;
  ------------------
  |  |  580|  6.67k|#define YY_BUFFER_NEW 0
  ------------------
 2164|       |
 2165|  6.67k|	if ( b == yy_current_buffer() ) {
  ------------------
  |  |  603|  6.67k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.67k, False: 0]
  |  |  ------------------
  |  |  604|  6.67k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.67k|                          : NULL)
  ------------------
  |  Branch (2165:7): [True: 3.33k, False: 3.33k]
  ------------------
 2166|  3.33k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.33k|#define yy_load_buffer_state igraph_gml_yy_load_buffer_state
  ------------------
 2167|  3.33k|	}
 2168|  6.67k|}
igraph_gml_yypop_buffer_state:
 2214|  3.33k|{
 2215|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2216|  3.33k|	if (yy_current_buffer() == NULL) {
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.33k, False: 0]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
  |  Branch (2216:6): [True: 0, False: 3.33k]
  ------------------
 2217|      0|		return;
 2218|      0|	}
 2219|  3.33k|	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |   55|  3.33k|#define yy_delete_buffer igraph_gml_yy_delete_buffer
  ------------------
              	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.33k, False: 0]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
 2220|  3.33k|	YY_CURRENT_BUFFER_LVALUE = NULL;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2221|  3.33k|	if (yyg->yy_buffer_stack_top > 0) {
  ------------------
  |  Branch (2221:6): [True: 0, False: 3.33k]
  ------------------
 2222|      0|		--yyg->yy_buffer_stack_top;
 2223|      0|	}
 2224|  3.33k|	if (yy_current_buffer() != NULL) {
  ------------------
  |  |  603|  3.33k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.33k, False: 0]
  |  |  ------------------
  |  |  604|  3.33k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.33k|                          : NULL)
  ------------------
  |  Branch (2224:6): [True: 0, False: 3.33k]
  ------------------
 2225|      0|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|      0|#define yy_load_buffer_state igraph_gml_yy_load_buffer_state
  ------------------
 2226|      0|		yyg->yy_did_buffer_switch_on_eof = 1;
 2227|      0|	}
 2228|  3.33k|}
igraph_gml_yyget_leng:
 2447|  2.48M|int yyget_leng  (yyscan_t yyscanner) {
 2448|  2.48M|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2449|  2.48M|	return yyleng;
  ------------------
  |  |  407|  2.48M|#define yyleng yyg->yyleng_r
  ------------------
 2450|  2.48M|}
igraph_gml_yyget_text:
 2456|  2.48M|char *yyget_text  (yyscan_t yyscanner) {
 2457|  2.48M|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2458|  2.48M|	return yytext;
  ------------------
  |  |  408|  2.48M|#define yytext yyg->yytext_r
  ------------------
 2459|  2.48M|}
igraph_gml_yyset_extra:
 2465|  6.67k|void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner) {
 2466|  6.67k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2467|  6.67k|	yyextra = user_defined ;
  ------------------
  |  |  406|  6.67k|#define yyextra yyg->yyextra_r
  ------------------
 2468|  6.67k|}
igraph_gml_yyset_in:
 2506|  3.33k|void yyset_in (FILE *  _in_str , yyscan_t yyscanner) {
 2507|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2508|  3.33k|	yyin = _in_str ;
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
 2509|  3.33k|}
igraph_gml_yylex_init_extra:
 2580|  3.33k|int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) {
 2581|  3.33k|	struct yyguts_t dummy_yyguts;
 2582|       |
 2583|  3.33k|	yyset_extra (yy_user_defined, &dummy_yyguts);
  ------------------
  |  |  169|  3.33k|#define yyset_extra igraph_gml_yyset_extra
  ------------------
 2584|       |
 2585|  3.33k|	if (ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2585:6): [True: 0, False: 3.33k]
  ------------------
 2586|      0|		errno = EINVAL;
 2587|      0|		return 1;
 2588|      0|	}
 2589|       |
 2590|  3.33k|	*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
  ------------------
  |  |  275|  3.33k|#define yyalloc igraph_gml_yyalloc
  ------------------
 2591|       |
 2592|  3.33k|	if (*ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2592:6): [True: 0, False: 3.33k]
  ------------------
 2593|      0|		errno = ENOMEM;
 2594|      0|		return 1;
 2595|      0|	}
 2596|       |
 2597|       |	/* By setting to 0xAA, we expose bugs in
 2598|       |	   yy_init_globals. Leave at 0x00 for releases. */
 2599|  3.33k|	memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
 2600|       |
 2601|  3.33k|	yyset_extra (yy_user_defined, *ptr_yy_globals);
  ------------------
  |  |  169|  3.33k|#define yyset_extra igraph_gml_yyset_extra
  ------------------
 2602|       |
 2603|  3.33k|	return yy_init_globals ( *ptr_yy_globals );
 2604|  3.33k|}
igraph_gml_yylex_destroy:
 2639|  3.33k|int yylex_destroy  (yyscan_t yyscanner) {
 2640|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2641|       |
 2642|       |	/* Pop the buffer stack, destroying each element. */
 2643|  6.67k|	while(yy_current_buffer()) {
  ------------------
  |  |  603|  6.67k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:29): [True: 3.33k, False: 3.33k]
  |  |  |  Branch (603:31): [True: 6.67k, False: 0]
  |  |  ------------------
  |  |  604|  6.67k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.67k|                          : NULL)
  ------------------
 2644|  3.33k|		yypop_buffer_state(yyscanner);
  ------------------
  |  |  109|  3.33k|#define yypop_buffer_state igraph_gml_yypop_buffer_state
  ------------------
 2645|  3.33k|	}
 2646|       |
 2647|       |	/* Destroy the stack itself. */
 2648|  3.33k|	yyfree(yyg->yy_buffer_stack , yyscanner);
  ------------------
  |  |  287|  3.33k|#define yyfree igraph_gml_yyfree
  ------------------
 2649|  3.33k|	yyg->yy_buffer_stack = NULL;
 2650|       |
 2651|       |	/* Destroy the start condition stack. */
 2652|  3.33k|        yyfree( yyg->yy_start_stack , yyscanner );
  ------------------
  |  |  287|  3.33k|#define yyfree igraph_gml_yyfree
  ------------------
 2653|  3.33k|        yyg->yy_start_stack = NULL;
 2654|       |
 2655|       |	/* Reset the globals. This is important in a non-reentrant scanner so the next time
 2656|       |	 * yylex() is called, initialization will occur. */
 2657|  3.33k|	yy_init_globals( yyscanner);
 2658|       |
 2659|       |	/* Destroy the main struct (reentrant only). */
 2660|  3.33k|	yyfree ( yyscanner , yyscanner );
  ------------------
  |  |  287|  3.33k|#define yyfree igraph_gml_yyfree
  ------------------
 2661|  3.33k|	yyscanner = NULL;
 2662|       |
 2663|  3.33k|	return 0;
 2664|  3.33k|}
igraph_gml_yyalloc:
 2693|  13.3k|void *yyalloc (yy_size_t  size , yyscan_t yyscanner) {
 2694|  13.3k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2695|  13.3k|	(void)yyg;
 2696|  13.3k|	return malloc(size);
 2697|  13.3k|}
igraph_gml_yyrealloc:
 2699|    432|void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner) {
 2700|    432|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2701|    432|	(void)yyg;
 2702|       |
 2703|       |	/* The cast to (char *) in the following accommodates both
 2704|       |	 * implementations that use char* generic pointers, and those
 2705|       |	 * that use void* generic pointers.  It works with the latter
 2706|       |	 * because both ANSI C and C++ allow castless assignment from
 2707|       |	 * any pointer type to void*, and deal with argument conversions
 2708|       |	 * as though doing an assignment.
 2709|       |	 */
 2710|    432|	return realloc(ptr, size);
 2711|    432|}
igraph_gml_yyfree:
 2713|  16.6k|void yyfree (void * ptr , yyscan_t yyscanner) {
 2714|  16.6k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2715|  16.6k|	(void)yyg;
 2716|  16.6k|	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
 2717|  16.6k|}
gml-lexer.c:yy_get_next_buffer:
 1616|  35.2k|{
 1617|  35.2k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1618|  35.2k|	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1619|  35.2k|	char *source = yyg->yytext_ptr;
  ------------------
  |  |  669|  35.2k|#define yytext_ptr yytext_r
  ------------------
 1620|  35.2k|	int number_to_move, i;
 1621|  35.2k|	int ret_val;
 1622|       |
 1623|  35.2k|	if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) {
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1623:7): [True: 0, False: 35.2k]
  ------------------
 1624|      0|		YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1625|      0|	}
 1626|  35.2k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) {
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1626:7): [True: 0, False: 35.2k]
  ------------------
 1627|       |		/* Don't try to fill the buffer, so this is an EOF. */
 1628|      0|		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  870|      0|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1628:8): [True: 0, False: 0]
  ------------------
 1629|       |			/* We matched a single character, the EOB, so
 1630|       |			 * treat this as a final EOF.
 1631|       |			 */
 1632|      0|			return EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|      0|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1633|      0|		} else {
 1634|       |			/* We matched some text prior to the EOB, first
 1635|       |			 * process it.
 1636|       |			 */
 1637|      0|			return EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|      0|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1638|      0|		}
 1639|      0|	}
 1640|       |
 1641|       |	/* Try to read more data. */
 1642|       |
 1643|       |	/* First move last chars to start of buffer. */
 1644|  35.2k|	number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
  ------------------
  |  |  669|  35.2k|#define yytext_ptr yytext_r
  ------------------
 1645|       |
 1646|  1.96G|	for ( i = 0; i < number_to_move; ++i ) {
  ------------------
  |  Branch (1646:15): [True: 1.96G, False: 35.2k]
  ------------------
 1647|  1.96G|		*(dest++) = *(source++);
 1648|  1.96G|	}
 1649|  35.2k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  592|  35.2k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
  |  Branch (1649:7): [True: 3.33k, False: 31.8k]
  ------------------
 1650|       |		/* don't do the read, it's not guaranteed to return an EOF,
 1651|       |		 * just force an EOF
 1652|       |		 */
 1653|  3.33k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1654|  31.8k|	} else {
 1655|  31.8k|		int num_to_read =
 1656|  31.8k|			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  ------------------
  |  |  611|  31.8k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1657|       |
 1658|  32.3k|		while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */
  ------------------
  |  Branch (1658:11): [True: 432, False: 31.8k]
  ------------------
 1659|       |
 1660|       |			/* just a shorter name for the current buffer */
 1661|    432|			yybuffer b = YY_CURRENT_BUFFER_LVALUE;
  ------------------
  |  |  611|    432|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1662|       |
 1663|    432|			int yy_c_buf_p_offset =
 1664|    432|				(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
 1665|       |
 1666|    432|			if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (1666:9): [True: 432, False: 0]
  ------------------
 1667|    432|				int new_size = b->yy_buf_size * 2;
 1668|       |
 1669|    432|				if ( new_size <= 0 ) {
  ------------------
  |  Branch (1669:10): [True: 0, False: 432]
  ------------------
 1670|      0|					b->yy_buf_size += b->yy_buf_size / 8;
 1671|    432|				} else {
 1672|    432|					b->yy_buf_size *= 2;
 1673|    432|				}
 1674|    432|				b->yy_ch_buf = (char *)
 1675|       |					/* Include room in for 2 EOB chars. */
 1676|    432|					yyrealloc( (void *) b->yy_ch_buf,
  ------------------
  |  |  281|    432|#define yyrealloc igraph_gml_yyrealloc
  ------------------
 1677|    432|							 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
 1678|    432|			} else {
 1679|       |				/* Can't grow it, we don't own it. */
 1680|      0|				b->yy_ch_buf = NULL;
 1681|      0|			}
 1682|    432|			if ( ! b->yy_ch_buf ) {
  ------------------
  |  Branch (1682:9): [True: 0, False: 432]
  ------------------
 1683|      0|				YY_FATAL_ERROR(
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1684|      0|				"fatal error - scanner input buffer overflow" );
 1685|      0|			}
 1686|    432|			yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
 1687|       |
 1688|    432|			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  ------------------
  |  |  611|    432|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1689|    432|						number_to_move - 1;
 1690|       |
 1691|    432|		}
 1692|       |
 1693|  31.8k|		if ( num_to_read > YY_READ_BUF_SIZE ) {
  ------------------
  |  |  682|  31.8k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
  |  Branch (1693:8): [True: 29.6k, False: 2.19k]
  ------------------
 1694|  29.6k|			num_to_read = YY_READ_BUF_SIZE;
  ------------------
  |  |  682|  29.6k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
 1695|  29.6k|		}
 1696|       |		/* Read in more data. */
 1697|  31.8k|		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  ------------------
  |  | 1126|  31.8k|#define YY_INPUT(buf,result,max_size) do {result = yyread(buf, max_size , yyscanner);} while (0)
  |  |  ------------------
  |  |  |  Branch (1126:95): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
 1698|  31.8k|			yyg->yy_n_chars, num_to_read );
 1699|       |
 1700|  31.8k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  ------------------
  |  |  611|  31.8k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1701|  31.8k|	}
 1702|       |
 1703|  35.2k|	if ( yyg->yy_n_chars == 0 ) {
  ------------------
  |  Branch (1703:7): [True: 6.67k, False: 28.5k]
  ------------------
 1704|  6.67k|		if ( number_to_move == YY_MORE_ADJ ) {
  ------------------
  |  |  870|  6.67k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1704:8): [True: 3.33k, False: 3.33k]
  ------------------
 1705|  3.33k|			ret_val = EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|  3.33k|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1706|  3.33k|			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  127|  3.33k|#define yyrestart igraph_gml_yyrestart
  ------------------
              			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
 1707|  3.33k|		} else {
 1708|  3.33k|			ret_val = EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|  3.33k|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1709|  3.33k|			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  ------------------
  |  |  611|  3.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1710|  3.33k|				YY_BUFFER_EOF_PENDING;
  ------------------
  |  |  592|  3.33k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
 1711|  3.33k|		}
 1712|  28.5k|	} else {
 1713|  28.5k|		ret_val = EOB_ACT_CONTINUE_SCAN;
  ------------------
  |  |  474|  28.5k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
 1714|  28.5k|	}
 1715|  35.2k|	if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1715:6): [True: 0, False: 35.2k]
  ------------------
 1716|       |		/* Extend the array by 50%, plus the number we really need. */
 1717|      0|		int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1) + 2;
 1718|      0|		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  281|      0|#define yyrealloc igraph_gml_yyrealloc
  ------------------
 1719|      0|			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1720|      0|		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) {
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1720:8): [True: 0, False: 0]
  ------------------
 1721|      0|			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1722|      0|		}
 1723|       |		/* "- 2" to take care of EOB's */
 1724|      0|		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1725|      0|	}
 1726|       |
 1727|  35.2k|	yyg->yy_n_chars += number_to_move;
 1728|  35.2k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  35.2k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1729|  35.2k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  35.2k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1730|       |
 1731|  35.2k|	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  669|  35.2k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  611|  35.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1732|       |
 1733|  35.2k|	return ret_val;
 1734|  35.2k|}
gml-lexer.c:yyread:
 1135|  31.8k|static int yyread(char *buf, size_t max_size , yyscan_t yyscanner) {
 1136|       |
 1137|  31.8k|	int result;
 1138|  31.8k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1139|       |
 1140|  31.8k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) {
  ------------------
  |  |  611|  31.8k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1140:7): [True: 0, False: 31.8k]
  ------------------
 1141|      0|		int c = '*';
 1142|      0|		yy_size_t n;
 1143|      0|		for ( n = 0; n < max_size &&
  ------------------
  |  Branch (1143:16): [True: 0, False: 0]
  ------------------
 1144|      0|			      (c = getc( yyin )) != EOF && c != '\n'; ++n ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1144:10): [True: 0, False: 0]
  |  Branch (1144:39): [True: 0, False: 0]
  ------------------
 1145|      0|			buf[n] = (char) c;
 1146|      0|		}
 1147|      0|		if ( c == '\n' ) {
  ------------------
  |  Branch (1147:8): [True: 0, False: 0]
  ------------------
 1148|      0|			buf[n++] = (char) c;
 1149|      0|		}
 1150|      0|		if ( c == EOF && ferror( yyin ) ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1150:8): [True: 0, False: 0]
  |  Branch (1150:20): [True: 0, False: 0]
  ------------------
 1151|      0|			YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1152|      0|		}
 1153|      0|		result = n;
 1154|  31.8k|	} else {
 1155|  31.8k|		errno=0;
 1156|  31.8k|		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  31.8k|#define yyin yyg->yyin_r
  ------------------
              		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  3.33k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1156:11): [True: 3.33k, False: 28.5k]
  |  Branch (1156:78): [True: 0, False: 3.33k]
  ------------------
 1157|      0|			if( errno != EINTR) {
  ------------------
  |  Branch (1157:8): [True: 0, False: 0]
  ------------------
 1158|      0|				YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1159|      0|				break;
 1160|      0|			}
 1161|      0|			errno=0;
 1162|      0|			clearerr(yyin);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1163|      0|		}
 1164|  31.8k|	}
 1165|       |
 1166|  31.8k|	 return result;
 1167|  31.8k|}
gml-lexer.c:yy_get_previous_state:
 1740|  31.8k|{
 1741|  31.8k|	yy_state_type yy_current_state;
 1742|  31.8k|	char *yy_cp;
 1743|  31.8k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1744|       |
 1745|       |	/* Generate the code to find the start state. */
 1746|       |
 1747|  31.8k|			yy_current_state = yyg->yy_start;
 1748|  31.8k|yy_current_state += YY_AT_BOL();
  ------------------
  |  |  644|  31.8k|#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  |  |  ------------------
  |  |  |  |  611|  31.8k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1749|       |			/* Set up for storing up states. */
 1750|       |			
 1751|  1.96G|	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  669|  31.8k|#define yytext_ptr yytext_r
  ------------------
              	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  870|  31.8k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1751:47): [True: 1.96G, False: 31.8k]
  ------------------
 1752|       |		/* Generate the code to find the next state. */
 1753|       |		
 1754|  1.96G|	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  394|  1.96G|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
              	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  708|      0|#define YY_NUL_EC 23
  ------------------
  |  Branch (1754:14): [True: 1.96G, False: 0]
  ------------------
 1755|       |	/* Save the backing-up info \before/ computing the next state
 1756|       |	 * because we always compute one more state than needed - we
 1757|       |	 * always proceed until we reach a jam state
 1758|       |	 */
 1759|       |	
 1760|       |		/* Generate code to keep backing-up information. */
 1761|       |
 1762|  1.96G|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1762:8): [True: 56.3M, False: 1.90G]
  ------------------
 1763|       |
 1764|  56.3M|			yyg->yy_last_accepting_state = yy_current_state;
 1765|  56.3M|			yyg->yy_last_accepting_cpos = yy_cp;
 1766|  56.3M|		}
 1767|       |
 1768|  3.92G|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1768:10): [True: 1.96G, False: 1.96G]
  ------------------
 1769|  1.96G|		yy_current_state = (int) yy_def[yy_current_state];
 1770|       |
 1771|       |		/* We've arranged it so that templates are never chained
 1772|       |		 * to one another.  This means we can afford to make a
 1773|       |		 * very simple test to see if we need to convert to
 1774|       |		 * yy_c's meta-equivalence class without worrying
 1775|       |		 * about erroneously looking up the meta-equivalence
 1776|       |		 * class twice
 1777|       |		 */
 1778|       |
 1779|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1780|  1.96G|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|  1.96G|#define YY_JAMSTATE 42
  ------------------
  |  Branch (1780:7): [True: 1.96G, False: 22.1k]
  ------------------
 1781|  1.96G|			yy_c = yy_meta[yy_c];
 1782|  1.96G|		}
 1783|       |
 1784|  1.96G|	}
 1785|  1.96G|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1786|       |
 1787|  1.96G|	}
 1788|       |
 1789|  31.8k|	return yy_current_state;
 1790|  31.8k|}
gml-lexer.c:igraph_gml_yy_load_buffer_state:
 2027|  10.0k|{
 2028|  10.0k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2029|  10.0k|	yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  10.0k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2030|  10.0k|	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  669|  10.0k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  611|  10.0k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2031|       |
 2032|  10.0k|	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  404|  10.0k|#define yyin yyg->yyin_r
  ------------------
              	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  611|  10.0k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2033|       |
 2034|  10.0k|	yyg->yy_hold_char = *yyg->yy_c_buf_p;
 2035|  10.0k|	yyg->yy_hold_ptr = yyg->yy_c_buf_p;
 2036|       |
 2037|  10.0k|}
gml-lexer.c:igraph_gml_yy_init_buffer:
 2100|  6.67k|{
 2101|  6.67k|	int oerrno = errno;
 2102|  6.67k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2103|       |
 2104|  6.67k|	yy_flush_buffer( b , yyscanner);
  ------------------
  |  |   85|  6.67k|#define yy_flush_buffer igraph_gml_yy_flush_buffer
  ------------------
 2105|       |
 2106|  6.67k|	b->yy_input_file = file;
 2107|       |
 2108|  6.67k|#ifdef YY_INPUT_IS_OURS
 2109|       |    /* b->yy_input_file should never by NULL but we'll handle it cleanly
 2110|       |	 * on the off chance.
 2111|       |	 */
 2112|  6.67k|	if (b->yy_input_file == NULL){
  ------------------
  |  Branch (2112:6): [True: 0, False: 6.67k]
  ------------------
 2113|      0|	  b->yy_fill_buffer = 0;
 2114|  6.67k|	} else {
 2115|  6.67k|	  b->yy_fill_buffer = 1;
 2116|  6.67k|	}
 2117|       |#else
 2118|       |	/* A user-defined YY_INPUT or yyread() need not read the FILE at
 2119|       |	 * all, so a NULL file does not mean there is nothing to read.
 2120|       |	 */
 2121|       |	b->yy_fill_buffer = 1;
 2122|       |#endif
 2123|       |
 2124|       |	/* If b is the current buffer, then yy_init_buffer was _probably_
 2125|       |	 * called from yyrestart() or through yy_get_next_buffer.
 2126|       |	 * In that case, we don't want to reset the lineno or column.
 2127|       |	 */
 2128|  6.67k|	if (b != yy_current_buffer()) {
  ------------------
  |  |  603|  6.67k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.67k, False: 0]
  |  |  ------------------
  |  |  604|  6.67k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.67k|                          : NULL)
  ------------------
  |  Branch (2128:6): [True: 3.33k, False: 3.33k]
  ------------------
 2129|  3.33k|		b->yy_bs_lineno = 1;
 2130|  3.33k|		b->yy_bs_column = 0;
 2131|  3.33k|	}
 2132|       |
 2133|  6.67k|        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  ------------------
  |  Branch (2133:32): [True: 6.67k, False: 0]
  ------------------
 2134|       |    
 2135|       |	errno = oerrno;
 2136|  6.67k|}
gml-lexer.c:igraph_gml_yyensure_buffer_stack:
 2236|  3.33k|{
 2237|  3.33k|	yy_size_t num_to_alloc;
 2238|  3.33k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2239|       |
 2240|  3.33k|	if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2240:6): [True: 3.33k, False: 0]
  ------------------
 2241|       |		/* First allocation is just for 2 elements, since we don't know if this
 2242|       |		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
 2243|       |		 * immediate realloc on the next call.
 2244|       |		 */
 2245|  3.33k|		num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
 2246|  3.33k|		yyg->yy_buffer_stack = (yybuffer *) yyalloc
  ------------------
  |  |  275|  3.33k|#define yyalloc igraph_gml_yyalloc
  ------------------
 2247|  3.33k|								(num_to_alloc * sizeof(yybuffer)
 2248|  3.33k|								, yyscanner);
 2249|  3.33k|		if ( yyg->yy_buffer_stack == NULL ) {
  ------------------
  |  Branch (2249:8): [True: 0, False: 3.33k]
  ------------------
 2250|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2251|      0|		}
 2252|       |
 2253|  3.33k|		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(yybuffer));
 2254|       |
 2255|  3.33k|		yyg->yy_buffer_stack_max = num_to_alloc;
 2256|  3.33k|		yyg->yy_buffer_stack_top = 0;
 2257|  3.33k|		return;
 2258|  3.33k|	}
 2259|       |
 2260|      0|	if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1) {
  ------------------
  |  Branch (2260:6): [True: 0, False: 0]
  ------------------
 2261|       |		/* Increase the buffer to prepare for a possible push. */
 2262|      0|		yy_size_t grow_size = 8 /* arbitrary grow size */;
 2263|       |
 2264|      0|		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
 2265|      0|		yyg->yy_buffer_stack = (yybuffer *) yyrealloc
  ------------------
  |  |  281|      0|#define yyrealloc igraph_gml_yyrealloc
  ------------------
 2266|      0|								(yyg->yy_buffer_stack,
 2267|      0|								num_to_alloc * sizeof(yybuffer)
 2268|      0|								, yyscanner);
 2269|      0|		if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2269:7): [True: 0, False: 0]
  ------------------
 2270|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  925|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in GML parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|      0|		}
 2272|       |		/* zero only the new slots.*/
 2273|      0|		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(yybuffer));
 2274|      0|		yyg->yy_buffer_stack_max = num_to_alloc;
 2275|      0|	}
 2276|      0|}
gml-lexer.c:yy_init_globals:
 2606|  6.67k|static int yy_init_globals (yyscan_t yyscanner) {
 2607|  6.67k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2608|       |	/* Initialization is the same as for the non-reentrant scanner.
 2609|       |	 * This function is called from yylex_destroy(), so don't allocate here.
 2610|       |	 */
 2611|       |
 2612|  6.67k|	yyg->yy_buffer_stack = NULL;
 2613|  6.67k|	yyg->yy_buffer_stack_top = 0;
 2614|  6.67k|	yyg->yy_buffer_stack_max = 0;
 2615|  6.67k|	yyg->yy_c_buf_p = NULL;
 2616|  6.67k|	yyg->yy_init = 0;
 2617|  6.67k|	yyg->yy_start = 0;
 2618|       |
 2619|  6.67k|	yyg->yy_start_stack_ptr = 0;
 2620|  6.67k|	yyg->yy_start_stack_depth = 0;
 2621|  6.67k|	yyg->yy_start_stack =  NULL;
 2622|       |
 2623|       |/* Defined in main.c */
 2624|       |#ifdef YY_STDINIT
 2625|       |	yyin = stdin;
 2626|       |	yyout = stdout;
 2627|       |#else
 2628|  6.67k|	yyin = NULL;
  ------------------
  |  |  404|  6.67k|#define yyin yyg->yyin_r
  ------------------
 2629|  6.67k|	yyout = NULL;
  ------------------
  |  |  405|  6.67k|#define yyout yyg->yyout_r
  ------------------
 2630|  6.67k|#endif
 2631|       |
 2632|       |	/* For future reference: Set errno on error, since we are called by
 2633|       |	 * yylex_init()
 2634|       |	 */
 2635|  6.67k|	return 0;
 2636|  6.67k|}

igraph_gml_yyparse:
 1274|  3.33k|{
 1275|       |/* Lookahead token kind.  */
 1276|  3.33k|int yychar;
 1277|       |
 1278|       |
 1279|       |/* The semantic value of the lookahead symbol.  */
 1280|       |/* Default value used for initialization, for pacifying older GCCs
 1281|       |   or non-GCC compilers.  */
 1282|  3.33k|YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
  ------------------
  |  |  353|  3.33k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1283|  3.33k|YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
  ------------------
  |  |  353|  3.33k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1284|       |
 1285|       |/* Location data for the lookahead symbol.  */
 1286|  3.33k|static YYLTYPE yyloc_default
 1287|  3.33k|# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
 1288|  3.33k|  = { 1, 1, 1, 1 }
 1289|  3.33k|# endif
 1290|  3.33k|;
 1291|  3.33k|YYLTYPE yylloc = yyloc_default;
 1292|       |
 1293|       |    /* Number of syntax errors so far.  */
 1294|  3.33k|    int yynerrs = 0;
 1295|       |
 1296|  3.33k|    yy_state_fast_t yystate = 0;
 1297|       |    /* Number of tokens to shift before error messages enabled.  */
 1298|  3.33k|    int yyerrstatus = 0;
 1299|       |
 1300|       |    /* Refer to the stacks through separate pointers, to allow yyoverflow
 1301|       |       to reallocate them elsewhere.  */
 1302|       |
 1303|       |    /* Their size.  */
 1304|  3.33k|    YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  260|  3.33k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
                  YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  928|  3.33k|# define YYINITDEPTH 200
  ------------------
 1305|       |
 1306|       |    /* The state stack: array, bottom, top.  */
 1307|  3.33k|    yy_state_t yyssa[YYINITDEPTH];
 1308|  3.33k|    yy_state_t *yyss = yyssa;
 1309|  3.33k|    yy_state_t *yyssp = yyss;
 1310|       |
 1311|       |    /* The semantic value stack: array, bottom, top.  */
 1312|  3.33k|    YYSTYPE yyvsa[YYINITDEPTH];
 1313|  3.33k|    YYSTYPE *yyvs = yyvsa;
 1314|  3.33k|    YYSTYPE *yyvsp = yyvs;
 1315|       |
 1316|       |    /* The location stack: array, bottom, top.  */
 1317|  3.33k|    YYLTYPE yylsa[YYINITDEPTH];
 1318|  3.33k|    YYLTYPE *yyls = yylsa;
 1319|  3.33k|    YYLTYPE *yylsp = yyls;
 1320|       |
 1321|  3.33k|  int yyn;
 1322|       |  /* The return value of yyparse.  */
 1323|  3.33k|  int yyresult;
 1324|       |  /* Lookahead symbol kind.  */
 1325|  3.33k|  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
 1326|       |  /* The variables used to return semantic value and location from the
 1327|       |     action routines.  */
 1328|  3.33k|  YYSTYPE yyval;
 1329|  3.33k|  YYLTYPE yyloc;
 1330|       |
 1331|       |  /* The locations where the error started and ended.  */
 1332|  3.33k|  YYLTYPE yyerror_range[3];
 1333|       |
 1334|       |  /* Buffer for error messages, and its allocated size.  */
 1335|  3.33k|  char yymsgbuf[128];
 1336|  3.33k|  char *yymsg = yymsgbuf;
 1337|  3.33k|  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
  ------------------
  |  |  260|  3.33k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1338|       |
 1339|  3.33k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
 1340|       |
 1341|       |  /* The number of symbols on the RHS of the reduced rule.
 1342|       |     Keep to zero when no symbol should be popped.  */
 1343|  3.33k|  int yylen = 0;
 1344|       |
 1345|  3.33k|  YYDPRINTF ((stderr, "Starting parse\n"));
  ------------------
  |  |  919|  3.33k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1346|       |
 1347|  3.33k|  yychar = YYEMPTY; /* Cause a token to be read.  */
 1348|       |
 1349|  3.33k|  yylsp[0] = yylloc;
 1350|  3.33k|  goto yysetstate;
 1351|       |
 1352|       |
 1353|       |/*------------------------------------------------------------.
 1354|       || yynewstate -- push a new state, which is found in yystate.  |
 1355|       |`------------------------------------------------------------*/
 1356|  8.61M|yynewstate:
 1357|       |  /* In all cases, when you get here, the value and location stacks
 1358|       |     have just been pushed.  So pushing a state here evens the stacks.  */
 1359|  8.61M|  yyssp++;
 1360|       |
 1361|       |
 1362|       |/*--------------------------------------------------------------------.
 1363|       || yysetstate -- set current state (the top of the stack) to yystate.  |
 1364|       |`--------------------------------------------------------------------*/
 1365|  8.61M|yysetstate:
 1366|  8.61M|  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  ------------------
  |  |  919|  8.61M|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1367|  8.61M|  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  ------------------
  |  |  376|  8.61M|#define YY_ASSERT(E) ((void) (0 && (E)))
  |  |  ------------------
  |  |  |  Branch (376:31): [Folded, False: 8.61M]
  |  |  |  Branch (376:37): [True: 0, False: 0]
  |  |  |  Branch (376:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1368|  8.61M|  YY_IGNORE_USELESS_CAST_BEGIN
 1369|  8.61M|  *yyssp = YY_CAST (yy_state_t, yystate);
  ------------------
  |  |  144|  8.61M|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1370|  8.61M|  YY_IGNORE_USELESS_CAST_END
 1371|  8.61M|  YY_STACK_PRINT (yyss, yyssp);
 1372|       |
 1373|  8.61M|  if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1373:7): [True: 0, False: 8.61M]
  ------------------
 1374|       |#if !defined yyoverflow && !defined YYSTACK_RELOCATE
 1375|       |    YYNOMEM;
 1376|       |#else
 1377|      0|    {
 1378|       |      /* Get the current used size of the three stacks, in elements.  */
 1379|      0|      YYPTRDIFF_T yysize = yyssp - yyss + 1;
  ------------------
  |  |  260|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1380|       |
 1381|       |# if defined yyoverflow
 1382|       |      {
 1383|       |        /* Give user a chance to reallocate the stack.  Use copies of
 1384|       |           these so that the &'s don't force the real ones into
 1385|       |           memory.  */
 1386|       |        yy_state_t *yyss1 = yyss;
 1387|       |        YYSTYPE *yyvs1 = yyvs;
 1388|       |        YYLTYPE *yyls1 = yyls;
 1389|       |
 1390|       |        /* Each stack pointer address is followed by the size of the
 1391|       |           data in use in that stack, in bytes.  This used to be a
 1392|       |           conditional around just the two extra args, but that might
 1393|       |           be undefined if yyoverflow is a macro.  */
 1394|       |        yyoverflow (YY_("memory exhausted"),
 1395|       |                    &yyss1, yysize * YYSIZEOF (*yyssp),
 1396|       |                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
 1397|       |                    &yyls1, yysize * YYSIZEOF (*yylsp),
 1398|       |                    &yystacksize);
 1399|       |        yyss = yyss1;
 1400|       |        yyvs = yyvs1;
 1401|       |        yyls = yyls1;
 1402|       |      }
 1403|       |# else /* defined YYSTACK_RELOCATE */
 1404|       |      /* Extend the stack our own way.  */
 1405|      0|      if (YYMAXDEPTH <= yystacksize)
  ------------------
  |  |  939|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1405:11): [True: 0, False: 0]
  ------------------
 1406|      0|        YYNOMEM;
  ------------------
  |  |  684|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1407|      0|      yystacksize *= 2;
 1408|      0|      if (YYMAXDEPTH < yystacksize)
  ------------------
  |  |  939|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1408:11): [True: 0, False: 0]
  ------------------
 1409|      0|        yystacksize = YYMAXDEPTH;
  ------------------
  |  |  939|      0|# define YYMAXDEPTH 10000
  ------------------
 1410|       |
 1411|      0|      {
 1412|      0|        yy_state_t *yyss1 = yyss;
 1413|      0|        union yyalloc *yyptr =
 1414|      0|          YY_CAST (union yyalloc *,
  ------------------
  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1415|      0|                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
 1416|      0|        if (! yyptr)
  ------------------
  |  Branch (1416:13): [True: 0, False: 0]
  ------------------
 1417|      0|          YYNOMEM;
  ------------------
  |  |  684|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1418|      0|        YYSTACK_RELOCATE (yyss_alloc, yyss);
  ------------------
  |  |  476|      0|    do                                                                  \
  |  |  477|      0|      {                                                                 \
  |  |  478|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  260|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  479|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  494|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  480|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  481|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  459|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  482|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  483|      0|      }                                                                 \
  |  |  484|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (484:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1419|      0|        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  ------------------
  |  |  476|      0|    do                                                                  \
  |  |  477|      0|      {                                                                 \
  |  |  478|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  260|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  479|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  494|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  480|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  481|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  459|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  482|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  483|      0|      }                                                                 \
  |  |  484|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (484:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1420|      0|        YYSTACK_RELOCATE (yyls_alloc, yyls);
  ------------------
  |  |  476|      0|    do                                                                  \
  |  |  477|      0|      {                                                                 \
  |  |  478|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  260|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  479|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  494|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  480|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  481|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  459|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  482|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  293|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  483|      0|      }                                                                 \
  |  |  484|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (484:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1421|      0|#  undef YYSTACK_RELOCATE
 1422|      0|        if (yyss1 != yyssa)
  ------------------
  |  Branch (1422:13): [True: 0, False: 0]
  ------------------
 1423|      0|          YYSTACK_FREE (yyss1);
  ------------------
  |  |  418|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  437|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1424|      0|      }
 1425|      0|# endif
 1426|       |
 1427|      0|      yyssp = yyss + yysize - 1;
 1428|      0|      yyvsp = yyvs + yysize - 1;
 1429|      0|      yylsp = yyls + yysize - 1;
 1430|       |
 1431|      0|      YY_IGNORE_USELESS_CAST_BEGIN
 1432|      0|      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
  ------------------
  |  |  919|      0|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1433|      0|                  YY_CAST (long, yystacksize)));
 1434|      0|      YY_IGNORE_USELESS_CAST_END
 1435|       |
 1436|      0|      if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1436:11): [True: 0, False: 0]
  ------------------
 1437|      0|        YYABORT;
  ------------------
  |  |  682|      0|#define YYABORT         goto yyabortlab
  ------------------
 1438|      0|    }
 1439|  8.61M|#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
 1440|       |
 1441|       |
 1442|  8.61M|  if (yystate == YYFINAL)
  ------------------
  |  |  509|  8.61M|#define YYFINAL  6
  ------------------
  |  Branch (1442:7): [True: 3.33k, False: 8.61M]
  ------------------
 1443|  3.33k|    YYACCEPT;
  ------------------
  |  |  681|  3.33k|#define YYACCEPT        goto yyacceptlab
  ------------------
 1444|       |
 1445|  8.61M|  goto yybackup;
 1446|       |
 1447|       |
 1448|       |/*-----------.
 1449|       || yybackup.  |
 1450|       |`-----------*/
 1451|  8.61M|yybackup:
 1452|       |  /* Do appropriate processing given the current state.  Read a
 1453|       |     lookahead token if we need one and don't already have one.  */
 1454|       |
 1455|       |  /* First try to decide what to do without reference to lookahead token.  */
 1456|  8.61M|  yyn = yypact[yystate];
 1457|  8.61M|  if (yypact_value_is_default (yyn))
  ------------------
  |  |  602|  8.61M|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  599|  8.61M|#define YYPACT_NINF (-4)
  |  |  ------------------
  |  |  |  Branch (602:3): [True: 5.34M, False: 3.26M]
  |  |  ------------------
  ------------------
 1458|  5.34M|    goto yydefault;
 1459|       |
 1460|       |  /* Not known => get a lookahead token if don't already have one.  */
 1461|       |
 1462|       |  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
 1463|  3.26M|  if (yychar == YYEMPTY)
  ------------------
  |  Branch (1463:7): [True: 3.25M, False: 3.33k]
  ------------------
 1464|  3.25M|    {
 1465|  3.25M|      YYDPRINTF ((stderr, "Reading a token\n"));
  ------------------
  |  |  919|  3.25M|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1466|  3.25M|      yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |   69|  3.25M|#define yylex           igraph_gml_yylex
  ------------------
                    yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |  134|  3.25M|#define scanner context->scanner
  ------------------
 1467|  3.25M|    }
 1468|       |
 1469|  3.26M|  if (yychar <= END)
  ------------------
  |  Branch (1469:7): [True: 6.67k, False: 3.25M]
  ------------------
 1470|  6.67k|    {
 1471|  6.67k|      yychar = END;
 1472|  6.67k|      yytoken = YYSYMBOL_YYEOF;
 1473|  6.67k|      YYDPRINTF ((stderr, "Now at end of input.\n"));
  ------------------
  |  |  919|  6.67k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1474|  6.67k|    }
 1475|  3.25M|  else if (yychar == YYerror)
  ------------------
  |  Branch (1475:12): [True: 0, False: 3.25M]
  ------------------
 1476|      0|    {
 1477|       |      /* The scanner already issued an error message, process directly
 1478|       |         to error recovery.  But do not keep the error token as
 1479|       |         lookahead, it is too special and may lead us to an endless
 1480|       |         loop in error recovery. */
 1481|      0|      yychar = YYUNDEF;
 1482|      0|      yytoken = YYSYMBOL_YYerror;
 1483|      0|      yyerror_range[1] = yylloc;
 1484|      0|      goto yyerrlab1;
 1485|      0|    }
 1486|  3.25M|  else
 1487|  3.25M|    {
 1488|  3.25M|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  529|  3.25M|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  523|  3.25M|#define YYMAXUTOK   263
  |  |  ------------------
  |  |  |  Branch (529:4): [True: 3.25M, False: 0]
  |  |  |  Branch (529:18): [True: 3.25M, False: 0]
  |  |  ------------------
  |  |  530|  3.25M|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  144|  3.25M|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  531|  3.25M|   : YYSYMBOL_YYUNDEF)
  ------------------
 1489|  3.25M|      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
 1490|  3.25M|    }
 1491|       |
 1492|       |  /* If the proper action on seeing token YYTOKEN is to reduce or to
 1493|       |     detect an error, take that action.  */
 1494|  3.26M|  yyn += yytoken;
 1495|  3.26M|  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  ------------------
  |  |  511|  3.26M|#define YYLAST   10
  ------------------
  |  Branch (1495:7): [True: 0, False: 3.26M]
  |  Branch (1495:18): [True: 0, False: 3.26M]
  |  Branch (1495:34): [True: 3.33k, False: 3.25M]
  ------------------
 1496|  3.33k|    goto yydefault;
 1497|  3.25M|  yyn = yytable[yyn];
 1498|  3.25M|  if (yyn <= 0)
  ------------------
  |  Branch (1498:7): [True: 0, False: 3.25M]
  ------------------
 1499|      0|    {
 1500|      0|      if (yytable_value_is_error (yyn))
  ------------------
  |  |  607|      0|  0
  |  |  ------------------
  |  |  |  Branch (607:3): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1501|      0|        goto yyerrlab;
 1502|      0|      yyn = -yyn;
 1503|      0|      goto yyreduce;
 1504|      0|    }
 1505|       |
 1506|       |  /* Count tokens shifted since error; after three, turn off error
 1507|       |     status.  */
 1508|  3.25M|  if (yyerrstatus)
  ------------------
  |  Branch (1508:7): [True: 0, False: 3.25M]
  ------------------
 1509|      0|    yyerrstatus--;
 1510|       |
 1511|       |  /* Shift the lookahead token.  */
 1512|  3.25M|  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 1513|  3.25M|  yystate = yyn;
 1514|  3.25M|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1515|  3.25M|  *++yyvsp = yylval;
 1516|  3.25M|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1517|  3.25M|  *++yylsp = yylloc;
 1518|       |
 1519|       |  /* Discard the shifted token.  */
 1520|  3.25M|  yychar = YYEMPTY;
 1521|  3.25M|  goto yynewstate;
 1522|       |
 1523|       |
 1524|       |/*-----------------------------------------------------------.
 1525|       || yydefault -- do the default action for the current state.  |
 1526|       |`-----------------------------------------------------------*/
 1527|  5.35M|yydefault:
 1528|  5.35M|  yyn = yydefact[yystate];
 1529|  5.35M|  if (yyn == 0)
  ------------------
  |  Branch (1529:7): [True: 0, False: 5.35M]
  ------------------
 1530|      0|    goto yyerrlab;
 1531|  5.35M|  goto yyreduce;
 1532|       |
 1533|       |
 1534|       |/*-----------------------------.
 1535|       || yyreduce -- do a reduction.  |
 1536|       |`-----------------------------*/
 1537|  5.35M|yyreduce:
 1538|       |  /* yyn is the number of a rule to reduce with.  */
 1539|  5.35M|  yylen = yyr2[yyn];
 1540|       |
 1541|       |  /* If YYLEN is nonzero, implement the default value of the action:
 1542|       |     '$$ = $1'.
 1543|       |
 1544|       |     Otherwise, the following line sets YYVAL to garbage.
 1545|       |     This behavior is undocumented and Bison
 1546|       |     users should not rely upon it.  Assigning to YYVAL
 1547|       |     unconditionally makes the parser a bit smaller, and it avoids a
 1548|       |     GCC warning that YYVAL may be used uninitialized.  */
 1549|  5.35M|  yyval = yyvsp[1-yylen];
 1550|       |
 1551|       |  /* Default location. */
 1552|  5.35M|  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
  ------------------
  |  |  716|  5.35M|    do                                                                  \
  |  |  717|  5.35M|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (717:11): [True: 5.35M, False: 0]
  |  |  ------------------
  |  |  718|  5.35M|        {                                                               \
  |  |  719|  5.35M|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  734|  5.35M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  720|  5.35M|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  734|  5.35M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  721|  5.35M|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  734|  5.35M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  722|  5.35M|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  734|  5.35M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  723|  5.35M|        }                                                               \
  |  |  724|  5.35M|      else                                                              \
  |  |  725|  5.35M|        {                                                               \
  |  |  726|      0|          (Current).first_line   = (Current).last_line   =              \
  |  |  727|      0|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  728|      0|          (Current).first_column = (Current).last_column =              \
  |  |  729|      0|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  730|      0|        }                                                               \
  |  |  731|  5.35M|    while (0)
  |  |  ------------------
  |  |  |  Branch (731:12): [Folded, False: 5.35M]
  |  |  ------------------
  ------------------
 1553|  5.35M|  yyerror_range[1] = yyloc;
 1554|  5.35M|  YY_REDUCE_PRINT (yyn);
 1555|  5.35M|  switch (yyn)
 1556|  5.35M|    {
 1557|  3.33k|  case 2: /* input: list  */
  ------------------
  |  Branch (1557:3): [True: 3.33k, False: 5.34M]
  ------------------
 1558|  3.33k|#line 122 "/src/igraph/src/io/gml-parser.y"
 1559|  3.33k|                   { context->tree=(yyvsp[0].tree); }
 1560|  3.33k|#line 1561 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1561|  3.33k|    break;
 1562|       |
 1563|      0|  case 3: /* list: %empty  */
  ------------------
  |  Branch (1563:3): [True: 0, False: 5.35M]
  ------------------
 1564|      0|#line 124 "/src/igraph/src/io/gml-parser.y"
 1565|      0|                      { IGRAPH_YY_CHECK(igraph_i_gml_make_empty(&(yyval.tree))); }
  ------------------
  |  |   27|      0|    do { \
  |  |   28|      0|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|      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]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1566|      0|#line 1567 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1567|      0|    break;
 1568|       |
 1569|   389k|  case 4: /* list: keyvalue  */
  ------------------
  |  Branch (1569:3): [True: 389k, False: 4.96M]
  ------------------
 1570|   389k|#line 125 "/src/igraph/src/io/gml-parser.y"
 1571|   389k|                      { (yyval.tree)=(yyvsp[0].tree); }
 1572|   389k|#line 1573 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1573|   389k|    break;
 1574|       |
 1575|  1.04M|  case 5: /* list: list keyvalue  */
  ------------------
  |  Branch (1575:3): [True: 1.04M, False: 4.30M]
  ------------------
 1576|  1.04M|#line 126 "/src/igraph/src/io/gml-parser.y"
 1577|  1.04M|                      { IGRAPH_YY_CHECK(igraph_i_gml_merge((yyvsp[-1].tree), (yyvsp[0].tree))); (yyval.tree) = (yyvsp[-1].tree); }
  ------------------
  |  |   27|  1.04M|    do { \
  |  |   28|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
 1578|      0|#line 1579 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1579|      0|    break;
 1580|       |
 1581|   792k|  case 6: /* keyvalue: key num  */
  ------------------
  |  Branch (1581:3): [True: 792k, False: 4.56M]
  ------------------
 1582|   792k|#line 129 "/src/igraph/src/io/gml-parser.y"
 1583|   792k|            { IGRAPH_YY_CHECK(igraph_i_gml_make_numeric((yyvsp[-1].str), (yylsp[-1]).first_line, (yyvsp[0].real), &(yyval.tree))); }
  ------------------
  |  |   27|   792k|    do { \
  |  |   28|   792k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   792k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   792k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 792k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   792k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 792k]
  |  |  ------------------
  ------------------
 1584|   792k|#line 1585 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1585|   792k|    break;
 1586|       |
 1587|   792k|  case 7: /* keyvalue: key string  */
  ------------------
  |  Branch (1587:3): [True: 255k, False: 5.09M]
  ------------------
 1588|   255k|#line 131 "/src/igraph/src/io/gml-parser.y"
 1589|   255k|            { IGRAPH_YY_CHECK(igraph_i_gml_make_string((yyvsp[-1].str), (yylsp[-1]).first_line, (yyvsp[0].str), &(yyval.tree))); }
  ------------------
  |  |   27|   255k|    do { \
  |  |   28|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   255k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 255k]
  |  |  ------------------
  ------------------
 1590|   255k|#line 1591 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1591|   255k|    break;
 1592|       |
 1593|   386k|  case 8: /* keyvalue: key "[" list "]"  */
  ------------------
  |  Branch (1593:3): [True: 386k, False: 4.96M]
  ------------------
 1594|   386k|#line 133 "/src/igraph/src/io/gml-parser.y"
 1595|   386k|            { IGRAPH_YY_CHECK(igraph_i_gml_make_list((yyvsp[-3].str), (yylsp[-3]).first_line, (yyvsp[-1].tree), &(yyval.tree))); }
  ------------------
  |  |   27|   386k|    do { \
  |  |   28|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   386k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 386k]
  |  |  ------------------
  ------------------
 1596|   386k|#line 1597 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1597|   386k|    break;
 1598|       |
 1599|  1.43M|  case 9: /* key: "keyword"  */
  ------------------
  |  Branch (1599:3): [True: 1.43M, False: 3.91M]
  ------------------
 1600|  1.43M|#line 136 "/src/igraph/src/io/gml-parser.y"
 1601|  1.43M|             { IGRAPH_YY_CHECK(igraph_i_gml_get_keyword(igraph_gml_yyget_text(scanner),
  ------------------
  |  |   27|  1.43M|    do { \
  |  |   28|  1.43M|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  1.43M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  1.43M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.43M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  1.43M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 1.43M]
  |  |  ------------------
  ------------------
 1602|  1.43M|                               igraph_gml_yyget_leng(scanner),
 1603|  1.43M|                               &(yyval.str))); }
 1604|  1.43M|#line 1605 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1605|  1.43M|    break;
 1606|       |
 1607|  1.43M|  case 10: /* num: "number"  */
  ------------------
  |  Branch (1607:3): [True: 792k, False: 4.56M]
  ------------------
 1608|   792k|#line 139 "/src/igraph/src/io/gml-parser.y"
 1609|   792k|          {
 1610|   792k|    igraph_real_t val;
 1611|   792k|    IGRAPH_YY_CHECK(igraph_i_parse_real(igraph_gml_yyget_text(scanner),
  ------------------
  |  |   27|   792k|    do { \
  |  |   28|   792k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   792k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   792k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 792k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   792k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 792k]
  |  |  ------------------
  ------------------
 1612|   792k|                                        igraph_gml_yyget_leng(scanner),
 1613|   792k|                                        &val));
 1614|   792k|    (yyval.real)=val;
 1615|   792k|}
 1616|      0|#line 1617 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1617|      0|    break;
 1618|       |
 1619|   255k|  case 11: /* string: "string"  */
  ------------------
  |  Branch (1619:3): [True: 255k, False: 5.09M]
  ------------------
 1620|   255k|#line 147 "/src/igraph/src/io/gml-parser.y"
 1621|   255k|               { IGRAPH_YY_CHECK(igraph_i_gml_get_string(igraph_gml_yyget_text(scanner),
  ------------------
  |  |   27|   255k|    do { \
  |  |   28|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  682|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   255k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 255k]
  |  |  ------------------
  ------------------
 1622|   255k|                                         igraph_gml_yyget_leng(scanner),
 1623|   255k|                                         &(yyval.str))); }
 1624|   255k|#line 1625 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1625|   255k|    break;
 1626|       |
 1627|       |
 1628|   255k|#line 1629 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1629|       |
 1630|   255k|      default: break;
  ------------------
  |  Branch (1630:7): [True: 0, False: 5.35M]
  ------------------
 1631|  5.35M|    }
 1632|       |  /* User semantic actions sometimes alter yychar, and that requires
 1633|       |     that yytoken be updated with the new translation.  We take the
 1634|       |     approach of translating immediately before every use of yytoken.
 1635|       |     One alternative is translating here after every semantic action,
 1636|       |     but that translation would be missed if the semantic action invokes
 1637|       |     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
 1638|       |     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
 1639|       |     incorrect destructor might then be invoked immediately.  In the
 1640|       |     case of YYERROR or YYBACKUP, subsequent parser actions might lead
 1641|       |     to an incorrect destructor call or verbose syntax error message
 1642|       |     before the lookahead is translated.  */
 1643|  5.35M|  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
 1644|       |
 1645|  5.35M|  YYPOPSTACK (yylen);
  ------------------
  |  | 1339|  5.35M|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1646|  5.35M|  yylen = 0;
 1647|       |
 1648|  5.35M|  *++yyvsp = yyval;
 1649|  5.35M|  *++yylsp = yyloc;
 1650|       |
 1651|       |  /* Now 'shift' the result of the reduction.  Determine what state
 1652|       |     that goes to, based on the state we popped back to and the rule
 1653|       |     number reduced by.  */
 1654|  5.35M|  {
 1655|  5.35M|    const int yylhs = yyr1[yyn] - YYNTOKENS;
  ------------------
  |  |  514|  5.35M|#define YYNTOKENS  9
  ------------------
 1656|  5.35M|    const int yyi = yypgoto[yylhs] + *yyssp;
 1657|  5.35M|    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
  ------------------
  |  |  511|  10.6M|#define YYLAST   10
  ------------------
  |  Branch (1657:16): [True: 5.32M, False: 26.7k]
  |  Branch (1657:28): [True: 5.32M, False: 0]
  |  Branch (1657:45): [True: 2.46M, False: 2.85M]
  ------------------
 1658|  5.35M|               ? yytable[yyi]
 1659|  5.35M|               : yydefgoto[yylhs]);
 1660|  5.35M|  }
 1661|       |
 1662|  5.35M|  goto yynewstate;
 1663|       |
 1664|       |
 1665|       |/*--------------------------------------.
 1666|       || yyerrlab -- here on detecting error.  |
 1667|       |`--------------------------------------*/
 1668|      0|yyerrlab:
 1669|       |  /* Make sure we have latest lookahead translation.  See comments at
 1670|       |     user semantic actions for why this is necessary.  */
 1671|      0|  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  ------------------
  |  |  529|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  523|      0|#define YYMAXUTOK   263
  |  |  ------------------
  |  |  |  Branch (529:4): [True: 0, False: 0]
  |  |  |  Branch (529:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  530|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  531|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
  |  Branch (1671:13): [True: 0, False: 0]
  ------------------
 1672|       |  /* If not already recovering from an error, report this error.  */
 1673|      0|  if (!yyerrstatus)
  ------------------
  |  Branch (1673:7): [True: 0, False: 0]
  ------------------
 1674|      0|    {
 1675|      0|      ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_gml_yynerrs
  ------------------
 1676|      0|      {
 1677|      0|        yypcontext_t yyctx
 1678|      0|          = {yyssp, yytoken, &yylloc};
 1679|      0|        char const *yymsgp = YY_("syntax error");
  ------------------
  |  |  310|      0|#  define YY_(Msgid) Msgid
  ------------------
 1680|      0|        int yysyntax_error_status;
 1681|      0|        yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1682|      0|        if (yysyntax_error_status == 0)
  ------------------
  |  Branch (1682:13): [True: 0, False: 0]
  ------------------
 1683|      0|          yymsgp = yymsg;
 1684|      0|        else if (yysyntax_error_status == -1)
  ------------------
  |  Branch (1684:18): [True: 0, False: 0]
  ------------------
 1685|      0|          {
 1686|      0|            if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1686:17): [True: 0, False: 0]
  ------------------
 1687|      0|              YYSTACK_FREE (yymsg);
  ------------------
  |  |  418|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  437|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1688|      0|            yymsg = YY_CAST (char *,
  ------------------
  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1689|      0|                             YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
 1690|      0|            if (yymsg)
  ------------------
  |  Branch (1690:17): [True: 0, False: 0]
  ------------------
 1691|      0|              {
 1692|      0|                yysyntax_error_status
 1693|      0|                  = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1694|      0|                yymsgp = yymsg;
 1695|      0|              }
 1696|      0|            else
 1697|      0|              {
 1698|      0|                yymsg = yymsgbuf;
 1699|      0|                yymsg_alloc = sizeof yymsgbuf;
 1700|      0|                yysyntax_error_status = YYENOMEM;
 1701|      0|              }
 1702|      0|          }
 1703|      0|        yyerror (&yylloc, context, yymsgp);
  ------------------
  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  ------------------
 1704|      0|        if (yysyntax_error_status == YYENOMEM)
  ------------------
  |  Branch (1704:13): [True: 0, False: 0]
  ------------------
 1705|      0|          YYNOMEM;
  ------------------
  |  |  684|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1706|      0|      }
 1707|      0|    }
 1708|       |
 1709|      0|  yyerror_range[1] = yylloc;
 1710|      0|  if (yyerrstatus == 3)
  ------------------
  |  Branch (1710:7): [True: 0, False: 0]
  ------------------
 1711|      0|    {
 1712|       |      /* If just tried and failed to reuse lookahead token after an
 1713|       |         error, discard it.  */
 1714|       |
 1715|      0|      if (yychar <= END)
  ------------------
  |  Branch (1715:11): [True: 0, False: 0]
  ------------------
 1716|      0|        {
 1717|       |          /* Return failure if at end of input.  */
 1718|      0|          if (yychar == END)
  ------------------
  |  Branch (1718:15): [True: 0, False: 0]
  ------------------
 1719|      0|            YYABORT;
  ------------------
  |  |  682|      0|#define YYABORT         goto yyabortlab
  ------------------
 1720|      0|        }
 1721|      0|      else
 1722|      0|        {
 1723|      0|          yydestruct ("Error: discarding",
 1724|      0|                      yytoken, &yylval, &yylloc, context);
 1725|      0|          yychar = YYEMPTY;
 1726|      0|        }
 1727|      0|    }
 1728|       |
 1729|       |  /* Else will try to reuse lookahead token after shifting the error
 1730|       |     token.  */
 1731|      0|  goto yyerrlab1;
 1732|       |
 1733|       |
 1734|       |/*---------------------------------------------------.
 1735|       || yyerrorlab -- error raised explicitly by YYERROR.  |
 1736|       |`---------------------------------------------------*/
 1737|      0|yyerrorlab:
 1738|       |  /* Pacify compilers when the user code never invokes YYERROR and the
 1739|       |     label yyerrorlab therefore never appears in user code.  */
 1740|      0|  if (0)
  ------------------
  |  Branch (1740:7): [Folded, False: 0]
  ------------------
 1741|      0|    YYERROR;
  ------------------
  |  |  683|      0|#define YYERROR         goto yyerrorlab
  ------------------
 1742|      0|  ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_gml_yynerrs
  ------------------
 1743|       |
 1744|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1745|       |     this YYERROR.  */
 1746|      0|  YYPOPSTACK (yylen);
  ------------------
  |  | 1339|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1747|      0|  yylen = 0;
 1748|      0|  YY_STACK_PRINT (yyss, yyssp);
 1749|      0|  yystate = *yyssp;
 1750|      0|  goto yyerrlab1;
 1751|       |
 1752|       |
 1753|       |/*-------------------------------------------------------------.
 1754|       || yyerrlab1 -- common code for both syntax error and YYERROR.  |
 1755|       |`-------------------------------------------------------------*/
 1756|      0|yyerrlab1:
 1757|      0|  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 1758|       |
 1759|       |  /* Pop stack until we find a state that shifts the error token.  */
 1760|      0|  for (;;)
 1761|      0|    {
 1762|      0|      yyn = yypact[yystate];
 1763|      0|      if (!yypact_value_is_default (yyn))
  ------------------
  |  |  602|      0|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  599|      0|#define YYPACT_NINF (-4)
  |  |  ------------------
  ------------------
  |  Branch (1763:11): [True: 0, False: 0]
  ------------------
 1764|      0|        {
 1765|      0|          yyn += YYSYMBOL_YYerror;
 1766|      0|          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
  ------------------
  |  |  511|      0|#define YYLAST   10
  ------------------
  |  Branch (1766:15): [True: 0, False: 0]
  |  Branch (1766:27): [True: 0, False: 0]
  |  Branch (1766:44): [True: 0, False: 0]
  ------------------
 1767|      0|            {
 1768|      0|              yyn = yytable[yyn];
 1769|      0|              if (0 < yyn)
  ------------------
  |  Branch (1769:19): [True: 0, False: 0]
  ------------------
 1770|      0|                break;
 1771|      0|            }
 1772|      0|        }
 1773|       |
 1774|       |      /* Pop the current state because it cannot handle the error token.  */
 1775|      0|      if (yyssp == yyss)
  ------------------
  |  Branch (1775:11): [True: 0, False: 0]
  ------------------
 1776|      0|        YYABORT;
  ------------------
  |  |  682|      0|#define YYABORT         goto yyabortlab
  ------------------
 1777|       |
 1778|      0|      yyerror_range[1] = *yylsp;
 1779|      0|      yydestruct ("Error: popping",
 1780|      0|                  YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, context);
  ------------------
  |  |  576|      0|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1781|      0|      YYPOPSTACK (1);
  ------------------
  |  | 1339|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1782|      0|      yystate = *yyssp;
 1783|      0|      YY_STACK_PRINT (yyss, yyssp);
 1784|      0|    }
 1785|       |
 1786|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1787|      0|  *++yyvsp = yylval;
 1788|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1789|       |
 1790|      0|  yyerror_range[2] = yylloc;
 1791|      0|  ++yylsp;
 1792|      0|  YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
  ------------------
  |  |  716|      0|    do                                                                  \
  |  |  717|      0|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (717:11): [True: 0, Folded]
  |  |  ------------------
  |  |  718|      0|        {                                                               \
  |  |  719|      0|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  720|      0|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  721|      0|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  722|      0|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  723|      0|        }                                                               \
  |  |  724|      0|      else                                                              \
  |  |  725|      0|        {                                                               \
  |  |  726|      0|          (Current).first_line   = (Current).last_line   =              \
  |  |  727|      0|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  728|      0|          (Current).first_column = (Current).last_column =              \
  |  |  729|      0|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  734|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  730|      0|        }                                                               \
  |  |  731|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (731:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1793|       |
 1794|       |  /* Shift the error token.  */
 1795|      0|  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
 1796|       |
 1797|      0|  yystate = yyn;
 1798|      0|  goto yynewstate;
 1799|       |
 1800|       |
 1801|       |/*-------------------------------------.
 1802|       || yyacceptlab -- YYACCEPT comes here.  |
 1803|       |`-------------------------------------*/
 1804|  3.33k|yyacceptlab:
 1805|  3.33k|  yyresult = 0;
 1806|  3.33k|  goto yyreturnlab;
 1807|       |
 1808|       |
 1809|       |/*-----------------------------------.
 1810|       || yyabortlab -- YYABORT comes here.  |
 1811|       |`-----------------------------------*/
 1812|      0|yyabortlab:
 1813|      0|  yyresult = 1;
 1814|      0|  goto yyreturnlab;
 1815|       |
 1816|       |
 1817|       |/*-----------------------------------------------------------.
 1818|       || yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
 1819|       |`-----------------------------------------------------------*/
 1820|      0|yyexhaustedlab:
 1821|      0|  yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |   70|      0|#define yyerror         igraph_gml_yyerror
  ------------------
                yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |  310|      0|#  define YY_(Msgid) Msgid
  ------------------
 1822|      0|  yyresult = 2;
 1823|      0|  goto yyreturnlab;
 1824|       |
 1825|       |
 1826|       |/*----------------------------------------------------------.
 1827|       || yyreturnlab -- parsing is finished, clean up and return.  |
 1828|       |`----------------------------------------------------------*/
 1829|  3.33k|yyreturnlab:
 1830|  3.33k|  if (yychar != YYEMPTY)
  ------------------
  |  Branch (1830:7): [True: 0, False: 3.33k]
  ------------------
 1831|      0|    {
 1832|       |      /* Make sure we have latest lookahead translation.  See comments at
 1833|       |         user semantic actions for why this is necessary.  */
 1834|      0|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  529|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  523|      0|#define YYMAXUTOK   263
  |  |  ------------------
  |  |  |  Branch (529:4): [True: 0, False: 0]
  |  |  |  Branch (529:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  530|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  144|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  531|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
 1835|      0|      yydestruct ("Cleanup: discarding lookahead",
 1836|      0|                  yytoken, &yylval, &yylloc, context);
 1837|      0|    }
 1838|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1839|       |     this YYABORT or YYACCEPT.  */
 1840|  3.33k|  YYPOPSTACK (yylen);
  ------------------
  |  | 1339|  3.33k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1841|  3.33k|  YY_STACK_PRINT (yyss, yyssp);
 1842|  10.0k|  while (yyssp != yyss)
  ------------------
  |  Branch (1842:10): [True: 6.67k, False: 3.33k]
  ------------------
 1843|  6.67k|    {
 1844|  6.67k|      yydestruct ("Cleanup: popping",
 1845|  6.67k|                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, context);
  ------------------
  |  |  576|  6.67k|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  144|  6.67k|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1846|  6.67k|      YYPOPSTACK (1);
  ------------------
  |  | 1339|  6.67k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1847|  6.67k|    }
 1848|  3.33k|#ifndef yyoverflow
 1849|  3.33k|  if (yyss != yyssa)
  ------------------
  |  Branch (1849:7): [True: 0, False: 3.33k]
  ------------------
 1850|      0|    YYSTACK_FREE (yyss);
  ------------------
  |  |  418|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  437|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1851|  3.33k|#endif
 1852|  3.33k|  if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1852:7): [True: 0, False: 3.33k]
  ------------------
 1853|      0|    YYSTACK_FREE (yymsg);
  ------------------
  |  |  418|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  437|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1854|  3.33k|  return yyresult;
 1855|      0|}
gml-parser.c:yydestruct:
 1222|  6.67k|{
 1223|  6.67k|  YY_USE (yyvaluep);
  ------------------
  |  |  333|  6.67k|# define YY_USE(E) ((void) (E))
  ------------------
 1224|  6.67k|  YY_USE (yylocationp);
  ------------------
  |  |  333|  6.67k|# define YY_USE(E) ((void) (E))
  ------------------
 1225|  6.67k|  YY_USE (context);
  ------------------
  |  |  333|  6.67k|# define YY_USE(E) ((void) (E))
  ------------------
 1226|  6.67k|  if (!yymsg)
  ------------------
  |  Branch (1226:7): [True: 0, False: 6.67k]
  ------------------
 1227|      0|    yymsg = "Deleting";
 1228|  6.67k|  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
 1229|       |
 1230|  6.67k|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1231|  6.67k|  switch (yykind)
 1232|  6.67k|    {
 1233|      0|    case YYSYMBOL_list: /* list  */
  ------------------
  |  Branch (1233:5): [True: 0, False: 6.67k]
  ------------------
 1234|      0|#line 118 "/src/igraph/src/io/gml-parser.y"
 1235|      0|            { igraph_gml_tree_destroy(((*yyvaluep).tree)); }
 1236|      0|#line 1237 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1237|      0|        break;
 1238|       |
 1239|      0|    case YYSYMBOL_keyvalue: /* keyvalue  */
  ------------------
  |  Branch (1239:5): [True: 0, False: 6.67k]
  ------------------
 1240|      0|#line 118 "/src/igraph/src/io/gml-parser.y"
 1241|      0|            { igraph_gml_tree_destroy(((*yyvaluep).tree)); }
 1242|      0|#line 1243 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1243|      0|        break;
 1244|       |
 1245|      0|    case YYSYMBOL_key: /* key  */
  ------------------
  |  Branch (1245:5): [True: 0, False: 6.67k]
  ------------------
 1246|      0|#line 117 "/src/igraph/src/io/gml-parser.y"
 1247|      0|            { free(((*yyvaluep).str)); }
 1248|      0|#line 1249 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1249|      0|        break;
 1250|       |
 1251|      0|    case YYSYMBOL_string: /* string  */
  ------------------
  |  Branch (1251:5): [True: 0, False: 6.67k]
  ------------------
 1252|      0|#line 117 "/src/igraph/src/io/gml-parser.y"
 1253|      0|            { free(((*yyvaluep).str)); }
 1254|      0|#line 1255 "/src/igraph/build/src/io/parsers/gml-parser.c"
 1255|      0|        break;
 1256|       |
 1257|  6.67k|      default:
  ------------------
  |  Branch (1257:7): [True: 6.67k, False: 0]
  ------------------
 1258|  6.67k|        break;
 1259|  6.67k|    }
 1260|  6.67k|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1261|  6.67k|}
gml-parser.c:igraph_i_gml_get_keyword:
 1868|  1.43M|static igraph_error_t igraph_i_gml_get_keyword(const char *s, size_t len, char **res) {
 1869|  1.43M|  *res = strndup(s, len);
 1870|  1.43M|  if (! *res) {
  ------------------
  |  Branch (1870:7): [True: 0, False: 1.43M]
  ------------------
 1871|      0|    IGRAPH_ERROR("Cannot read GML file.", 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]
  |  |  ------------------
  ------------------
 1872|      0|  }
 1873|  1.43M|  return IGRAPH_SUCCESS;
 1874|  1.43M|}
gml-parser.c:igraph_i_gml_get_string:
 1876|   255k|static igraph_error_t igraph_i_gml_get_string(const char *s, size_t len, char **res) {
 1877|   255k|  *res = strndup(s+1, len-2);
 1878|   255k|  if (! *res) {
  ------------------
  |  Branch (1878:7): [True: 0, False: 255k]
  ------------------
 1879|      0|    IGRAPH_ERROR("Cannot read GML file.", 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]
  |  |  ------------------
  ------------------
 1880|      0|  }
 1881|   255k|  return IGRAPH_SUCCESS;
 1882|   255k|}
gml-parser.c:igraph_i_gml_make_numeric:
 1887|   792k|                                                igraph_gml_tree_t **tree) {
 1888|       |
 1889|   792k|  igraph_gml_tree_t *t = IGRAPH_CALLOC(1, igraph_gml_tree_t);
  ------------------
  |  |   33|   792k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  1.58M|    (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: 792k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1890|   792k|  if (!t) {
  ------------------
  |  Branch (1890:7): [True: 0, False: 792k]
  ------------------
 1891|      0|    IGRAPH_ERROR("Cannot build GML tree.", 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]
  |  |  ------------------
  ------------------
 1892|      0|  }
 1893|   792k|  IGRAPH_FINALLY(igraph_free, t);
  ------------------
  |  |  603|   792k|    do { \
  |  |  604|   792k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   792k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   792k|         * incorrect destructor function with the pointer */ \
  |  |  607|   792k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 792k]
  |  |  ------------------
  |  |  608|   792k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   792k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 792k]
  |  |  ------------------
  ------------------
 1894|       |
 1895|       |  /* The GML spec only requires support for 32-bit signed integers,
 1896|       |   * but igraph tries to support the same range as igraph_int_t,
 1897|       |   * so that it can read/write all graphs it can represent.
 1898|       |   * We treat anything out of that range as real. These values end
 1899|       |   * up as igraph_real_t anyway, as igraph does not currently support
 1900|       |   * integer-typed attributes. */
 1901|   792k|  igraph_real_t trunc_value = trunc(value);
 1902|   792k|  if (value == trunc_value && igraph_i_is_real_representable_as_integer(trunc_value)) {
  ------------------
  |  Branch (1902:7): [True: 791k, False: 1.03k]
  |  Branch (1902:31): [True: 790k, False: 253]
  ------------------
 1903|   790k|    IGRAPH_CHECK(igraph_gml_tree_init_integer(t, name, line, value));
  ------------------
  |  |  656|   790k|    do { \
  |  |  657|   790k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   790k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   790k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 790k]
  |  |  ------------------
  ------------------
 1904|   790k|  } else {
 1905|  1.29k|    IGRAPH_CHECK(igraph_gml_tree_init_real(t, name, line, value));
  ------------------
  |  |  656|  1.29k|    do { \
  |  |  657|  1.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
 1906|  1.29k|  }
 1907|       |
 1908|   792k|  *tree = t;
 1909|   792k|  IGRAPH_FINALLY_CLEAN(1); /* t */
 1910|       |
 1911|   792k|  return IGRAPH_SUCCESS;
 1912|   792k|}
gml-parser.c:igraph_i_gml_make_string:
 1917|   255k|                                               igraph_gml_tree_t **tree) {
 1918|       |
 1919|   255k|  igraph_gml_tree_t *t = IGRAPH_CALLOC(1, igraph_gml_tree_t);
  ------------------
  |  |   33|   255k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   511k|    (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: 255k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1920|   255k|  if (!t) {
  ------------------
  |  Branch (1920:7): [True: 0, False: 255k]
  ------------------
 1921|      0|    IGRAPH_ERROR("Cannot build GML tree.", 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]
  |  |  ------------------
  ------------------
 1922|      0|  }
 1923|   255k|  IGRAPH_FINALLY(igraph_free, t);
  ------------------
  |  |  603|   255k|    do { \
  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  ------------------
  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   255k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  ------------------
  ------------------
 1924|       |
 1925|       |  /* if igraph_gml_tree_init_string succeeds, the newly created tree node takes
 1926|       |   * ownership of 'value'. If it fails, we need to free 'value' ourselves in order
 1927|       |   * not to leak memory */
 1928|   255k|  IGRAPH_FINALLY(igraph_free, value);
  ------------------
  |  |  603|   255k|    do { \
  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  ------------------
  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   255k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  ------------------
  ------------------
 1929|   255k|  IGRAPH_CHECK(igraph_gml_tree_init_string(t, name, line, value));
  ------------------
  |  |  656|   255k|    do { \
  |  |  657|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   255k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 255k]
  |  |  ------------------
  ------------------
 1930|       |
 1931|   255k|  IGRAPH_FINALLY_CLEAN(1); /* value */
 1932|       |
 1933|   255k|  *tree = t;
 1934|   255k|  IGRAPH_FINALLY_CLEAN(1); /* t */
 1935|       |
 1936|   255k|  return IGRAPH_SUCCESS;
 1937|   255k|}
gml-parser.c:igraph_i_gml_make_list:
 1942|   386k|                                             igraph_gml_tree_t **tree) {
 1943|       |
 1944|   386k|  igraph_gml_tree_t *t = IGRAPH_CALLOC(1, igraph_gml_tree_t);
  ------------------
  |  |   33|   386k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   772k|    (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: 386k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1945|   386k|  if (!t) {
  ------------------
  |  Branch (1945:7): [True: 0, False: 386k]
  ------------------
 1946|      0|    IGRAPH_ERROR("Cannot build GML tree.", 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]
  |  |  ------------------
  ------------------
 1947|      0|  }
 1948|   386k|  IGRAPH_FINALLY(igraph_free, t);
  ------------------
  |  |  603|   386k|    do { \
  |  |  604|   386k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   386k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   386k|         * incorrect destructor function with the pointer */ \
  |  |  607|   386k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 386k]
  |  |  ------------------
  |  |  608|   386k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   386k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 386k]
  |  |  ------------------
  ------------------
 1949|       |
 1950|   386k|  IGRAPH_CHECK(igraph_gml_tree_init_tree(t, name, line, list));
  ------------------
  |  |  656|   386k|    do { \
  |  |  657|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   386k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 386k]
  |  |  ------------------
  ------------------
 1951|       |
 1952|   386k|  *tree = t;
 1953|   386k|  IGRAPH_FINALLY_CLEAN(1); /* t */
 1954|       |
 1955|   386k|  return IGRAPH_SUCCESS;
 1956|   386k|}
gml-parser.c:igraph_i_gml_merge:
 1973|  1.04M|static igraph_error_t igraph_i_gml_merge(igraph_gml_tree_t *t1, igraph_gml_tree_t* t2) {
 1974|       |
 1975|  1.04M|  IGRAPH_CHECK(igraph_gml_tree_mergedest(t1, t2));
  ------------------
  |  |  656|  1.04M|    do { \
  |  |  657|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
 1976|  1.04M|  IGRAPH_FREE(t2);
  ------------------
  |  |   36|  1.04M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1977|       |
 1978|  1.04M|  return IGRAPH_SUCCESS;
 1979|  1.04M|}

igraph_lgl_yylex:
 1185|   778k|YY_DECL {
 1186|   778k|	yy_state_type yy_current_state;
 1187|   778k|	char *yy_cp, *yy_bp;
 1188|   778k|	int yy_act;
 1189|   778k|    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1190|       |
 1191|   778k|    yylval = yylval_param;
  ------------------
  |  |  967|   778k|    #    define yylval yyg->yylval_r
  ------------------
 1192|       |
 1193|   778k|    yylloc = yylloc_param;
  ------------------
  |  |  969|   778k|    #    define yylloc yyg->yylloc_r
  ------------------
 1194|       |
 1195|   778k|	if ( !yyg->yy_init ) {
  ------------------
  |  Branch (1195:7): [True: 3.20k, False: 775k]
  ------------------
 1196|  3.20k|		yyg->yy_init = 1;
 1197|       |
 1198|       |#ifdef YY_USER_INIT
 1199|       |		YY_USER_INIT;
 1200|       |#endif
 1201|       |
 1202|  3.20k|		if ( ! yyg->yy_start ) {
  ------------------
  |  Branch (1202:8): [True: 3.20k, False: 0]
  ------------------
 1203|  3.20k|			yyg->yy_start = 1;	/* first start state */
 1204|  3.20k|		}
 1205|  3.20k|		if ( ! yyin ) {
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1205:8): [True: 0, False: 3.20k]
  ------------------
 1206|       |
 1207|      0|			yyin = stdin;
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1208|       |
 1209|      0|		}
 1210|  3.20k|		if ( ! yyout ) {
  ------------------
  |  |  405|  3.20k|#define yyout yyg->yyout_r
  ------------------
  |  Branch (1210:8): [True: 3.20k, False: 0]
  ------------------
 1211|       |
 1212|  3.20k|			yyout = stdout;
  ------------------
  |  |  405|  3.20k|#define yyout yyg->yyout_r
  ------------------
 1213|       |
 1214|  3.20k|		}
 1215|  3.20k|		if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 0, False: 3.20k]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
  |  Branch (1215:8): [True: 3.20k, False: 0]
  ------------------
 1216|  3.20k|			yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|  3.20k|#define yyensure_buffer_stack igraph_lgl_yyensure_buffer_stack
  ------------------
 1217|  3.20k|			YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1218|  3.20k|				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|  3.20k|#define yy_create_buffer igraph_lgl_yy_create_buffer
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|  3.20k|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|  3.20k|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1219|  3.20k|		}
 1220|       |
 1221|  3.20k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.20k|#define yy_load_buffer_state igraph_lgl_yy_load_buffer_state
  ------------------
 1222|  3.20k|	}
 1223|       |
 1224|       |	/* open scope of user declarationns */
 1225|   778k|	{
 1226|       |/* %% [4.0] user's declarations go here */
 1227|   778k|#line 79 "/src/igraph/src/io/lgl-lexer.l"
 1228|       |
 1229|       |
 1230|   778k|#line 81 "/src/igraph/src/io/lgl-lexer.l"
 1231|       | /* ------------------------------------------------whitespace------*/
 1232|   778k|#line 1233 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1233|       |
 1234|   833k|		while ( /*CONSTCOND*/1 ) {		/* loops until end-of-file is reached */
  ------------------
  |  Branch (1234:24): [True: 833k, Folded]
  ------------------
 1235|       |
 1236|       |			/* Support of yytext. The character was taken from the end
 1237|       |			 * of the last token, which is behind yy_c_buf_p when
 1238|       |			 * yyinput() has read characters since. */
 1239|   833k|			*yyg->yy_hold_ptr = yyg->yy_hold_char;
 1240|   833k|			yy_cp = yyg->yy_c_buf_p;
 1241|       |
 1242|       |			/* yy_bp points to the position in yy_ch_buf of the start of
 1243|       |			 * the current run.
 1244|       |			 */
 1245|   833k|			yy_bp = yy_cp;
 1246|       |
 1247|       |	/* Generate the code to find the start state. */
 1248|       |
 1249|   833k|			yy_current_state = yyg->yy_start;
 1250|       |
 1251|       |			/* Set up for storing up states. */
 1252|       |			
 1253|   839k|	yy_match:
 1254|       |			/* Generate the code to find the next match. */
 1255|       |
 1256|  36.2M|			do {
 1257|       |				
 1258|  36.2M|	int yy_c = *(yy_ec+YY_SC_TO_UI(*yy_cp));
  ------------------
  |  |  394|  36.2M|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
 1259|       |	/* Save the backing-up info \before/ computing the next state
 1260|       |	 * because we always compute one more state than needed - we
 1261|       |	 * always proceed until we reach a jam state
 1262|       |	 */
 1263|       |	
 1264|       |		/* Generate code to keep backing-up information. */
 1265|       |
 1266|  36.2M|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1266:8): [True: 35.4M, False: 835k]
  ------------------
 1267|       |
 1268|  35.4M|			yyg->yy_last_accepting_state = yy_current_state;
 1269|  35.4M|			yyg->yy_last_accepting_cpos = yy_cp;
 1270|  35.4M|		}
 1271|       |
 1272|  72.9M|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1272:10): [True: 36.7M, False: 36.2M]
  ------------------
 1273|  36.7M|		yy_current_state = (int) yy_def[yy_current_state];
 1274|       |
 1275|       |		/* We've arranged it so that templates are never chained
 1276|       |		 * to one another.  This means we can afford to make a
 1277|       |		 * very simple test to see if we need to convert to
 1278|       |		 * yy_c's meta-equivalence class without worrying
 1279|       |		 * about erroneously looking up the meta-equivalence
 1280|       |		 * class twice
 1281|       |		 */
 1282|       |
 1283|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1284|  36.7M|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|  36.7M|#define YY_JAMSTATE 15
  ------------------
  |  Branch (1284:7): [True: 35.4M, False: 1.29M]
  ------------------
 1285|  35.4M|			yy_c = yy_meta[yy_c];
 1286|  35.4M|		}
 1287|       |
 1288|  36.7M|	}
 1289|  36.2M|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1290|       |
 1291|  36.2M|				++yy_cp;
 1292|       |
 1293|  36.2M|			}
 1294|  36.2M|			while ( yy_base[yy_current_state] != YY_JAMBASE );
  ------------------
  |  |  706|  36.2M|#define YY_JAMBASE 12
  ------------------
  |  Branch (1294:12): [True: 35.4M, False: 839k]
  ------------------
 1295|       |			
 1296|   842k|	yy_find_action:
 1297|       |			/* code to find the action number goes here */
 1298|       |			
 1299|   842k|		yy_act = yy_accept[yy_current_state];
 1300|   842k|			if ( yy_act == 0 ) { /* have to back up */
  ------------------
  |  Branch (1300:9): [True: 825k, False: 16.3k]
  ------------------
 1301|   825k|				yy_cp = yyg->yy_last_accepting_cpos;
 1302|   825k|				yy_current_state = yyg->yy_last_accepting_state;
 1303|   825k|				yy_act = yy_accept[yy_current_state];
 1304|   825k|			}
 1305|       |
 1306|   842k|			YY_DO_BEFORE_ACTION;
  ------------------
  |  |  741|   842k|	do { \
  |  |  742|   842k|	 \
  |  |  743|   842k|	yyg->yytext_ptr = yy_bp; \
  |  |  ------------------
  |  |  |  |  669|   842k|#define yytext_ptr yytext_r
  |  |  ------------------
  |  |  744|   842k|	 \
  |  |  745|   842k|	yyleng = (int) (yy_cp - yy_bp); \
  |  |  ------------------
  |  |  |  |  407|   842k|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  746|   842k|	 \
  |  |  747|   842k|	yyg->yy_hold_char = *yy_cp; \
  |  |  748|   842k|	yyg->yy_hold_ptr = yy_cp; \
  |  |  749|   842k|	*yy_cp = '\0'; \
  |  |  750|   842k| \
  |  |  751|   842k|	yyg->yy_c_buf_p = yy_cp; \
  |  |  752|   842k|	} while(0)
  |  |  ------------------
  |  |  |  Branch (752:10): [Folded, False: 842k]
  |  |  ------------------
  ------------------
 1307|       |
 1308|   842k|			if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) {
  ------------------
  |  |  705|  1.68M|#define YY_END_OF_BUFFER 7
  ------------------
  |  Branch (1308:9): [True: 829k, False: 12.2k]
  |  Branch (1308:39): [True: 360k, False: 469k]
  ------------------
 1309|   360k|				int yyl;
 1310|   720k|				for ( yyl = 0; yyl < yyleng; ++yyl ) {
  ------------------
  |  |  407|   720k|#define yyleng yyg->yyleng_r
  ------------------
  |  Branch (1310:20): [True: 360k, False: 360k]
  ------------------
 1311|   360k|					if ( yytext[yyl] == '\n' ) {
  ------------------
  |  |  408|   360k|#define yytext yyg->yytext_r
  ------------------
  |  Branch (1311:11): [True: 360k, False: 0]
  ------------------
 1312|       |						
 1313|   360k|    do{ yylineno++;
  ------------------
  |  |  409|   360k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  ------------------
  |  |  |  |  611|   360k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1314|   360k|        yycolumn=0;
  ------------------
  |  |  410|   360k|#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  |  |  ------------------
  |  |  |  |  611|   360k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1315|   360k|    }while(0)
  ------------------
  |  Branch (1315:12): [Folded, False: 360k]
  ------------------
 1316|   360k|;
 1317|       |
 1318|   360k|					}
 1319|   360k|				}
 1320|   360k|			}
 1321|       |
 1322|   845k|		do_action:	/* This label is used only to access EOF actions. */
 1323|       |
 1324|   845k|			switch ( yy_act ) { /* beginning of action switch */
 1325|       |
 1326|      0|			case 0: /* must back up */
  ------------------
  |  Branch (1326:4): [True: 0, False: 845k]
  ------------------
 1327|       |				/* undo the effects of YY_DO_BEFORE_ACTION */
 1328|      0|				*yy_cp = yyg->yy_hold_char;
 1329|       |
 1330|       |				/* Backing-up info for compressed tables is taken \after/ */
 1331|       |				/* yy_cp has been incremented for the next state. */
 1332|      0|				yy_cp = yyg->yy_last_accepting_cpos;
 1333|       |				
 1334|      0|				yy_current_state = yyg->yy_last_accepting_state;
 1335|      0|				goto yy_find_action;
 1336|       |
 1337|       |/* %% [5.0] user actions get inserted here */
 1338|  54.8k|	case 1:
  ------------------
  |  Branch (1338:2): [True: 54.8k, False: 790k]
  ------------------
 1339|  54.8k|YY_RULE_SETUP
  ------------------
  |  | 1181|  54.8k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|  54.8k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|  54.8k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|  54.8k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|  54.8k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1340|       |
 1341|  54.8k|#line 82 "/src/igraph/src/io/lgl-lexer.l"
 1342|  54.8k|{ /* skip space */ }
 1343|  54.8k|#line 1344 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1344|  54.8k|	YY_BREAK
  ------------------
  |  | 1177|  54.8k|#define YY_BREAK /*LINTED*/break;
  ------------------
 1345|       |/* --------------------------------------------------hashmark------*/
 1346|      0|#line 1347 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1347|  14.0k|	case 2:
  ------------------
  |  Branch (1347:2): [True: 14.0k, False: 831k]
  ------------------
 1348|  14.0k|YY_RULE_SETUP
  ------------------
  |  | 1181|  14.0k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|  14.0k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|  14.0k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|  14.0k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|  14.0k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1349|       |
 1350|  14.0k|#line 85 "/src/igraph/src/io/lgl-lexer.l"
 1351|  14.0k|{ BEGIN(LINE); return HASH; }
  ------------------
  |  |  419|  14.0k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(LINE); return HASH; }
  ------------------
  |  |  910|  14.0k|#define LINE 1
  ------------------
 1352|      0|#line 1353 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1353|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1354|       |/* ----------------------------------------------alphanumeric------*/
 1355|      0|#line 1356 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1356|   400k|	case 3:
  ------------------
  |  Branch (1356:2): [True: 400k, False: 444k]
  ------------------
 1357|   400k|YY_RULE_SETUP
  ------------------
  |  | 1181|   400k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|   400k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|   400k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   400k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   400k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1358|       |
 1359|   400k|#line 88 "/src/igraph/src/io/lgl-lexer.l"
 1360|   400k|{ BEGIN(LINE); return ALNUM; }
  ------------------
  |  |  419|   400k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(LINE); return ALNUM; }
  ------------------
  |  |  910|   400k|#define LINE 1
  ------------------
 1361|      0|#line 1362 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1362|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1363|       |/* ---------------------------------------------------newline------*/
 1364|      0|#line 1365 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1365|   360k|	case 4:
  ------------------
  |  Branch (1365:2): [True: 360k, False: 485k]
  ------------------
 1366|       |/* rule 4 can match eol */
 1367|   360k|YY_RULE_SETUP
  ------------------
  |  | 1181|   360k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|   360k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|   360k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   360k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   360k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1368|   360k|	case YY_STATE_EOF(LINE):
  ------------------
  |  |  427|   360k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|   360k|#define YY_END_OF_BUFFER 7
  |  |  ------------------
  ------------------
  |  Branch (1368:2): [True: 0, False: 845k]
  ------------------
 1369|   360k|#line 92 "/src/igraph/src/io/lgl-lexer.l"
 1370|   360k|{ BEGIN(INITIAL); return NEWLINE; }
  ------------------
  |  |  419|   360k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(INITIAL); return NEWLINE; }
  ------------------
  |  |  909|   360k|#define INITIAL 0
  ------------------
 1371|      0|#line 1372 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1372|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1373|       |/* ---------------------------------------------anything else------*/
 1374|      0|#line 1375 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1375|      0|	case 5:
  ------------------
  |  Branch (1375:2): [True: 0, False: 845k]
  ------------------
 1376|      0|YY_RULE_SETUP
  ------------------
  |  | 1181|      0|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1377|       |
 1378|      0|#line 95 "/src/igraph/src/io/lgl-lexer.l"
 1379|      0|{ return ERROR; }
 1380|      0|#line 1381 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1381|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1382|      0|	case 6:
  ------------------
  |  Branch (1382:2): [True: 0, False: 845k]
  ------------------
 1383|       |/* rule 6 can match eol */
 1384|      0|YY_RULE_SETUP
  ------------------
  |  | 1181|      0|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1385|       |
 1386|      0|YY_FATAL_ERROR("flex scanner jammed");
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1387|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1388|      0|#line 1389 "/src/igraph/build/src/io/parsers/lgl-lexer.c"
 1389|  3.20k|	case YY_STATE_EOF(INITIAL):
  ------------------
  |  |  427|  3.20k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.20k|#define YY_END_OF_BUFFER 7
  |  |  ------------------
  ------------------
  |  Branch (1389:2): [True: 3.20k, False: 842k]
  ------------------
 1390|  3.20k|		yyterminate();
  ------------------
  |  | 1145|  3.20k|#define yyterminate() return YY_NULL
  |  |  ------------------
  |  |  |  |  389|  3.20k|#define YY_NULL 0
  |  |  ------------------
  ------------------
 1391|       |
 1392|  12.2k|			case YY_END_OF_BUFFER:
  ------------------
  |  |  705|  12.2k|#define YY_END_OF_BUFFER 7
  ------------------
  |  Branch (1392:4): [True: 12.2k, False: 833k]
  ------------------
 1393|  12.2k|			{
 1394|       |				/* Amount of text matched not including the EOB char. */
 1395|  12.2k|				int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  ------------------
  |  |  669|  12.2k|#define yytext_ptr yytext_r
  ------------------
 1396|       |
 1397|       |				/* Undo the effects of YY_DO_BEFORE_ACTION. */
 1398|  12.2k|				*yy_cp = yyg->yy_hold_char;
 1399|  12.2k|				YY_RESTORE_YY_MORE_OFFSET
 1400|       |
 1401|  12.2k|				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  580|  12.2k|#define YY_BUFFER_NEW 0
  ------------------
  |  Branch (1401:10): [True: 3.20k, False: 9.00k]
  ------------------
 1402|       |					/* We're scanning a new file or input source.  It's
 1403|       |					 * possible that this happened because the user
 1404|       |					 * just pointed yyin at a new source and called
 1405|       |					 * yylex().  If so, then we have to assure
 1406|       |					 * consistency between yy_current_buffer() and our
 1407|       |					 * globals.  Here is the right place to do so, because
 1408|       |					 * this is the first action (other than possibly a
 1409|       |					 * back-up) that will match for the new input source.
 1410|       |					 */
 1411|  3.20k|					yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1412|       |
 1413|  3.20k|					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
 1414|       |
 1415|  3.20k|					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  581|  3.20k|#define YY_BUFFER_NORMAL 1
  ------------------
 1416|  3.20k|				}
 1417|       |
 1418|       |				/* Note that here we test for yy_c_buf_p "<=" to the position
 1419|       |				 * of the first EOB in the buffer, since yy_c_buf_p will
 1420|       |				 * already have been incremented past the NUL character
 1421|       |				 * (since all states make transitions on EOB to the
 1422|       |				 * end-of-buffer state).  Contrast this with the test
 1423|       |				 * in input().
 1424|       |				 */
 1425|  12.2k|				if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) { /* This was really a NUL. */
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1425:10): [True: 0, False: 12.2k]
  ------------------
 1426|      0|					yy_state_type yy_next_state;
 1427|       |
 1428|      0|					yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
 1429|       |
 1430|      0|					yy_current_state = yy_get_previous_state( yyscanner );
 1431|       |
 1432|       |					/* Okay, we're now positioned to make the NUL
 1433|       |					 * transition.  We couldn't have
 1434|       |					 * yy_get_previous_state() go ahead and do it
 1435|       |					 * for us because it doesn't know how to deal
 1436|       |					 * with the possibility of jamming (and we don't
 1437|       |					 * want to build jamming into it because then it
 1438|       |					 * will run more slowly).
 1439|       |					 */
 1440|       |
 1441|      0|					yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
 1442|       |
 1443|      0|					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|      0|#define YY_MORE_ADJ 0
  ------------------
 1444|       |
 1445|      0|					if ( yy_next_state ) {
  ------------------
  |  Branch (1445:11): [True: 0, False: 0]
  ------------------
 1446|       |						/* Consume the NUL. */
 1447|      0|						yy_cp = ++yyg->yy_c_buf_p;
 1448|      0|						yy_current_state = yy_next_state;
 1449|      0|						goto yy_match;
 1450|      0|					} else {
 1451|       |						
 1452|       |						/* Still need to initialize yy_cp, though
 1453|       |						 * yy_current_state was set up by
 1454|       |						 * yy_get_previous_state().
 1455|       |						 */
 1456|      0|						yy_cp = yyg->yy_c_buf_p;
 1457|       |
 1458|      0|						goto yy_find_action;
 1459|      0|					}
 1460|  12.2k|				} else {	/* not a NUL */
 1461|  12.2k|					switch ( yy_get_next_buffer( yyscanner ) ) {
 1462|  3.20k|					case EOB_ACT_END_OF_FILE:
  ------------------
  |  |  475|  3.20k|#define EOB_ACT_END_OF_FILE 1
  ------------------
  |  Branch (1462:6): [True: 3.20k, False: 9.00k]
  ------------------
 1463|  3.20k|						yyg->yy_did_buffer_switch_on_eof = 0;
 1464|       |
 1465|  3.20k|						if ( yywrap( yyscanner ) ) {
  ------------------
  |  |  245|  3.20k|#define yywrap igraph_lgl_yywrap
  |  |  ------------------
  |  |  |  |  657|  3.20k|#define igraph_lgl_yywrap(yyscanner) (/*CONSTCOND*/1)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (657:38): [True: 3.20k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1466|       |							/* Note: because we've taken care in
 1467|       |							 * yy_get_next_buffer() to have set up
 1468|       |							 * yytext, we can now set up
 1469|       |							 * yy_c_buf_p so that if some total
 1470|       |							 * hoser (like flex itself) wants to
 1471|       |							 * call the scanner after we return the
 1472|       |							 * YY_NULL, it'll still work - another
 1473|       |							 * YY_NULL will get returned.
 1474|       |							 */
 1475|  3.20k|							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  3.20k|#define yytext_ptr yytext_r
  ------------------
              							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  3.20k|#define YY_MORE_ADJ 0
  ------------------
 1476|       |
 1477|  3.20k|							yy_act = YY_STATE_EOF(YY_START);
  ------------------
  |  |  427|  3.20k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.20k|#define YY_END_OF_BUFFER 7
  |  |  ------------------
  ------------------
 1478|  3.20k|							goto do_action;
 1479|  3.20k|						} else {
 1480|      0|							if ( ! yyg->yy_did_buffer_switch_on_eof ) {
  ------------------
  |  Branch (1480:13): [True: 0, False: 0]
  ------------------
 1481|      0|								YY_NEW_FILE;
  ------------------
  |  |  429|      0|#define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  127|      0|#define yyrestart igraph_lgl_yyrestart
  |  |  ------------------
  |  |               #define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  404|      0|#define yyin yyg->yyin_r
  |  |  ------------------
  ------------------
 1482|      0|							}
 1483|      0|						}
 1484|      0|						break;
 1485|  6.71k|					case EOB_ACT_CONTINUE_SCAN:
  ------------------
  |  |  474|  6.71k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
  |  Branch (1485:6): [True: 6.71k, False: 5.49k]
  ------------------
 1486|  6.71k|						yyg->yy_c_buf_p =
 1487|  6.71k|							yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|  6.71k|#define yytext_ptr yytext_r
  ------------------
 1488|       |
 1489|  6.71k|						yy_current_state = yy_get_previous_state( yyscanner );
 1490|       |
 1491|  6.71k|						yy_cp = yyg->yy_c_buf_p;
 1492|  6.71k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  6.71k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  6.71k|#define YY_MORE_ADJ 0
  ------------------
 1493|  6.71k|						goto yy_match;
 1494|       |
 1495|  2.28k|					case EOB_ACT_LAST_MATCH:
  ------------------
  |  |  476|  2.28k|#define EOB_ACT_LAST_MATCH 2
  ------------------
  |  Branch (1495:6): [True: 2.28k, False: 9.92k]
  ------------------
 1496|  2.28k|						yyg->yy_c_buf_p =
 1497|  2.28k|						&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  ------------------
  |  |  611|  2.28k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1498|       |
 1499|  2.28k|						yy_current_state = yy_get_previous_state( yyscanner );
 1500|       |
 1501|  2.28k|						yy_cp = yyg->yy_c_buf_p;
 1502|  2.28k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  2.28k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  2.28k|#define YY_MORE_ADJ 0
  ------------------
 1503|  2.28k|						goto yy_find_action;
 1504|      0|					default:
  ------------------
  |  Branch (1504:6): [True: 0, False: 12.2k]
  ------------------
 1505|      0|						YY_FATAL_ERROR("unexpected return value from yy_get_next_buffer()");
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1506|  12.2k|					} /* end EOB inner switch */
 1507|  12.2k|				} /* end if */
 1508|      0|				break;
 1509|  12.2k|			} /* case YY_END_OF_BUFFER */
 1510|      0|			default:
  ------------------
  |  Branch (1510:4): [True: 0, False: 845k]
  ------------------
 1511|      0|				YY_FATAL_ERROR("fatal flex scanner internal error--no action found" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1512|   845k|			} /* end of action switch */
 1513|   845k|		} /* end of scanning one token */
 1514|   778k|	} /* end of user's declarations */
 1515|   778k|} /* end of yylex */
igraph_lgl_yyrestart:
 1877|  3.20k|{
 1878|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1879|       |
 1880|  3.20k|	if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
  |  Branch (1880:7): [True: 0, False: 3.20k]
  ------------------
 1881|      0|		yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|      0|#define yyensure_buffer_stack igraph_lgl_yyensure_buffer_stack
  ------------------
 1882|      0|		YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1883|      0|	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|      0|#define yy_create_buffer igraph_lgl_yy_create_buffer
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|      0|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|      0|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1884|      0|	}
 1885|       |
 1886|  3.20k|	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |   79|  3.20k|#define yy_init_buffer igraph_lgl_yy_init_buffer
  ------------------
              	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1887|  3.20k|	yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.20k|#define yy_load_buffer_state igraph_lgl_yy_load_buffer_state
  ------------------
 1888|       |
 1889|       |	/* We don't actually know whether we did this switch during
 1890|       |	 * EOF (yywrap()) processing, but the only time this flag
 1891|       |	 * is looked at is after yywrap() is called, so it's safe
 1892|       |	 * to go ahead and always set it.
 1893|       |	 */
 1894|  3.20k|	yyg->yy_did_buffer_switch_on_eof = 1;
 1895|  3.20k|}
igraph_lgl_yy_create_buffer:
 1957|  3.20k|{
 1958|  3.20k|	yybuffer b;
 1959|       |
 1960|  3.20k|	b = (yybuffer) yyalloc( sizeof( *b ) , yyscanner );
  ------------------
  |  |  275|  3.20k|#define yyalloc igraph_lgl_yyalloc
  ------------------
 1961|  3.20k|	if (  b == NULL ) {
  ------------------
  |  Branch (1961:8): [True: 0, False: 3.20k]
  ------------------
 1962|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1963|      0|	}
 1964|  3.20k|	b->yy_buf_size = size;
 1965|       |
 1966|       |	/* yy_ch_buf has to be 2 characters longer than the size given because
 1967|       |	 * we need to put in 2 end-of-buffer characters.
 1968|       |	 */
 1969|  3.20k|	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
  ------------------
  |  |  275|  3.20k|#define yyalloc igraph_lgl_yyalloc
  ------------------
 1970|  3.20k|	if ( b->yy_ch_buf == NULL ) {
  ------------------
  |  Branch (1970:7): [True: 0, False: 3.20k]
  ------------------
 1971|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1972|      0|	}
 1973|  3.20k|	b->yy_is_our_buffer = 1;
 1974|       |
 1975|  3.20k|	yy_init_buffer( b, file , yyscanner);
  ------------------
  |  |   79|  3.20k|#define yy_init_buffer igraph_lgl_yy_init_buffer
  ------------------
 1976|       |
 1977|  3.20k|	return b;
 1978|  3.20k|}
igraph_lgl_yy_delete_buffer:
 1987|  3.20k|{
 1988|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1989|       |
 1990|  3.20k|	if ( b == NULL ) {
  ------------------
  |  Branch (1990:7): [True: 0, False: 3.20k]
  ------------------
 1991|      0|		return;
 1992|      0|	}
 1993|  3.20k|	if ( b == yy_current_buffer() ) {	/* Not sure if we should pop here. */
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
  |  Branch (1993:7): [True: 3.20k, False: 0]
  ------------------
 1994|  3.20k|		YY_CURRENT_BUFFER_LVALUE = (yybuffer) 0;
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1995|  3.20k|	}
 1996|  3.20k|	if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (1996:7): [True: 3.20k, False: 0]
  ------------------
 1997|  3.20k|		yyfree( (void *) b->yy_ch_buf , yyscanner );
  ------------------
  |  |  287|  3.20k|#define yyfree igraph_lgl_yyfree
  ------------------
 1998|  3.20k|	}
 1999|  3.20k|	yyfree( (void *) b , yyscanner );
  ------------------
  |  |  287|  3.20k|#define yyfree igraph_lgl_yyfree
  ------------------
 2000|  3.20k|}
igraph_lgl_yy_flush_buffer:
 2054|  6.41k|{
 2055|  6.41k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2056|  6.41k|	if ( b == NULL ) {
  ------------------
  |  Branch (2056:7): [True: 0, False: 6.41k]
  ------------------
 2057|      0|		return;
 2058|      0|	}
 2059|  6.41k|	b->yy_n_chars = 0;
 2060|       |
 2061|       |	/* We always need two end-of-buffer characters.  The first causes
 2062|       |	 * a transition to the end-of-buffer state.  The second causes
 2063|       |	 * a jam in that state.
 2064|       |	 */
 2065|  6.41k|	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.41k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2066|  6.41k|	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.41k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2067|       |
 2068|  6.41k|	b->yy_buf_pos = &b->yy_ch_buf[0];
 2069|       |
 2070|  6.41k|	b->yy_at_bol = 1;
 2071|  6.41k|	b->yy_at_bol_before_match = 1;
 2072|  6.41k|	b->yy_buffer_status = YY_BUFFER_NEW;
  ------------------
  |  |  580|  6.41k|#define YY_BUFFER_NEW 0
  ------------------
 2073|       |
 2074|  6.41k|	if ( b == yy_current_buffer() ) {
  ------------------
  |  |  603|  6.41k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.41k, False: 0]
  |  |  ------------------
  |  |  604|  6.41k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.41k|                          : NULL)
  ------------------
  |  Branch (2074:7): [True: 3.20k, False: 3.20k]
  ------------------
 2075|  3.20k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.20k|#define yy_load_buffer_state igraph_lgl_yy_load_buffer_state
  ------------------
 2076|  3.20k|	}
 2077|  6.41k|}
igraph_lgl_yypop_buffer_state:
 2123|  3.20k|{
 2124|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2125|  3.20k|	if (yy_current_buffer() == NULL) {
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
  |  Branch (2125:6): [True: 0, False: 3.20k]
  ------------------
 2126|      0|		return;
 2127|      0|	}
 2128|  3.20k|	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |   55|  3.20k|#define yy_delete_buffer igraph_lgl_yy_delete_buffer
  ------------------
              	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
 2129|  3.20k|	YY_CURRENT_BUFFER_LVALUE = NULL;
  ------------------
  |  |  611|  3.20k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2130|  3.20k|	if (yyg->yy_buffer_stack_top > 0) {
  ------------------
  |  Branch (2130:6): [True: 0, False: 3.20k]
  ------------------
 2131|      0|		--yyg->yy_buffer_stack_top;
 2132|      0|	}
 2133|  3.20k|	if (yy_current_buffer() != NULL) {
  ------------------
  |  |  603|  3.20k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.20k, False: 0]
  |  |  ------------------
  |  |  604|  3.20k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.20k|                          : NULL)
  ------------------
  |  Branch (2133:6): [True: 0, False: 3.20k]
  ------------------
 2134|      0|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|      0|#define yy_load_buffer_state igraph_lgl_yy_load_buffer_state
  ------------------
 2135|      0|		yyg->yy_did_buffer_switch_on_eof = 1;
 2136|      0|	}
 2137|  3.20k|}
igraph_lgl_yyget_leng:
 2356|   400k|int yyget_leng  (yyscan_t yyscanner) {
 2357|   400k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2358|   400k|	return yyleng;
  ------------------
  |  |  407|   400k|#define yyleng yyg->yyleng_r
  ------------------
 2359|   400k|}
igraph_lgl_yyget_text:
 2365|   400k|char *yyget_text  (yyscan_t yyscanner) {
 2366|   400k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2367|   400k|	return yytext;
  ------------------
  |  |  408|   400k|#define yytext yyg->yytext_r
  ------------------
 2368|   400k|}
igraph_lgl_yyset_extra:
 2374|  6.41k|void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner) {
 2375|  6.41k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2376|  6.41k|	yyextra = user_defined ;
  ------------------
  |  |  406|  6.41k|#define yyextra yyg->yyextra_r
  ------------------
 2377|  6.41k|}
igraph_lgl_yyset_in:
 2415|  3.20k|void yyset_in (FILE *  _in_str , yyscan_t yyscanner) {
 2416|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2417|  3.20k|	yyin = _in_str ;
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
 2418|  3.20k|}
igraph_lgl_yylex_init_extra:
 2489|  3.20k|int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) {
 2490|  3.20k|	struct yyguts_t dummy_yyguts;
 2491|       |
 2492|  3.20k|	yyset_extra (yy_user_defined, &dummy_yyguts);
  ------------------
  |  |  169|  3.20k|#define yyset_extra igraph_lgl_yyset_extra
  ------------------
 2493|       |
 2494|  3.20k|	if (ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2494:6): [True: 0, False: 3.20k]
  ------------------
 2495|      0|		errno = EINVAL;
 2496|      0|		return 1;
 2497|      0|	}
 2498|       |
 2499|  3.20k|	*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
  ------------------
  |  |  275|  3.20k|#define yyalloc igraph_lgl_yyalloc
  ------------------
 2500|       |
 2501|  3.20k|	if (*ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2501:6): [True: 0, False: 3.20k]
  ------------------
 2502|      0|		errno = ENOMEM;
 2503|      0|		return 1;
 2504|      0|	}
 2505|       |
 2506|       |	/* By setting to 0xAA, we expose bugs in
 2507|       |	   yy_init_globals. Leave at 0x00 for releases. */
 2508|  3.20k|	memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
 2509|       |
 2510|  3.20k|	yyset_extra (yy_user_defined, *ptr_yy_globals);
  ------------------
  |  |  169|  3.20k|#define yyset_extra igraph_lgl_yyset_extra
  ------------------
 2511|       |
 2512|  3.20k|	return yy_init_globals ( *ptr_yy_globals );
 2513|  3.20k|}
igraph_lgl_yylex_destroy:
 2548|  3.20k|int yylex_destroy  (yyscan_t yyscanner) {
 2549|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2550|       |
 2551|       |	/* Pop the buffer stack, destroying each element. */
 2552|  6.41k|	while(yy_current_buffer()) {
  ------------------
  |  |  603|  6.41k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:29): [True: 3.20k, False: 3.20k]
  |  |  |  Branch (603:31): [True: 6.41k, False: 0]
  |  |  ------------------
  |  |  604|  6.41k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.41k|                          : NULL)
  ------------------
 2553|  3.20k|		yypop_buffer_state(yyscanner);
  ------------------
  |  |  109|  3.20k|#define yypop_buffer_state igraph_lgl_yypop_buffer_state
  ------------------
 2554|  3.20k|	}
 2555|       |
 2556|       |	/* Destroy the stack itself. */
 2557|  3.20k|	yyfree(yyg->yy_buffer_stack , yyscanner);
  ------------------
  |  |  287|  3.20k|#define yyfree igraph_lgl_yyfree
  ------------------
 2558|  3.20k|	yyg->yy_buffer_stack = NULL;
 2559|       |
 2560|       |	/* Destroy the start condition stack. */
 2561|  3.20k|        yyfree( yyg->yy_start_stack , yyscanner );
  ------------------
  |  |  287|  3.20k|#define yyfree igraph_lgl_yyfree
  ------------------
 2562|  3.20k|        yyg->yy_start_stack = NULL;
 2563|       |
 2564|       |	/* Reset the globals. This is important in a non-reentrant scanner so the next time
 2565|       |	 * yylex() is called, initialization will occur. */
 2566|  3.20k|	yy_init_globals( yyscanner);
 2567|       |
 2568|       |	/* Destroy the main struct (reentrant only). */
 2569|  3.20k|	yyfree ( yyscanner , yyscanner );
  ------------------
  |  |  287|  3.20k|#define yyfree igraph_lgl_yyfree
  ------------------
 2570|  3.20k|	yyscanner = NULL;
 2571|       |
 2572|  3.20k|	return 0;
 2573|  3.20k|}
igraph_lgl_yyalloc:
 2602|  12.8k|void *yyalloc (yy_size_t  size , yyscan_t yyscanner) {
 2603|  12.8k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2604|  12.8k|	(void)yyg;
 2605|  12.8k|	return malloc(size);
 2606|  12.8k|}
igraph_lgl_yyrealloc:
 2608|     56|void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner) {
 2609|     56|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2610|     56|	(void)yyg;
 2611|       |
 2612|       |	/* The cast to (char *) in the following accommodates both
 2613|       |	 * implementations that use char* generic pointers, and those
 2614|       |	 * that use void* generic pointers.  It works with the latter
 2615|       |	 * because both ANSI C and C++ allow castless assignment from
 2616|       |	 * any pointer type to void*, and deal with argument conversions
 2617|       |	 * as though doing an assignment.
 2618|       |	 */
 2619|     56|	return realloc(ptr, size);
 2620|     56|}
igraph_lgl_yyfree:
 2622|  16.0k|void yyfree (void * ptr , yyscan_t yyscanner) {
 2623|  16.0k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2624|  16.0k|	(void)yyg;
 2625|  16.0k|	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
 2626|  16.0k|}
lgl-lexer.c:yy_get_next_buffer:
 1527|  12.2k|{
 1528|  12.2k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1529|  12.2k|	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1530|  12.2k|	char *source = yyg->yytext_ptr;
  ------------------
  |  |  669|  12.2k|#define yytext_ptr yytext_r
  ------------------
 1531|  12.2k|	int number_to_move, i;
 1532|  12.2k|	int ret_val;
 1533|       |
 1534|  12.2k|	if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) {
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1534:7): [True: 0, False: 12.2k]
  ------------------
 1535|      0|		YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1536|      0|	}
 1537|  12.2k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) {
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1537:7): [True: 0, False: 12.2k]
  ------------------
 1538|       |		/* Don't try to fill the buffer, so this is an EOF. */
 1539|      0|		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  839|      0|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1539:8): [True: 0, False: 0]
  ------------------
 1540|       |			/* We matched a single character, the EOB, so
 1541|       |			 * treat this as a final EOF.
 1542|       |			 */
 1543|      0|			return EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|      0|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1544|      0|		} else {
 1545|       |			/* We matched some text prior to the EOB, first
 1546|       |			 * process it.
 1547|       |			 */
 1548|      0|			return EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|      0|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1549|      0|		}
 1550|      0|	}
 1551|       |
 1552|       |	/* Try to read more data. */
 1553|       |
 1554|       |	/* First move last chars to start of buffer. */
 1555|  12.2k|	number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
  ------------------
  |  |  669|  12.2k|#define yytext_ptr yytext_r
  ------------------
 1556|       |
 1557|   178M|	for ( i = 0; i < number_to_move; ++i ) {
  ------------------
  |  Branch (1557:15): [True: 178M, False: 12.2k]
  ------------------
 1558|   178M|		*(dest++) = *(source++);
 1559|   178M|	}
 1560|  12.2k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  592|  12.2k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
  |  Branch (1560:7): [True: 2.28k, False: 9.92k]
  ------------------
 1561|       |		/* don't do the read, it's not guaranteed to return an EOF,
 1562|       |		 * just force an EOF
 1563|       |		 */
 1564|  2.28k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  ------------------
  |  |  611|  2.28k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1565|  9.92k|	} else {
 1566|  9.92k|		int num_to_read =
 1567|  9.92k|			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  ------------------
  |  |  611|  9.92k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1568|       |
 1569|  9.98k|		while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */
  ------------------
  |  Branch (1569:11): [True: 56, False: 9.92k]
  ------------------
 1570|       |
 1571|       |			/* just a shorter name for the current buffer */
 1572|     56|			yybuffer b = YY_CURRENT_BUFFER_LVALUE;
  ------------------
  |  |  611|     56|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1573|       |
 1574|     56|			int yy_c_buf_p_offset =
 1575|     56|				(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
 1576|       |
 1577|     56|			if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (1577:9): [True: 56, False: 0]
  ------------------
 1578|     56|				int new_size = b->yy_buf_size * 2;
 1579|       |
 1580|     56|				if ( new_size <= 0 ) {
  ------------------
  |  Branch (1580:10): [True: 0, False: 56]
  ------------------
 1581|      0|					b->yy_buf_size += b->yy_buf_size / 8;
 1582|     56|				} else {
 1583|     56|					b->yy_buf_size *= 2;
 1584|     56|				}
 1585|     56|				b->yy_ch_buf = (char *)
 1586|       |					/* Include room in for 2 EOB chars. */
 1587|     56|					yyrealloc( (void *) b->yy_ch_buf,
  ------------------
  |  |  281|     56|#define yyrealloc igraph_lgl_yyrealloc
  ------------------
 1588|     56|							 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
 1589|     56|			} else {
 1590|       |				/* Can't grow it, we don't own it. */
 1591|      0|				b->yy_ch_buf = NULL;
 1592|      0|			}
 1593|     56|			if ( ! b->yy_ch_buf ) {
  ------------------
  |  Branch (1593:9): [True: 0, False: 56]
  ------------------
 1594|      0|				YY_FATAL_ERROR(
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1595|      0|				"fatal error - scanner input buffer overflow" );
 1596|      0|			}
 1597|     56|			yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
 1598|       |
 1599|     56|			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  ------------------
  |  |  611|     56|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1600|     56|						number_to_move - 1;
 1601|       |
 1602|     56|		}
 1603|       |
 1604|  9.92k|		if ( num_to_read > YY_READ_BUF_SIZE ) {
  ------------------
  |  |  682|  9.92k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
  |  Branch (1604:8): [True: 9.23k, False: 691]
  ------------------
 1605|  9.23k|			num_to_read = YY_READ_BUF_SIZE;
  ------------------
  |  |  682|  9.23k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
 1606|  9.23k|		}
 1607|       |		/* Read in more data. */
 1608|  9.92k|		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  ------------------
  |  | 1096|  9.92k|#define YY_INPUT(buf,result,max_size) do {result = yyread(buf, max_size , yyscanner);} while (0)
  |  |  ------------------
  |  |  |  Branch (1096:95): [Folded, False: 9.92k]
  |  |  ------------------
  ------------------
 1609|  9.92k|			yyg->yy_n_chars, num_to_read );
 1610|       |
 1611|  9.92k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  ------------------
  |  |  611|  9.92k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1612|  9.92k|	}
 1613|       |
 1614|  12.2k|	if ( yyg->yy_n_chars == 0 ) {
  ------------------
  |  Branch (1614:7): [True: 5.49k, False: 6.71k]
  ------------------
 1615|  5.49k|		if ( number_to_move == YY_MORE_ADJ ) {
  ------------------
  |  |  839|  5.49k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1615:8): [True: 3.20k, False: 2.28k]
  ------------------
 1616|  3.20k|			ret_val = EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|  3.20k|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1617|  3.20k|			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  127|  3.20k|#define yyrestart igraph_lgl_yyrestart
  ------------------
              			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
 1618|  3.20k|		} else {
 1619|  2.28k|			ret_val = EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|  2.28k|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1620|  2.28k|			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  ------------------
  |  |  611|  2.28k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1621|  2.28k|				YY_BUFFER_EOF_PENDING;
  ------------------
  |  |  592|  2.28k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
 1622|  2.28k|		}
 1623|  6.71k|	} else {
 1624|  6.71k|		ret_val = EOB_ACT_CONTINUE_SCAN;
  ------------------
  |  |  474|  6.71k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
 1625|  6.71k|	}
 1626|  12.2k|	if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1626:6): [True: 0, False: 12.2k]
  ------------------
 1627|       |		/* Extend the array by 50%, plus the number we really need. */
 1628|      0|		int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1) + 2;
 1629|      0|		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  281|      0|#define yyrealloc igraph_lgl_yyrealloc
  ------------------
 1630|      0|			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1631|      0|		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) {
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1631:8): [True: 0, False: 0]
  ------------------
 1632|      0|			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1633|      0|		}
 1634|       |		/* "- 2" to take care of EOB's */
 1635|      0|		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1636|      0|	}
 1637|       |
 1638|  12.2k|	yyg->yy_n_chars += number_to_move;
 1639|  12.2k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  12.2k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1640|  12.2k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  12.2k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1641|       |
 1642|  12.2k|	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  669|  12.2k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  611|  12.2k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1643|       |
 1644|  12.2k|	return ret_val;
 1645|  12.2k|}
lgl-lexer.c:yyread:
 1105|  9.92k|static int yyread(char *buf, size_t max_size , yyscan_t yyscanner) {
 1106|       |
 1107|  9.92k|	int result;
 1108|  9.92k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1109|       |
 1110|  9.92k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) {
  ------------------
  |  |  611|  9.92k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1110:7): [True: 0, False: 9.92k]
  ------------------
 1111|      0|		int c = '*';
 1112|      0|		yy_size_t n;
 1113|      0|		for ( n = 0; n < max_size &&
  ------------------
  |  Branch (1113:16): [True: 0, False: 0]
  ------------------
 1114|      0|			      (c = getc( yyin )) != EOF && c != '\n'; ++n ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1114:10): [True: 0, False: 0]
  |  Branch (1114:39): [True: 0, False: 0]
  ------------------
 1115|      0|			buf[n] = (char) c;
 1116|      0|		}
 1117|      0|		if ( c == '\n' ) {
  ------------------
  |  Branch (1117:8): [True: 0, False: 0]
  ------------------
 1118|      0|			buf[n++] = (char) c;
 1119|      0|		}
 1120|      0|		if ( c == EOF && ferror( yyin ) ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1120:8): [True: 0, False: 0]
  |  Branch (1120:20): [True: 0, False: 0]
  ------------------
 1121|      0|			YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1122|      0|		}
 1123|      0|		result = n;
 1124|  9.92k|	} else {
 1125|  9.92k|		errno=0;
 1126|  9.92k|		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  9.92k|#define yyin yyg->yyin_r
  ------------------
              		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  3.20k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1126:11): [True: 3.20k, False: 6.71k]
  |  Branch (1126:78): [True: 0, False: 3.20k]
  ------------------
 1127|      0|			if( errno != EINTR) {
  ------------------
  |  Branch (1127:8): [True: 0, False: 0]
  ------------------
 1128|      0|				YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1129|      0|				break;
 1130|      0|			}
 1131|      0|			errno=0;
 1132|      0|			clearerr(yyin);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1133|      0|		}
 1134|  9.92k|	}
 1135|       |
 1136|  9.92k|	 return result;
 1137|  9.92k|}
lgl-lexer.c:yy_get_previous_state:
 1651|  9.00k|{
 1652|  9.00k|	yy_state_type yy_current_state;
 1653|  9.00k|	char *yy_cp;
 1654|  9.00k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1655|       |
 1656|       |	/* Generate the code to find the start state. */
 1657|       |
 1658|  9.00k|			yy_current_state = yyg->yy_start;
 1659|       |
 1660|       |			/* Set up for storing up states. */
 1661|       |			
 1662|   178M|	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  669|  9.00k|#define yytext_ptr yytext_r
  ------------------
              	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  839|  9.00k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1662:47): [True: 178M, False: 9.00k]
  ------------------
 1663|       |		/* Generate the code to find the next state. */
 1664|       |		
 1665|   178M|	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  394|   178M|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
              	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  708|      0|#define YY_NUL_EC 1
  ------------------
  |  Branch (1665:14): [True: 178M, False: 0]
  ------------------
 1666|       |	/* Save the backing-up info \before/ computing the next state
 1667|       |	 * because we always compute one more state than needed - we
 1668|       |	 * always proceed until we reach a jam state
 1669|       |	 */
 1670|       |	
 1671|       |		/* Generate code to keep backing-up information. */
 1672|       |
 1673|   178M|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1673:8): [True: 178M, False: 6.65k]
  ------------------
 1674|       |
 1675|   178M|			yyg->yy_last_accepting_state = yy_current_state;
 1676|   178M|			yyg->yy_last_accepting_cpos = yy_cp;
 1677|   178M|		}
 1678|       |
 1679|   356M|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1679:10): [True: 178M, False: 178M]
  ------------------
 1680|   178M|		yy_current_state = (int) yy_def[yy_current_state];
 1681|       |
 1682|       |		/* We've arranged it so that templates are never chained
 1683|       |		 * to one another.  This means we can afford to make a
 1684|       |		 * very simple test to see if we need to convert to
 1685|       |		 * yy_c's meta-equivalence class without worrying
 1686|       |		 * about erroneously looking up the meta-equivalence
 1687|       |		 * class twice
 1688|       |		 */
 1689|       |
 1690|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1691|   178M|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|   178M|#define YY_JAMSTATE 15
  ------------------
  |  Branch (1691:7): [True: 178M, False: 3.63k]
  ------------------
 1692|   178M|			yy_c = yy_meta[yy_c];
 1693|   178M|		}
 1694|       |
 1695|   178M|	}
 1696|   178M|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1697|       |
 1698|   178M|	}
 1699|       |
 1700|  9.00k|	return yy_current_state;
 1701|  9.00k|}
lgl-lexer.c:igraph_lgl_yy_load_buffer_state:
 1936|  9.62k|{
 1937|  9.62k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1938|  9.62k|	yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  9.62k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1939|  9.62k|	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  669|  9.62k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  611|  9.62k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1940|       |
 1941|  9.62k|	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  404|  9.62k|#define yyin yyg->yyin_r
  ------------------
              	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  611|  9.62k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1942|       |
 1943|  9.62k|	yyg->yy_hold_char = *yyg->yy_c_buf_p;
 1944|  9.62k|	yyg->yy_hold_ptr = yyg->yy_c_buf_p;
 1945|       |
 1946|  9.62k|}
lgl-lexer.c:igraph_lgl_yy_init_buffer:
 2009|  6.41k|{
 2010|  6.41k|	int oerrno = errno;
 2011|  6.41k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2012|       |
 2013|  6.41k|	yy_flush_buffer( b , yyscanner);
  ------------------
  |  |   85|  6.41k|#define yy_flush_buffer igraph_lgl_yy_flush_buffer
  ------------------
 2014|       |
 2015|  6.41k|	b->yy_input_file = file;
 2016|       |
 2017|  6.41k|#ifdef YY_INPUT_IS_OURS
 2018|       |    /* b->yy_input_file should never by NULL but we'll handle it cleanly
 2019|       |	 * on the off chance.
 2020|       |	 */
 2021|  6.41k|	if (b->yy_input_file == NULL){
  ------------------
  |  Branch (2021:6): [True: 0, False: 6.41k]
  ------------------
 2022|      0|	  b->yy_fill_buffer = 0;
 2023|  6.41k|	} else {
 2024|  6.41k|	  b->yy_fill_buffer = 1;
 2025|  6.41k|	}
 2026|       |#else
 2027|       |	/* A user-defined YY_INPUT or yyread() need not read the FILE at
 2028|       |	 * all, so a NULL file does not mean there is nothing to read.
 2029|       |	 */
 2030|       |	b->yy_fill_buffer = 1;
 2031|       |#endif
 2032|       |
 2033|       |	/* If b is the current buffer, then yy_init_buffer was _probably_
 2034|       |	 * called from yyrestart() or through yy_get_next_buffer.
 2035|       |	 * In that case, we don't want to reset the lineno or column.
 2036|       |	 */
 2037|  6.41k|	if (b != yy_current_buffer()) {
  ------------------
  |  |  603|  6.41k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.41k, False: 0]
  |  |  ------------------
  |  |  604|  6.41k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.41k|                          : NULL)
  ------------------
  |  Branch (2037:6): [True: 3.20k, False: 3.20k]
  ------------------
 2038|  3.20k|		b->yy_bs_lineno = 1;
 2039|  3.20k|		b->yy_bs_column = 0;
 2040|  3.20k|	}
 2041|       |
 2042|  6.41k|        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  ------------------
  |  Branch (2042:32): [True: 6.41k, False: 0]
  ------------------
 2043|       |    
 2044|       |	errno = oerrno;
 2045|  6.41k|}
lgl-lexer.c:igraph_lgl_yyensure_buffer_stack:
 2145|  3.20k|{
 2146|  3.20k|	yy_size_t num_to_alloc;
 2147|  3.20k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2148|       |
 2149|  3.20k|	if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2149:6): [True: 3.20k, False: 0]
  ------------------
 2150|       |		/* First allocation is just for 2 elements, since we don't know if this
 2151|       |		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
 2152|       |		 * immediate realloc on the next call.
 2153|       |		 */
 2154|  3.20k|		num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
 2155|  3.20k|		yyg->yy_buffer_stack = (yybuffer *) yyalloc
  ------------------
  |  |  275|  3.20k|#define yyalloc igraph_lgl_yyalloc
  ------------------
 2156|  3.20k|								(num_to_alloc * sizeof(yybuffer)
 2157|  3.20k|								, yyscanner);
 2158|  3.20k|		if ( yyg->yy_buffer_stack == NULL ) {
  ------------------
  |  Branch (2158:8): [True: 0, False: 3.20k]
  ------------------
 2159|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2160|      0|		}
 2161|       |
 2162|  3.20k|		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(yybuffer));
 2163|       |
 2164|  3.20k|		yyg->yy_buffer_stack_max = num_to_alloc;
 2165|  3.20k|		yyg->yy_buffer_stack_top = 0;
 2166|  3.20k|		return;
 2167|  3.20k|	}
 2168|       |
 2169|      0|	if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1) {
  ------------------
  |  Branch (2169:6): [True: 0, False: 0]
  ------------------
 2170|       |		/* Increase the buffer to prepare for a possible push. */
 2171|      0|		yy_size_t grow_size = 8 /* arbitrary grow size */;
 2172|       |
 2173|      0|		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
 2174|      0|		yyg->yy_buffer_stack = (yybuffer *) yyrealloc
  ------------------
  |  |  281|      0|#define yyrealloc igraph_lgl_yyrealloc
  ------------------
 2175|      0|								(yyg->yy_buffer_stack,
 2176|      0|								num_to_alloc * sizeof(yybuffer)
 2177|      0|								, yyscanner);
 2178|      0|		if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2178:7): [True: 0, False: 0]
  ------------------
 2179|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in LGL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2180|      0|		}
 2181|       |		/* zero only the new slots.*/
 2182|      0|		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(yybuffer));
 2183|      0|		yyg->yy_buffer_stack_max = num_to_alloc;
 2184|      0|	}
 2185|      0|}
lgl-lexer.c:yy_init_globals:
 2515|  6.41k|static int yy_init_globals (yyscan_t yyscanner) {
 2516|  6.41k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2517|       |	/* Initialization is the same as for the non-reentrant scanner.
 2518|       |	 * This function is called from yylex_destroy(), so don't allocate here.
 2519|       |	 */
 2520|       |
 2521|  6.41k|	yyg->yy_buffer_stack = NULL;
 2522|  6.41k|	yyg->yy_buffer_stack_top = 0;
 2523|  6.41k|	yyg->yy_buffer_stack_max = 0;
 2524|  6.41k|	yyg->yy_c_buf_p = NULL;
 2525|  6.41k|	yyg->yy_init = 0;
 2526|  6.41k|	yyg->yy_start = 0;
 2527|       |
 2528|  6.41k|	yyg->yy_start_stack_ptr = 0;
 2529|  6.41k|	yyg->yy_start_stack_depth = 0;
 2530|  6.41k|	yyg->yy_start_stack =  NULL;
 2531|       |
 2532|       |/* Defined in main.c */
 2533|       |#ifdef YY_STDINIT
 2534|       |	yyin = stdin;
 2535|       |	yyout = stdout;
 2536|       |#else
 2537|  6.41k|	yyin = NULL;
  ------------------
  |  |  404|  6.41k|#define yyin yyg->yyin_r
  ------------------
 2538|  6.41k|	yyout = NULL;
  ------------------
  |  |  405|  6.41k|#define yyout yyg->yyout_r
  ------------------
 2539|  6.41k|#endif
 2540|       |
 2541|       |	/* For future reference: Set errno on error, since we are called by
 2542|       |	 * yylex_init()
 2543|       |	 */
 2544|  6.41k|	return 0;
 2545|  6.41k|}

igraph_lgl_yyparse:
 1226|  3.20k|{
 1227|       |/* Lookahead token kind.  */
 1228|  3.20k|int yychar;
 1229|       |
 1230|       |
 1231|       |/* The semantic value of the lookahead symbol.  */
 1232|       |/* Default value used for initialization, for pacifying older GCCs
 1233|       |   or non-GCC compilers.  */
 1234|  3.20k|YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
  ------------------
  |  |  333|  3.20k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1235|  3.20k|YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
  ------------------
  |  |  333|  3.20k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1236|       |
 1237|       |/* Location data for the lookahead symbol.  */
 1238|  3.20k|static YYLTYPE yyloc_default
 1239|  3.20k|# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
 1240|  3.20k|  = { 1, 1, 1, 1 }
 1241|  3.20k|# endif
 1242|  3.20k|;
 1243|  3.20k|YYLTYPE yylloc = yyloc_default;
 1244|       |
 1245|       |    /* Number of syntax errors so far.  */
 1246|  3.20k|    int yynerrs = 0;
 1247|       |
 1248|  3.20k|    yy_state_fast_t yystate = 0;
 1249|       |    /* Number of tokens to shift before error messages enabled.  */
 1250|  3.20k|    int yyerrstatus = 0;
 1251|       |
 1252|       |    /* Refer to the stacks through separate pointers, to allow yyoverflow
 1253|       |       to reallocate them elsewhere.  */
 1254|       |
 1255|       |    /* Their size.  */
 1256|  3.20k|    YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  240|  3.20k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
                  YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  908|  3.20k|# define YYINITDEPTH 200
  ------------------
 1257|       |
 1258|       |    /* The state stack: array, bottom, top.  */
 1259|  3.20k|    yy_state_t yyssa[YYINITDEPTH];
 1260|  3.20k|    yy_state_t *yyss = yyssa;
 1261|  3.20k|    yy_state_t *yyssp = yyss;
 1262|       |
 1263|       |    /* The semantic value stack: array, bottom, top.  */
 1264|  3.20k|    YYSTYPE yyvsa[YYINITDEPTH];
 1265|  3.20k|    YYSTYPE *yyvs = yyvsa;
 1266|  3.20k|    YYSTYPE *yyvsp = yyvs;
 1267|       |
 1268|       |    /* The location stack: array, bottom, top.  */
 1269|  3.20k|    YYLTYPE yylsa[YYINITDEPTH];
 1270|  3.20k|    YYLTYPE *yyls = yylsa;
 1271|  3.20k|    YYLTYPE *yylsp = yyls;
 1272|       |
 1273|  3.20k|  int yyn;
 1274|       |  /* The return value of yyparse.  */
 1275|  3.20k|  int yyresult;
 1276|       |  /* Lookahead symbol kind.  */
 1277|  3.20k|  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
 1278|       |  /* The variables used to return semantic value and location from the
 1279|       |     action routines.  */
 1280|  3.20k|  YYSTYPE yyval;
 1281|  3.20k|  YYLTYPE yyloc;
 1282|       |
 1283|       |  /* The locations where the error started and ended.  */
 1284|  3.20k|  YYLTYPE yyerror_range[3];
 1285|       |
 1286|       |  /* Buffer for error messages, and its allocated size.  */
 1287|  3.20k|  char yymsgbuf[128];
 1288|  3.20k|  char *yymsg = yymsgbuf;
 1289|  3.20k|  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
  ------------------
  |  |  240|  3.20k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1290|       |
 1291|  3.20k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
 1292|       |
 1293|       |  /* The number of symbols on the RHS of the reduced rule.
 1294|       |     Keep to zero when no symbol should be popped.  */
 1295|  3.20k|  int yylen = 0;
 1296|       |
 1297|  3.20k|  YYDPRINTF ((stderr, "Starting parse\n"));
  ------------------
  |  |  899|  3.20k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1298|       |
 1299|  3.20k|  yychar = YYEMPTY; /* Cause a token to be read.  */
 1300|       |
 1301|  3.20k|  yylsp[0] = yylloc;
 1302|  3.20k|  goto yysetstate;
 1303|       |
 1304|       |
 1305|       |/*------------------------------------------------------------.
 1306|       || yynewstate -- push a new state, which is found in yystate.  |
 1307|       |`------------------------------------------------------------*/
 1308|  1.93M|yynewstate:
 1309|       |  /* In all cases, when you get here, the value and location stacks
 1310|       |     have just been pushed.  So pushing a state here evens the stacks.  */
 1311|  1.93M|  yyssp++;
 1312|       |
 1313|       |
 1314|       |/*--------------------------------------------------------------------.
 1315|       || yysetstate -- set current state (the top of the stack) to yystate.  |
 1316|       |`--------------------------------------------------------------------*/
 1317|  1.93M|yysetstate:
 1318|  1.93M|  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  ------------------
  |  |  899|  1.93M|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1319|  1.93M|  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  ------------------
  |  |  356|  1.93M|#define YY_ASSERT(E) ((void) (0 && (E)))
  |  |  ------------------
  |  |  |  Branch (356:31): [Folded, False: 1.93M]
  |  |  |  Branch (356:37): [True: 0, False: 0]
  |  |  |  Branch (356:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1320|  1.93M|  YY_IGNORE_USELESS_CAST_BEGIN
 1321|  1.93M|  *yyssp = YY_CAST (yy_state_t, yystate);
  ------------------
  |  |  125|  1.93M|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1322|  1.93M|  YY_IGNORE_USELESS_CAST_END
 1323|  1.93M|  YY_STACK_PRINT (yyss, yyssp);
 1324|       |
 1325|  1.93M|  if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1325:7): [True: 0, False: 1.93M]
  ------------------
 1326|       |#if !defined yyoverflow && !defined YYSTACK_RELOCATE
 1327|       |    YYNOMEM;
 1328|       |#else
 1329|      0|    {
 1330|       |      /* Get the current used size of the three stacks, in elements.  */
 1331|      0|      YYPTRDIFF_T yysize = yyssp - yyss + 1;
  ------------------
  |  |  240|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1332|       |
 1333|       |# if defined yyoverflow
 1334|       |      {
 1335|       |        /* Give user a chance to reallocate the stack.  Use copies of
 1336|       |           these so that the &'s don't force the real ones into
 1337|       |           memory.  */
 1338|       |        yy_state_t *yyss1 = yyss;
 1339|       |        YYSTYPE *yyvs1 = yyvs;
 1340|       |        YYLTYPE *yyls1 = yyls;
 1341|       |
 1342|       |        /* Each stack pointer address is followed by the size of the
 1343|       |           data in use in that stack, in bytes.  This used to be a
 1344|       |           conditional around just the two extra args, but that might
 1345|       |           be undefined if yyoverflow is a macro.  */
 1346|       |        yyoverflow (YY_("memory exhausted"),
 1347|       |                    &yyss1, yysize * YYSIZEOF (*yyssp),
 1348|       |                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
 1349|       |                    &yyls1, yysize * YYSIZEOF (*yylsp),
 1350|       |                    &yystacksize);
 1351|       |        yyss = yyss1;
 1352|       |        yyvs = yyvs1;
 1353|       |        yyls = yyls1;
 1354|       |      }
 1355|       |# else /* defined YYSTACK_RELOCATE */
 1356|       |      /* Extend the stack our own way.  */
 1357|      0|      if (YYMAXDEPTH <= yystacksize)
  ------------------
  |  |  919|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1357:11): [True: 0, False: 0]
  ------------------
 1358|      0|        YYNOMEM;
  ------------------
  |  |  664|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1359|      0|      yystacksize *= 2;
 1360|      0|      if (YYMAXDEPTH < yystacksize)
  ------------------
  |  |  919|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1360:11): [True: 0, False: 0]
  ------------------
 1361|      0|        yystacksize = YYMAXDEPTH;
  ------------------
  |  |  919|      0|# define YYMAXDEPTH 10000
  ------------------
 1362|       |
 1363|      0|      {
 1364|      0|        yy_state_t *yyss1 = yyss;
 1365|      0|        union yyalloc *yyptr =
 1366|      0|          YY_CAST (union yyalloc *,
  ------------------
  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1367|      0|                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
 1368|      0|        if (! yyptr)
  ------------------
  |  Branch (1368:13): [True: 0, False: 0]
  ------------------
 1369|      0|          YYNOMEM;
  ------------------
  |  |  664|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1370|      0|        YYSTACK_RELOCATE (yyss_alloc, yyss);
  ------------------
  |  |  456|      0|    do                                                                  \
  |  |  457|      0|      {                                                                 \
  |  |  458|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  240|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  459|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  474|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  461|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  439|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  462|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  463|      0|      }                                                                 \
  |  |  464|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (464:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1371|      0|        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  ------------------
  |  |  456|      0|    do                                                                  \
  |  |  457|      0|      {                                                                 \
  |  |  458|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  240|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  459|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  474|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  461|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  439|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  462|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  463|      0|      }                                                                 \
  |  |  464|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (464:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1372|      0|        YYSTACK_RELOCATE (yyls_alloc, yyls);
  ------------------
  |  |  456|      0|    do                                                                  \
  |  |  457|      0|      {                                                                 \
  |  |  458|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  240|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  459|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  474|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  461|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  439|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  462|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  273|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  463|      0|      }                                                                 \
  |  |  464|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (464:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1373|      0|#  undef YYSTACK_RELOCATE
 1374|      0|        if (yyss1 != yyssa)
  ------------------
  |  Branch (1374:13): [True: 0, False: 0]
  ------------------
 1375|      0|          YYSTACK_FREE (yyss1);
  ------------------
  |  |  398|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  417|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1376|      0|      }
 1377|      0|# endif
 1378|       |
 1379|      0|      yyssp = yyss + yysize - 1;
 1380|      0|      yyvsp = yyvs + yysize - 1;
 1381|      0|      yylsp = yyls + yysize - 1;
 1382|       |
 1383|      0|      YY_IGNORE_USELESS_CAST_BEGIN
 1384|      0|      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
  ------------------
  |  |  899|      0|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1385|      0|                  YY_CAST (long, yystacksize)));
 1386|      0|      YY_IGNORE_USELESS_CAST_END
 1387|       |
 1388|      0|      if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1388:11): [True: 0, False: 0]
  ------------------
 1389|      0|        YYABORT;
  ------------------
  |  |  662|      0|#define YYABORT         goto yyabortlab
  ------------------
 1390|      0|    }
 1391|  1.93M|#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
 1392|       |
 1393|       |
 1394|  1.93M|  if (yystate == YYFINAL)
  ------------------
  |  |  489|  1.93M|#define YYFINAL  2
  ------------------
  |  Branch (1394:7): [True: 3.20k, False: 1.93M]
  ------------------
 1395|  3.20k|    YYACCEPT;
  ------------------
  |  |  661|  3.20k|#define YYACCEPT        goto yyacceptlab
  ------------------
 1396|       |
 1397|  1.93M|  goto yybackup;
 1398|       |
 1399|       |
 1400|       |/*-----------.
 1401|       || yybackup.  |
 1402|       |`-----------*/
 1403|  1.93M|yybackup:
 1404|       |  /* Do appropriate processing given the current state.  Read a
 1405|       |     lookahead token if we need one and don't already have one.  */
 1406|       |
 1407|       |  /* First try to decide what to do without reference to lookahead token.  */
 1408|  1.93M|  yyn = yypact[yystate];
 1409|  1.93M|  if (yypact_value_is_default (yyn))
  ------------------
  |  |  582|  1.93M|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  579|  1.93M|#define YYPACT_NINF (-3)
  |  |  ------------------
  |  |  |  Branch (582:3): [True: 1.13M, False: 792k]
  |  |  ------------------
  ------------------
 1410|  1.13M|    goto yydefault;
 1411|       |
 1412|       |  /* Not known => get a lookahead token if don't already have one.  */
 1413|       |
 1414|       |  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
 1415|   792k|  if (yychar == YYEMPTY)
  ------------------
  |  Branch (1415:7): [True: 778k, False: 14.0k]
  ------------------
 1416|   778k|    {
 1417|   778k|      YYDPRINTF ((stderr, "Reading a token\n"));
  ------------------
  |  |  899|   778k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1418|   778k|      yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |   69|   778k|#define yylex           igraph_lgl_yylex
  ------------------
                    yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |  116|   778k|#define scanner context->scanner
  ------------------
 1419|   778k|    }
 1420|       |
 1421|   792k|  if (yychar <= END)
  ------------------
  |  Branch (1421:7): [True: 5.49k, False: 786k]
  ------------------
 1422|  5.49k|    {
 1423|  5.49k|      yychar = END;
 1424|  5.49k|      yytoken = YYSYMBOL_YYEOF;
 1425|  5.49k|      YYDPRINTF ((stderr, "Now at end of input.\n"));
  ------------------
  |  |  899|  5.49k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1426|  5.49k|    }
 1427|   786k|  else if (yychar == YYerror)
  ------------------
  |  Branch (1427:12): [True: 0, False: 786k]
  ------------------
 1428|      0|    {
 1429|       |      /* The scanner already issued an error message, process directly
 1430|       |         to error recovery.  But do not keep the error token as
 1431|       |         lookahead, it is too special and may lead us to an endless
 1432|       |         loop in error recovery. */
 1433|      0|      yychar = YYUNDEF;
 1434|      0|      yytoken = YYSYMBOL_YYerror;
 1435|      0|      yyerror_range[1] = yylloc;
 1436|      0|      goto yyerrlab1;
 1437|      0|    }
 1438|   786k|  else
 1439|   786k|    {
 1440|   786k|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  509|   786k|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  503|   786k|#define YYMAXUTOK   261
  |  |  ------------------
  |  |  |  Branch (509:4): [True: 786k, False: 0]
  |  |  |  Branch (509:18): [True: 786k, False: 0]
  |  |  ------------------
  |  |  510|   786k|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  125|   786k|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  511|   786k|   : YYSYMBOL_YYUNDEF)
  ------------------
 1441|   786k|      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
 1442|   786k|    }
 1443|       |
 1444|       |  /* If the proper action on seeing token YYTOKEN is to reduce or to
 1445|       |     detect an error, take that action.  */
 1446|   792k|  yyn += yytoken;
 1447|   792k|  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  ------------------
  |  |  491|   792k|#define YYLAST   10
  ------------------
  |  Branch (1447:7): [True: 0, False: 792k]
  |  Branch (1447:18): [True: 0, False: 792k]
  |  Branch (1447:34): [True: 14.0k, False: 778k]
  ------------------
 1448|  14.0k|    goto yydefault;
 1449|   778k|  yyn = yytable[yyn];
 1450|   778k|  if (yyn <= 0)
  ------------------
  |  Branch (1450:7): [True: 0, False: 778k]
  ------------------
 1451|      0|    {
 1452|      0|      if (yytable_value_is_error (yyn))
  ------------------
  |  |  587|      0|  0
  |  |  ------------------
  |  |  |  Branch (587:3): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1453|      0|        goto yyerrlab;
 1454|      0|      yyn = -yyn;
 1455|      0|      goto yyreduce;
 1456|      0|    }
 1457|       |
 1458|       |  /* Count tokens shifted since error; after three, turn off error
 1459|       |     status.  */
 1460|   778k|  if (yyerrstatus)
  ------------------
  |  Branch (1460:7): [True: 0, False: 778k]
  ------------------
 1461|      0|    yyerrstatus--;
 1462|       |
 1463|       |  /* Shift the lookahead token.  */
 1464|   778k|  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 1465|   778k|  yystate = yyn;
 1466|   778k|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1467|   778k|  *++yyvsp = yylval;
 1468|   778k|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1469|   778k|  *++yylsp = yylloc;
 1470|       |
 1471|       |  /* Discard the shifted token.  */
 1472|   778k|  yychar = YYEMPTY;
 1473|   778k|  goto yynewstate;
 1474|       |
 1475|       |
 1476|       |/*-----------------------------------------------------------.
 1477|       || yydefault -- do the default action for the current state.  |
 1478|       |`-----------------------------------------------------------*/
 1479|  1.15M|yydefault:
 1480|  1.15M|  yyn = yydefact[yystate];
 1481|  1.15M|  if (yyn == 0)
  ------------------
  |  Branch (1481:7): [True: 0, False: 1.15M]
  ------------------
 1482|      0|    goto yyerrlab;
 1483|  1.15M|  goto yyreduce;
 1484|       |
 1485|       |
 1486|       |/*-----------------------------.
 1487|       || yyreduce -- do a reduction.  |
 1488|       |`-----------------------------*/
 1489|  1.15M|yyreduce:
 1490|       |  /* yyn is the number of a rule to reduce with.  */
 1491|  1.15M|  yylen = yyr2[yyn];
 1492|       |
 1493|       |  /* If YYLEN is nonzero, implement the default value of the action:
 1494|       |     '$$ = $1'.
 1495|       |
 1496|       |     Otherwise, the following line sets YYVAL to garbage.
 1497|       |     This behavior is undocumented and Bison
 1498|       |     users should not rely upon it.  Assigning to YYVAL
 1499|       |     unconditionally makes the parser a bit smaller, and it avoids a
 1500|       |     GCC warning that YYVAL may be used uninitialized.  */
 1501|  1.15M|  yyval = yyvsp[1-yylen];
 1502|       |
 1503|       |  /* Default location. */
 1504|  1.15M|  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
  ------------------
  |  |  696|  1.15M|    do                                                                  \
  |  |  697|  1.15M|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (697:11): [True: 1.13M, False: 17.2k]
  |  |  ------------------
  |  |  698|  1.15M|        {                                                               \
  |  |  699|  1.13M|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  714|  1.13M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  700|  1.13M|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  714|  1.13M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  701|  1.13M|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  714|  1.13M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  702|  1.13M|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  714|  1.13M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  703|  1.13M|        }                                                               \
  |  |  704|  1.15M|      else                                                              \
  |  |  705|  1.15M|        {                                                               \
  |  |  706|  17.2k|          (Current).first_line   = (Current).last_line   =              \
  |  |  707|  17.2k|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  714|  17.2k|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  708|  17.2k|          (Current).first_column = (Current).last_column =              \
  |  |  709|  17.2k|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  714|  17.2k|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  710|  17.2k|        }                                                               \
  |  |  711|  1.15M|    while (0)
  |  |  ------------------
  |  |  |  Branch (711:12): [Folded, False: 1.15M]
  |  |  ------------------
  ------------------
 1505|  1.15M|  yyerror_range[1] = yyloc;
 1506|  1.15M|  YY_REDUCE_PRINT (yyn);
 1507|  1.15M|  switch (yyn)
 1508|  1.15M|    {
 1509|  14.0k|  case 6: /* vertexdef: "#" edgeid "end of line"  */
  ------------------
  |  Branch (1509:3): [True: 14.0k, False: 1.13M]
  ------------------
 1510|  14.0k|#line 99 "/src/igraph/src/io/lgl-parser.y"
 1511|  14.0k|                                      { context->actvertex=(yyvsp[-1].edgenum); }
 1512|  14.0k|#line 1513 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1513|  14.0k|    break;
 1514|       |
 1515|   305k|  case 9: /* edge: edgeid "end of line"  */
  ------------------
  |  Branch (1515:3): [True: 305k, False: 847k]
  ------------------
 1516|   305k|#line 103 "/src/igraph/src/io/lgl-parser.y"
 1517|   305k|                                    {
 1518|   305k|             IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, context->actvertex));
  ------------------
  |  |   27|   305k|    do { \
  |  |   28|   305k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   305k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   305k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 305k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   305k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 305k]
  |  |  ------------------
  ------------------
 1519|   305k|             IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, (yyvsp[-1].edgenum)));
  ------------------
  |  |   27|   305k|    do { \
  |  |   28|   305k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   305k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   305k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 305k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   305k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 305k]
  |  |  ------------------
  ------------------
 1520|   305k|             IGRAPH_YY_CHECK(igraph_vector_push_back(context->weights, 1.0));
  ------------------
  |  |   27|   305k|    do { \
  |  |   28|   305k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   305k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   305k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 305k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   305k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 305k]
  |  |  ------------------
  ------------------
 1521|   305k|           }
 1522|   305k|#line 1523 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1523|   305k|    break;
 1524|       |
 1525|   305k|  case 10: /* edge: edgeid weight "end of line"  */
  ------------------
  |  Branch (1525:3): [True: 40.8k, False: 1.11M]
  ------------------
 1526|  40.8k|#line 108 "/src/igraph/src/io/lgl-parser.y"
 1527|  40.8k|                                    {
 1528|  40.8k|             IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, context->actvertex));
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1529|  40.8k|             IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, (yyvsp[-2].edgenum)));
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1530|  40.8k|             IGRAPH_YY_CHECK(igraph_vector_push_back(context->weights, (yyvsp[-1].weightnum)));
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1531|  40.8k|             context->has_weights = 1;
 1532|  40.8k|           }
 1533|      0|#line 1534 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1534|      0|    break;
 1535|       |
 1536|   360k|  case 11: /* edgeid: "alphanumeric"  */
  ------------------
  |  Branch (1536:3): [True: 360k, False: 792k]
  ------------------
 1537|   360k|#line 117 "/src/igraph/src/io/lgl-parser.y"
 1538|   360k|                {
 1539|   360k|  igraph_int_t trie_id;
 1540|   360k|  IGRAPH_YY_CHECK(igraph_trie_get_len(context->trie,
  ------------------
  |  |   27|   360k|    do { \
  |  |   28|   360k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   360k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   360k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 360k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   360k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 360k]
  |  |  ------------------
  ------------------
 1541|   360k|    igraph_lgl_yyget_text(scanner),
 1542|   360k|    igraph_lgl_yyget_leng(scanner),
 1543|   360k|    &trie_id
 1544|   360k|  ));
 1545|   360k|  (yyval.edgenum) = trie_id;
 1546|   360k|}
 1547|      0|#line 1548 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1548|      0|    break;
 1549|       |
 1550|  40.8k|  case 12: /* weight: "alphanumeric"  */
  ------------------
  |  Branch (1550:3): [True: 40.8k, False: 1.11M]
  ------------------
 1551|  40.8k|#line 127 "/src/igraph/src/io/lgl-parser.y"
 1552|  40.8k|                {
 1553|  40.8k|    igraph_real_t val;
 1554|  40.8k|    IGRAPH_YY_CHECK(igraph_i_parse_real(igraph_lgl_yyget_text(scanner),
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  662|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1555|  40.8k|                                        igraph_lgl_yyget_leng(scanner),
 1556|  40.8k|                                        &val));
 1557|  40.8k|    (yyval.weightnum)=val;
 1558|  40.8k|}
 1559|      0|#line 1560 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1560|      0|    break;
 1561|       |
 1562|       |
 1563|      0|#line 1564 "/src/igraph/build/src/io/parsers/lgl-parser.c"
 1564|       |
 1565|   391k|      default: break;
  ------------------
  |  Branch (1565:7): [True: 391k, False: 761k]
  ------------------
 1566|  1.15M|    }
 1567|       |  /* User semantic actions sometimes alter yychar, and that requires
 1568|       |     that yytoken be updated with the new translation.  We take the
 1569|       |     approach of translating immediately before every use of yytoken.
 1570|       |     One alternative is translating here after every semantic action,
 1571|       |     but that translation would be missed if the semantic action invokes
 1572|       |     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
 1573|       |     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
 1574|       |     incorrect destructor might then be invoked immediately.  In the
 1575|       |     case of YYERROR or YYBACKUP, subsequent parser actions might lead
 1576|       |     to an incorrect destructor call or verbose syntax error message
 1577|       |     before the lookahead is translated.  */
 1578|  1.15M|  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
 1579|       |
 1580|  1.15M|  YYPOPSTACK (yylen);
  ------------------
  |  | 1291|  1.15M|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1581|  1.15M|  yylen = 0;
 1582|       |
 1583|  1.15M|  *++yyvsp = yyval;
 1584|  1.15M|  *++yylsp = yyloc;
 1585|       |
 1586|       |  /* Now 'shift' the result of the reduction.  Determine what state
 1587|       |     that goes to, based on the state we popped back to and the rule
 1588|       |     number reduced by.  */
 1589|  1.15M|  {
 1590|  1.15M|    const int yylhs = yyr1[yyn] - YYNTOKENS;
  ------------------
  |  |  494|  1.15M|#define YYNTOKENS  7
  ------------------
 1591|  1.15M|    const int yyi = yypgoto[yylhs] + *yyssp;
 1592|  1.15M|    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
  ------------------
  |  |  491|  2.25M|#define YYLAST   10
  ------------------
  |  Branch (1592:16): [True: 1.10M, False: 45.2k]
  |  Branch (1592:28): [True: 1.10M, False: 0]
  |  Branch (1592:45): [True: 346k, False: 761k]
  ------------------
 1593|  1.15M|               ? yytable[yyi]
 1594|  1.15M|               : yydefgoto[yylhs]);
 1595|  1.15M|  }
 1596|       |
 1597|  1.15M|  goto yynewstate;
 1598|       |
 1599|       |
 1600|       |/*--------------------------------------.
 1601|       || yyerrlab -- here on detecting error.  |
 1602|       |`--------------------------------------*/
 1603|      0|yyerrlab:
 1604|       |  /* Make sure we have latest lookahead translation.  See comments at
 1605|       |     user semantic actions for why this is necessary.  */
 1606|      0|  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  ------------------
  |  |  509|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  503|      0|#define YYMAXUTOK   261
  |  |  ------------------
  |  |  |  Branch (509:4): [True: 0, False: 0]
  |  |  |  Branch (509:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  510|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  511|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
  |  Branch (1606:13): [True: 0, False: 0]
  ------------------
 1607|       |  /* If not already recovering from an error, report this error.  */
 1608|      0|  if (!yyerrstatus)
  ------------------
  |  Branch (1608:7): [True: 0, False: 0]
  ------------------
 1609|      0|    {
 1610|      0|      ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_lgl_yynerrs
  ------------------
 1611|      0|      {
 1612|      0|        yypcontext_t yyctx
 1613|      0|          = {yyssp, yytoken, &yylloc};
 1614|      0|        char const *yymsgp = YY_("syntax error");
  ------------------
  |  |  290|      0|#  define YY_(Msgid) Msgid
  ------------------
 1615|      0|        int yysyntax_error_status;
 1616|      0|        yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1617|      0|        if (yysyntax_error_status == 0)
  ------------------
  |  Branch (1617:13): [True: 0, False: 0]
  ------------------
 1618|      0|          yymsgp = yymsg;
 1619|      0|        else if (yysyntax_error_status == -1)
  ------------------
  |  Branch (1619:18): [True: 0, False: 0]
  ------------------
 1620|      0|          {
 1621|      0|            if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1621:17): [True: 0, False: 0]
  ------------------
 1622|      0|              YYSTACK_FREE (yymsg);
  ------------------
  |  |  398|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  417|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1623|      0|            yymsg = YY_CAST (char *,
  ------------------
  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1624|      0|                             YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
 1625|      0|            if (yymsg)
  ------------------
  |  Branch (1625:17): [True: 0, False: 0]
  ------------------
 1626|      0|              {
 1627|      0|                yysyntax_error_status
 1628|      0|                  = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1629|      0|                yymsgp = yymsg;
 1630|      0|              }
 1631|      0|            else
 1632|      0|              {
 1633|      0|                yymsg = yymsgbuf;
 1634|      0|                yymsg_alloc = sizeof yymsgbuf;
 1635|      0|                yysyntax_error_status = YYENOMEM;
 1636|      0|              }
 1637|      0|          }
 1638|      0|        yyerror (&yylloc, context, yymsgp);
  ------------------
  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  ------------------
 1639|      0|        if (yysyntax_error_status == YYENOMEM)
  ------------------
  |  Branch (1639:13): [True: 0, False: 0]
  ------------------
 1640|      0|          YYNOMEM;
  ------------------
  |  |  664|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1641|      0|      }
 1642|      0|    }
 1643|       |
 1644|      0|  yyerror_range[1] = yylloc;
 1645|      0|  if (yyerrstatus == 3)
  ------------------
  |  Branch (1645:7): [True: 0, False: 0]
  ------------------
 1646|      0|    {
 1647|       |      /* If just tried and failed to reuse lookahead token after an
 1648|       |         error, discard it.  */
 1649|       |
 1650|      0|      if (yychar <= END)
  ------------------
  |  Branch (1650:11): [True: 0, False: 0]
  ------------------
 1651|      0|        {
 1652|       |          /* Return failure if at end of input.  */
 1653|      0|          if (yychar == END)
  ------------------
  |  Branch (1653:15): [True: 0, False: 0]
  ------------------
 1654|      0|            YYABORT;
  ------------------
  |  |  662|      0|#define YYABORT         goto yyabortlab
  ------------------
 1655|      0|        }
 1656|      0|      else
 1657|      0|        {
 1658|      0|          yydestruct ("Error: discarding",
 1659|      0|                      yytoken, &yylval, &yylloc, context);
 1660|      0|          yychar = YYEMPTY;
 1661|      0|        }
 1662|      0|    }
 1663|       |
 1664|       |  /* Else will try to reuse lookahead token after shifting the error
 1665|       |     token.  */
 1666|      0|  goto yyerrlab1;
 1667|       |
 1668|       |
 1669|       |/*---------------------------------------------------.
 1670|       || yyerrorlab -- error raised explicitly by YYERROR.  |
 1671|       |`---------------------------------------------------*/
 1672|      0|yyerrorlab:
 1673|       |  /* Pacify compilers when the user code never invokes YYERROR and the
 1674|       |     label yyerrorlab therefore never appears in user code.  */
 1675|      0|  if (0)
  ------------------
  |  Branch (1675:7): [Folded, False: 0]
  ------------------
 1676|      0|    YYERROR;
  ------------------
  |  |  663|      0|#define YYERROR         goto yyerrorlab
  ------------------
 1677|      0|  ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_lgl_yynerrs
  ------------------
 1678|       |
 1679|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1680|       |     this YYERROR.  */
 1681|      0|  YYPOPSTACK (yylen);
  ------------------
  |  | 1291|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1682|      0|  yylen = 0;
 1683|      0|  YY_STACK_PRINT (yyss, yyssp);
 1684|      0|  yystate = *yyssp;
 1685|      0|  goto yyerrlab1;
 1686|       |
 1687|       |
 1688|       |/*-------------------------------------------------------------.
 1689|       || yyerrlab1 -- common code for both syntax error and YYERROR.  |
 1690|       |`-------------------------------------------------------------*/
 1691|      0|yyerrlab1:
 1692|      0|  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 1693|       |
 1694|       |  /* Pop stack until we find a state that shifts the error token.  */
 1695|      0|  for (;;)
 1696|      0|    {
 1697|      0|      yyn = yypact[yystate];
 1698|      0|      if (!yypact_value_is_default (yyn))
  ------------------
  |  |  582|      0|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  579|      0|#define YYPACT_NINF (-3)
  |  |  ------------------
  ------------------
  |  Branch (1698:11): [True: 0, False: 0]
  ------------------
 1699|      0|        {
 1700|      0|          yyn += YYSYMBOL_YYerror;
 1701|      0|          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
  ------------------
  |  |  491|      0|#define YYLAST   10
  ------------------
  |  Branch (1701:15): [True: 0, False: 0]
  |  Branch (1701:27): [True: 0, False: 0]
  |  Branch (1701:44): [True: 0, False: 0]
  ------------------
 1702|      0|            {
 1703|      0|              yyn = yytable[yyn];
 1704|      0|              if (0 < yyn)
  ------------------
  |  Branch (1704:19): [True: 0, False: 0]
  ------------------
 1705|      0|                break;
 1706|      0|            }
 1707|      0|        }
 1708|       |
 1709|       |      /* Pop the current state because it cannot handle the error token.  */
 1710|      0|      if (yyssp == yyss)
  ------------------
  |  Branch (1710:11): [True: 0, False: 0]
  ------------------
 1711|      0|        YYABORT;
  ------------------
  |  |  662|      0|#define YYABORT         goto yyabortlab
  ------------------
 1712|       |
 1713|      0|      yyerror_range[1] = *yylsp;
 1714|      0|      yydestruct ("Error: popping",
 1715|      0|                  YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, context);
  ------------------
  |  |  556|      0|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1716|      0|      YYPOPSTACK (1);
  ------------------
  |  | 1291|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1717|      0|      yystate = *yyssp;
 1718|      0|      YY_STACK_PRINT (yyss, yyssp);
 1719|      0|    }
 1720|       |
 1721|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1722|      0|  *++yyvsp = yylval;
 1723|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1724|       |
 1725|      0|  yyerror_range[2] = yylloc;
 1726|      0|  ++yylsp;
 1727|      0|  YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
  ------------------
  |  |  696|      0|    do                                                                  \
  |  |  697|      0|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (697:11): [True: 0, Folded]
  |  |  ------------------
  |  |  698|      0|        {                                                               \
  |  |  699|      0|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  700|      0|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  701|      0|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  702|      0|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  703|      0|        }                                                               \
  |  |  704|      0|      else                                                              \
  |  |  705|      0|        {                                                               \
  |  |  706|      0|          (Current).first_line   = (Current).last_line   =              \
  |  |  707|      0|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  708|      0|          (Current).first_column = (Current).last_column =              \
  |  |  709|      0|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  714|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  710|      0|        }                                                               \
  |  |  711|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (711:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1728|       |
 1729|       |  /* Shift the error token.  */
 1730|      0|  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
 1731|       |
 1732|      0|  yystate = yyn;
 1733|      0|  goto yynewstate;
 1734|       |
 1735|       |
 1736|       |/*-------------------------------------.
 1737|       || yyacceptlab -- YYACCEPT comes here.  |
 1738|       |`-------------------------------------*/
 1739|  3.20k|yyacceptlab:
 1740|  3.20k|  yyresult = 0;
 1741|  3.20k|  goto yyreturnlab;
 1742|       |
 1743|       |
 1744|       |/*-----------------------------------.
 1745|       || yyabortlab -- YYABORT comes here.  |
 1746|       |`-----------------------------------*/
 1747|      0|yyabortlab:
 1748|      0|  yyresult = 1;
 1749|      0|  goto yyreturnlab;
 1750|       |
 1751|       |
 1752|       |/*-----------------------------------------------------------.
 1753|       || yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
 1754|       |`-----------------------------------------------------------*/
 1755|      0|yyexhaustedlab:
 1756|      0|  yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |   70|      0|#define yyerror         igraph_lgl_yyerror
  ------------------
                yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |  290|      0|#  define YY_(Msgid) Msgid
  ------------------
 1757|      0|  yyresult = 2;
 1758|      0|  goto yyreturnlab;
 1759|       |
 1760|       |
 1761|       |/*----------------------------------------------------------.
 1762|       || yyreturnlab -- parsing is finished, clean up and return.  |
 1763|       |`----------------------------------------------------------*/
 1764|  3.20k|yyreturnlab:
 1765|  3.20k|  if (yychar != YYEMPTY)
  ------------------
  |  Branch (1765:7): [True: 0, False: 3.20k]
  ------------------
 1766|      0|    {
 1767|       |      /* Make sure we have latest lookahead translation.  See comments at
 1768|       |         user semantic actions for why this is necessary.  */
 1769|      0|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  509|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  503|      0|#define YYMAXUTOK   261
  |  |  ------------------
  |  |  |  Branch (509:4): [True: 0, False: 0]
  |  |  |  Branch (509:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  510|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  125|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  511|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
 1770|      0|      yydestruct ("Cleanup: discarding lookahead",
 1771|      0|                  yytoken, &yylval, &yylloc, context);
 1772|      0|    }
 1773|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1774|       |     this YYABORT or YYACCEPT.  */
 1775|  3.20k|  YYPOPSTACK (yylen);
  ------------------
  |  | 1291|  3.20k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1776|  3.20k|  YY_STACK_PRINT (yyss, yyssp);
 1777|  9.62k|  while (yyssp != yyss)
  ------------------
  |  Branch (1777:10): [True: 6.41k, False: 3.20k]
  ------------------
 1778|  6.41k|    {
 1779|  6.41k|      yydestruct ("Cleanup: popping",
 1780|  6.41k|                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, context);
  ------------------
  |  |  556|  6.41k|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  125|  6.41k|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1781|  6.41k|      YYPOPSTACK (1);
  ------------------
  |  | 1291|  6.41k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1782|  6.41k|    }
 1783|  3.20k|#ifndef yyoverflow
 1784|  3.20k|  if (yyss != yyssa)
  ------------------
  |  Branch (1784:7): [True: 0, False: 3.20k]
  ------------------
 1785|      0|    YYSTACK_FREE (yyss);
  ------------------
  |  |  398|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  417|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1786|  3.20k|#endif
 1787|  3.20k|  if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1787:7): [True: 0, False: 3.20k]
  ------------------
 1788|      0|    YYSTACK_FREE (yymsg);
  ------------------
  |  |  398|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  417|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1789|  3.20k|  return yyresult;
 1790|      0|}
lgl-parser.c:yydestruct:
 1202|  6.41k|{
 1203|  6.41k|  YY_USE (yyvaluep);
  ------------------
  |  |  313|  6.41k|# define YY_USE(E) ((void) (E))
  ------------------
 1204|  6.41k|  YY_USE (yylocationp);
  ------------------
  |  |  313|  6.41k|# define YY_USE(E) ((void) (E))
  ------------------
 1205|  6.41k|  YY_USE (context);
  ------------------
  |  |  313|  6.41k|# define YY_USE(E) ((void) (E))
  ------------------
 1206|  6.41k|  if (!yymsg)
  ------------------
  |  Branch (1206:7): [True: 0, False: 6.41k]
  ------------------
 1207|      0|    yymsg = "Deleting";
 1208|  6.41k|  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
 1209|       |
 1210|  6.41k|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1211|  6.41k|  YY_USE (yykind);
  ------------------
  |  |  313|  6.41k|# define YY_USE(E) ((void) (E))
  ------------------
 1212|  6.41k|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1213|  6.41k|}

igraph_ncol_yylex:
 1185|  1.08M|YY_DECL {
 1186|  1.08M|	yy_state_type yy_current_state;
 1187|  1.08M|	char *yy_cp, *yy_bp;
 1188|  1.08M|	int yy_act;
 1189|  1.08M|    struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1190|       |
 1191|  1.08M|    yylval = yylval_param;
  ------------------
  |  |  967|  1.08M|    #    define yylval yyg->yylval_r
  ------------------
 1192|       |
 1193|  1.08M|    yylloc = yylloc_param;
  ------------------
  |  |  969|  1.08M|    #    define yylloc yyg->yylloc_r
  ------------------
 1194|       |
 1195|  1.08M|	if ( !yyg->yy_init ) {
  ------------------
  |  Branch (1195:7): [True: 3.25k, False: 1.08M]
  ------------------
 1196|  3.25k|		yyg->yy_init = 1;
 1197|       |
 1198|       |#ifdef YY_USER_INIT
 1199|       |		YY_USER_INIT;
 1200|       |#endif
 1201|       |
 1202|  3.25k|		if ( ! yyg->yy_start ) {
  ------------------
  |  Branch (1202:8): [True: 3.25k, False: 0]
  ------------------
 1203|  3.25k|			yyg->yy_start = 1;	/* first start state */
 1204|  3.25k|		}
 1205|  3.25k|		if ( ! yyin ) {
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1205:8): [True: 0, False: 3.25k]
  ------------------
 1206|       |
 1207|      0|			yyin = stdin;
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1208|       |
 1209|      0|		}
 1210|  3.25k|		if ( ! yyout ) {
  ------------------
  |  |  405|  3.25k|#define yyout yyg->yyout_r
  ------------------
  |  Branch (1210:8): [True: 3.25k, False: 0]
  ------------------
 1211|       |
 1212|  3.25k|			yyout = stdout;
  ------------------
  |  |  405|  3.25k|#define yyout yyg->yyout_r
  ------------------
 1213|       |
 1214|  3.25k|		}
 1215|  3.25k|		if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 0, False: 3.25k]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
  |  Branch (1215:8): [True: 3.25k, False: 0]
  ------------------
 1216|  3.25k|			yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|  3.25k|#define yyensure_buffer_stack igraph_ncol_yyensure_buffer_stack
  ------------------
 1217|  3.25k|			YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1218|  3.25k|				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|  3.25k|#define yy_create_buffer igraph_ncol_yy_create_buffer
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
              				yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|  3.25k|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|  3.25k|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1219|  3.25k|		}
 1220|       |
 1221|  3.25k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.25k|#define yy_load_buffer_state igraph_ncol_yy_load_buffer_state
  ------------------
 1222|  3.25k|	}
 1223|       |
 1224|       |	/* open scope of user declarationns */
 1225|  1.08M|	{
 1226|       |/* %% [4.0] user's declarations go here */
 1227|  1.08M|#line 79 "/src/igraph/src/io/ncol-lexer.l"
 1228|       |
 1229|       |
 1230|  1.08M|#line 81 "/src/igraph/src/io/ncol-lexer.l"
 1231|       | /* ------------------------------------------------whitespace------*/
 1232|  1.08M|#line 1233 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1233|       |
 1234|  1.47M|		while ( /*CONSTCOND*/1 ) {		/* loops until end-of-file is reached */
  ------------------
  |  Branch (1234:24): [True: 1.47M, Folded]
  ------------------
 1235|       |
 1236|       |			/* Support of yytext. The character was taken from the end
 1237|       |			 * of the last token, which is behind yy_c_buf_p when
 1238|       |			 * yyinput() has read characters since. */
 1239|  1.47M|			*yyg->yy_hold_ptr = yyg->yy_hold_char;
 1240|  1.47M|			yy_cp = yyg->yy_c_buf_p;
 1241|       |
 1242|       |			/* yy_bp points to the position in yy_ch_buf of the start of
 1243|       |			 * the current run.
 1244|       |			 */
 1245|  1.47M|			yy_bp = yy_cp;
 1246|       |
 1247|       |	/* Generate the code to find the start state. */
 1248|       |
 1249|  1.47M|			yy_current_state = yyg->yy_start;
 1250|       |
 1251|       |			/* Set up for storing up states. */
 1252|       |			
 1253|  1.48M|	yy_match:
 1254|       |			/* Generate the code to find the next match. */
 1255|       |
 1256|  56.9M|			do {
 1257|       |				
 1258|  56.9M|	int yy_c = *(yy_ec+YY_SC_TO_UI(*yy_cp));
  ------------------
  |  |  394|  56.9M|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
 1259|       |	/* Save the backing-up info \before/ computing the next state
 1260|       |	 * because we always compute one more state than needed - we
 1261|       |	 * always proceed until we reach a jam state
 1262|       |	 */
 1263|       |	
 1264|       |		/* Generate code to keep backing-up information. */
 1265|       |
 1266|  56.9M|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1266:8): [True: 55.5M, False: 1.47M]
  ------------------
 1267|       |
 1268|  55.5M|			yyg->yy_last_accepting_state = yy_current_state;
 1269|  55.5M|			yyg->yy_last_accepting_cpos = yy_cp;
 1270|  55.5M|		}
 1271|       |
 1272|   115M|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1272:10): [True: 58.1M, False: 56.9M]
  ------------------
 1273|  58.1M|		yy_current_state = (int) yy_def[yy_current_state];
 1274|       |
 1275|       |		/* We've arranged it so that templates are never chained
 1276|       |		 * to one another.  This means we can afford to make a
 1277|       |		 * very simple test to see if we need to convert to
 1278|       |		 * yy_c's meta-equivalence class without worrying
 1279|       |		 * about erroneously looking up the meta-equivalence
 1280|       |		 * class twice
 1281|       |		 */
 1282|       |
 1283|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1284|  58.1M|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|  58.1M|#define YY_JAMSTATE 14
  ------------------
  |  Branch (1284:7): [True: 55.4M, False: 2.60M]
  ------------------
 1285|  55.4M|			yy_c = yy_meta[yy_c];
 1286|  55.4M|		}
 1287|       |
 1288|  58.1M|	}
 1289|  56.9M|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1290|       |
 1291|  56.9M|				++yy_cp;
 1292|       |
 1293|  56.9M|			}
 1294|  56.9M|			while ( yy_base[yy_current_state] != YY_JAMBASE );
  ------------------
  |  |  706|  56.9M|#define YY_JAMBASE 11
  ------------------
  |  Branch (1294:12): [True: 55.5M, False: 1.48M]
  ------------------
 1295|       |			
 1296|  1.48M|	yy_find_action:
 1297|       |			/* code to find the action number goes here */
 1298|       |			
 1299|  1.48M|		yy_act = yy_accept[yy_current_state];
 1300|  1.48M|			if ( yy_act == 0 ) { /* have to back up */
  ------------------
  |  Branch (1300:9): [True: 1.48M, False: 2.33k]
  ------------------
 1301|  1.48M|				yy_cp = yyg->yy_last_accepting_cpos;
 1302|  1.48M|				yy_current_state = yyg->yy_last_accepting_state;
 1303|  1.48M|				yy_act = yy_accept[yy_current_state];
 1304|  1.48M|			}
 1305|       |
 1306|  1.48M|			YY_DO_BEFORE_ACTION;
  ------------------
  |  |  741|  1.48M|	do { \
  |  |  742|  1.48M|	 \
  |  |  743|  1.48M|	yyg->yytext_ptr = yy_bp; \
  |  |  ------------------
  |  |  |  |  669|  1.48M|#define yytext_ptr yytext_r
  |  |  ------------------
  |  |  744|  1.48M|	 \
  |  |  745|  1.48M|	yyleng = (int) (yy_cp - yy_bp); \
  |  |  ------------------
  |  |  |  |  407|  1.48M|#define yyleng yyg->yyleng_r
  |  |  ------------------
  |  |  746|  1.48M|	 \
  |  |  747|  1.48M|	yyg->yy_hold_char = *yy_cp; \
  |  |  748|  1.48M|	yyg->yy_hold_ptr = yy_cp; \
  |  |  749|  1.48M|	*yy_cp = '\0'; \
  |  |  750|  1.48M| \
  |  |  751|  1.48M|	yyg->yy_c_buf_p = yy_cp; \
  |  |  752|  1.48M|	} while(0)
  |  |  ------------------
  |  |  |  Branch (752:10): [Folded, False: 1.48M]
  |  |  ------------------
  ------------------
 1307|       |
 1308|  1.48M|			if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) {
  ------------------
  |  |  705|  2.97M|#define YY_END_OF_BUFFER 6
  ------------------
  |  Branch (1308:9): [True: 1.47M, False: 14.9k]
  |  Branch (1308:39): [True: 347k, False: 1.12M]
  ------------------
 1309|   347k|				int yyl;
 1310|   694k|				for ( yyl = 0; yyl < yyleng; ++yyl ) {
  ------------------
  |  |  407|   694k|#define yyleng yyg->yyleng_r
  ------------------
  |  Branch (1310:20): [True: 347k, False: 347k]
  ------------------
 1311|   347k|					if ( yytext[yyl] == '\n' ) {
  ------------------
  |  |  408|   347k|#define yytext yyg->yytext_r
  ------------------
  |  Branch (1311:11): [True: 347k, False: 0]
  ------------------
 1312|       |						
 1313|   347k|    do{ yylineno++;
  ------------------
  |  |  409|   347k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  ------------------
  |  |  |  |  611|   347k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1314|   347k|        yycolumn=0;
  ------------------
  |  |  410|   347k|#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  |  |  ------------------
  |  |  |  |  611|   347k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  ------------------
  ------------------
 1315|   347k|    }while(0)
  ------------------
  |  Branch (1315:12): [Folded, False: 347k]
  ------------------
 1316|   347k|;
 1317|       |
 1318|   347k|					}
 1319|   347k|				}
 1320|   347k|			}
 1321|       |
 1322|  1.48M|		do_action:	/* This label is used only to access EOF actions. */
 1323|       |
 1324|  1.48M|			switch ( yy_act ) { /* beginning of action switch */
 1325|       |
 1326|      0|			case 0: /* must back up */
  ------------------
  |  Branch (1326:4): [True: 0, False: 1.48M]
  ------------------
 1327|       |				/* undo the effects of YY_DO_BEFORE_ACTION */
 1328|      0|				*yy_cp = yyg->yy_hold_char;
 1329|       |
 1330|       |				/* Backing-up info for compressed tables is taken \after/ */
 1331|       |				/* yy_cp has been incremented for the next state. */
 1332|      0|				yy_cp = yyg->yy_last_accepting_cpos;
 1333|       |				
 1334|      0|				yy_current_state = yyg->yy_last_accepting_state;
 1335|      0|				goto yy_find_action;
 1336|       |
 1337|       |/* %% [5.0] user actions get inserted here */
 1338|   387k|	case 1:
  ------------------
  |  Branch (1338:2): [True: 387k, False: 1.10M]
  ------------------
 1339|   387k|YY_RULE_SETUP
  ------------------
  |  | 1181|   387k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|   387k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|   387k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   387k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   387k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1340|       |
 1341|   387k|#line 82 "/src/igraph/src/io/ncol-lexer.l"
 1342|   387k|{ /* skip space */ }
 1343|   387k|#line 1344 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1344|   387k|	YY_BREAK
  ------------------
  |  | 1177|   387k|#define YY_BREAK /*LINTED*/break;
  ------------------
 1345|       |/* ----------------------------------------------alphanumeric------*/
 1346|      0|#line 1347 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1347|   735k|	case 2:
  ------------------
  |  Branch (1347:2): [True: 735k, False: 753k]
  ------------------
 1348|   735k|YY_RULE_SETUP
  ------------------
  |  | 1181|   735k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|   735k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|   735k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   735k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   735k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1349|       |
 1350|   735k|#line 85 "/src/igraph/src/io/ncol-lexer.l"
 1351|   735k|{ BEGIN(LINE); return ALNUM; }
  ------------------
  |  |  419|   735k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(LINE); return ALNUM; }
  ------------------
  |  |  910|   735k|#define LINE 1
  ------------------
 1352|      0|#line 1353 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1353|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1354|       |/* ---------------------------------------------------newline------*/
 1355|      0|#line 1356 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1356|   347k|	case 3:
  ------------------
  |  Branch (1356:2): [True: 347k, False: 1.14M]
  ------------------
 1357|       |/* rule 3 can match eol */
 1358|   347k|YY_RULE_SETUP
  ------------------
  |  | 1181|   347k|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|   347k|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|   347k|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|   347k|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|   347k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1359|   347k|	case YY_STATE_EOF(LINE):
  ------------------
  |  |  427|   347k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|   347k|#define YY_END_OF_BUFFER 6
  |  |  ------------------
  ------------------
  |  Branch (1359:2): [True: 0, False: 1.48M]
  ------------------
 1360|   347k|#line 89 "/src/igraph/src/io/ncol-lexer.l"
 1361|   347k|{ BEGIN(INITIAL); return NEWLINE; }
  ------------------
  |  |  419|   347k|#define BEGIN yyg->yy_start = 1 + 2 *
  ------------------
              { BEGIN(INITIAL); return NEWLINE; }
  ------------------
  |  |  909|   347k|#define INITIAL 0
  ------------------
 1362|      0|#line 1363 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1363|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1364|       |/* ---------------------------------------------anything else------*/
 1365|      0|#line 1366 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1366|      0|	case 4:
  ------------------
  |  Branch (1366:2): [True: 0, False: 1.48M]
  ------------------
 1367|      0|YY_RULE_SETUP
  ------------------
  |  | 1181|      0|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1368|       |
 1369|      0|#line 92 "/src/igraph/src/io/ncol-lexer.l"
 1370|      0|{ return ERROR; }
 1371|      0|#line 1372 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1372|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1373|      0|	case 5:
  ------------------
  |  Branch (1373:2): [True: 0, False: 1.48M]
  ------------------
 1374|       |/* rule 5 can match eol */
 1375|      0|YY_RULE_SETUP
  ------------------
  |  | 1181|      0|		YY_USER_ACTION
  |  |  ------------------
  |  |  |  |  895|      0|#define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  969|      0|    #    define yylloc yyg->yylloc_r
  |  |  |  |  ------------------
  |  |  |  |               #define YY_USER_ACTION yylloc->first_line = yylineno;
  |  |  |  |  ------------------
  |  |  |  |  |  |  409|      0|#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1376|       |
 1377|      0|YY_FATAL_ERROR("flex scanner jammed");
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1378|      0|	YY_BREAK
  ------------------
  |  | 1177|      0|#define YY_BREAK /*LINTED*/break;
  ------------------
 1379|      0|#line 1380 "/src/igraph/build/src/io/parsers/ncol-lexer.c"
 1380|  3.25k|	case YY_STATE_EOF(INITIAL):
  ------------------
  |  |  427|  3.25k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.25k|#define YY_END_OF_BUFFER 6
  |  |  ------------------
  ------------------
  |  Branch (1380:2): [True: 3.25k, False: 1.48M]
  ------------------
 1381|  3.25k|		yyterminate();
  ------------------
  |  | 1145|  3.25k|#define yyterminate() return YY_NULL
  |  |  ------------------
  |  |  |  |  389|  3.25k|#define YY_NULL 0
  |  |  ------------------
  ------------------
 1382|       |
 1383|  14.9k|			case YY_END_OF_BUFFER:
  ------------------
  |  |  705|  14.9k|#define YY_END_OF_BUFFER 6
  ------------------
  |  Branch (1383:4): [True: 14.9k, False: 1.47M]
  ------------------
 1384|  14.9k|			{
 1385|       |				/* Amount of text matched not including the EOB char. */
 1386|  14.9k|				int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
  ------------------
  |  |  669|  14.9k|#define yytext_ptr yytext_r
  ------------------
 1387|       |
 1388|       |				/* Undo the effects of YY_DO_BEFORE_ACTION. */
 1389|  14.9k|				*yy_cp = yyg->yy_hold_char;
 1390|  14.9k|				YY_RESTORE_YY_MORE_OFFSET
 1391|       |
 1392|  14.9k|				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              				if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) {
  ------------------
  |  |  580|  14.9k|#define YY_BUFFER_NEW 0
  ------------------
  |  Branch (1392:10): [True: 3.25k, False: 11.6k]
  ------------------
 1393|       |					/* We're scanning a new file or input source.  It's
 1394|       |					 * possible that this happened because the user
 1395|       |					 * just pointed yyin at a new source and called
 1396|       |					 * yylex().  If so, then we have to assure
 1397|       |					 * consistency between yy_current_buffer() and our
 1398|       |					 * globals.  Here is the right place to do so, because
 1399|       |					 * this is the first action (other than possibly a
 1400|       |					 * back-up) that will match for the new input source.
 1401|       |					 */
 1402|  3.25k|					yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1403|       |
 1404|  3.25k|					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
 1405|       |
 1406|  3.25k|					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              					YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  ------------------
  |  |  581|  3.25k|#define YY_BUFFER_NORMAL 1
  ------------------
 1407|  3.25k|				}
 1408|       |
 1409|       |				/* Note that here we test for yy_c_buf_p "<=" to the position
 1410|       |				 * of the first EOB in the buffer, since yy_c_buf_p will
 1411|       |				 * already have been incremented past the NUL character
 1412|       |				 * (since all states make transitions on EOB to the
 1413|       |				 * end-of-buffer state).  Contrast this with the test
 1414|       |				 * in input().
 1415|       |				 */
 1416|  14.9k|				if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) { /* This was really a NUL. */
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1416:10): [True: 0, False: 14.9k]
  ------------------
 1417|      0|					yy_state_type yy_next_state;
 1418|       |
 1419|      0|					yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
 1420|       |
 1421|      0|					yy_current_state = yy_get_previous_state( yyscanner );
 1422|       |
 1423|       |					/* Okay, we're now positioned to make the NUL
 1424|       |					 * transition.  We couldn't have
 1425|       |					 * yy_get_previous_state() go ahead and do it
 1426|       |					 * for us because it doesn't know how to deal
 1427|       |					 * with the possibility of jamming (and we don't
 1428|       |					 * want to build jamming into it because then it
 1429|       |					 * will run more slowly).
 1430|       |					 */
 1431|       |
 1432|      0|					yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
 1433|       |
 1434|      0|					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              					yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|      0|#define YY_MORE_ADJ 0
  ------------------
 1435|       |
 1436|      0|					if ( yy_next_state ) {
  ------------------
  |  Branch (1436:11): [True: 0, False: 0]
  ------------------
 1437|       |						/* Consume the NUL. */
 1438|      0|						yy_cp = ++yyg->yy_c_buf_p;
 1439|      0|						yy_current_state = yy_next_state;
 1440|      0|						goto yy_match;
 1441|      0|					} else {
 1442|       |						
 1443|       |						/* Still need to initialize yy_cp, though
 1444|       |						 * yy_current_state was set up by
 1445|       |						 * yy_get_previous_state().
 1446|       |						 */
 1447|      0|						yy_cp = yyg->yy_c_buf_p;
 1448|       |
 1449|      0|						goto yy_find_action;
 1450|      0|					}
 1451|  14.9k|				} else {	/* not a NUL */
 1452|  14.9k|					switch ( yy_get_next_buffer( yyscanner ) ) {
 1453|  3.25k|					case EOB_ACT_END_OF_FILE:
  ------------------
  |  |  475|  3.25k|#define EOB_ACT_END_OF_FILE 1
  ------------------
  |  Branch (1453:6): [True: 3.25k, False: 11.6k]
  ------------------
 1454|  3.25k|						yyg->yy_did_buffer_switch_on_eof = 0;
 1455|       |
 1456|  3.25k|						if ( yywrap( yyscanner ) ) {
  ------------------
  |  |  245|  3.25k|#define yywrap igraph_ncol_yywrap
  |  |  ------------------
  |  |  |  |  657|  3.25k|#define igraph_ncol_yywrap(yyscanner) (/*CONSTCOND*/1)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (657:39): [True: 3.25k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1457|       |							/* Note: because we've taken care in
 1458|       |							 * yy_get_next_buffer() to have set up
 1459|       |							 * yytext, we can now set up
 1460|       |							 * yy_c_buf_p so that if some total
 1461|       |							 * hoser (like flex itself) wants to
 1462|       |							 * call the scanner after we return the
 1463|       |							 * YY_NULL, it'll still work - another
 1464|       |							 * YY_NULL will get returned.
 1465|       |							 */
 1466|  3.25k|							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  3.25k|#define yytext_ptr yytext_r
  ------------------
              							yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  3.25k|#define YY_MORE_ADJ 0
  ------------------
 1467|       |
 1468|  3.25k|							yy_act = YY_STATE_EOF(YY_START);
  ------------------
  |  |  427|  3.25k|#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  |  |  ------------------
  |  |  |  |  705|  3.25k|#define YY_END_OF_BUFFER 6
  |  |  ------------------
  ------------------
 1469|  3.25k|							goto do_action;
 1470|  3.25k|						} else {
 1471|      0|							if ( ! yyg->yy_did_buffer_switch_on_eof ) {
  ------------------
  |  Branch (1471:13): [True: 0, False: 0]
  ------------------
 1472|      0|								YY_NEW_FILE;
  ------------------
  |  |  429|      0|#define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  127|      0|#define yyrestart igraph_ncol_yyrestart
  |  |  ------------------
  |  |               #define YY_NEW_FILE yyrestart( yyin , yyscanner )
  |  |  ------------------
  |  |  |  |  404|      0|#define yyin yyg->yyin_r
  |  |  ------------------
  ------------------
 1473|      0|							}
 1474|      0|						}
 1475|      0|						break;
 1476|  9.33k|					case EOB_ACT_CONTINUE_SCAN:
  ------------------
  |  |  474|  9.33k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
  |  Branch (1476:6): [True: 9.33k, False: 5.58k]
  ------------------
 1477|  9.33k|						yyg->yy_c_buf_p =
 1478|  9.33k|							yyg->yytext_ptr + yy_amount_of_matched_text;
  ------------------
  |  |  669|  9.33k|#define yytext_ptr yytext_r
  ------------------
 1479|       |
 1480|  9.33k|						yy_current_state = yy_get_previous_state( yyscanner );
 1481|       |
 1482|  9.33k|						yy_cp = yyg->yy_c_buf_p;
 1483|  9.33k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  9.33k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  9.33k|#define YY_MORE_ADJ 0
  ------------------
 1484|  9.33k|						goto yy_match;
 1485|       |
 1486|  2.33k|					case EOB_ACT_LAST_MATCH:
  ------------------
  |  |  476|  2.33k|#define EOB_ACT_LAST_MATCH 2
  ------------------
  |  Branch (1486:6): [True: 2.33k, False: 12.5k]
  ------------------
 1487|  2.33k|						yyg->yy_c_buf_p =
 1488|  2.33k|						&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
  ------------------
  |  |  611|  2.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1489|       |
 1490|  2.33k|						yy_current_state = yy_get_previous_state( yyscanner );
 1491|       |
 1492|  2.33k|						yy_cp = yyg->yy_c_buf_p;
 1493|  2.33k|						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  669|  2.33k|#define yytext_ptr yytext_r
  ------------------
              						yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
  ------------------
  |  |  839|  2.33k|#define YY_MORE_ADJ 0
  ------------------
 1494|  2.33k|						goto yy_find_action;
 1495|      0|					default:
  ------------------
  |  Branch (1495:6): [True: 0, False: 14.9k]
  ------------------
 1496|      0|						YY_FATAL_ERROR("unexpected return value from yy_get_next_buffer()");
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1497|  14.9k|					} /* end EOB inner switch */
 1498|  14.9k|				} /* end if */
 1499|      0|				break;
 1500|  14.9k|			} /* case YY_END_OF_BUFFER */
 1501|      0|			default:
  ------------------
  |  Branch (1501:4): [True: 0, False: 1.48M]
  ------------------
 1502|      0|				YY_FATAL_ERROR("fatal flex scanner internal error--no action found" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1503|  1.48M|			} /* end of action switch */
 1504|  1.48M|		} /* end of scanning one token */
 1505|  1.08M|	} /* end of user's declarations */
 1506|  1.08M|} /* end of yylex */
igraph_ncol_yyrestart:
 1868|  3.25k|{
 1869|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1870|       |
 1871|  3.25k|	if ( yy_current_buffer() == NULL ) {
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.25k, False: 0]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
  |  Branch (1871:7): [True: 0, False: 3.25k]
  ------------------
 1872|      0|		yyensure_buffer_stack (yyscanner);
  ------------------
  |  |  115|      0|#define yyensure_buffer_stack igraph_ncol_yyensure_buffer_stack
  ------------------
 1873|      0|		YY_CURRENT_BUFFER_LVALUE =
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1874|      0|	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |   49|      0|#define yy_create_buffer igraph_ncol_yy_create_buffer
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
              	        	yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
  ------------------
  |  |  693|      0|#define YY_BUF_SIZE	(2 * YY_READ_BUF_SIZE)
  |  |  ------------------
  |  |  |  |  682|      0|#define YY_READ_BUF_SIZE BUFSIZ
  |  |  ------------------
  ------------------
 1875|      0|	}
 1876|       |
 1877|  3.25k|	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |   79|  3.25k|#define yy_init_buffer igraph_ncol_yy_init_buffer
  ------------------
              	yy_init_buffer( YY_CURRENT_BUFFER_LVALUE, input_file , yyscanner);
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1878|  3.25k|	yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.25k|#define yy_load_buffer_state igraph_ncol_yy_load_buffer_state
  ------------------
 1879|       |
 1880|       |	/* We don't actually know whether we did this switch during
 1881|       |	 * EOF (yywrap()) processing, but the only time this flag
 1882|       |	 * is looked at is after yywrap() is called, so it's safe
 1883|       |	 * to go ahead and always set it.
 1884|       |	 */
 1885|  3.25k|	yyg->yy_did_buffer_switch_on_eof = 1;
 1886|  3.25k|}
igraph_ncol_yy_create_buffer:
 1948|  3.25k|{
 1949|  3.25k|	yybuffer b;
 1950|       |
 1951|  3.25k|	b = (yybuffer) yyalloc( sizeof( *b ) , yyscanner );
  ------------------
  |  |  275|  3.25k|#define yyalloc igraph_ncol_yyalloc
  ------------------
 1952|  3.25k|	if (  b == NULL ) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 3.25k]
  ------------------
 1953|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1954|      0|	}
 1955|  3.25k|	b->yy_buf_size = size;
 1956|       |
 1957|       |	/* yy_ch_buf has to be 2 characters longer than the size given because
 1958|       |	 * we need to put in 2 end-of-buffer characters.
 1959|       |	 */
 1960|  3.25k|	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
  ------------------
  |  |  275|  3.25k|#define yyalloc igraph_ncol_yyalloc
  ------------------
 1961|  3.25k|	if ( b->yy_ch_buf == NULL ) {
  ------------------
  |  Branch (1961:7): [True: 0, False: 3.25k]
  ------------------
 1962|      0|		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1963|      0|	}
 1964|  3.25k|	b->yy_is_our_buffer = 1;
 1965|       |
 1966|  3.25k|	yy_init_buffer( b, file , yyscanner);
  ------------------
  |  |   79|  3.25k|#define yy_init_buffer igraph_ncol_yy_init_buffer
  ------------------
 1967|       |
 1968|  3.25k|	return b;
 1969|  3.25k|}
igraph_ncol_yy_delete_buffer:
 1978|  3.25k|{
 1979|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1980|       |
 1981|  3.25k|	if ( b == NULL ) {
  ------------------
  |  Branch (1981:7): [True: 0, False: 3.25k]
  ------------------
 1982|      0|		return;
 1983|      0|	}
 1984|  3.25k|	if ( b == yy_current_buffer() ) {	/* Not sure if we should pop here. */
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.25k, False: 0]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
  |  Branch (1984:7): [True: 3.25k, False: 0]
  ------------------
 1985|  3.25k|		YY_CURRENT_BUFFER_LVALUE = (yybuffer) 0;
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1986|  3.25k|	}
 1987|  3.25k|	if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (1987:7): [True: 3.25k, False: 0]
  ------------------
 1988|  3.25k|		yyfree( (void *) b->yy_ch_buf , yyscanner );
  ------------------
  |  |  287|  3.25k|#define yyfree igraph_ncol_yyfree
  ------------------
 1989|  3.25k|	}
 1990|  3.25k|	yyfree( (void *) b , yyscanner );
  ------------------
  |  |  287|  3.25k|#define yyfree igraph_ncol_yyfree
  ------------------
 1991|  3.25k|}
igraph_ncol_yy_flush_buffer:
 2045|  6.50k|{
 2046|  6.50k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2047|  6.50k|	if ( b == NULL ) {
  ------------------
  |  Branch (2047:7): [True: 0, False: 6.50k]
  ------------------
 2048|      0|		return;
 2049|      0|	}
 2050|  6.50k|	b->yy_n_chars = 0;
 2051|       |
 2052|       |	/* We always need two end-of-buffer characters.  The first causes
 2053|       |	 * a transition to the end-of-buffer state.  The second causes
 2054|       |	 * a jam in that state.
 2055|       |	 */
 2056|  6.50k|	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.50k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2057|  6.50k|	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  6.50k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 2058|       |
 2059|  6.50k|	b->yy_buf_pos = &b->yy_ch_buf[0];
 2060|       |
 2061|  6.50k|	b->yy_at_bol = 1;
 2062|  6.50k|	b->yy_at_bol_before_match = 1;
 2063|  6.50k|	b->yy_buffer_status = YY_BUFFER_NEW;
  ------------------
  |  |  580|  6.50k|#define YY_BUFFER_NEW 0
  ------------------
 2064|       |
 2065|  6.50k|	if ( b == yy_current_buffer() ) {
  ------------------
  |  |  603|  6.50k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.50k, False: 0]
  |  |  ------------------
  |  |  604|  6.50k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.50k|                          : NULL)
  ------------------
  |  Branch (2065:7): [True: 3.25k, False: 3.25k]
  ------------------
 2066|  3.25k|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|  3.25k|#define yy_load_buffer_state igraph_ncol_yy_load_buffer_state
  ------------------
 2067|  3.25k|	}
 2068|  6.50k|}
igraph_ncol_yypop_buffer_state:
 2114|  3.25k|{
 2115|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2116|  3.25k|	if (yy_current_buffer() == NULL) {
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.25k, False: 0]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
  |  Branch (2116:6): [True: 0, False: 3.25k]
  ------------------
 2117|      0|		return;
 2118|      0|	}
 2119|  3.25k|	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |   55|  3.25k|#define yy_delete_buffer igraph_ncol_yy_delete_buffer
  ------------------
              	yy_delete_buffer(yy_current_buffer() , yyscanner);
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.25k, False: 0]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
 2120|  3.25k|	YY_CURRENT_BUFFER_LVALUE = NULL;
  ------------------
  |  |  611|  3.25k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 2121|  3.25k|	if (yyg->yy_buffer_stack_top > 0) {
  ------------------
  |  Branch (2121:6): [True: 0, False: 3.25k]
  ------------------
 2122|      0|		--yyg->yy_buffer_stack_top;
 2123|      0|	}
 2124|  3.25k|	if (yy_current_buffer() != NULL) {
  ------------------
  |  |  603|  3.25k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 3.25k, False: 0]
  |  |  ------------------
  |  |  604|  3.25k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  3.25k|                          : NULL)
  ------------------
  |  Branch (2124:6): [True: 0, False: 3.25k]
  ------------------
 2125|      0|		yy_load_buffer_state( yyscanner );
  ------------------
  |  |   91|      0|#define yy_load_buffer_state igraph_ncol_yy_load_buffer_state
  ------------------
 2126|      0|		yyg->yy_did_buffer_switch_on_eof = 1;
 2127|      0|	}
 2128|  3.25k|}
igraph_ncol_yyget_leng:
 2347|   735k|int yyget_leng  (yyscan_t yyscanner) {
 2348|   735k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2349|   735k|	return yyleng;
  ------------------
  |  |  407|   735k|#define yyleng yyg->yyleng_r
  ------------------
 2350|   735k|}
igraph_ncol_yyget_text:
 2356|   735k|char *yyget_text  (yyscan_t yyscanner) {
 2357|   735k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2358|   735k|	return yytext;
  ------------------
  |  |  408|   735k|#define yytext yyg->yytext_r
  ------------------
 2359|   735k|}
igraph_ncol_yyset_extra:
 2365|  6.50k|void yyset_extra (YY_EXTRA_TYPE  user_defined , yyscan_t yyscanner) {
 2366|  6.50k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2367|  6.50k|	yyextra = user_defined ;
  ------------------
  |  |  406|  6.50k|#define yyextra yyg->yyextra_r
  ------------------
 2368|  6.50k|}
igraph_ncol_yyset_in:
 2406|  3.25k|void yyset_in (FILE *  _in_str , yyscan_t yyscanner) {
 2407|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2408|  3.25k|	yyin = _in_str ;
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
 2409|  3.25k|}
igraph_ncol_yylex_init_extra:
 2480|  3.25k|int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) {
 2481|  3.25k|	struct yyguts_t dummy_yyguts;
 2482|       |
 2483|  3.25k|	yyset_extra (yy_user_defined, &dummy_yyguts);
  ------------------
  |  |  169|  3.25k|#define yyset_extra igraph_ncol_yyset_extra
  ------------------
 2484|       |
 2485|  3.25k|	if (ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2485:6): [True: 0, False: 3.25k]
  ------------------
 2486|      0|		errno = EINVAL;
 2487|      0|		return 1;
 2488|      0|	}
 2489|       |
 2490|  3.25k|	*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
  ------------------
  |  |  275|  3.25k|#define yyalloc igraph_ncol_yyalloc
  ------------------
 2491|       |
 2492|  3.25k|	if (*ptr_yy_globals == NULL) {
  ------------------
  |  Branch (2492:6): [True: 0, False: 3.25k]
  ------------------
 2493|      0|		errno = ENOMEM;
 2494|      0|		return 1;
 2495|      0|	}
 2496|       |
 2497|       |	/* By setting to 0xAA, we expose bugs in
 2498|       |	   yy_init_globals. Leave at 0x00 for releases. */
 2499|  3.25k|	memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
 2500|       |
 2501|  3.25k|	yyset_extra (yy_user_defined, *ptr_yy_globals);
  ------------------
  |  |  169|  3.25k|#define yyset_extra igraph_ncol_yyset_extra
  ------------------
 2502|       |
 2503|  3.25k|	return yy_init_globals ( *ptr_yy_globals );
 2504|  3.25k|}
igraph_ncol_yylex_destroy:
 2539|  3.25k|int yylex_destroy  (yyscan_t yyscanner) {
 2540|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2541|       |
 2542|       |	/* Pop the buffer stack, destroying each element. */
 2543|  6.50k|	while(yy_current_buffer()) {
  ------------------
  |  |  603|  6.50k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:29): [True: 3.25k, False: 3.25k]
  |  |  |  Branch (603:31): [True: 6.50k, False: 0]
  |  |  ------------------
  |  |  604|  6.50k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.50k|                          : NULL)
  ------------------
 2544|  3.25k|		yypop_buffer_state(yyscanner);
  ------------------
  |  |  109|  3.25k|#define yypop_buffer_state igraph_ncol_yypop_buffer_state
  ------------------
 2545|  3.25k|	}
 2546|       |
 2547|       |	/* Destroy the stack itself. */
 2548|  3.25k|	yyfree(yyg->yy_buffer_stack , yyscanner);
  ------------------
  |  |  287|  3.25k|#define yyfree igraph_ncol_yyfree
  ------------------
 2549|  3.25k|	yyg->yy_buffer_stack = NULL;
 2550|       |
 2551|       |	/* Destroy the start condition stack. */
 2552|  3.25k|        yyfree( yyg->yy_start_stack , yyscanner );
  ------------------
  |  |  287|  3.25k|#define yyfree igraph_ncol_yyfree
  ------------------
 2553|  3.25k|        yyg->yy_start_stack = NULL;
 2554|       |
 2555|       |	/* Reset the globals. This is important in a non-reentrant scanner so the next time
 2556|       |	 * yylex() is called, initialization will occur. */
 2557|  3.25k|	yy_init_globals( yyscanner);
 2558|       |
 2559|       |	/* Destroy the main struct (reentrant only). */
 2560|  3.25k|	yyfree ( yyscanner , yyscanner );
  ------------------
  |  |  287|  3.25k|#define yyfree igraph_ncol_yyfree
  ------------------
 2561|  3.25k|	yyscanner = NULL;
 2562|       |
 2563|  3.25k|	return 0;
 2564|  3.25k|}
igraph_ncol_yyalloc:
 2593|  13.0k|void *yyalloc (yy_size_t  size , yyscan_t yyscanner) {
 2594|  13.0k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2595|  13.0k|	(void)yyg;
 2596|  13.0k|	return malloc(size);
 2597|  13.0k|}
igraph_ncol_yyrealloc:
 2599|     61|void *yyrealloc  (void * ptr, yy_size_t  size , yyscan_t yyscanner) {
 2600|     61|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2601|     61|	(void)yyg;
 2602|       |
 2603|       |	/* The cast to (char *) in the following accommodates both
 2604|       |	 * implementations that use char* generic pointers, and those
 2605|       |	 * that use void* generic pointers.  It works with the latter
 2606|       |	 * because both ANSI C and C++ allow castless assignment from
 2607|       |	 * any pointer type to void*, and deal with argument conversions
 2608|       |	 * as though doing an assignment.
 2609|       |	 */
 2610|     61|	return realloc(ptr, size);
 2611|     61|}
igraph_ncol_yyfree:
 2613|  16.2k|void yyfree (void * ptr , yyscan_t yyscanner) {
 2614|  16.2k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2615|  16.2k|	(void)yyg;
 2616|  16.2k|	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
 2617|  16.2k|}
ncol-lexer.c:yy_get_next_buffer:
 1518|  14.9k|{
 1519|  14.9k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1520|  14.9k|	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1521|  14.9k|	char *source = yyg->yytext_ptr;
  ------------------
  |  |  669|  14.9k|#define yytext_ptr yytext_r
  ------------------
 1522|  14.9k|	int number_to_move, i;
 1523|  14.9k|	int ret_val;
 1524|       |
 1525|  14.9k|	if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) {
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1525:7): [True: 0, False: 14.9k]
  ------------------
 1526|      0|		YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1527|      0|	}
 1528|  14.9k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) {
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1528:7): [True: 0, False: 14.9k]
  ------------------
 1529|       |		/* Don't try to fill the buffer, so this is an EOF. */
 1530|      0|		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  669|      0|#define yytext_ptr yytext_r
  ------------------
              		if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) {
  ------------------
  |  |  839|      0|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1530:8): [True: 0, False: 0]
  ------------------
 1531|       |			/* We matched a single character, the EOB, so
 1532|       |			 * treat this as a final EOF.
 1533|       |			 */
 1534|      0|			return EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|      0|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1535|      0|		} else {
 1536|       |			/* We matched some text prior to the EOB, first
 1537|       |			 * process it.
 1538|       |			 */
 1539|      0|			return EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|      0|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1540|      0|		}
 1541|      0|	}
 1542|       |
 1543|       |	/* Try to read more data. */
 1544|       |
 1545|       |	/* First move last chars to start of buffer. */
 1546|  14.9k|	number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
  ------------------
  |  |  669|  14.9k|#define yytext_ptr yytext_r
  ------------------
 1547|       |
 1548|   189M|	for ( i = 0; i < number_to_move; ++i ) {
  ------------------
  |  Branch (1548:15): [True: 189M, False: 14.9k]
  ------------------
 1549|   189M|		*(dest++) = *(source++);
 1550|   189M|	}
 1551|  14.9k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) {
  ------------------
  |  |  592|  14.9k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
  |  Branch (1551:7): [True: 2.33k, False: 12.5k]
  ------------------
 1552|       |		/* don't do the read, it's not guaranteed to return an EOF,
 1553|       |		 * just force an EOF
 1554|       |		 */
 1555|  2.33k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
  ------------------
  |  |  611|  2.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1556|  12.5k|	} else {
 1557|  12.5k|		int num_to_read =
 1558|  12.5k|			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  ------------------
  |  |  611|  12.5k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1559|       |
 1560|  12.6k|		while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */
  ------------------
  |  Branch (1560:11): [True: 61, False: 12.5k]
  ------------------
 1561|       |
 1562|       |			/* just a shorter name for the current buffer */
 1563|     61|			yybuffer b = YY_CURRENT_BUFFER_LVALUE;
  ------------------
  |  |  611|     61|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1564|       |
 1565|     61|			int yy_c_buf_p_offset =
 1566|     61|				(int) (yyg->yy_c_buf_p - b->yy_ch_buf);
 1567|       |
 1568|     61|			if ( b->yy_is_our_buffer ) {
  ------------------
  |  Branch (1568:9): [True: 61, False: 0]
  ------------------
 1569|     61|				int new_size = b->yy_buf_size * 2;
 1570|       |
 1571|     61|				if ( new_size <= 0 ) {
  ------------------
  |  Branch (1571:10): [True: 0, False: 61]
  ------------------
 1572|      0|					b->yy_buf_size += b->yy_buf_size / 8;
 1573|     61|				} else {
 1574|     61|					b->yy_buf_size *= 2;
 1575|     61|				}
 1576|     61|				b->yy_ch_buf = (char *)
 1577|       |					/* Include room in for 2 EOB chars. */
 1578|     61|					yyrealloc( (void *) b->yy_ch_buf,
  ------------------
  |  |  281|     61|#define yyrealloc igraph_ncol_yyrealloc
  ------------------
 1579|     61|							 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
 1580|     61|			} else {
 1581|       |				/* Can't grow it, we don't own it. */
 1582|      0|				b->yy_ch_buf = NULL;
 1583|      0|			}
 1584|     61|			if ( ! b->yy_ch_buf ) {
  ------------------
  |  Branch (1584:9): [True: 0, False: 61]
  ------------------
 1585|      0|				YY_FATAL_ERROR(
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1586|      0|				"fatal error - scanner input buffer overflow" );
 1587|      0|			}
 1588|     61|			yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
 1589|       |
 1590|     61|			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  ------------------
  |  |  611|     61|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1591|     61|						number_to_move - 1;
 1592|       |
 1593|     61|		}
 1594|       |
 1595|  12.5k|		if ( num_to_read > YY_READ_BUF_SIZE ) {
  ------------------
  |  |  682|  12.5k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
  |  Branch (1595:8): [True: 11.3k, False: 1.24k]
  ------------------
 1596|  11.3k|			num_to_read = YY_READ_BUF_SIZE;
  ------------------
  |  |  682|  11.3k|#define YY_READ_BUF_SIZE BUFSIZ
  ------------------
 1597|  11.3k|		}
 1598|       |		/* Read in more data. */
 1599|  12.5k|		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  ------------------
  |  | 1096|  12.5k|#define YY_INPUT(buf,result,max_size) do {result = yyread(buf, max_size , yyscanner);} while (0)
  |  |  ------------------
  |  |  |  Branch (1096:95): [Folded, False: 12.5k]
  |  |  ------------------
  ------------------
 1600|  12.5k|			yyg->yy_n_chars, num_to_read );
 1601|       |
 1602|  12.5k|		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
  ------------------
  |  |  611|  12.5k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1603|  12.5k|	}
 1604|       |
 1605|  14.9k|	if ( yyg->yy_n_chars == 0 ) {
  ------------------
  |  Branch (1605:7): [True: 5.58k, False: 9.33k]
  ------------------
 1606|  5.58k|		if ( number_to_move == YY_MORE_ADJ ) {
  ------------------
  |  |  839|  5.58k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1606:8): [True: 3.25k, False: 2.33k]
  ------------------
 1607|  3.25k|			ret_val = EOB_ACT_END_OF_FILE;
  ------------------
  |  |  475|  3.25k|#define EOB_ACT_END_OF_FILE 1
  ------------------
 1608|  3.25k|			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  127|  3.25k|#define yyrestart igraph_ncol_yyrestart
  ------------------
              			yyrestart( yyin  , yyscanner);
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
 1609|  3.25k|		} else {
 1610|  2.33k|			ret_val = EOB_ACT_LAST_MATCH;
  ------------------
  |  |  476|  2.33k|#define EOB_ACT_LAST_MATCH 2
  ------------------
 1611|  2.33k|			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  ------------------
  |  |  611|  2.33k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1612|  2.33k|				YY_BUFFER_EOF_PENDING;
  ------------------
  |  |  592|  2.33k|#define YY_BUFFER_EOF_PENDING 2
  ------------------
 1613|  2.33k|		}
 1614|  9.33k|	} else {
 1615|  9.33k|		ret_val = EOB_ACT_CONTINUE_SCAN;
  ------------------
  |  |  474|  9.33k|#define EOB_ACT_CONTINUE_SCAN 0
  ------------------
 1616|  9.33k|	}
 1617|  14.9k|	if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1617:6): [True: 0, False: 14.9k]
  ------------------
 1618|       |		/* Extend the array by 50%, plus the number we really need. */
 1619|      0|		int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1) + 2;
 1620|      0|		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
  ------------------
  |  |  281|      0|#define yyrealloc igraph_ncol_yyrealloc
  ------------------
 1621|      0|			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1622|      0|		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) {
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1622:8): [True: 0, False: 0]
  ------------------
 1623|      0|			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1624|      0|		}
 1625|       |		/* "- 2" to take care of EOB's */
 1626|      0|		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
  ------------------
  |  |  611|      0|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1627|      0|	}
 1628|       |
 1629|  14.9k|	yyg->yy_n_chars += number_to_move;
 1630|  14.9k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  14.9k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1631|  14.9k|	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
              	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  ------------------
  |  |  430|  14.9k|#define YY_END_OF_BUFFER_CHAR 0
  ------------------
 1632|       |
 1633|  14.9k|	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  669|  14.9k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  ------------------
  |  |  611|  14.9k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1634|       |
 1635|  14.9k|	return ret_val;
 1636|  14.9k|}
ncol-lexer.c:yyread:
 1105|  12.5k|static int yyread(char *buf, size_t max_size , yyscan_t yyscanner) {
 1106|       |
 1107|  12.5k|	int result;
 1108|  12.5k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1109|       |
 1110|  12.5k|	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) {
  ------------------
  |  |  611|  12.5k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
  |  Branch (1110:7): [True: 0, False: 12.5k]
  ------------------
 1111|      0|		int c = '*';
 1112|      0|		yy_size_t n;
 1113|      0|		for ( n = 0; n < max_size &&
  ------------------
  |  Branch (1113:16): [True: 0, False: 0]
  ------------------
 1114|      0|			      (c = getc( yyin )) != EOF && c != '\n'; ++n ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1114:10): [True: 0, False: 0]
  |  Branch (1114:39): [True: 0, False: 0]
  ------------------
 1115|      0|			buf[n] = (char) c;
 1116|      0|		}
 1117|      0|		if ( c == '\n' ) {
  ------------------
  |  Branch (1117:8): [True: 0, False: 0]
  ------------------
 1118|      0|			buf[n++] = (char) c;
 1119|      0|		}
 1120|      0|		if ( c == EOF && ferror( yyin ) ) {
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1120:8): [True: 0, False: 0]
  |  Branch (1120:20): [True: 0, False: 0]
  ------------------
 1121|      0|			YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1122|      0|		}
 1123|      0|		result = n;
 1124|  12.5k|	} else {
 1125|  12.5k|		errno=0;
 1126|  12.5k|		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  12.5k|#define yyin yyg->yyin_r
  ------------------
              		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) {
  ------------------
  |  |  404|  3.25k|#define yyin yyg->yyin_r
  ------------------
  |  Branch (1126:11): [True: 3.25k, False: 9.33k]
  |  Branch (1126:78): [True: 0, False: 3.25k]
  ------------------
 1127|      0|			if( errno != EINTR) {
  ------------------
  |  Branch (1127:8): [True: 0, False: 0]
  ------------------
 1128|      0|				YY_FATAL_ERROR( "input in flex scanner failed" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1129|      0|				break;
 1130|      0|			}
 1131|      0|			errno=0;
 1132|      0|			clearerr(yyin);
  ------------------
  |  |  404|      0|#define yyin yyg->yyin_r
  ------------------
 1133|      0|		}
 1134|  12.5k|	}
 1135|       |
 1136|  12.5k|	 return result;
 1137|  12.5k|}
ncol-lexer.c:yy_get_previous_state:
 1642|  11.6k|{
 1643|  11.6k|	yy_state_type yy_current_state;
 1644|  11.6k|	char *yy_cp;
 1645|  11.6k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1646|       |
 1647|       |	/* Generate the code to find the start state. */
 1648|       |
 1649|  11.6k|			yy_current_state = yyg->yy_start;
 1650|       |
 1651|       |			/* Set up for storing up states. */
 1652|       |			
 1653|   189M|	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  669|  11.6k|#define yytext_ptr yytext_r
  ------------------
              	for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) {
  ------------------
  |  |  839|  11.6k|#define YY_MORE_ADJ 0
  ------------------
  |  Branch (1653:47): [True: 189M, False: 11.6k]
  ------------------
 1654|       |		/* Generate the code to find the next state. */
 1655|       |		
 1656|   189M|	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  394|   189M|#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
  ------------------
              	int yy_c = (*yy_cp ? *(yy_ec+YY_SC_TO_UI(*yy_cp)) : YY_NUL_EC);
  ------------------
  |  |  708|      0|#define YY_NUL_EC 1
  ------------------
  |  Branch (1656:14): [True: 189M, False: 0]
  ------------------
 1657|       |	/* Save the backing-up info \before/ computing the next state
 1658|       |	 * because we always compute one more state than needed - we
 1659|       |	 * always proceed until we reach a jam state
 1660|       |	 */
 1661|       |	
 1662|       |		/* Generate code to keep backing-up information. */
 1663|       |
 1664|   189M|		if ( yy_accept[yy_current_state] ) {
  ------------------
  |  Branch (1664:8): [True: 189M, False: 9.33k]
  ------------------
 1665|       |
 1666|   189M|			yyg->yy_last_accepting_state = yy_current_state;
 1667|   189M|			yyg->yy_last_accepting_cpos = yy_cp;
 1668|   189M|		}
 1669|       |
 1670|   378M|	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) {
  ------------------
  |  Branch (1670:10): [True: 189M, False: 189M]
  ------------------
 1671|   189M|		yy_current_state = (int) yy_def[yy_current_state];
 1672|       |
 1673|       |		/* We've arranged it so that templates are never chained
 1674|       |		 * to one another.  This means we can afford to make a
 1675|       |		 * very simple test to see if we need to convert to
 1676|       |		 * yy_c's meta-equivalence class without worrying
 1677|       |		 * about erroneously looking up the meta-equivalence
 1678|       |		 * class twice
 1679|       |		 */
 1680|       |
 1681|       |		/* lastdfa + 2 == YY_JAMSTATE + 1 is the beginning of the templates */
 1682|   189M|		if (yy_current_state >= YY_JAMSTATE + 1) {
  ------------------
  |  |  707|   189M|#define YY_JAMSTATE 14
  ------------------
  |  Branch (1682:7): [True: 189M, False: 5.67k]
  ------------------
 1683|   189M|			yy_c = yy_meta[yy_c];
 1684|   189M|		}
 1685|       |
 1686|   189M|	}
 1687|   189M|	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
 1688|       |
 1689|   189M|	}
 1690|       |
 1691|  11.6k|	return yy_current_state;
 1692|  11.6k|}
ncol-lexer.c:igraph_ncol_yy_load_buffer_state:
 1927|  9.75k|{
 1928|  9.75k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 1929|  9.75k|	yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  ------------------
  |  |  611|  9.75k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1930|  9.75k|	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  669|  9.75k|#define yytext_ptr yytext_r
  ------------------
              	yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  ------------------
  |  |  611|  9.75k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1931|       |
 1932|  9.75k|	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  404|  9.75k|#define yyin yyg->yyin_r
  ------------------
              	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  ------------------
  |  |  611|  9.75k|#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
  ------------------
 1933|       |
 1934|  9.75k|	yyg->yy_hold_char = *yyg->yy_c_buf_p;
 1935|  9.75k|	yyg->yy_hold_ptr = yyg->yy_c_buf_p;
 1936|       |
 1937|  9.75k|}
ncol-lexer.c:igraph_ncol_yy_init_buffer:
 2000|  6.50k|{
 2001|  6.50k|	int oerrno = errno;
 2002|  6.50k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2003|       |
 2004|  6.50k|	yy_flush_buffer( b , yyscanner);
  ------------------
  |  |   85|  6.50k|#define yy_flush_buffer igraph_ncol_yy_flush_buffer
  ------------------
 2005|       |
 2006|  6.50k|	b->yy_input_file = file;
 2007|       |
 2008|  6.50k|#ifdef YY_INPUT_IS_OURS
 2009|       |    /* b->yy_input_file should never by NULL but we'll handle it cleanly
 2010|       |	 * on the off chance.
 2011|       |	 */
 2012|  6.50k|	if (b->yy_input_file == NULL){
  ------------------
  |  Branch (2012:6): [True: 0, False: 6.50k]
  ------------------
 2013|      0|	  b->yy_fill_buffer = 0;
 2014|  6.50k|	} else {
 2015|  6.50k|	  b->yy_fill_buffer = 1;
 2016|  6.50k|	}
 2017|       |#else
 2018|       |	/* A user-defined YY_INPUT or yyread() need not read the FILE at
 2019|       |	 * all, so a NULL file does not mean there is nothing to read.
 2020|       |	 */
 2021|       |	b->yy_fill_buffer = 1;
 2022|       |#endif
 2023|       |
 2024|       |	/* If b is the current buffer, then yy_init_buffer was _probably_
 2025|       |	 * called from yyrestart() or through yy_get_next_buffer.
 2026|       |	 * In that case, we don't want to reset the lineno or column.
 2027|       |	 */
 2028|  6.50k|	if (b != yy_current_buffer()) {
  ------------------
  |  |  603|  6.50k|#define yy_current_buffer() ( yyg->yy_buffer_stack			\
  |  |  ------------------
  |  |  |  Branch (603:31): [True: 6.50k, False: 0]
  |  |  ------------------
  |  |  604|  6.50k|                          ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
  |  |  605|  6.50k|                          : NULL)
  ------------------
  |  Branch (2028:6): [True: 3.25k, False: 3.25k]
  ------------------
 2029|  3.25k|		b->yy_bs_lineno = 1;
 2030|  3.25k|		b->yy_bs_column = 0;
 2031|  3.25k|	}
 2032|       |
 2033|  6.50k|        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  ------------------
  |  Branch (2033:32): [True: 6.50k, False: 0]
  ------------------
 2034|       |    
 2035|       |	errno = oerrno;
 2036|  6.50k|}
ncol-lexer.c:igraph_ncol_yyensure_buffer_stack:
 2136|  3.25k|{
 2137|  3.25k|	yy_size_t num_to_alloc;
 2138|  3.25k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2139|       |
 2140|  3.25k|	if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2140:6): [True: 3.25k, False: 0]
  ------------------
 2141|       |		/* First allocation is just for 2 elements, since we don't know if this
 2142|       |		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
 2143|       |		 * immediate realloc on the next call.
 2144|       |		 */
 2145|  3.25k|		num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
 2146|  3.25k|		yyg->yy_buffer_stack = (yybuffer *) yyalloc
  ------------------
  |  |  275|  3.25k|#define yyalloc igraph_ncol_yyalloc
  ------------------
 2147|  3.25k|								(num_to_alloc * sizeof(yybuffer)
 2148|  3.25k|								, yyscanner);
 2149|  3.25k|		if ( yyg->yy_buffer_stack == NULL ) {
  ------------------
  |  Branch (2149:8): [True: 0, False: 3.25k]
  ------------------
 2150|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2151|      0|		}
 2152|       |
 2153|  3.25k|		memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(yybuffer));
 2154|       |
 2155|  3.25k|		yyg->yy_buffer_stack_max = num_to_alloc;
 2156|  3.25k|		yyg->yy_buffer_stack_top = 0;
 2157|  3.25k|		return;
 2158|  3.25k|	}
 2159|       |
 2160|      0|	if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1) {
  ------------------
  |  Branch (2160:6): [True: 0, False: 0]
  ------------------
 2161|       |		/* Increase the buffer to prepare for a possible push. */
 2162|      0|		yy_size_t grow_size = 8 /* arbitrary grow size */;
 2163|       |
 2164|      0|		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
 2165|      0|		yyg->yy_buffer_stack = (yybuffer *) yyrealloc
  ------------------
  |  |  281|      0|#define yyrealloc igraph_ncol_yyrealloc
  ------------------
 2166|      0|								(yyg->yy_buffer_stack,
 2167|      0|								num_to_alloc * sizeof(yybuffer)
 2168|      0|								, yyscanner);
 2169|      0|		if (yyg->yy_buffer_stack == NULL) {
  ------------------
  |  Branch (2169:7): [True: 0, False: 0]
  ------------------
 2170|      0|			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
  ------------------
  |  |  896|      0|#define YY_FATAL_ERROR(msg) IGRAPH_FATAL("Error in NCOL parser: " # msg)
  |  |  ------------------
  |  |  |  |  895|      0|    do { \
  |  |  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  |  |  897|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2171|      0|		}
 2172|       |		/* zero only the new slots.*/
 2173|      0|		memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(yybuffer));
 2174|      0|		yyg->yy_buffer_stack_max = num_to_alloc;
 2175|      0|	}
 2176|      0|}
ncol-lexer.c:yy_init_globals:
 2506|  6.50k|static int yy_init_globals (yyscan_t yyscanner) {
 2507|  6.50k|	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 2508|       |	/* Initialization is the same as for the non-reentrant scanner.
 2509|       |	 * This function is called from yylex_destroy(), so don't allocate here.
 2510|       |	 */
 2511|       |
 2512|  6.50k|	yyg->yy_buffer_stack = NULL;
 2513|  6.50k|	yyg->yy_buffer_stack_top = 0;
 2514|  6.50k|	yyg->yy_buffer_stack_max = 0;
 2515|  6.50k|	yyg->yy_c_buf_p = NULL;
 2516|  6.50k|	yyg->yy_init = 0;
 2517|  6.50k|	yyg->yy_start = 0;
 2518|       |
 2519|  6.50k|	yyg->yy_start_stack_ptr = 0;
 2520|  6.50k|	yyg->yy_start_stack_depth = 0;
 2521|  6.50k|	yyg->yy_start_stack =  NULL;
 2522|       |
 2523|       |/* Defined in main.c */
 2524|       |#ifdef YY_STDINIT
 2525|       |	yyin = stdin;
 2526|       |	yyout = stdout;
 2527|       |#else
 2528|  6.50k|	yyin = NULL;
  ------------------
  |  |  404|  6.50k|#define yyin yyg->yyin_r
  ------------------
 2529|  6.50k|	yyout = NULL;
  ------------------
  |  |  405|  6.50k|#define yyout yyg->yyout_r
  ------------------
 2530|  6.50k|#endif
 2531|       |
 2532|       |	/* For future reference: Set errno on error, since we are called by
 2533|       |	 * yylex_init()
 2534|       |	 */
 2535|  6.50k|	return 0;
 2536|  6.50k|}

igraph_ncol_yyparse:
 1219|  3.25k|{
 1220|       |/* Lookahead token kind.  */
 1221|  3.25k|int yychar;
 1222|       |
 1223|       |
 1224|       |/* The semantic value of the lookahead symbol.  */
 1225|       |/* Default value used for initialization, for pacifying older GCCs
 1226|       |   or non-GCC compilers.  */
 1227|  3.25k|YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
  ------------------
  |  |  331|  3.25k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1228|  3.25k|YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
  ------------------
  |  |  331|  3.25k|# define YY_INITIAL_VALUE(Value) Value
  ------------------
 1229|       |
 1230|       |/* Location data for the lookahead symbol.  */
 1231|  3.25k|static YYLTYPE yyloc_default
 1232|  3.25k|# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
 1233|  3.25k|  = { 1, 1, 1, 1 }
 1234|  3.25k|# endif
 1235|  3.25k|;
 1236|  3.25k|YYLTYPE yylloc = yyloc_default;
 1237|       |
 1238|       |    /* Number of syntax errors so far.  */
 1239|  3.25k|    int yynerrs = 0;
 1240|       |
 1241|  3.25k|    yy_state_fast_t yystate = 0;
 1242|       |    /* Number of tokens to shift before error messages enabled.  */
 1243|  3.25k|    int yyerrstatus = 0;
 1244|       |
 1245|       |    /* Refer to the stacks through separate pointers, to allow yyoverflow
 1246|       |       to reallocate them elsewhere.  */
 1247|       |
 1248|       |    /* Their size.  */
 1249|  3.25k|    YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  238|  3.25k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
                  YYPTRDIFF_T yystacksize = YYINITDEPTH;
  ------------------
  |  |  901|  3.25k|# define YYINITDEPTH 200
  ------------------
 1250|       |
 1251|       |    /* The state stack: array, bottom, top.  */
 1252|  3.25k|    yy_state_t yyssa[YYINITDEPTH];
 1253|  3.25k|    yy_state_t *yyss = yyssa;
 1254|  3.25k|    yy_state_t *yyssp = yyss;
 1255|       |
 1256|       |    /* The semantic value stack: array, bottom, top.  */
 1257|  3.25k|    YYSTYPE yyvsa[YYINITDEPTH];
 1258|  3.25k|    YYSTYPE *yyvs = yyvsa;
 1259|  3.25k|    YYSTYPE *yyvsp = yyvs;
 1260|       |
 1261|       |    /* The location stack: array, bottom, top.  */
 1262|  3.25k|    YYLTYPE yylsa[YYINITDEPTH];
 1263|  3.25k|    YYLTYPE *yyls = yylsa;
 1264|  3.25k|    YYLTYPE *yylsp = yyls;
 1265|       |
 1266|  3.25k|  int yyn;
 1267|       |  /* The return value of yyparse.  */
 1268|  3.25k|  int yyresult;
 1269|       |  /* Lookahead symbol kind.  */
 1270|  3.25k|  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
 1271|       |  /* The variables used to return semantic value and location from the
 1272|       |     action routines.  */
 1273|  3.25k|  YYSTYPE yyval;
 1274|  3.25k|  YYLTYPE yyloc;
 1275|       |
 1276|       |  /* The locations where the error started and ended.  */
 1277|  3.25k|  YYLTYPE yyerror_range[3];
 1278|       |
 1279|       |  /* Buffer for error messages, and its allocated size.  */
 1280|  3.25k|  char yymsgbuf[128];
 1281|  3.25k|  char *yymsg = yymsgbuf;
 1282|  3.25k|  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
  ------------------
  |  |  238|  3.25k|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1283|       |
 1284|  3.25k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
 1285|       |
 1286|       |  /* The number of symbols on the RHS of the reduced rule.
 1287|       |     Keep to zero when no symbol should be popped.  */
 1288|  3.25k|  int yylen = 0;
 1289|       |
 1290|  3.25k|  YYDPRINTF ((stderr, "Starting parse\n"));
  ------------------
  |  |  892|  3.25k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1291|       |
 1292|  3.25k|  yychar = YYEMPTY; /* Cause a token to be read.  */
 1293|       |
 1294|  3.25k|  yylsp[0] = yylloc;
 1295|  3.25k|  goto yysetstate;
 1296|       |
 1297|       |
 1298|       |/*------------------------------------------------------------.
 1299|       || yynewstate -- push a new state, which is found in yystate.  |
 1300|       |`------------------------------------------------------------*/
 1301|  2.86M|yynewstate:
 1302|       |  /* In all cases, when you get here, the value and location stacks
 1303|       |     have just been pushed.  So pushing a state here evens the stacks.  */
 1304|  2.86M|  yyssp++;
 1305|       |
 1306|       |
 1307|       |/*--------------------------------------------------------------------.
 1308|       || yysetstate -- set current state (the top of the stack) to yystate.  |
 1309|       |`--------------------------------------------------------------------*/
 1310|  2.86M|yysetstate:
 1311|  2.86M|  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  ------------------
  |  |  892|  2.86M|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1312|  2.86M|  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  ------------------
  |  |  354|  2.86M|#define YY_ASSERT(E) ((void) (0 && (E)))
  |  |  ------------------
  |  |  |  Branch (354:31): [Folded, False: 2.86M]
  |  |  |  Branch (354:37): [True: 0, False: 0]
  |  |  |  Branch (354:37): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1313|  2.86M|  YY_IGNORE_USELESS_CAST_BEGIN
 1314|  2.86M|  *yyssp = YY_CAST (yy_state_t, yystate);
  ------------------
  |  |  126|  2.86M|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1315|  2.86M|  YY_IGNORE_USELESS_CAST_END
 1316|  2.86M|  YY_STACK_PRINT (yyss, yyssp);
 1317|       |
 1318|  2.86M|  if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1318:7): [True: 0, False: 2.86M]
  ------------------
 1319|       |#if !defined yyoverflow && !defined YYSTACK_RELOCATE
 1320|       |    YYNOMEM;
 1321|       |#else
 1322|      0|    {
 1323|       |      /* Get the current used size of the three stacks, in elements.  */
 1324|      0|      YYPTRDIFF_T yysize = yyssp - yyss + 1;
  ------------------
  |  |  238|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  ------------------
 1325|       |
 1326|       |# if defined yyoverflow
 1327|       |      {
 1328|       |        /* Give user a chance to reallocate the stack.  Use copies of
 1329|       |           these so that the &'s don't force the real ones into
 1330|       |           memory.  */
 1331|       |        yy_state_t *yyss1 = yyss;
 1332|       |        YYSTYPE *yyvs1 = yyvs;
 1333|       |        YYLTYPE *yyls1 = yyls;
 1334|       |
 1335|       |        /* Each stack pointer address is followed by the size of the
 1336|       |           data in use in that stack, in bytes.  This used to be a
 1337|       |           conditional around just the two extra args, but that might
 1338|       |           be undefined if yyoverflow is a macro.  */
 1339|       |        yyoverflow (YY_("memory exhausted"),
 1340|       |                    &yyss1, yysize * YYSIZEOF (*yyssp),
 1341|       |                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
 1342|       |                    &yyls1, yysize * YYSIZEOF (*yylsp),
 1343|       |                    &yystacksize);
 1344|       |        yyss = yyss1;
 1345|       |        yyvs = yyvs1;
 1346|       |        yyls = yyls1;
 1347|       |      }
 1348|       |# else /* defined YYSTACK_RELOCATE */
 1349|       |      /* Extend the stack our own way.  */
 1350|      0|      if (YYMAXDEPTH <= yystacksize)
  ------------------
  |  |  912|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1350:11): [True: 0, False: 0]
  ------------------
 1351|      0|        YYNOMEM;
  ------------------
  |  |  657|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1352|      0|      yystacksize *= 2;
 1353|      0|      if (YYMAXDEPTH < yystacksize)
  ------------------
  |  |  912|      0|# define YYMAXDEPTH 10000
  ------------------
  |  Branch (1353:11): [True: 0, False: 0]
  ------------------
 1354|      0|        yystacksize = YYMAXDEPTH;
  ------------------
  |  |  912|      0|# define YYMAXDEPTH 10000
  ------------------
 1355|       |
 1356|      0|      {
 1357|      0|        yy_state_t *yyss1 = yyss;
 1358|      0|        union yyalloc *yyptr =
 1359|      0|          YY_CAST (union yyalloc *,
  ------------------
  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1360|      0|                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
 1361|      0|        if (! yyptr)
  ------------------
  |  Branch (1361:13): [True: 0, False: 0]
  ------------------
 1362|      0|          YYNOMEM;
  ------------------
  |  |  657|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1363|      0|        YYSTACK_RELOCATE (yyss_alloc, yyss);
  ------------------
  |  |  454|      0|    do                                                                  \
  |  |  455|      0|      {                                                                 \
  |  |  456|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  238|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  457|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  472|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  458|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  459|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  437|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  461|      0|      }                                                                 \
  |  |  462|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (462:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1364|      0|        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
  ------------------
  |  |  454|      0|    do                                                                  \
  |  |  455|      0|      {                                                                 \
  |  |  456|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  238|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  457|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  472|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  458|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  459|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  437|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  461|      0|      }                                                                 \
  |  |  462|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (462:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1365|      0|        YYSTACK_RELOCATE (yyls_alloc, yyls);
  ------------------
  |  |  454|      0|    do                                                                  \
  |  |  455|      0|      {                                                                 \
  |  |  456|      0|        YYPTRDIFF_T yynewbytes;                                         \
  |  |  ------------------
  |  |  |  |  238|      0|#  define YYPTRDIFF_T __PTRDIFF_TYPE__
  |  |  ------------------
  |  |  457|      0|        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
  |  |  ------------------
  |  |  |  |  472|      0|      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  458|      0|        Stack = &yyptr->Stack_alloc;                                    \
  |  |  459|      0|        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
  |  |  ------------------
  |  |  |  |  437|      0|# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  460|      0|        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
  |  |  ------------------
  |  |  |  |  271|      0|#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
  |  |  |  |  ------------------
  |  |  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  461|      0|      }                                                                 \
  |  |  462|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (462:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1366|      0|#  undef YYSTACK_RELOCATE
 1367|      0|        if (yyss1 != yyssa)
  ------------------
  |  Branch (1367:13): [True: 0, False: 0]
  ------------------
 1368|      0|          YYSTACK_FREE (yyss1);
  ------------------
  |  |  396|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  415|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1369|      0|      }
 1370|      0|# endif
 1371|       |
 1372|      0|      yyssp = yyss + yysize - 1;
 1373|      0|      yyvsp = yyvs + yysize - 1;
 1374|      0|      yylsp = yyls + yysize - 1;
 1375|       |
 1376|      0|      YY_IGNORE_USELESS_CAST_BEGIN
 1377|      0|      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
  ------------------
  |  |  892|      0|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1378|      0|                  YY_CAST (long, yystacksize)));
 1379|      0|      YY_IGNORE_USELESS_CAST_END
 1380|       |
 1381|      0|      if (yyss + yystacksize - 1 <= yyssp)
  ------------------
  |  Branch (1381:11): [True: 0, False: 0]
  ------------------
 1382|      0|        YYABORT;
  ------------------
  |  |  655|      0|#define YYABORT         goto yyabortlab
  ------------------
 1383|      0|    }
 1384|  2.86M|#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
 1385|       |
 1386|       |
 1387|  2.86M|  if (yystate == YYFINAL)
  ------------------
  |  |  487|  2.86M|#define YYFINAL  2
  ------------------
  |  Branch (1387:7): [True: 3.25k, False: 2.86M]
  ------------------
 1388|  3.25k|    YYACCEPT;
  ------------------
  |  |  654|  3.25k|#define YYACCEPT        goto yyacceptlab
  ------------------
 1389|       |
 1390|  2.86M|  goto yybackup;
 1391|       |
 1392|       |
 1393|       |/*-----------.
 1394|       || yybackup.  |
 1395|       |`-----------*/
 1396|  2.86M|yybackup:
 1397|       |  /* Do appropriate processing given the current state.  Read a
 1398|       |     lookahead token if we need one and don't already have one.  */
 1399|       |
 1400|       |  /* First try to decide what to do without reference to lookahead token.  */
 1401|  2.86M|  yyn = yypact[yystate];
 1402|  2.86M|  if (yypact_value_is_default (yyn))
  ------------------
  |  |  579|  2.86M|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  576|  2.86M|#define YYPACT_NINF (-3)
  |  |  ------------------
  |  |  |  Branch (579:3): [True: 1.77M, False: 1.08M]
  |  |  ------------------
  ------------------
 1403|  1.77M|    goto yydefault;
 1404|       |
 1405|       |  /* Not known => get a lookahead token if don't already have one.  */
 1406|       |
 1407|       |  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
 1408|  1.08M|  if (yychar == YYEMPTY)
  ------------------
  |  Branch (1408:7): [True: 1.08M, False: 0]
  ------------------
 1409|  1.08M|    {
 1410|  1.08M|      YYDPRINTF ((stderr, "Reading a token\n"));
  ------------------
  |  |  892|  1.08M|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1411|  1.08M|      yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |   69|  1.08M|#define yylex           igraph_ncol_yylex
  ------------------
                    yychar = yylex (&yylval, &yylloc, scanner);
  ------------------
  |  |  117|  1.08M|#define scanner context->scanner
  ------------------
 1412|  1.08M|    }
 1413|       |
 1414|  1.08M|  if (yychar <= END)
  ------------------
  |  Branch (1414:7): [True: 3.25k, False: 1.08M]
  ------------------
 1415|  3.25k|    {
 1416|  3.25k|      yychar = END;
 1417|  3.25k|      yytoken = YYSYMBOL_YYEOF;
 1418|  3.25k|      YYDPRINTF ((stderr, "Now at end of input.\n"));
  ------------------
  |  |  892|  3.25k|# define YYDPRINTF(Args) ((void) 0)
  ------------------
 1419|  3.25k|    }
 1420|  1.08M|  else if (yychar == YYerror)
  ------------------
  |  Branch (1420:12): [True: 0, False: 1.08M]
  ------------------
 1421|      0|    {
 1422|       |      /* The scanner already issued an error message, process directly
 1423|       |         to error recovery.  But do not keep the error token as
 1424|       |         lookahead, it is too special and may lead us to an endless
 1425|       |         loop in error recovery. */
 1426|      0|      yychar = YYUNDEF;
 1427|      0|      yytoken = YYSYMBOL_YYerror;
 1428|      0|      yyerror_range[1] = yylloc;
 1429|      0|      goto yyerrlab1;
 1430|      0|    }
 1431|  1.08M|  else
 1432|  1.08M|    {
 1433|  1.08M|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  507|  1.08M|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  501|  1.08M|#define YYMAXUTOK   260
  |  |  ------------------
  |  |  |  Branch (507:4): [True: 1.08M, False: 0]
  |  |  |  Branch (507:18): [True: 1.08M, False: 0]
  |  |  ------------------
  |  |  508|  1.08M|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  126|  1.08M|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  509|  1.08M|   : YYSYMBOL_YYUNDEF)
  ------------------
 1434|  1.08M|      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
 1435|  1.08M|    }
 1436|       |
 1437|       |  /* If the proper action on seeing token YYTOKEN is to reduce or to
 1438|       |     detect an error, take that action.  */
 1439|  1.08M|  yyn += yytoken;
 1440|  1.08M|  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  ------------------
  |  |  489|  1.08M|#define YYLAST   7
  ------------------
  |  Branch (1440:7): [True: 0, False: 1.08M]
  |  Branch (1440:18): [True: 0, False: 1.08M]
  |  Branch (1440:34): [True: 0, False: 1.08M]
  ------------------
 1441|      0|    goto yydefault;
 1442|  1.08M|  yyn = yytable[yyn];
 1443|  1.08M|  if (yyn <= 0)
  ------------------
  |  Branch (1443:7): [True: 0, False: 1.08M]
  ------------------
 1444|      0|    {
 1445|      0|      if (yytable_value_is_error (yyn))
  ------------------
  |  |  584|      0|  0
  |  |  ------------------
  |  |  |  Branch (584:3): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1446|      0|        goto yyerrlab;
 1447|      0|      yyn = -yyn;
 1448|      0|      goto yyreduce;
 1449|      0|    }
 1450|       |
 1451|       |  /* Count tokens shifted since error; after three, turn off error
 1452|       |     status.  */
 1453|  1.08M|  if (yyerrstatus)
  ------------------
  |  Branch (1453:7): [True: 0, False: 1.08M]
  ------------------
 1454|      0|    yyerrstatus--;
 1455|       |
 1456|       |  /* Shift the lookahead token.  */
 1457|  1.08M|  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
 1458|  1.08M|  yystate = yyn;
 1459|  1.08M|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1460|  1.08M|  *++yyvsp = yylval;
 1461|  1.08M|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1462|  1.08M|  *++yylsp = yylloc;
 1463|       |
 1464|       |  /* Discard the shifted token.  */
 1465|  1.08M|  yychar = YYEMPTY;
 1466|  1.08M|  goto yynewstate;
 1467|       |
 1468|       |
 1469|       |/*-----------------------------------------------------------.
 1470|       || yydefault -- do the default action for the current state.  |
 1471|       |`-----------------------------------------------------------*/
 1472|  1.77M|yydefault:
 1473|  1.77M|  yyn = yydefact[yystate];
 1474|  1.77M|  if (yyn == 0)
  ------------------
  |  Branch (1474:7): [True: 0, False: 1.77M]
  ------------------
 1475|      0|    goto yyerrlab;
 1476|  1.77M|  goto yyreduce;
 1477|       |
 1478|       |
 1479|       |/*-----------------------------.
 1480|       || yyreduce -- do a reduction.  |
 1481|       |`-----------------------------*/
 1482|  1.77M|yyreduce:
 1483|       |  /* yyn is the number of a rule to reduce with.  */
 1484|  1.77M|  yylen = yyr2[yyn];
 1485|       |
 1486|       |  /* If YYLEN is nonzero, implement the default value of the action:
 1487|       |     '$$ = $1'.
 1488|       |
 1489|       |     Otherwise, the following line sets YYVAL to garbage.
 1490|       |     This behavior is undocumented and Bison
 1491|       |     users should not rely upon it.  Assigning to YYVAL
 1492|       |     unconditionally makes the parser a bit smaller, and it avoids a
 1493|       |     GCC warning that YYVAL may be used uninitialized.  */
 1494|  1.77M|  yyval = yyvsp[1-yylen];
 1495|       |
 1496|       |  /* Default location. */
 1497|  1.77M|  YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
  ------------------
  |  |  689|  1.77M|    do                                                                  \
  |  |  690|  1.77M|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (690:11): [True: 1.77M, False: 3.25k]
  |  |  ------------------
  |  |  691|  1.77M|        {                                                               \
  |  |  692|  1.77M|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  707|  1.77M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  693|  1.77M|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  707|  1.77M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  694|  1.77M|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  707|  1.77M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  695|  1.77M|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  707|  1.77M|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  696|  1.77M|        }                                                               \
  |  |  697|  1.77M|      else                                                              \
  |  |  698|  1.77M|        {                                                               \
  |  |  699|  3.25k|          (Current).first_line   = (Current).last_line   =              \
  |  |  700|  3.25k|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  707|  3.25k|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  701|  3.25k|          (Current).first_column = (Current).last_column =              \
  |  |  702|  3.25k|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  707|  3.25k|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  703|  3.25k|        }                                                               \
  |  |  704|  1.77M|    while (0)
  |  |  ------------------
  |  |  |  Branch (704:12): [Folded, False: 1.77M]
  |  |  ------------------
  ------------------
 1498|  1.77M|  yyerror_range[1] = yyloc;
 1499|  1.77M|  YY_REDUCE_PRINT (yyn);
 1500|  1.77M|  switch (yyn)
 1501|  1.77M|    {
 1502|   306k|  case 5: /* edge: endpoints "end of line"  */
  ------------------
  |  Branch (1502:3): [True: 306k, False: 1.47M]
  ------------------
 1503|   306k|#line 97 "/src/igraph/src/io/ncol-parser.y"
 1504|   306k|                           {
 1505|   306k|           IGRAPH_YY_CHECK(igraph_vector_push_back(context->weights, 1.0));
  ------------------
  |  |   27|   306k|    do { \
  |  |   28|   306k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   306k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   306k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 306k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   306k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 306k]
  |  |  ------------------
  ------------------
 1506|   306k|       }
 1507|   306k|#line 1508 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1508|   306k|    break;
 1509|       |
 1510|   306k|  case 6: /* edge: endpoints weight "end of line"  */
  ------------------
  |  Branch (1510:3): [True: 40.8k, False: 1.73M]
  ------------------
 1511|  40.8k|#line 100 "/src/igraph/src/io/ncol-parser.y"
 1512|  40.8k|                                  {
 1513|  40.8k|           IGRAPH_YY_CHECK(igraph_vector_push_back(context->weights, (yyvsp[-1].weightnum)));
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1514|  40.8k|           context->has_weights = true;
 1515|  40.8k|       }
 1516|      0|#line 1517 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1517|      0|    break;
 1518|       |
 1519|   347k|  case 7: /* endpoints: edgeid edgeid  */
  ------------------
  |  Branch (1519:3): [True: 347k, False: 1.43M]
  ------------------
 1520|   347k|#line 106 "/src/igraph/src/io/ncol-parser.y"
 1521|   347k|                           {
 1522|   347k|  IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, (yyvsp[-1].edgenum)));
  ------------------
  |  |   27|   347k|    do { \
  |  |   28|   347k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   347k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   347k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 347k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   347k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 347k]
  |  |  ------------------
  ------------------
 1523|   347k|  IGRAPH_YY_CHECK(igraph_vector_int_push_back(context->vector, (yyvsp[0].edgenum)));
  ------------------
  |  |   27|   347k|    do { \
  |  |   28|   347k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   347k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   347k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 347k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   347k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 347k]
  |  |  ------------------
  ------------------
 1524|   347k|}
 1525|   347k|#line 1526 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1526|   347k|    break;
 1527|       |
 1528|   694k|  case 8: /* edgeid: "alphanumeric"  */
  ------------------
  |  Branch (1528:3): [True: 694k, False: 1.08M]
  ------------------
 1529|   694k|#line 111 "/src/igraph/src/io/ncol-parser.y"
 1530|   694k|                {
 1531|   694k|  igraph_int_t trie_id;
 1532|   694k|  IGRAPH_YY_CHECK(igraph_trie_get_len(context->trie,
  ------------------
  |  |   27|   694k|    do { \
  |  |   28|   694k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|   694k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|   694k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 694k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|   694k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 694k]
  |  |  ------------------
  ------------------
 1533|   694k|    igraph_ncol_yyget_text(scanner),
 1534|   694k|    igraph_ncol_yyget_leng(scanner),
 1535|   694k|    &trie_id
 1536|   694k|  ));
 1537|   694k|  (yyval.edgenum) = trie_id;
 1538|   694k|}
 1539|      0|#line 1540 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1540|      0|    break;
 1541|       |
 1542|  40.8k|  case 9: /* weight: "alphanumeric"  */
  ------------------
  |  Branch (1542:3): [True: 40.8k, False: 1.73M]
  ------------------
 1543|  40.8k|#line 121 "/src/igraph/src/io/ncol-parser.y"
 1544|  40.8k|                {
 1545|  40.8k|    igraph_real_t val;
 1546|  40.8k|    IGRAPH_YY_CHECK(igraph_i_parse_real(igraph_ncol_yyget_text(scanner),
  ------------------
  |  |   27|  40.8k|    do { \
  |  |   28|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |   29|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) { \
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   30|      0|            context->igraph_errno = igraph_i_ret; \
  |  |   31|      0|            yyerror(&yylloc, context, "failed"); \
  |  |  ------------------
  |  |  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  |  |  ------------------
  |  |   32|      0|            YYABORT; \
  |  |  ------------------
  |  |  |  |  655|      0|#define YYABORT         goto yyabortlab
  |  |  ------------------
  |  |   33|      0|        } \
  |  |   34|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (34:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
 1547|  40.8k|                                        igraph_ncol_yyget_leng(scanner),
 1548|  40.8k|                                        &val));
 1549|  40.8k|    (yyval.weightnum)=val;
 1550|  40.8k|}
 1551|      0|#line 1552 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1552|      0|    break;
 1553|       |
 1554|       |
 1555|      0|#line 1556 "/src/igraph/build/src/io/parsers/ncol-parser.c"
 1556|       |
 1557|   350k|      default: break;
  ------------------
  |  Branch (1557:7): [True: 350k, False: 1.42M]
  ------------------
 1558|  1.77M|    }
 1559|       |  /* User semantic actions sometimes alter yychar, and that requires
 1560|       |     that yytoken be updated with the new translation.  We take the
 1561|       |     approach of translating immediately before every use of yytoken.
 1562|       |     One alternative is translating here after every semantic action,
 1563|       |     but that translation would be missed if the semantic action invokes
 1564|       |     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
 1565|       |     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
 1566|       |     incorrect destructor might then be invoked immediately.  In the
 1567|       |     case of YYERROR or YYBACKUP, subsequent parser actions might lead
 1568|       |     to an incorrect destructor call or verbose syntax error message
 1569|       |     before the lookahead is translated.  */
 1570|  1.77M|  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
 1571|       |
 1572|  1.77M|  YYPOPSTACK (yylen);
  ------------------
  |  | 1284|  1.77M|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1573|  1.77M|  yylen = 0;
 1574|       |
 1575|  1.77M|  *++yyvsp = yyval;
 1576|  1.77M|  *++yylsp = yyloc;
 1577|       |
 1578|       |  /* Now 'shift' the result of the reduction.  Determine what state
 1579|       |     that goes to, based on the state we popped back to and the rule
 1580|       |     number reduced by.  */
 1581|  1.77M|  {
 1582|  1.77M|    const int yylhs = yyr1[yyn] - YYNTOKENS;
  ------------------
  |  |  492|  1.77M|#define YYNTOKENS  6
  ------------------
 1583|  1.77M|    const int yyi = yypgoto[yylhs] + *yyssp;
 1584|  1.77M|    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
  ------------------
  |  |  489|  2.51M|#define YYLAST   7
  ------------------
  |  Branch (1584:16): [True: 735k, False: 1.04M]
  |  Branch (1584:28): [True: 735k, False: 0]
  |  Branch (1584:45): [True: 347k, False: 387k]
  ------------------
 1585|  1.77M|               ? yytable[yyi]
 1586|  1.77M|               : yydefgoto[yylhs]);
 1587|  1.77M|  }
 1588|       |
 1589|  1.77M|  goto yynewstate;
 1590|       |
 1591|       |
 1592|       |/*--------------------------------------.
 1593|       || yyerrlab -- here on detecting error.  |
 1594|       |`--------------------------------------*/
 1595|      0|yyerrlab:
 1596|       |  /* Make sure we have latest lookahead translation.  See comments at
 1597|       |     user semantic actions for why this is necessary.  */
 1598|      0|  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  ------------------
  |  |  507|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  501|      0|#define YYMAXUTOK   260
  |  |  ------------------
  |  |  |  Branch (507:4): [True: 0, False: 0]
  |  |  |  Branch (507:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  508|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  509|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
  |  Branch (1598:13): [True: 0, False: 0]
  ------------------
 1599|       |  /* If not already recovering from an error, report this error.  */
 1600|      0|  if (!yyerrstatus)
  ------------------
  |  Branch (1600:7): [True: 0, False: 0]
  ------------------
 1601|      0|    {
 1602|      0|      ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_ncol_yynerrs
  ------------------
 1603|      0|      {
 1604|      0|        yypcontext_t yyctx
 1605|      0|          = {yyssp, yytoken, &yylloc};
 1606|      0|        char const *yymsgp = YY_("syntax error");
  ------------------
  |  |  288|      0|#  define YY_(Msgid) Msgid
  ------------------
 1607|      0|        int yysyntax_error_status;
 1608|      0|        yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1609|      0|        if (yysyntax_error_status == 0)
  ------------------
  |  Branch (1609:13): [True: 0, False: 0]
  ------------------
 1610|      0|          yymsgp = yymsg;
 1611|      0|        else if (yysyntax_error_status == -1)
  ------------------
  |  Branch (1611:18): [True: 0, False: 0]
  ------------------
 1612|      0|          {
 1613|      0|            if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1613:17): [True: 0, False: 0]
  ------------------
 1614|      0|              YYSTACK_FREE (yymsg);
  ------------------
  |  |  396|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  415|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1615|      0|            yymsg = YY_CAST (char *,
  ------------------
  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  ------------------
 1616|      0|                             YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
 1617|      0|            if (yymsg)
  ------------------
  |  Branch (1617:17): [True: 0, False: 0]
  ------------------
 1618|      0|              {
 1619|      0|                yysyntax_error_status
 1620|      0|                  = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
 1621|      0|                yymsgp = yymsg;
 1622|      0|              }
 1623|      0|            else
 1624|      0|              {
 1625|      0|                yymsg = yymsgbuf;
 1626|      0|                yymsg_alloc = sizeof yymsgbuf;
 1627|      0|                yysyntax_error_status = YYENOMEM;
 1628|      0|              }
 1629|      0|          }
 1630|      0|        yyerror (&yylloc, context, yymsgp);
  ------------------
  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  ------------------
 1631|      0|        if (yysyntax_error_status == YYENOMEM)
  ------------------
  |  Branch (1631:13): [True: 0, False: 0]
  ------------------
 1632|      0|          YYNOMEM;
  ------------------
  |  |  657|      0|#define YYNOMEM         goto yyexhaustedlab
  ------------------
 1633|      0|      }
 1634|      0|    }
 1635|       |
 1636|      0|  yyerror_range[1] = yylloc;
 1637|      0|  if (yyerrstatus == 3)
  ------------------
  |  Branch (1637:7): [True: 0, False: 0]
  ------------------
 1638|      0|    {
 1639|       |      /* If just tried and failed to reuse lookahead token after an
 1640|       |         error, discard it.  */
 1641|       |
 1642|      0|      if (yychar <= END)
  ------------------
  |  Branch (1642:11): [True: 0, False: 0]
  ------------------
 1643|      0|        {
 1644|       |          /* Return failure if at end of input.  */
 1645|      0|          if (yychar == END)
  ------------------
  |  Branch (1645:15): [True: 0, False: 0]
  ------------------
 1646|      0|            YYABORT;
  ------------------
  |  |  655|      0|#define YYABORT         goto yyabortlab
  ------------------
 1647|      0|        }
 1648|      0|      else
 1649|      0|        {
 1650|      0|          yydestruct ("Error: discarding",
 1651|      0|                      yytoken, &yylval, &yylloc, context);
 1652|      0|          yychar = YYEMPTY;
 1653|      0|        }
 1654|      0|    }
 1655|       |
 1656|       |  /* Else will try to reuse lookahead token after shifting the error
 1657|       |     token.  */
 1658|      0|  goto yyerrlab1;
 1659|       |
 1660|       |
 1661|       |/*---------------------------------------------------.
 1662|       || yyerrorlab -- error raised explicitly by YYERROR.  |
 1663|       |`---------------------------------------------------*/
 1664|      0|yyerrorlab:
 1665|       |  /* Pacify compilers when the user code never invokes YYERROR and the
 1666|       |     label yyerrorlab therefore never appears in user code.  */
 1667|      0|  if (0)
  ------------------
  |  Branch (1667:7): [Folded, False: 0]
  ------------------
 1668|      0|    YYERROR;
  ------------------
  |  |  656|      0|#define YYERROR         goto yyerrorlab
  ------------------
 1669|      0|  ++yynerrs;
  ------------------
  |  |   72|      0|#define yynerrs         igraph_ncol_yynerrs
  ------------------
 1670|       |
 1671|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1672|       |     this YYERROR.  */
 1673|      0|  YYPOPSTACK (yylen);
  ------------------
  |  | 1284|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1674|      0|  yylen = 0;
 1675|      0|  YY_STACK_PRINT (yyss, yyssp);
 1676|      0|  yystate = *yyssp;
 1677|      0|  goto yyerrlab1;
 1678|       |
 1679|       |
 1680|       |/*-------------------------------------------------------------.
 1681|       || yyerrlab1 -- common code for both syntax error and YYERROR.  |
 1682|       |`-------------------------------------------------------------*/
 1683|      0|yyerrlab1:
 1684|      0|  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 1685|       |
 1686|       |  /* Pop stack until we find a state that shifts the error token.  */
 1687|      0|  for (;;)
 1688|      0|    {
 1689|      0|      yyn = yypact[yystate];
 1690|      0|      if (!yypact_value_is_default (yyn))
  ------------------
  |  |  579|      0|  ((Yyn) == YYPACT_NINF)
  |  |  ------------------
  |  |  |  |  576|      0|#define YYPACT_NINF (-3)
  |  |  ------------------
  ------------------
  |  Branch (1690:11): [True: 0, False: 0]
  ------------------
 1691|      0|        {
 1692|      0|          yyn += YYSYMBOL_YYerror;
 1693|      0|          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
  ------------------
  |  |  489|      0|#define YYLAST   7
  ------------------
  |  Branch (1693:15): [True: 0, False: 0]
  |  Branch (1693:27): [True: 0, False: 0]
  |  Branch (1693:44): [True: 0, False: 0]
  ------------------
 1694|      0|            {
 1695|      0|              yyn = yytable[yyn];
 1696|      0|              if (0 < yyn)
  ------------------
  |  Branch (1696:19): [True: 0, False: 0]
  ------------------
 1697|      0|                break;
 1698|      0|            }
 1699|      0|        }
 1700|       |
 1701|       |      /* Pop the current state because it cannot handle the error token.  */
 1702|      0|      if (yyssp == yyss)
  ------------------
  |  Branch (1702:11): [True: 0, False: 0]
  ------------------
 1703|      0|        YYABORT;
  ------------------
  |  |  655|      0|#define YYABORT         goto yyabortlab
  ------------------
 1704|       |
 1705|      0|      yyerror_range[1] = *yylsp;
 1706|      0|      yydestruct ("Error: popping",
 1707|      0|                  YY_ACCESSING_SYMBOL (yystate), yyvsp, yylsp, context);
  ------------------
  |  |  553|      0|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1708|      0|      YYPOPSTACK (1);
  ------------------
  |  | 1284|      0|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1709|      0|      yystate = *yyssp;
 1710|      0|      YY_STACK_PRINT (yyss, yyssp);
 1711|      0|    }
 1712|       |
 1713|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1714|      0|  *++yyvsp = yylval;
 1715|      0|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1716|       |
 1717|      0|  yyerror_range[2] = yylloc;
 1718|      0|  ++yylsp;
 1719|      0|  YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);
  ------------------
  |  |  689|      0|    do                                                                  \
  |  |  690|      0|      if (N)                                                            \
  |  |  ------------------
  |  |  |  Branch (690:11): [True: 0, Folded]
  |  |  ------------------
  |  |  691|      0|        {                                                               \
  |  |  692|      0|          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  693|      0|          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  694|      0|          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  695|      0|          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  696|      0|        }                                                               \
  |  |  697|      0|      else                                                              \
  |  |  698|      0|        {                                                               \
  |  |  699|      0|          (Current).first_line   = (Current).last_line   =              \
  |  |  700|      0|            YYRHSLOC (Rhs, 0).last_line;                                \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  701|      0|          (Current).first_column = (Current).last_column =              \
  |  |  702|      0|            YYRHSLOC (Rhs, 0).last_column;                              \
  |  |  ------------------
  |  |  |  |  707|      0|#define YYRHSLOC(Rhs, K) ((Rhs)[K])
  |  |  ------------------
  |  |  703|      0|        }                                                               \
  |  |  704|      0|    while (0)
  |  |  ------------------
  |  |  |  Branch (704:12): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1720|       |
 1721|       |  /* Shift the error token.  */
 1722|      0|  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
 1723|       |
 1724|      0|  yystate = yyn;
 1725|      0|  goto yynewstate;
 1726|       |
 1727|       |
 1728|       |/*-------------------------------------.
 1729|       || yyacceptlab -- YYACCEPT comes here.  |
 1730|       |`-------------------------------------*/
 1731|  3.25k|yyacceptlab:
 1732|  3.25k|  yyresult = 0;
 1733|  3.25k|  goto yyreturnlab;
 1734|       |
 1735|       |
 1736|       |/*-----------------------------------.
 1737|       || yyabortlab -- YYABORT comes here.  |
 1738|       |`-----------------------------------*/
 1739|      0|yyabortlab:
 1740|      0|  yyresult = 1;
 1741|      0|  goto yyreturnlab;
 1742|       |
 1743|       |
 1744|       |/*-----------------------------------------------------------.
 1745|       || yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
 1746|       |`-----------------------------------------------------------*/
 1747|      0|yyexhaustedlab:
 1748|      0|  yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |   70|      0|#define yyerror         igraph_ncol_yyerror
  ------------------
                yyerror (&yylloc, context, YY_("memory exhausted"));
  ------------------
  |  |  288|      0|#  define YY_(Msgid) Msgid
  ------------------
 1749|      0|  yyresult = 2;
 1750|      0|  goto yyreturnlab;
 1751|       |
 1752|       |
 1753|       |/*----------------------------------------------------------.
 1754|       || yyreturnlab -- parsing is finished, clean up and return.  |
 1755|       |`----------------------------------------------------------*/
 1756|  3.25k|yyreturnlab:
 1757|  3.25k|  if (yychar != YYEMPTY)
  ------------------
  |  Branch (1757:7): [True: 0, False: 3.25k]
  ------------------
 1758|      0|    {
 1759|       |      /* Make sure we have latest lookahead translation.  See comments at
 1760|       |         user semantic actions for why this is necessary.  */
 1761|      0|      yytoken = YYTRANSLATE (yychar);
  ------------------
  |  |  507|      0|  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
  |  |  ------------------
  |  |  |  |  501|      0|#define YYMAXUTOK   260
  |  |  ------------------
  |  |  |  Branch (507:4): [True: 0, False: 0]
  |  |  |  Branch (507:18): [True: 0, False: 0]
  |  |  ------------------
  |  |  508|      0|   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
  |  |  ------------------
  |  |  |  |  126|      0|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  |  |  509|      0|   : YYSYMBOL_YYUNDEF)
  ------------------
 1762|      0|      yydestruct ("Cleanup: discarding lookahead",
 1763|      0|                  yytoken, &yylval, &yylloc, context);
 1764|      0|    }
 1765|       |  /* Do not reclaim the symbols of the rule whose action triggered
 1766|       |     this YYABORT or YYACCEPT.  */
 1767|  3.25k|  YYPOPSTACK (yylen);
  ------------------
  |  | 1284|  3.25k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1768|  3.25k|  YY_STACK_PRINT (yyss, yyssp);
 1769|  9.75k|  while (yyssp != yyss)
  ------------------
  |  Branch (1769:10): [True: 6.50k, False: 3.25k]
  ------------------
 1770|  6.50k|    {
 1771|  6.50k|      yydestruct ("Cleanup: popping",
 1772|  6.50k|                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp, yylsp, context);
  ------------------
  |  |  553|  6.50k|#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
  |  |  ------------------
  |  |  |  |  126|  6.50k|#   define YY_CAST(Type, Val) ((Type) (Val))
  |  |  ------------------
  ------------------
 1773|  6.50k|      YYPOPSTACK (1);
  ------------------
  |  | 1284|  6.50k|#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N), yylsp -= (N))
  ------------------
 1774|  6.50k|    }
 1775|  3.25k|#ifndef yyoverflow
 1776|  3.25k|  if (yyss != yyssa)
  ------------------
  |  Branch (1776:7): [True: 0, False: 3.25k]
  ------------------
 1777|      0|    YYSTACK_FREE (yyss);
  ------------------
  |  |  396|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  415|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1778|  3.25k|#endif
 1779|  3.25k|  if (yymsg != yymsgbuf)
  ------------------
  |  Branch (1779:7): [True: 0, False: 3.25k]
  ------------------
 1780|      0|    YYSTACK_FREE (yymsg);
  ------------------
  |  |  396|      0|#  define YYSTACK_FREE YYFREE
  |  |  ------------------
  |  |  |  |  415|      0|#   define YYFREE free
  |  |  ------------------
  ------------------
 1781|  3.25k|  return yyresult;
 1782|      0|}
ncol-parser.c:yydestruct:
 1195|  6.50k|{
 1196|  6.50k|  YY_USE (yyvaluep);
  ------------------
  |  |  311|  6.50k|# define YY_USE(E) ((void) (E))
  ------------------
 1197|  6.50k|  YY_USE (yylocationp);
  ------------------
  |  |  311|  6.50k|# define YY_USE(E) ((void) (E))
  ------------------
 1198|  6.50k|  YY_USE (context);
  ------------------
  |  |  311|  6.50k|# define YY_USE(E) ((void) (E))
  ------------------
 1199|  6.50k|  if (!yymsg)
  ------------------
  |  Branch (1199:7): [True: 0, False: 6.50k]
  ------------------
 1200|      0|    yymsg = "Deleting";
 1201|  6.50k|  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
 1202|       |
 1203|  6.50k|  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
 1204|  6.50k|  YY_USE (yykind);
  ------------------
  |  |  311|  6.50k|# define YY_USE(E) ((void) (E))
  ------------------
 1205|  6.50k|  YY_IGNORE_MAYBE_UNINITIALIZED_END
 1206|  6.50k|}

LLVMFuzzerTestOneInput:
   36|  21.0k|int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   37|       |
   38|  21.0k|    igraph_set_error_handler(igraph_error_handler_ignore);
   39|  21.0k|    igraph_set_warning_handler(igraph_warning_handler_ignore);
   40|       |
   41|       |    // Turn on attribute handling
   42|  21.0k|    igraph_set_attribute_table(&igraph_cattribute_table);
   43|       |
   44|       |    // Read input file
   45|  21.0k|    FILE *ifile = fmemopen((void*) data, size, "r");
   46|  21.0k|    if (!ifile) {
  ------------------
  |  Branch (46:9): [True: 0, False: 21.0k]
  ------------------
   47|      0|        return 0;
   48|      0|    }
   49|       |
   50|       |    // Do the fuzzing
   51|  21.0k|    igraph_t g;
   52|  21.0k|    if (igraph_read_graph_graphml(&g, ifile, 0) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (52:9): [True: 3.33k, False: 17.7k]
  ------------------
   53|  3.33k|        FILE *file;
   54|  3.33k|        igraph_t g2;
   55|       |
   56|  3.33k|        file = tmpfile();
   57|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   58|       |        // Do not check error because:
   59|       |        // "Vertex attribute values cannot contain newline characters."
   60|  3.33k|        igraph_write_graph_leda(&g, file, "label", "weight");
   61|  3.33k|        fclose(file);
   62|       |
   63|  3.33k|        file = tmpfile();
   64|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   65|  3.33k|        CHECK_ERR(igraph_write_graph_dot(&g, file));
  ------------------
  |  |   29|  3.33k|    do { \
  |  |   30|  3.33k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.33k|        expr; \
  |  |   32|  3.33k|        igraph_set_error_handler(handler); \
  |  |   33|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   66|  3.33k|        fclose(file);
   67|       |
   68|  3.33k|        file = tmpfile();
   69|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   70|  3.33k|        CHECK_ERR(igraph_write_graph_gml(&g, file, IGRAPH_WRITE_GML_DEFAULT_SW, NULL, "no one"));
  ------------------
  |  |   29|  3.33k|    do { \
  |  |   30|  3.33k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.33k|        expr; \
  |  |   32|  3.33k|        igraph_set_error_handler(handler); \
  |  |   33|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   71|  3.33k|        rewind(file);
   72|  3.33k|        CHECK_ERR(igraph_read_graph_gml(&g2, file));
  ------------------
  |  |   29|  3.33k|    do { \
  |  |   30|  3.33k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.33k|        expr; \
  |  |   32|  3.33k|        igraph_set_error_handler(handler); \
  |  |   33|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   73|  3.33k|        igraph_destroy(&g2);
   74|  3.33k|        fclose(file);
   75|       |
   76|       |        // Reading Pajek files back is disabled because of
   77|       |        // https://github.com/igraph/igraph/issues/2560
   78|  3.33k|        file = tmpfile();
   79|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   80|  3.33k|        CHECK_ERR(igraph_write_graph_pajek(&g, file));
  ------------------
  |  |   29|  3.33k|    do { \
  |  |   30|  3.33k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.33k|        expr; \
  |  |   32|  3.33k|        igraph_set_error_handler(handler); \
  |  |   33|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   81|       |        /*
   82|       |        rewind(file);
   83|       |        CHECK_ERR(igraph_read_graph_pajek(&g2, file));
   84|       |        igraph_destroy(&g2);
   85|       |        */
   86|  3.33k|        fclose(file);
   87|       |
   88|  3.33k|        file = tmpfile();
   89|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   90|       |        // Do not check error when writing GraphML because string attributes
   91|       |        // may contain forbidden control characters.
   92|  3.33k|        if (igraph_write_graph_graphml(&g, file, false) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (92:13): [True: 3.33k, False: 0]
  ------------------
   93|  3.33k|            rewind(file);
   94|       |            // Do not check error when reading because strings may not be
   95|       |            // in a valid encoding, which confuses libxml2.
   96|  3.33k|            if (igraph_read_graph_graphml(&g2, file, 0) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (96:17): [True: 3.29k, False: 45]
  ------------------
   97|  3.29k|                igraph_destroy(&g2);
   98|  3.29k|            }
   99|  3.33k|        }
  100|  3.33k|        fclose(file);
  101|       |
  102|  3.33k|        file = tmpfile();
  103|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  104|       |        // Do not check error when writing LGL because not all possible
  105|       |        // vertex names are supported by this format.
  106|  3.33k|        if (igraph_write_graph_lgl(&g, file, "label", "weight", false) == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (106:13): [True: 3.20k, False: 131]
  ------------------
  107|  3.20k|            rewind(file);
  108|  3.20k|            CHECK_ERR(igraph_read_graph_lgl(&g2, file, true, IGRAPH_ADD_WEIGHTS_IF_PRESENT, true));
  ------------------
  |  |   29|  3.20k|    do { \
  |  |   30|  3.20k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.20k|        expr; \
  |  |   32|  3.20k|        igraph_set_error_handler(handler); \
  |  |   33|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  109|  3.20k|            igraph_destroy(&g2);
  110|  3.20k|        }
  111|  3.33k|        fclose(file);
  112|       |
  113|  3.33k|        file = tmpfile();
  114|  3.33k|        IGRAPH_ASSERT(file != NULL);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  115|       |        // Do not check error when writing NCOL because not all possible
  116|       |        // vertex names are supported by this format.
  117|  3.33k|        if (igraph_write_graph_ncol(&g, file, "label", "weight") == IGRAPH_SUCCESS) {
  ------------------
  |  Branch (117:13): [True: 3.25k, False: 85]
  ------------------
  118|  3.25k|            rewind(file);
  119|  3.25k|            CHECK_ERR(igraph_read_graph_ncol(&g2, file, NULL, true, IGRAPH_ADD_WEIGHTS_IF_PRESENT, true));
  ------------------
  |  |   29|  3.25k|    do { \
  |  |   30|  3.25k|        igraph_error_handler_t *handler = igraph_set_error_handler(igraph_error_handler_abort); \
  |  |   31|  3.25k|        expr; \
  |  |   32|  3.25k|        igraph_set_error_handler(handler); \
  |  |   33|  3.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (33:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  120|  3.25k|            igraph_destroy(&g2);
  121|  3.25k|        }
  122|  3.33k|        fclose(file);
  123|       |
  124|       |        // Clean up
  125|  3.33k|        igraph_destroy(&g);
  126|  3.33k|    }
  127|       |
  128|       |    // no need to call igraph_destroy() if igraph_read_graph_graphml() returns an
  129|       |    // error code as we don't have a valid graph object in that case
  130|       |
  131|  21.0k|    fclose(ifile);
  132|       |
  133|  21.0k|    IGRAPH_ASSERT(IGRAPH_FINALLY_STACK_EMPTY);
  ------------------
  |  |  924|  21.0k|    do { \
  |  |  925|  21.0k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  21.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 21.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  ------------------
  |  |  |  |  401|       |#  define IGRAPH_FILE_BASENAME __FILE__
  |  |  ------------------
  |  |  927|      0|        } \
  |  |  928|  21.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 21.0k]
  |  |  ------------------
  ------------------
  134|       |
  135|  21.0k|    return 0;
  136|  21.0k|}

igraph_error:
  210|  19.7k|                            igraph_error_t igraph_errno) {
  211|       |
  212|  19.7k|    if (igraph_i_error_handler) {
  ------------------
  |  Branch (212:9): [True: 19.7k, False: 0]
  ------------------
  213|  19.7k|        igraph_i_error_handler(reason, file, line, igraph_errno);
  214|  19.7k|#ifndef USING_R
  215|  19.7k|    }  else {
  216|      0|        igraph_error_handler_abort(reason, file, line, igraph_errno);
  217|      0|#endif
  218|      0|    }
  219|  19.7k|    return igraph_errno;
  220|  19.7k|}
igraph_errorf:
  240|    531|                             igraph_error_t igraph_errno, ...) {
  241|    531|    va_list ap;
  242|    531|    va_start(ap, igraph_errno);
  243|    531|    vsnprintf(igraph_i_errormsg_buffer,
  244|    531|              sizeof(igraph_i_errormsg_buffer) / sizeof(char), reason, ap);
  245|       |    va_end(ap);
  246|    531|    return igraph_error(igraph_i_errormsg_buffer, file, line, igraph_errno);
  247|    531|}
igraph_error_handler_ignore:
  266|  19.7k|                                 int line, igraph_error_t igraph_errno) {
  267|  19.7k|    IGRAPH_UNUSED(reason);
  ------------------
  |  |   30|  19.7k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  268|  19.7k|    IGRAPH_UNUSED(file);
  ------------------
  |  |   30|  19.7k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  269|  19.7k|    IGRAPH_UNUSED(line);
  ------------------
  |  |   30|  19.7k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  270|  19.7k|    IGRAPH_UNUSED(igraph_errno);
  ------------------
  |  |   30|  19.7k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  271|       |
  272|  19.7k|    IGRAPH_FINALLY_FREE();
  273|  19.7k|}
igraph_set_error_handler:
  298|  60.6k|igraph_error_handler_t *igraph_set_error_handler(igraph_error_handler_t *new_handler) {
  299|  60.6k|    igraph_error_handler_t *previous_handler = igraph_i_error_handler;
  300|  60.6k|    igraph_i_error_handler = new_handler;
  301|  60.6k|    return previous_handler;
  302|  60.6k|}
IGRAPH_FINALLY_REAL:
  320|  13.3M|void IGRAPH_FINALLY_REAL(void (*func)(void*), void* ptr) {
  321|  13.3M|    int no = igraph_i_finally_stack_size;
  322|  13.3M|    if (no < 0) {
  ------------------
  |  Branch (322:9): [True: 0, False: 13.3M]
  ------------------
  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|  13.3M|    if (no >= (int) (sizeof(igraph_i_finally_stack) / sizeof(igraph_i_finally_stack[0]))) {
  ------------------
  |  Branch (327:9): [True: 0, False: 13.3M]
  ------------------
  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|  13.3M|    igraph_i_finally_stack[no].ptr = ptr;
  333|  13.3M|    igraph_i_finally_stack[no].func = func;
  334|  13.3M|    igraph_i_finally_stack[no].level = igraph_i_finally_stack_level;
  335|  13.3M|    igraph_i_finally_stack_size++;
  336|  13.3M|}
IGRAPH_FINALLY_CLEAN:
  338|  7.92M|void IGRAPH_FINALLY_CLEAN(int minus) {
  339|  7.92M|    igraph_i_finally_stack_size -= minus;
  340|  7.92M|    if (igraph_i_finally_stack_size < 0) {
  ------------------
  |  Branch (340:9): [True: 0, False: 7.92M]
  ------------------
  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|  7.92M|}
IGRAPH_FINALLY_FREE:
  348|  19.7k|void IGRAPH_FINALLY_FREE(void) {
  349|  57.0k|    for (; igraph_i_finally_stack_size > 0; igraph_i_finally_stack_size--) {
  ------------------
  |  Branch (349:12): [True: 38.5k, False: 18.4k]
  ------------------
  350|  38.5k|        int p = igraph_i_finally_stack_size - 1;
  351|       |        /* Call destructors only up to the current level */
  352|  38.5k|        if (igraph_i_finally_stack[p].level < igraph_i_finally_stack_level) {
  ------------------
  |  Branch (352:13): [True: 1.26k, False: 37.2k]
  ------------------
  353|  1.26k|            break;
  354|  1.26k|        }
  355|  37.2k|        igraph_i_finally_stack[p].func(igraph_i_finally_stack[p].ptr);
  356|  37.2k|    }
  357|  19.7k|}
IGRAPH_FINALLY_STACK_SIZE:
  359|  21.0k|int IGRAPH_FINALLY_STACK_SIZE(void) {
  360|  21.0k|    return igraph_i_finally_stack_size;
  361|  21.0k|}
IGRAPH_FINALLY_ENTER:
  377|  2.57M|void IGRAPH_FINALLY_ENTER(void) {
  378|  2.57M|    int no = igraph_i_finally_stack_size;
  379|       |    /* Level indices must always be in increasing order in the finally stack */
  380|  2.57M|    if (no > 0 && igraph_i_finally_stack[no-1].level > igraph_i_finally_stack_level) {
  ------------------
  |  Branch (380:9): [True: 2.57M, False: 0]
  |  Branch (380:19): [True: 0, False: 2.57M]
  ------------------
  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|  2.57M|    igraph_i_finally_stack_level++;
  386|  2.57M|}
IGRAPH_FINALLY_EXIT:
  399|  2.57M|void IGRAPH_FINALLY_EXIT(void) {
  400|  2.57M|    igraph_i_finally_stack_level--;
  401|  2.57M|    if (igraph_i_finally_stack_level < 0) {
  ------------------
  |  Branch (401:9): [True: 0, False: 2.57M]
  ------------------
  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|  2.57M|}
igraph_warning_handler_ignore:
  424|  94.5k|void igraph_warning_handler_ignore(const char *reason, const char *file, int line) {
  425|  94.5k|    IGRAPH_UNUSED(reason);
  ------------------
  |  |   30|  94.5k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  426|  94.5k|    IGRAPH_UNUSED(file);
  ------------------
  |  |   30|  94.5k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  427|  94.5k|    IGRAPH_UNUSED(line);
  ------------------
  |  |   30|  94.5k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  428|  94.5k|}
igraph_warning:
  463|  94.5k|void igraph_warning(const char *reason, const char *file, int line) {
  464|       |
  465|  94.5k|    if (igraph_i_warning_handler) {
  ------------------
  |  Branch (465:9): [True: 94.5k, False: 0]
  ------------------
  466|  94.5k|        igraph_i_warning_handler(reason, file, line);
  467|  94.5k|#ifndef USING_R
  468|  94.5k|    }  else {
  469|      0|        igraph_warning_handler_print(reason, file, line);
  470|      0|#endif
  471|      0|    }
  472|  94.5k|}
igraph_warningf:
  492|  40.8k|void igraph_warningf(const char *reason, const char *file, int line, ...) {
  493|  40.8k|    va_list ap;
  494|  40.8k|    va_start(ap, line);
  495|  40.8k|    vsnprintf(igraph_i_warningmsg_buffer,
  496|  40.8k|              sizeof(igraph_i_warningmsg_buffer) / sizeof(char), reason, ap);
  497|       |    va_end(ap);
  498|  40.8k|    igraph_warning(igraph_i_warningmsg_buffer, file, line);
  499|  40.8k|}
igraph_set_warning_handler:
  514|  21.0k|igraph_warning_handler_t *igraph_set_warning_handler(igraph_warning_handler_t *new_handler) {
  515|  21.0k|    igraph_warning_handler_t *previous_handler = igraph_i_warning_handler;
  516|  21.0k|    igraph_i_warning_handler = new_handler;
  517|  21.0k|    return previous_handler;
  518|  21.0k|}

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

igraph_real_fprintf_precise:
  117|   174k|int igraph_real_fprintf_precise(FILE *file, igraph_real_t val) {
  118|   174k|    if (isfinite(val)) {
  ------------------
  |  Branch (118:9): [True: 10.6k, False: 163k]
  ------------------
  119|  10.6k|        return fprintf(file, IGRAPH_REAL_PRINTF_PRECISE_FORMAT, val);
  ------------------
  |  |   54|  10.6k|    #define IGRAPH_REAL_PRINTF_PRECISE_FORMAT "%." IGRAPH_I_STRINGIFY(DBL_DIG) "g"
  ------------------
  120|   163k|    } else if (isnan(val)) {
  ------------------
  |  Branch (120:16): [True: 163k, False: 0]
  ------------------
  121|   163k|        return fprintf(file, "NaN");
  122|   163k|    } else if (isinf(val)) {
  ------------------
  |  Branch (122:16): [True: 0, False: 0]
  ------------------
  123|      0|        if (val < 0) {
  ------------------
  |  Branch (123:13): [True: 0, False: 0]
  ------------------
  124|      0|            return fprintf(file, "-Inf");
  125|      0|        } else {
  126|      0|            return fprintf(file, "Inf");
  127|      0|        }
  128|      0|    }
  129|      0|    IGRAPH_FATAL("Value is not finite, not infinite and not NaN either!");  /* LCOV_EXCL_LINE */
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  130|      0|}
igraph_real_snprintf_precise:
  138|  45.7k|int igraph_real_snprintf_precise(char *str, size_t size, igraph_real_t val) {
  139|  45.7k|    if (isfinite(val)) {
  ------------------
  |  Branch (139:9): [True: 1.71k, False: 44.0k]
  ------------------
  140|  1.71k|        return snprintf(str, size, IGRAPH_REAL_PRINTF_PRECISE_FORMAT, val);
  ------------------
  |  |   54|  1.71k|    #define IGRAPH_REAL_PRINTF_PRECISE_FORMAT "%." IGRAPH_I_STRINGIFY(DBL_DIG) "g"
  ------------------
  141|  44.0k|    } else if (isnan(val)) {
  ------------------
  |  Branch (141:16): [True: 44.0k, False: 0]
  ------------------
  142|  44.0k|        return snprintf(str, size, "NaN");
  143|  44.0k|    } else if (isinf(val)) {
  ------------------
  |  Branch (143:16): [True: 0, False: 0]
  ------------------
  144|      0|        if (val < 0) {
  ------------------
  |  Branch (144:13): [True: 0, False: 0]
  ------------------
  145|      0|            return snprintf(str, size, "-Inf");
  146|      0|        } else {
  147|      0|            return snprintf(str, size, "Inf");
  148|      0|        }
  149|      0|    }
  150|      0|    IGRAPH_FATAL("Value is not finite, not infinite and not NaN either!");  /* LCOV_EXCL_LINE */
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  151|      0|}

igraph_strvector_init:
   71|   286k|igraph_error_t igraph_strvector_init(igraph_strvector_t *sv, igraph_int_t size) {
   72|       |
   73|   286k|    sv->stor_begin = IGRAPH_CALLOC(size, const char *);
  ------------------
  |  |   33|   286k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   573k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 286k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 286k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 36.3k, False: 250k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   74|   286k|    IGRAPH_CHECK_OOM(sv->stor_begin, "Cannot initialize string vector.");
  ------------------
  |  |  709|   286k|    do { \
  |  |  710|   286k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   286k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 286k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   286k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 286k]
  |  |  ------------------
  ------------------
   75|       |
   76|   286k|    sv->stor_end = sv->stor_begin + size;
   77|   286k|    sv->end = sv->stor_end;
   78|       |
   79|   286k|    return IGRAPH_SUCCESS;
   80|   286k|}
igraph_strvector_destroy:
   95|   286k|void igraph_strvector_destroy(igraph_strvector_t *sv) {
   96|   286k|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|   286k|    do { \
  |  |  925|   286k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   286k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 286k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   286k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 286k]
  |  |  ------------------
  ------------------
   97|   286k|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|   286k|    do { \
  |  |  925|   286k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   286k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 286k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   286k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 286k]
  |  |  ------------------
  ------------------
   98|  2.56M|    for (const char **ptr = sv->stor_begin; ptr < sv->end; ptr++) {
  ------------------
  |  Branch (98:45): [True: 2.27M, False: 286k]
  ------------------
   99|  2.27M|        IGRAPH_FREE(*ptr);
  ------------------
  |  |   36|  2.27M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  100|  2.27M|    }
  101|       |    IGRAPH_FREE(sv->stor_begin);
  ------------------
  |  |   36|   286k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  102|   286k|}
igraph_strvector_get:
  117|  20.1M|const char *igraph_strvector_get(const igraph_strvector_t *sv, igraph_int_t idx) {
  118|  20.1M|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|  20.1M|    do { \
  |  |  925|  20.1M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  20.1M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.1M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  20.1M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 20.1M]
  |  |  ------------------
  ------------------
  119|  20.1M|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|  20.1M|    do { \
  |  |  925|  20.1M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  20.1M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.1M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  20.1M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 20.1M]
  |  |  ------------------
  ------------------
  120|  20.1M|    return sv->stor_begin[idx] ? sv->stor_begin[idx] : "";
  ------------------
  |  Branch (120:12): [True: 19.8M, False: 307k]
  ------------------
  121|  20.1M|}
igraph_strvector_set:
  141|  1.52M|                         const char *value) {
  142|  1.52M|    return igraph_strvector_set_len(sv, idx, value, strlen(value));
  143|  1.52M|}
igraph_strvector_set_len:
  163|  1.52M|                          const char *value, size_t len) {
  164|  1.52M|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|  1.52M|    do { \
  |  |  925|  1.52M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.52M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.52M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.52M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.52M]
  |  |  ------------------
  ------------------
  165|  1.52M|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|  1.52M|    do { \
  |  |  925|  1.52M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.52M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.52M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.52M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.52M]
  |  |  ------------------
  ------------------
  166|       |
  167|  1.52M|    if (sv->stor_begin[idx] == NULL) {
  ------------------
  |  Branch (167:9): [True: 1.50M, False: 16.6k]
  ------------------
  168|  1.50M|        sv->stor_begin[idx] = strndup(value, len);
  169|  1.50M|        IGRAPH_CHECK_OOM(sv->stor_begin[idx], "Cannot reserve space for new item in string vector.");
  ------------------
  |  |  709|  1.50M|    do { \
  |  |  710|  1.50M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.50M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.50M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.50M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.50M]
  |  |  ------------------
  ------------------
  170|  1.50M|    } else {
  171|  16.6k|        char *tmp = IGRAPH_REALLOC(sv->stor_begin[idx], len + 1, char);
  ------------------
  |  |   35|  16.6k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  33.3k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 16.6k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 16.6k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 16.6k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  172|  16.6k|        IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for new item in string vector.");
  ------------------
  |  |  709|  16.6k|    do { \
  |  |  710|  16.6k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  16.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 16.6k]
  |  |  ------------------
  ------------------
  173|       |
  174|  16.6k|        memcpy(tmp, value, len * sizeof(char));
  175|  16.6k|        tmp[len] = '\0';
  176|  16.6k|        sv->stor_begin[idx] = tmp;
  177|  16.6k|    }
  178|       |
  179|  1.52M|    return IGRAPH_SUCCESS;
  180|  1.52M|}
igraph_strvector_append:
  300|  33.9k|                                       const igraph_strvector_t *from) {
  301|  33.9k|    const igraph_int_t to_size = igraph_strvector_size(to);
  302|  33.9k|    const igraph_int_t from_size = igraph_strvector_size(from);
  303|  33.9k|    const igraph_int_t to_capacity = igraph_strvector_capacity(to);
  304|  33.9k|    igraph_int_t new_to_size;
  305|  33.9k|    igraph_bool_t error = false;
  306|  33.9k|    const char *tmp;
  307|       |
  308|  33.9k|    IGRAPH_SAFE_ADD(to_size, from_size, &new_to_size);
  ------------------
  |  |   47|  33.9k|    do { \
  |  |   48|  33.9k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  33.9k|        igraph_int_t _safe_sum; \
  |  |   50|  33.9k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 33.9k]
  |  |  ------------------
  |  |   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|  33.9k|        *(res) = _safe_sum; \
  |  |   54|  33.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 33.9k]
  |  |  ------------------
  ------------------
  309|       |
  310|  33.9k|    if (to_capacity < new_to_size) {
  ------------------
  |  Branch (310:9): [True: 26.1k, False: 7.76k]
  ------------------
  311|  26.1k|        igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  26.1k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  26.1k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (311:40): [True: 26.1k, False: 0]
  ------------------
  312|  26.1k|        if (new_to_capacity < new_to_size) {
  ------------------
  |  Branch (312:13): [True: 26.1k, False: 2]
  ------------------
  313|  26.1k|            new_to_capacity = new_to_size;
  314|  26.1k|        }
  315|  26.1k|        IGRAPH_CHECK(igraph_strvector_reserve(to, new_to_capacity));
  ------------------
  |  |  656|  26.1k|    do { \
  |  |  657|  26.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  26.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  26.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 26.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  26.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 26.1k]
  |  |  ------------------
  ------------------
  316|  26.1k|    }
  317|       |
  318|  1.15M|    for (igraph_int_t i = 0; i < from_size; i++) {
  ------------------
  |  Branch (318:30): [True: 1.12M, False: 33.9k]
  ------------------
  319|  1.12M|        if (from->stor_begin[i] == NULL || from->stor_begin[i][0] == '\0') {
  ------------------
  |  Branch (319:13): [True: 116k, False: 1.00M]
  |  Branch (319:44): [True: 226k, False: 779k]
  ------------------
  320|       |            /* Represent empty strings as NULL. */
  321|   343k|            tmp = NULL;
  322|   779k|        } else {
  323|   779k|            tmp = strdup(from->stor_begin[i]);
  324|   779k|            if (tmp == NULL) {
  ------------------
  |  Branch (324:17): [True: 0, False: 779k]
  ------------------
  325|      0|                error = true;
  326|      0|                break;
  327|      0|            }
  328|   779k|        }
  329|  1.12M|        *(to->end) = tmp;
  330|  1.12M|        to->end++;
  331|  1.12M|    }
  332|       |
  333|  33.9k|    if (error) {
  ------------------
  |  Branch (333:9): [True: 0, False: 33.9k]
  ------------------
  334|      0|        igraph_strvector_resize(to, to_size); /* always shrinks */
  335|      0|        IGRAPH_ERROR("Cannot append string vector.", 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]
  |  |  ------------------
  ------------------
  336|      0|    }
  337|       |
  338|  33.9k|    return IGRAPH_SUCCESS;
  339|  33.9k|}
igraph_strvector_clear:
  393|   841k|void igraph_strvector_clear(igraph_strvector_t *sv) {
  394|   841k|    igraph_int_t n = igraph_strvector_size(sv);
  395|       |
  396|  1.68M|    for (igraph_int_t i = 0; i < n; i++) {
  ------------------
  |  Branch (396:30): [True: 847k, False: 841k]
  ------------------
  397|       |        IGRAPH_FREE(sv->stor_begin[i]);
  ------------------
  |  |   36|   847k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  398|   847k|    }
  399|   841k|    sv->end = sv->stor_begin;
  400|   841k|}
igraph_strvector_resize:
  419|  3.52M|igraph_error_t igraph_strvector_resize(igraph_strvector_t *sv, igraph_int_t newsize) {
  420|  3.52M|    igraph_int_t toadd = newsize - igraph_strvector_size(sv);
  421|  3.52M|    igraph_int_t oldsize = igraph_strvector_size(sv);
  422|       |
  423|  3.52M|    if (newsize < oldsize) {
  ------------------
  |  Branch (423:9): [True: 2.37M, False: 1.15M]
  ------------------
  424|  4.74M|        for (igraph_int_t i = newsize; i < oldsize; i++) {
  ------------------
  |  Branch (424:40): [True: 2.37M, False: 2.37M]
  ------------------
  425|  2.37M|            IGRAPH_FREE(sv->stor_begin[i]);
  ------------------
  |  |   36|  2.37M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  426|  2.37M|        }
  427|  2.37M|        sv->end = sv->stor_begin + newsize;
  428|  2.37M|    } else if (newsize > oldsize) {
  ------------------
  |  Branch (428:16): [True: 1.13M, False: 21.0k]
  ------------------
  429|  1.13M|        IGRAPH_CHECK(igraph_strvector_reserve(sv, newsize));
  ------------------
  |  |  656|  1.13M|    do { \
  |  |  657|  1.13M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.13M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.13M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.13M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.13M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.13M]
  |  |  ------------------
  ------------------
  430|  1.13M|        memset(sv->stor_begin + oldsize, 0, toadd * sizeof(const char *));
  431|  1.13M|        sv->end = sv->stor_begin + newsize;
  432|  1.13M|    }
  433|       |
  434|  3.52M|    return IGRAPH_SUCCESS;
  435|  3.52M|}
igraph_strvector_capacity:
  448|  1.62M|igraph_int_t igraph_strvector_capacity(const igraph_strvector_t *sv) {
  449|  1.62M|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|  1.62M|    do { \
  |  |  925|  1.62M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.62M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.62M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.62M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.62M]
  |  |  ------------------
  ------------------
  450|  1.62M|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|  1.62M|    do { \
  |  |  925|  1.62M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.62M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.62M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.62M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.62M]
  |  |  ------------------
  ------------------
  451|  1.62M|    return sv->stor_end - sv->stor_begin;
  452|  1.62M|}
igraph_strvector_reserve:
  481|  1.30M|igraph_error_t igraph_strvector_reserve(igraph_strvector_t *sv, igraph_int_t capacity) {
  482|  1.30M|    igraph_int_t current_capacity = igraph_strvector_capacity(sv);
  483|       |
  484|  1.30M|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (484:9): [True: 1.10M, False: 201k]
  ------------------
  485|  1.10M|        return IGRAPH_SUCCESS;
  486|  1.10M|    }
  487|       |
  488|   201k|    const char **tmp = IGRAPH_REALLOC(sv->stor_begin, capacity, const char *);
  ------------------
  |  |   35|   201k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|   402k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 201k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 201k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 201k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  489|   201k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for new items in string vector.");
  ------------------
  |  |  709|   201k|    do { \
  |  |  710|   201k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   201k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 201k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   201k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 201k]
  |  |  ------------------
  ------------------
  490|       |
  491|   201k|    sv->end = tmp + (sv->end - sv->stor_begin);
  492|   201k|    sv->stor_begin = tmp;
  493|   201k|    sv->stor_end = sv->stor_begin + capacity;
  494|       |
  495|   201k|    return IGRAPH_SUCCESS;
  496|   201k|}
igraph_strvector_size:
  538|  14.7M|igraph_int_t igraph_strvector_size(const igraph_strvector_t *sv) {
  539|  14.7M|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|  14.7M|    do { \
  |  |  925|  14.7M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  14.7M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.7M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  14.7M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 14.7M]
  |  |  ------------------
  ------------------
  540|  14.7M|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|  14.7M|    do { \
  |  |  925|  14.7M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  14.7M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.7M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  14.7M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 14.7M]
  |  |  ------------------
  ------------------
  541|  14.7M|    return sv->end - sv->stor_begin;
  542|  14.7M|}
igraph_strvector_push_back:
  580|  2.77M|igraph_error_t igraph_strvector_push_back(igraph_strvector_t *sv, const char *value) {
  581|  2.77M|    IGRAPH_CHECK(strvector_expand_if_full(sv));
  ------------------
  |  |  656|  2.77M|    do { \
  |  |  657|  2.77M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.77M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.77M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.77M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.77M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.77M]
  |  |  ------------------
  ------------------
  582|  2.77M|    const char *tmp = strdup(value);
  583|  2.77M|    IGRAPH_CHECK_OOM(tmp, "Cannot push new string to string vector.");
  ------------------
  |  |  709|  2.77M|    do { \
  |  |  710|  2.77M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  2.77M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.77M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  2.77M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 2.77M]
  |  |  ------------------
  ------------------
  584|  2.77M|    *sv->end = tmp;
  585|  2.77M|    sv->end++;
  586|       |
  587|  2.77M|    return IGRAPH_SUCCESS;
  588|  2.77M|}
igraph_strvector_update:
  698|  12.2k|) {
  699|  12.2k|    igraph_strvector_clear(to);
  700|  12.2k|    IGRAPH_CHECK(igraph_strvector_append(to, from));
  ------------------
  |  |  656|  12.2k|    do { \
  |  |  657|  12.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  12.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  12.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 12.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|  12.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 12.2k]
  |  |  ------------------
  ------------------
  701|  12.2k|    return IGRAPH_SUCCESS;
  702|  12.2k|}
strvector.c:strvector_expand_if_full:
  548|  2.77M|static igraph_error_t strvector_expand_if_full(igraph_strvector_t *sv) {
  549|  2.77M|    IGRAPH_ASSERT(sv != NULL);
  ------------------
  |  |  924|  2.77M|    do { \
  |  |  925|  2.77M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.77M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.77M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.77M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.77M]
  |  |  ------------------
  ------------------
  550|  2.77M|    IGRAPH_ASSERT(sv->stor_begin != NULL);
  ------------------
  |  |  924|  2.77M|    do { \
  |  |  925|  2.77M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.77M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.77M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.77M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.77M]
  |  |  ------------------
  ------------------
  551|       |
  552|  2.77M|    if (sv->stor_end == sv->end) {
  ------------------
  |  Branch (552:9): [True: 131k, False: 2.64M]
  ------------------
  553|   131k|        igraph_int_t old_size = igraph_strvector_size(sv);
  554|   131k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   131k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   131k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (554:33): [True: 131k, False: 0]
  ------------------
  555|   131k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|   131k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (555:13): [True: 0, False: 131k]
  ------------------
  556|      0|            IGRAPH_ERROR("Cannot add new item to string 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]
  |  |  ------------------
  ------------------
  557|      0|        }
  558|   131k|        if (new_size == 0) {
  ------------------
  |  Branch (558:13): [True: 36.7k, False: 94.5k]
  ------------------
  559|  36.7k|            new_size = 1;
  560|  36.7k|        }
  561|   131k|        IGRAPH_CHECK(igraph_strvector_reserve(sv, new_size));
  ------------------
  |  |  656|   131k|    do { \
  |  |  657|   131k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   131k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   131k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 131k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   131k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 131k]
  |  |  ------------------
  ------------------
  562|   131k|    }
  563|       |
  564|  2.77M|    return IGRAPH_SUCCESS;
  565|  2.77M|}

igraph_trie_init:
   61|   117k|igraph_error_t igraph_trie_init(igraph_trie_t *t, igraph_bool_t storekeys) {
   62|   117k|    t->maxvalue = -1;
   63|   117k|    t->storekeys = storekeys;
   64|   117k|    IGRAPH_CHECK(igraph_i_trie_init_node(&t->node));
  ------------------
  |  |  656|   117k|    do { \
  |  |  657|   117k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   117k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   117k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   117k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 117k]
  |  |  ------------------
  ------------------
   65|   117k|    IGRAPH_FINALLY(igraph_i_trie_destroy_node, &t->node);
  ------------------
  |  |  603|   117k|    do { \
  |  |  604|   117k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   117k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   117k|         * incorrect destructor function with the pointer */ \
  |  |  607|   117k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 117k]
  |  |  ------------------
  |  |  608|   117k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   117k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 117k]
  |  |  ------------------
  ------------------
   66|   117k|    if (storekeys) {
  ------------------
  |  Branch (66:9): [True: 30.8k, False: 86.5k]
  ------------------
   67|  30.8k|        IGRAPH_CHECK(igraph_strvector_init(&t->keys, 0));
  ------------------
  |  |  656|  30.8k|    do { \
  |  |  657|  30.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  30.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  30.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 30.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  30.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 30.8k]
  |  |  ------------------
  ------------------
   68|  30.8k|    }
   69|       |
   70|   117k|    IGRAPH_FINALLY_CLEAN(1);
   71|   117k|    return IGRAPH_SUCCESS;
   72|   117k|}
igraph_trie_destroy:
  102|   117k|void igraph_trie_destroy(igraph_trie_t *t) {
  103|   117k|    if (t->storekeys) {
  ------------------
  |  Branch (103:9): [True: 30.8k, False: 86.5k]
  ------------------
  104|  30.8k|        igraph_strvector_destroy(&t->keys);
  105|  30.8k|    }
  106|   117k|    igraph_i_trie_destroy_node(&t->node);
  107|   117k|}
igraph_trie_get:
  298|  3.26M|igraph_error_t igraph_trie_get(igraph_trie_t *t, const char *key, igraph_int_t *id) {
  299|  3.26M|    assert(key != NULL);
  ------------------
  |  Branch (299:5): [True: 0, False: 3.26M]
  |  Branch (299:5): [True: 3.26M, False: 0]
  ------------------
  300|       |
  301|  3.26M|    if (*key == '\0') {
  ------------------
  |  Branch (301:9): [True: 7, False: 3.26M]
  ------------------
  302|      7|        IGRAPH_ERROR("Keys in a trie cannot be empty.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      7|    do { \
  |  |  427|      7|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      7|        return igraph_errno ; \
  |  |  429|      7|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  303|      7|    }
  304|       |
  305|  3.26M|    if (!t->storekeys) {
  ------------------
  |  Branch (305:9): [True: 766k, False: 2.49M]
  ------------------
  306|   766k|        IGRAPH_CHECK(igraph_i_trie_get_node(&t->node, key, t->maxvalue + 1, id));
  ------------------
  |  |  656|   766k|    do { \
  |  |  657|   766k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   766k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   766k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 766k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   766k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 766k]
  |  |  ------------------
  ------------------
  307|   766k|        if (*id > t->maxvalue) {
  ------------------
  |  Branch (307:13): [True: 55.7k, False: 710k]
  ------------------
  308|  55.7k|            t->maxvalue = *id;
  309|  55.7k|        }
  310|  2.49M|    } else {
  311|  2.49M|        igraph_error_t ret;
  312|       |
  313|  2.49M|        IGRAPH_FINALLY_ENTER();
  314|       |        /* Add it to the string vector first, we can undo this later */
  315|  2.49M|        ret = igraph_strvector_push_back(&t->keys, key);
  316|  2.49M|        if (ret != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (316:13): [True: 0, False: 2.49M]
  ------------------
  317|      0|            IGRAPH_FINALLY_EXIT();
  318|      0|            IGRAPH_ERROR("Cannot get element from trie.", 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]
  |  |  ------------------
  ------------------
  319|      0|        }
  320|  2.49M|        ret = igraph_i_trie_get_node(&t->node, key, t->maxvalue + 1, id);
  321|  2.49M|        if (ret != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (321:13): [True: 0, False: 2.49M]
  ------------------
  322|      0|            igraph_strvector_resize(&t->keys, igraph_strvector_size(&t->keys) - 1); /* shrinks, error safe */
  323|      0|            IGRAPH_FINALLY_EXIT();
  324|      0|            IGRAPH_ERROR("Cannot get element from trie.", 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]
  |  |  ------------------
  ------------------
  325|      0|        }
  326|       |
  327|       |        /* everything is fine */
  328|  2.49M|        if (*id > t->maxvalue) {
  ------------------
  |  Branch (328:13): [True: 123k, False: 2.37M]
  ------------------
  329|   123k|            t->maxvalue = *id;
  330|  2.37M|        } else {
  331|  2.37M|            igraph_strvector_resize(&t->keys, igraph_strvector_size(&t->keys) - 1); /* shrinks, error safe */
  332|  2.37M|        }
  333|  2.49M|        IGRAPH_FINALLY_EXIT();
  334|  2.49M|    }
  335|       |
  336|  3.26M|    return IGRAPH_SUCCESS;
  337|  3.26M|}
igraph_trie_get_len:
  357|  1.05M|        igraph_int_t *id) {
  358|       |
  359|  1.05M|    char *tmp = strndup(key, length);
  360|  1.05M|    IGRAPH_CHECK_OOM(tmp, "Cannot get from trie.");
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  361|  1.05M|    IGRAPH_FINALLY(igraph_free, tmp);
  ------------------
  |  |  603|  1.05M|    do { \
  |  |  604|  1.05M|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  1.05M|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  1.05M|         * incorrect destructor function with the pointer */ \
  |  |  607|  1.05M|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 1.05M]
  |  |  ------------------
  |  |  608|  1.05M|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  1.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  362|  1.05M|    IGRAPH_CHECK(igraph_trie_get(t, tmp, id));
  ------------------
  |  |  656|  1.05M|    do { \
  |  |  657|  1.05M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.05M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.05M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.05M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  363|  1.05M|    IGRAPH_FREE(tmp);
  ------------------
  |  |   36|  1.05M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  364|  1.05M|    IGRAPH_FINALLY_CLEAN(1);
  365|       |
  366|  1.05M|    return IGRAPH_SUCCESS;
  367|  1.05M|}
igraph_trie_check:
  383|  1.05M|igraph_error_t igraph_trie_check(igraph_trie_t *t, const char *key, igraph_int_t *id) {
  384|  1.05M|    IGRAPH_CHECK(igraph_i_trie_get_node(&t->node, key, -1, id));
  ------------------
  |  |  656|  1.05M|    do { \
  |  |  657|  1.05M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.05M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.05M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.05M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.05M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.05M]
  |  |  ------------------
  ------------------
  385|  1.05M|    return IGRAPH_SUCCESS;
  386|  1.05M|}
igraph_trie_size:
  413|   396k|igraph_int_t igraph_trie_size(igraph_trie_t *t) {
  414|   396k|    return t->maxvalue + 1;
  415|   396k|}
igraph_i_trie_borrow_keys:
  432|  9.75k|const igraph_strvector_t* igraph_i_trie_borrow_keys(igraph_trie_t *t) {
  433|  9.75k|    return &t->keys;
  434|  9.75k|}
trie.c:igraph_i_trie_init_node:
   41|   117k|static igraph_error_t igraph_i_trie_init_node(igraph_trie_node_t *t) {
   42|   117k|    IGRAPH_STRVECTOR_INIT_FINALLY(&t->strs, 0);
  ------------------
  |  |   62|   117k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|   117k|    do { \
  |  |  |  |  657|   117k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   117k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   117k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 117k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|   117k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|   117k|    do { \
  |  |  |  |  604|   117k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   117k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   117k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   117k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  |  |  608|   117k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 117k]
  |  |  ------------------
  ------------------
   43|   117k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->children, 0);
  ------------------
  |  |   46|   117k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   117k|    do { \
  |  |  |  |  657|   117k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   117k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   117k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 117k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   117k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   117k|    do { \
  |  |  |  |  604|   117k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   117k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   117k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   117k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  |  |  608|   117k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 117k]
  |  |  ------------------
  ------------------
   44|   117k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&t->values, 0);
  ------------------
  |  |  119|   117k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   117k|    do { \
  |  |  |  |  657|   117k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   117k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   117k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 117k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   117k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   117k|    do { \
  |  |  |  |  604|   117k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   117k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   117k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   117k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  |  |  608|   117k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   117k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 117k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 117k]
  |  |  ------------------
  ------------------
   45|   117k|    IGRAPH_FINALLY_CLEAN(3);
   46|   117k|    return IGRAPH_SUCCESS;
   47|   117k|}
trie.c:igraph_i_trie_destroy_node:
   91|   117k|static void igraph_i_trie_destroy_node(igraph_trie_node_t *t) {
   92|       |    igraph_i_trie_destroy_node_helper(t, false);
   93|   117k|}
trie.c:igraph_i_trie_destroy_node_helper:
   74|   142k|static void igraph_i_trie_destroy_node_helper(igraph_trie_node_t *t, igraph_bool_t sfree) {
   75|   142k|    igraph_strvector_destroy(&t->strs);
   76|   142k|    igraph_int_t children_size = igraph_vector_ptr_size(&t->children);
   77|   334k|    for (igraph_int_t i = 0; i < children_size; i++) {
  ------------------
  |  Branch (77:30): [True: 192k, False: 142k]
  ------------------
   78|   192k|        igraph_trie_node_t *child = VECTOR(t->children)[i];
  ------------------
  |  |   60|   192k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   79|   192k|        if (child != NULL) {
  ------------------
  |  Branch (79:13): [True: 25.1k, False: 167k]
  ------------------
   80|  25.1k|            igraph_i_trie_destroy_node_helper(child, true);
   81|  25.1k|        }
   82|   192k|    }
   83|   142k|    igraph_vector_ptr_destroy(&t->children);
   84|   142k|    igraph_vector_int_destroy(&t->values);
   85|   142k|    if (sfree) {
  ------------------
  |  Branch (85:9): [True: 25.1k, False: 117k]
  ------------------
   86|       |        IGRAPH_FREE(t);
  ------------------
  |  |   36|  25.1k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
   87|  25.1k|    }
   88|   142k|}
trie.c:igraph_i_trie_get_node:
  129|  6.57M|) {
  130|  6.57M|    assert(key != NULL);
  ------------------
  |  Branch (130:5): [True: 0, False: 6.57M]
  |  Branch (130:5): [True: 6.57M, False: 0]
  ------------------
  131|       |
  132|       |    /* If newvalue is negative, we don't add the node if nonexistent, only check
  133|       |     * for its existence */
  134|  6.57M|    igraph_bool_t add = (newvalue >= 0);
  135|       |
  136|  6.57M|    igraph_int_t strs_size = igraph_strvector_size(&t->strs);
  137|  17.4M|    for (igraph_int_t i = 0; i < strs_size; i++) {
  ------------------
  |  Branch (137:30): [True: 17.2M, False: 166k]
  ------------------
  138|  17.2M|        size_t diff;
  139|  17.2M|        const char *str = igraph_strvector_get(&t->strs, i);
  140|  17.2M|        diff = igraph_i_strdiff(str, key);
  141|       |
  142|  17.2M|        if (diff == 0) {
  ------------------
  |  Branch (142:13): [True: 10.8M, False: 6.41M]
  ------------------
  143|       |
  144|       |            /* ------------------------------------ */
  145|       |            /* No match, next */
  146|       |
  147|  10.8M|        } else if (str[diff] == '\0' && key[diff] == '\0') {
  ------------------
  |  Branch (147:20): [True: 6.39M, False: 17.6k]
  |  Branch (147:41): [True: 4.12M, False: 2.27M]
  ------------------
  148|       |
  149|       |            /* ------------------------------------ */
  150|       |            /* They are exactly the same */
  151|  4.12M|            if (VECTOR(t->values)[i] != -1) {
  ------------------
  |  |   60|  4.12M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (151:17): [True: 4.12M, False: 1.07k]
  ------------------
  152|  4.12M|                *id = VECTOR(t->values)[i];
  ------------------
  |  |   60|  4.12M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  153|  4.12M|                return IGRAPH_SUCCESS;
  154|  4.12M|            } else {
  155|  1.07k|                VECTOR(t->values)[i] = newvalue;
  ------------------
  |  |   60|  1.07k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  156|  1.07k|                *id = newvalue;
  157|  1.07k|                return IGRAPH_SUCCESS;
  158|  1.07k|            }
  159|       |
  160|  4.12M|        } else if (str[diff] == '\0') {
  ------------------
  |  Branch (160:20): [True: 2.27M, False: 17.6k]
  ------------------
  161|       |
  162|       |            /* ------------------------------------ */
  163|       |            /* str is prefix of key, follow its link if there is one */
  164|  2.27M|            igraph_trie_node_t *node = VECTOR(t->children)[i];
  ------------------
  |  |   60|  2.27M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  165|  2.27M|            if (node != NULL) {
  ------------------
  |  Branch (165:17): [True: 2.26M, False: 10.2k]
  ------------------
  166|  2.26M|                return igraph_i_trie_get_node(node, key + diff, newvalue, id);
  167|  2.26M|            } else if (add) {
  ------------------
  |  Branch (167:24): [True: 9.90k, False: 388]
  ------------------
  168|  9.90k|                igraph_trie_node_t *new_node = IGRAPH_CALLOC(1, igraph_trie_node_t);
  ------------------
  |  |   33|  9.90k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  19.8k|    (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: 9.90k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  169|  9.90k|                IGRAPH_CHECK_OOM(new_node, "Cannot add to trie.");
  ------------------
  |  |  709|  9.90k|    do { \
  |  |  710|  9.90k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  9.90k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  9.90k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  170|  9.90k|                IGRAPH_FINALLY(igraph_free, new_node);
  ------------------
  |  |  603|  9.90k|    do { \
  |  |  604|  9.90k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  9.90k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  9.90k|         * incorrect destructor function with the pointer */ \
  |  |  607|  9.90k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 9.90k]
  |  |  ------------------
  |  |  608|  9.90k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  9.90k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  171|       |
  172|  9.90k|                IGRAPH_STRVECTOR_INIT_FINALLY(&new_node->strs, 1);
  ------------------
  |  |   62|  9.90k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  9.90k|    do { \
  |  |  |  |  657|  9.90k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  9.90k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  9.90k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  9.90k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  9.90k|    do { \
  |  |  |  |  604|  9.90k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  9.90k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  9.90k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  9.90k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  |  |  608|  9.90k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  173|  9.90k|                IGRAPH_VECTOR_PTR_INIT_FINALLY(&new_node->children, 1);
  ------------------
  |  |   46|  9.90k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  9.90k|    do { \
  |  |  |  |  657|  9.90k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  9.90k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  9.90k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|  9.90k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  9.90k|    do { \
  |  |  |  |  604|  9.90k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  9.90k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  9.90k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  9.90k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  |  |  608|  9.90k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  174|  9.90k|                IGRAPH_VECTOR_INT_INIT_FINALLY(&new_node->values, 1);
  ------------------
  |  |  119|  9.90k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  9.90k|    do { \
  |  |  |  |  657|  9.90k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  9.90k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  9.90k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.90k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  9.90k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  9.90k|    do { \
  |  |  |  |  604|  9.90k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  9.90k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  9.90k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  9.90k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  |  |  608|  9.90k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  9.90k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  175|  9.90k|                IGRAPH_CHECK(igraph_strvector_set(&new_node->strs, 0, key + diff));
  ------------------
  |  |  656|  9.90k|    do { \
  |  |  657|  9.90k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.90k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.90k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.90k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.90k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.90k]
  |  |  ------------------
  ------------------
  176|  9.90k|                IGRAPH_FINALLY_CLEAN(4);
  177|       |
  178|  9.90k|                VECTOR(new_node->children)[0] = 0;
  ------------------
  |  |   60|  9.90k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  179|  9.90k|                VECTOR(new_node->values)[0] = newvalue;
  ------------------
  |  |   60|  9.90k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  180|       |
  181|  9.90k|                VECTOR(t->children)[i] = new_node;
  ------------------
  |  |   60|  9.90k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  182|       |
  183|  9.90k|                *id = newvalue;
  184|  9.90k|                return IGRAPH_SUCCESS;
  185|  9.90k|            } else {
  186|    388|                *id = -1;
  187|    388|                return IGRAPH_SUCCESS;
  188|    388|            }
  189|       |
  190|  2.27M|        } else if (key[diff] == '\0' && add) {
  ------------------
  |  Branch (190:20): [True: 2.21k, False: 15.4k]
  |  Branch (190:41): [True: 1.81k, False: 396]
  ------------------
  191|       |
  192|       |            /* ------------------------------------ */
  193|       |            /* key is prefix of str, the node has to be cut */
  194|  1.81k|            char *str2;
  195|       |
  196|  1.81k|            igraph_trie_node_t *node = IGRAPH_CALLOC(1, igraph_trie_node_t);
  ------------------
  |  |   33|  1.81k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  3.62k|    (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: 1.81k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|  1.81k|            IGRAPH_CHECK_OOM(node, "Cannot add to trie.");
  ------------------
  |  |  709|  1.81k|    do { \
  |  |  710|  1.81k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  198|  1.81k|            IGRAPH_FINALLY(igraph_free, node);
  ------------------
  |  |  603|  1.81k|    do { \
  |  |  604|  1.81k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  1.81k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  1.81k|         * incorrect destructor function with the pointer */ \
  |  |  607|  1.81k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 1.81k]
  |  |  ------------------
  |  |  608|  1.81k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  1.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  199|       |
  200|  1.81k|            IGRAPH_STRVECTOR_INIT_FINALLY(&node->strs, 1);
  ------------------
  |  |   62|  1.81k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.81k|    do { \
  |  |  |  |  657|  1.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  1.81k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.81k|    do { \
  |  |  |  |  604|  1.81k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.81k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.81k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.81k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.81k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  201|  1.81k|            IGRAPH_VECTOR_PTR_INIT_FINALLY(&node->children, 1);
  ------------------
  |  |   46|  1.81k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.81k|    do { \
  |  |  |  |  657|  1.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|  1.81k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.81k|    do { \
  |  |  |  |  604|  1.81k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.81k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.81k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.81k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.81k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  202|  1.81k|            IGRAPH_VECTOR_INT_INIT_FINALLY(&node->values, 1);
  ------------------
  |  |  119|  1.81k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.81k|    do { \
  |  |  |  |  657|  1.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  1.81k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.81k|    do { \
  |  |  |  |  604|  1.81k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.81k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.81k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.81k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.81k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.81k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  203|  1.81k|            IGRAPH_CHECK(igraph_strvector_set(&node->strs, 0, str + diff));
  ------------------
  |  |  656|  1.81k|    do { \
  |  |  657|  1.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  1.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  204|       |
  205|  1.81k|            VECTOR(node->children)[0] = VECTOR(t->children)[i];
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(node->children)[0] = VECTOR(t->children)[i];
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  206|  1.81k|            VECTOR(node->values)[0] = VECTOR(t->values)[i];
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(node->values)[0] = VECTOR(t->values)[i];
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  207|       |
  208|  1.81k|            str2 = strdup(str);
  209|  1.81k|            IGRAPH_CHECK_OOM(str2, "Cannot add to trie.");
  ------------------
  |  |  709|  1.81k|    do { \
  |  |  710|  1.81k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  210|  1.81k|            IGRAPH_FINALLY(igraph_free, str2);
  ------------------
  |  |  603|  1.81k|    do { \
  |  |  604|  1.81k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  1.81k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  1.81k|         * incorrect destructor function with the pointer */ \
  |  |  607|  1.81k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 1.81k]
  |  |  ------------------
  |  |  608|  1.81k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  1.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  211|  1.81k|            str2[diff] = '\0';
  212|       |
  213|  1.81k|            IGRAPH_CHECK(igraph_strvector_set(&t->strs, i, str2));
  ------------------
  |  |  656|  1.81k|    do { \
  |  |  657|  1.81k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.81k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.81k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.81k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  1.81k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.81k]
  |  |  ------------------
  ------------------
  214|       |
  215|  1.81k|            IGRAPH_FREE(str2);
  ------------------
  |  |   36|  1.81k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  216|  1.81k|            IGRAPH_FINALLY_CLEAN(5);
  217|       |
  218|  1.81k|            VECTOR(t->values)[i] = newvalue;
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  219|  1.81k|            VECTOR(t->children)[i] = node;
  ------------------
  |  |   60|  1.81k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  220|       |
  221|  1.81k|            *id = newvalue;
  222|  1.81k|            return IGRAPH_SUCCESS;
  223|       |
  224|  15.8k|        } else if (add) {
  ------------------
  |  Branch (224:20): [True: 13.4k, False: 2.39k]
  ------------------
  225|       |
  226|       |            /* ------------------------------------ */
  227|       |            /* the first diff characters match */
  228|  13.4k|            char *str2;
  229|       |
  230|  13.4k|            igraph_trie_node_t *node = IGRAPH_CALLOC(1, igraph_trie_node_t);
  ------------------
  |  |   33|  13.4k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  26.9k|    (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: 13.4k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|  13.4k|            IGRAPH_CHECK_OOM(node, "Cannot add to trie.");
  ------------------
  |  |  709|  13.4k|    do { \
  |  |  710|  13.4k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  232|  13.4k|            IGRAPH_FINALLY(igraph_free, node);
  ------------------
  |  |  603|  13.4k|    do { \
  |  |  604|  13.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  13.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  13.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  13.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 13.4k]
  |  |  ------------------
  |  |  608|  13.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  233|       |
  234|  13.4k|            IGRAPH_STRVECTOR_INIT_FINALLY(&node->strs, 2);
  ------------------
  |  |   62|  13.4k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  13.4k|    do { \
  |  |  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  13.4k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  13.4k|    do { \
  |  |  |  |  604|  13.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  13.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  13.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  13.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  13.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  235|  13.4k|            IGRAPH_VECTOR_PTR_INIT_FINALLY(&node->children, 2);
  ------------------
  |  |   46|  13.4k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  13.4k|    do { \
  |  |  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|  13.4k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  13.4k|    do { \
  |  |  |  |  604|  13.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  13.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  13.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  13.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  13.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  236|  13.4k|            IGRAPH_VECTOR_INT_INIT_FINALLY(&node->values, 2);
  ------------------
  |  |  119|  13.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  13.4k|    do { \
  |  |  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  13.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  13.4k|    do { \
  |  |  |  |  604|  13.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  13.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  13.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  13.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  13.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  13.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  237|  13.4k|            IGRAPH_CHECK(igraph_strvector_set(&node->strs, 0, str + diff));
  ------------------
  |  |  656|  13.4k|    do { \
  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  238|  13.4k|            IGRAPH_CHECK(igraph_strvector_set(&node->strs, 1, key + diff));
  ------------------
  |  |  656|  13.4k|    do { \
  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  239|  13.4k|            VECTOR(node->children)[0] = VECTOR(t->children)[i];
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(node->children)[0] = VECTOR(t->children)[i];
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  240|  13.4k|            VECTOR(node->children)[1] = 0;
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  241|  13.4k|            VECTOR(node->values)[0] = VECTOR(t->values)[i];
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(node->values)[0] = VECTOR(t->values)[i];
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  242|  13.4k|            VECTOR(node->values)[1] = newvalue;
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  243|       |
  244|  13.4k|            str2 = strdup(str);
  245|  13.4k|            IGRAPH_CHECK_OOM(str2, "Cannot add to trie.");
  ------------------
  |  |  709|  13.4k|    do { \
  |  |  710|  13.4k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  246|       |
  247|  13.4k|            str2[diff] = '\0';
  248|  13.4k|            IGRAPH_FINALLY(igraph_free, str2);
  ------------------
  |  |  603|  13.4k|    do { \
  |  |  604|  13.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  13.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  13.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  13.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 13.4k]
  |  |  ------------------
  |  |  608|  13.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  249|       |
  250|  13.4k|            IGRAPH_CHECK(igraph_strvector_set(&t->strs, i, str2));
  ------------------
  |  |  656|  13.4k|    do { \
  |  |  657|  13.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.4k]
  |  |  ------------------
  ------------------
  251|       |
  252|  13.4k|            IGRAPH_FREE(str2);
  ------------------
  |  |   36|  13.4k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  253|  13.4k|            IGRAPH_FINALLY_CLEAN(5);
  254|       |
  255|  13.4k|            VECTOR(t->values)[i] = -1;
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  256|  13.4k|            VECTOR(t->children)[i] = node;
  ------------------
  |  |   60|  13.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  257|       |
  258|  13.4k|            *id = newvalue;
  259|  13.4k|            return IGRAPH_SUCCESS;
  260|  13.4k|        } else {
  261|       |
  262|       |            /* ------------------------------------------------- */
  263|       |            /* No match, but we requested not to add the new key */
  264|  2.39k|            *id = -1;
  265|  2.39k|            return IGRAPH_SUCCESS;
  266|  2.39k|        }
  267|  17.2M|    }
  268|       |
  269|       |    /* ------------------------------------ */
  270|       |    /* Nothing matches */
  271|       |
  272|   166k|    if (add) {
  ------------------
  |  Branch (272:9): [True: 153k, False: 12.8k]
  ------------------
  273|       |        /* Memory saving at the cost of performance may be possible by using the pattern
  274|       |         *     CHECK(reserve(vec, size(vec) + 1));
  275|       |         *     push_back(vec, value);
  276|       |         * This was the original pattern used before igraph 0.10. */
  277|   153k|        IGRAPH_CHECK(igraph_strvector_push_back(&t->strs, key));
  ------------------
  |  |  656|   153k|    do { \
  |  |  657|   153k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   153k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   153k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 153k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   153k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 153k]
  |  |  ------------------
  ------------------
  278|   153k|        IGRAPH_CHECK(igraph_vector_ptr_push_back(&t->children, NULL));
  ------------------
  |  |  656|   153k|    do { \
  |  |  657|   153k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   153k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   153k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 153k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   153k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 153k]
  |  |  ------------------
  ------------------
  279|   153k|        IGRAPH_CHECK(igraph_vector_int_push_back(&t->values, newvalue));
  ------------------
  |  |  656|   153k|    do { \
  |  |  657|   153k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   153k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   153k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 153k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   153k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 153k]
  |  |  ------------------
  ------------------
  280|   153k|        *id = newvalue;
  281|   153k|    } else {
  282|  12.8k|        *id = -1;
  283|  12.8k|    }
  284|       |
  285|   166k|    return IGRAPH_SUCCESS;
  286|   166k|}
trie.c:igraph_i_strdiff:
  111|  17.2M|static size_t igraph_i_strdiff(const char *str, const char *key) {
  112|  17.2M|    size_t diff = 0;
  113|   251M|    while (key[diff] != '\0' && str[diff] != '\0' && str[diff] == key[diff]) {
  ------------------
  |  Branch (113:12): [True: 247M, False: 4.12M]
  |  Branch (113:33): [True: 244M, False: 2.27M]
  |  Branch (113:54): [True: 234M, False: 10.8M]
  ------------------
  114|   234M|        diff++;
  115|   234M|    }
  116|  17.2M|    return diff;
  117|  17.2M|}

igraph_attribute_record_list_init:
  109|  85.9k|igraph_error_t FUNCTION(init)(TYPE *v, igraph_int_t size) {
  110|  85.9k|    igraph_int_t alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (110:31): [True: 6.73k, False: 79.1k]
  ------------------
  111|  85.9k|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  85.9k|    do { \
  |  |  925|  85.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  85.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  85.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 85.9k]
  |  |  ------------------
  ------------------
  112|  85.9k|    v->stor_begin = IGRAPH_CALLOC(alloc_size, ITEM_TYPE);
  ------------------
  |  |   33|  85.9k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   171k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 85.9k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 85.9k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 85.9k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  113|  85.9k|    if (v->stor_begin == 0) {
  ------------------
  |  Branch (113:9): [True: 0, False: 85.9k]
  ------------------
  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|  85.9k|    v->stor_end = v->stor_begin + alloc_size;
  117|  85.9k|    v->end = v->stor_begin + size;
  118|       |
  119|  85.9k|    IGRAPH_CHECK(INTERNAL_FUNCTION(init_slice)(v, v->stor_begin, v->end));
  ------------------
  |  |  656|  85.9k|    do { \
  |  |  657|  85.9k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  85.9k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  85.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  85.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 85.9k]
  |  |  ------------------
  ------------------
  120|       |
  121|  85.9k|    return IGRAPH_SUCCESS;
  122|  85.9k|}
igraph_attribute_record_list_init_copy:
  141|  9.96k|igraph_error_t FUNCTION(init_copy)(TYPE* to, const TYPE* from) {
  142|  9.96k|    igraph_int_t i, size = FUNCTION(size)(from);
  ------------------
  |  |  164|  9.96k|    #define FUNCTION(c) CONCAT2x(igraph_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  9.96k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
  143|       |
  144|  9.96k|    IGRAPH_CHECK(FUNCTION(init)(to, 0));
  ------------------
  |  |  656|  9.96k|    do { \
  |  |  657|  9.96k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.96k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.96k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.96k]
  |  |  ------------------
  ------------------
  145|  9.96k|    IGRAPH_FINALLY(FUNCTION(destroy), to);
  ------------------
  |  |  603|  9.96k|    do { \
  |  |  604|  9.96k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  9.96k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  9.96k|         * incorrect destructor function with the pointer */ \
  |  |  607|  9.96k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 9.96k]
  |  |  ------------------
  |  |  608|  9.96k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  9.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 9.96k]
  |  |  ------------------
  ------------------
  146|       |
  147|  12.2k|    for (i = 0; i < size; i++) {
  ------------------
  |  Branch (147:17): [True: 2.24k, False: 9.96k]
  ------------------
  148|  2.24k|        IGRAPH_CHECK(FUNCTION(push_back_copy)(to, FUNCTION(get_ptr)(from, i)));
  ------------------
  |  |  656|  2.24k|    do { \
  |  |  657|  2.24k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.24k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.24k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.24k]
  |  |  ------------------
  ------------------
  149|  2.24k|    }
  150|       |
  151|  9.96k|    IGRAPH_FINALLY_CLEAN(1);
  152|       |
  153|  9.96k|    return IGRAPH_SUCCESS;
  154|  9.96k|}
igraph_attribute_record_list_destroy:
  176|  85.9k|void FUNCTION(destroy)(TYPE *v) {
  177|  85.9k|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  85.9k|    do { \
  |  |  925|  85.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  85.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  85.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 85.9k]
  |  |  ------------------
  ------------------
  178|       |
  179|  85.9k|    if (v->stor_begin != 0) {
  ------------------
  |  Branch (179:9): [True: 85.9k, False: 0]
  ------------------
  180|  85.9k|        FUNCTION(clear)(v);
  ------------------
  |  |  164|  85.9k|    #define FUNCTION(c) CONCAT2x(igraph_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  85.9k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
  181|  85.9k|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  85.9k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  182|       |        v->stor_begin = NULL;
  183|  85.9k|    }
  184|  85.9k|}
igraph_attribute_record_list_capacity:
  203|  13.6k|igraph_int_t FUNCTION(capacity)(const TYPE *v) {
  204|  13.6k|    return v->stor_end - v->stor_begin;
  205|  13.6k|}
igraph_attribute_record_list_reserve:
  233|  13.6k|igraph_error_t FUNCTION(reserve)(TYPE *v, igraph_int_t capacity) {
  234|  13.6k|    igraph_int_t current_capacity;
  235|  13.6k|    ITEM_TYPE *tmp;
  ------------------
  |  |   61|  13.6k|    #define ITEM_TYPE BASE
  |  |  ------------------
  |  |  |  |  118|  13.6k|    #define BASE igraph_attribute_record_t
  |  |  ------------------
  ------------------
  236|       |
  237|  13.6k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  13.6k|    do { \
  |  |  925|  13.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
  238|  13.6k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  13.6k|    do { \
  |  |  925|  13.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
  239|  13.6k|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  13.6k|    do { \
  |  |  925|  13.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
  240|       |
  241|  13.6k|    current_capacity = FUNCTION(capacity)(v);
  ------------------
  |  |  164|  13.6k|    #define FUNCTION(c) CONCAT2x(igraph_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  13.6k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
  242|       |
  243|  13.6k|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (243:9): [True: 0, False: 13.6k]
  ------------------
  244|      0|        return IGRAPH_SUCCESS;
  245|      0|    }
  246|       |
  247|  13.6k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, ITEM_TYPE);
  ------------------
  |  |   35|  13.6k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  27.3k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 13.6k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 13.6k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 13.6k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  248|  13.6k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for list.");
  ------------------
  |  |  709|  13.6k|    do { \
  |  |  710|  13.6k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
  249|       |
  250|  13.6k|    v->end = tmp + (v->end - v->stor_begin);
  251|  13.6k|    v->stor_begin = tmp;
  252|  13.6k|    v->stor_end = v->stor_begin + capacity;
  253|       |
  254|  13.6k|    return IGRAPH_SUCCESS;
  255|  13.6k|}
igraph_attribute_record_list_size:
  287|  1.58M|igraph_int_t FUNCTION(size)(const TYPE *v) {
  288|  1.58M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.58M|    do { \
  |  |  925|  1.58M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.58M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.58M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.58M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.58M]
  |  |  ------------------
  ------------------
  289|  1.58M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.58M|    do { \
  |  |  925|  1.58M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.58M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.58M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.58M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.58M]
  |  |  ------------------
  ------------------
  290|  1.58M|    return v->end - v->stor_begin;
  291|  1.58M|}
igraph_attribute_record_list_clear:
  357|  85.9k|void FUNCTION(clear)(TYPE *v) {
  358|  85.9k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  85.9k|    do { \
  |  |  925|  85.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  85.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  85.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 85.9k]
  |  |  ------------------
  ------------------
  359|  85.9k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  85.9k|    do { \
  |  |  925|  85.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  85.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  85.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 85.9k]
  |  |  ------------------
  ------------------
  360|  85.9k|    INTERNAL_FUNCTION(destroy_slice)(v, v->stor_begin, v->end);
  ------------------
  |  |  165|  85.9k|    #define INTERNAL_FUNCTION(c) CONCAT2x(igraph_i_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  85.9k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
  361|  85.9k|    v->end = v->stor_begin;
  362|  85.9k|}
igraph_attribute_record_list_get_ptr:
  377|  4.39M|ITEM_TYPE *FUNCTION(get_ptr)(const TYPE *v, igraph_int_t pos) {
  378|  4.39M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  4.39M|    do { \
  |  |  925|  4.39M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.39M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.39M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.39M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.39M]
  |  |  ------------------
  ------------------
  379|  4.39M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  4.39M|    do { \
  |  |  925|  4.39M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  4.39M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.39M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  4.39M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 4.39M]
  |  |  ------------------
  ------------------
  380|  4.39M|    return v->stor_begin + pos;
  381|  4.39M|}
igraph_attribute_record_list_push_back:
  585|  22.1k|igraph_error_t FUNCTION(push_back)(TYPE *v, ITEM_TYPE *e) {
  586|  22.1k|    IGRAPH_CHECK(INTERNAL_FUNCTION(expand_if_full)(v));
  ------------------
  |  |  656|  22.1k|    do { \
  |  |  657|  22.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  22.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  22.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 22.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  22.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 22.1k]
  |  |  ------------------
  ------------------
  587|  22.1k|    *(v->end) = *e;
  588|  22.1k|    v->end += 1;
  589|  22.1k|    return IGRAPH_SUCCESS;
  590|  22.1k|}
igraph_attribute_record_list_push_back_copy:
  610|  2.24k|igraph_error_t FUNCTION(push_back_copy)(TYPE *v, const ITEM_TYPE *e) {
  611|  2.24k|    ITEM_TYPE copy;
  ------------------
  |  |   61|  2.24k|    #define ITEM_TYPE BASE
  |  |  ------------------
  |  |  |  |  118|  2.24k|    #define BASE igraph_attribute_record_t
  |  |  ------------------
  ------------------
  612|  2.24k|    IGRAPH_CHECK(INTERNAL_FUNCTION(copy_item)(&copy, e));
  ------------------
  |  |  656|  2.24k|    do { \
  |  |  657|  2.24k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.24k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.24k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.24k]
  |  |  ------------------
  ------------------
  613|  2.24k|    IGRAPH_FINALLY(INTERNAL_FUNCTION(destroy_item), &copy);
  ------------------
  |  |  603|  2.24k|    do { \
  |  |  604|  2.24k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  2.24k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  2.24k|         * incorrect destructor function with the pointer */ \
  |  |  607|  2.24k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 2.24k]
  |  |  ------------------
  |  |  608|  2.24k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  2.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 2.24k]
  |  |  ------------------
  ------------------
  614|  2.24k|    IGRAPH_CHECK(FUNCTION(push_back)(v, &copy));
  ------------------
  |  |  656|  2.24k|    do { \
  |  |  657|  2.24k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.24k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.24k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.24k]
  |  |  ------------------
  ------------------
  615|  2.24k|    IGRAPH_FINALLY_CLEAN(1);
  616|  2.24k|    return IGRAPH_SUCCESS;
  617|  2.24k|}
igraph_attribute_record_list_push_back_new:
  638|  32.5k|igraph_error_t FUNCTION(push_back_new)(TYPE *v, ITEM_TYPE** e) {
  639|  32.5k|    IGRAPH_CHECK(INTERNAL_FUNCTION(expand_if_full)(v));
  ------------------
  |  |  656|  32.5k|    do { \
  |  |  657|  32.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  32.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  32.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 32.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  32.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 32.5k]
  |  |  ------------------
  ------------------
  640|  32.5k|    IGRAPH_CHECK(INTERNAL_FUNCTION(init_item)(v, v->end));
  ------------------
  |  |  656|  32.5k|    do { \
  |  |  657|  32.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  32.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  32.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 32.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  32.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 32.5k]
  |  |  ------------------
  ------------------
  641|  32.5k|    if (e) {
  ------------------
  |  Branch (641:9): [True: 32.5k, False: 0]
  ------------------
  642|  32.5k|        *e = v->end;
  643|  32.5k|    }
  644|  32.5k|    v->end += 1;
  645|  32.5k|    return IGRAPH_SUCCESS;
  646|  32.5k|}
attributes.c:igraph_i_attribute_record_list_init_slice:
 1065|  85.9k|static igraph_error_t INTERNAL_FUNCTION(init_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1066|  85.9k|    ITEM_TYPE *current;
  ------------------
  |  |   61|  85.9k|    #define ITEM_TYPE BASE
  |  |  ------------------
  |  |  |  |  118|  85.9k|    #define BASE igraph_attribute_record_t
  |  |  ------------------
  ------------------
 1067|  85.9k|    igraph_error_t retval;
 1068|       |
 1069|  92.6k|    for (current = start; current < end; current++) {
  ------------------
  |  Branch (1069:27): [True: 6.73k, False: 85.9k]
  ------------------
 1070|  6.73k|        retval = INTERNAL_FUNCTION(init_item)(list, current);
  ------------------
  |  |  165|  6.73k|    #define INTERNAL_FUNCTION(c) CONCAT2x(igraph_i_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  6.73k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
 1071|  6.73k|        if (retval) {
  ------------------
  |  Branch (1071:13): [True: 0, False: 6.73k]
  ------------------
 1072|      0|            INTERNAL_FUNCTION(destroy_slice)(list, start, current);
  ------------------
  |  |  165|      0|    #define INTERNAL_FUNCTION(c) CONCAT2x(igraph_i_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|      0|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
 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|  6.73k|    }
 1076|       |
 1077|  85.9k|    return IGRAPH_SUCCESS;
 1078|  85.9k|}
attributes.c:igraph_i_attribute_record_list_destroy_slice:
 1080|  85.9k|static void INTERNAL_FUNCTION(destroy_slice)(const TYPE *list, ITEM_TYPE *start, ITEM_TYPE *end) {
 1081|  85.9k|    IGRAPH_UNUSED(list);
  ------------------
  |  |   30|  85.9k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1082|   147k|    for (; start < end; start++) {
  ------------------
  |  Branch (1082:12): [True: 61.4k, False: 85.9k]
  ------------------
 1083|  61.4k|        INTERNAL_FUNCTION(destroy_item)(start);
  ------------------
  |  |  165|  61.4k|    #define INTERNAL_FUNCTION(c) CONCAT2x(igraph_i_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  61.4k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
 1084|  61.4k|    }
 1085|  85.9k|}
attributes.c:igraph_i_attribute_record_list_expand_if_full:
 1091|  54.6k|static igraph_error_t INTERNAL_FUNCTION(expand_if_full)(TYPE *v) {
 1092|  54.6k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  54.6k|    do { \
  |  |  925|  54.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  54.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 54.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  54.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 54.6k]
  |  |  ------------------
  ------------------
 1093|  54.6k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  54.6k|    do { \
  |  |  925|  54.6k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  54.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 54.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  54.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 54.6k]
  |  |  ------------------
  ------------------
 1094|       |
 1095|  54.6k|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (1095:9): [True: 13.6k, False: 41.0k]
  ------------------
 1096|  13.6k|        igraph_int_t old_size = FUNCTION(size)(v);
  ------------------
  |  |  164|  13.6k|    #define FUNCTION(c) CONCAT2x(igraph_attribute_record_list,c)
  |  |  ------------------
  |  |  |  |   19|  13.6k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  ------------------
  ------------------
 1097|  13.6k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  13.6k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  13.6k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1097:33): [True: 13.6k, False: 0]
  ------------------
 1098|  13.6k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|  13.6k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (1098:13): [True: 0, False: 13.6k]
  ------------------
 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|  13.6k|        if (new_size == 0) {
  ------------------
  |  Branch (1101:13): [True: 0, False: 13.6k]
  ------------------
 1102|      0|            new_size = 1;
 1103|      0|        }
 1104|  13.6k|        IGRAPH_CHECK(FUNCTION(reserve)(v, new_size));
  ------------------
  |  |  656|  13.6k|    do { \
  |  |  657|  13.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.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|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
 1105|  13.6k|    }
 1106|       |
 1107|  54.6k|    return IGRAPH_SUCCESS;
 1108|  54.6k|}

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

igraph_vector_init:
  134|  31.9k|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  31.9k|    igraph_int_t alloc_size;
  136|  31.9k|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  31.9k|    do { \
  |  |  925|  31.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  31.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  31.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  137|  31.9k|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 10.5k, False: 21.4k]
  ------------------
  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|  31.9k|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  31.9k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  63.8k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 31.9k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 31.9k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 31.9k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  31.9k|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  31.9k|    do { \
  |  |  710|  31.9k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  31.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  31.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  145|  31.9k|    v->stor_end = v->stor_begin + alloc_size;
  146|  31.9k|    v->end = v->stor_begin + size;
  147|       |
  148|  31.9k|    return IGRAPH_SUCCESS;
  149|  31.9k|}
igraph_vector_destroy:
  408|  31.9k|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  31.9k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  31.9k|    do { \
  |  |  925|  31.9k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  31.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  31.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 31.9k]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  31.9k|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 31.9k, False: 0]
  ------------------
  413|  31.9k|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  31.9k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  31.9k|    }
  416|  31.9k|}
igraph_vector_capacity:
  436|   231k|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|   231k|    return v->stor_end - v->stor_begin;
  438|   231k|}
igraph_vector_reserve:
  468|   219k|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|   219k|    igraph_int_t current_capacity;
  470|   219k|    BASE *tmp;
  ------------------
  |  |   29|   219k|    #define BASE igraph_real_t
  ------------------
  471|       |
  472|   219k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   219k|    do { \
  |  |  925|   219k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   219k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 219k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   219k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 219k]
  |  |  ------------------
  ------------------
  473|   219k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   219k|    do { \
  |  |  925|   219k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   219k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 219k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   219k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 219k]
  |  |  ------------------
  ------------------
  474|   219k|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|   219k|    do { \
  |  |  925|   219k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   219k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 219k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   219k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 219k]
  |  |  ------------------
  ------------------
  475|       |
  476|   219k|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  173|   219k|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|   219k|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|   219k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|   219k|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 196k, False: 23.0k]
  ------------------
  479|   196k|        return IGRAPH_SUCCESS;
  480|   196k|    }
  481|       |
  482|  23.0k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|  23.0k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  46.0k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 23.0k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 23.0k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 23.0k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|  23.0k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|  23.0k|    do { \
  |  |  710|  23.0k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  23.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 23.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  23.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 23.0k]
  |  |  ------------------
  ------------------
  484|       |
  485|  23.0k|    v->end = tmp + (v->end - v->stor_begin);
  486|  23.0k|    v->stor_begin = tmp;
  487|  23.0k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|  23.0k|    return IGRAPH_SUCCESS;
  490|  23.0k|}
igraph_vector_size:
  522|   249k|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|   249k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   249k|    do { \
  |  |  925|   249k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   249k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 249k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   249k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 249k]
  |  |  ------------------
  ------------------
  524|   249k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   249k|    do { \
  |  |  925|   249k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   249k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 249k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   249k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 249k]
  |  |  ------------------
  ------------------
  525|   249k|    return v->end - v->stor_begin;
  526|   249k|}
igraph_vector_clear:
  542|   189k|void FUNCTION(igraph_vector, clear)(TYPE(igraph_vector)* v) {
  543|   189k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   189k|    do { \
  |  |  925|   189k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   189k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 189k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   189k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 189k]
  |  |  ------------------
  ------------------
  544|   189k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   189k|    do { \
  |  |  925|   189k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   189k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 189k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   189k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 189k]
  |  |  ------------------
  ------------------
  545|   189k|    v->end = v->stor_begin;
  546|   189k|}
igraph_vector_push_back:
  573|   693k|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|   693k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   693k|    do { \
  |  |  925|   693k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   693k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 693k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   693k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 693k]
  |  |  ------------------
  ------------------
  575|   693k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   693k|    do { \
  |  |  925|   693k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   693k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 693k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   693k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 693k]
  |  |  ------------------
  ------------------
  576|       |
  577|   693k|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 13.5k, False: 680k]
  ------------------
  578|       |        /* full, allocate more storage */
  579|  13.5k|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  173|  13.5k|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|  13.5k|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|  13.5k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|  13.5k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  13.5k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  13.5k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (580:33): [True: 13.5k, False: 0]
  ------------------
  581|  13.5k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|  13.5k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (581:13): [True: 0, False: 13.5k]
  ------------------
  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|  13.5k|        if (new_size == 0) {
  ------------------
  |  Branch (584:13): [True: 0, False: 13.5k]
  ------------------
  585|      0|            new_size = 1;
  586|      0|        }
  587|  13.5k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|  13.5k|    do { \
  |  |  657|  13.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  13.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.5k]
  |  |  ------------------
  ------------------
  588|  13.5k|    }
  589|       |
  590|   693k|    *(v->end) = e;
  591|   693k|    v->end += 1;
  592|       |
  593|   693k|    return IGRAPH_SUCCESS;
  594|   693k|}
igraph_vector_sort:
  958|     27|void FUNCTION(igraph_vector, sort)(TYPE(igraph_vector) *v) {
  959|     27|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|     27|    do { \
  |  |  925|     27|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
  960|     27|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|     27|    do { \
  |  |  925|     27|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
  961|     27|    igraph_qsort(v->stor_begin, FUNCTION(igraph_vector, size)(v),
  ------------------
  |  |  173|     27|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|     27|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|     27|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  962|     27|                 sizeof(BASE), FUNCTION(igraph_vector, sort_cmp));
  ------------------
  |  |  173|     27|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|     27|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|     27|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|     27|}
igraph_vector_resize:
 1264|   200k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   200k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   200k|    do { \
  |  |  925|   200k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   200k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 200k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   200k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 200k]
  |  |  ------------------
  ------------------
 1266|   200k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   200k|    do { \
  |  |  925|   200k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   200k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 200k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   200k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 200k]
  |  |  ------------------
  ------------------
 1267|   200k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   200k|    do { \
  |  |  657|   200k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   200k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   200k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 200k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   200k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 200k]
  |  |  ------------------
  ------------------
 1268|   200k|    v->end = v->stor_begin + new_size;
 1269|   200k|    return IGRAPH_SUCCESS;
 1270|   200k|}
igraph_vector_init_copy:
 1538|     27|) {
 1539|     27|    igraph_int_t from_size;
 1540|       |
 1541|     27|    IGRAPH_ASSERT(from != NULL);
  ------------------
  |  |  924|     27|    do { \
  |  |  925|     27|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
 1542|     27|    IGRAPH_ASSERT(from->stor_begin != NULL);
  ------------------
  |  |  924|     27|    do { \
  |  |  925|     27|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
 1543|       |
 1544|     27|    from_size = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  173|     27|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|     27|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|     27|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1545|     27|    IGRAPH_CHECK(FUNCTION(igraph_vector, init)(to, from_size));
  ------------------
  |  |  656|     27|    do { \
  |  |  657|     27|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     27|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
 1546|       |
 1547|     27|    memcpy(to->stor_begin, from->stor_begin, from_size * sizeof(BASE));
 1548|       |
 1549|     27|    return IGRAPH_SUCCESS;
 1550|     27|}
igraph_vector_append:
 2432|  5.96k|                                               const TYPE(igraph_vector) *from) {
 2433|  5.96k|    IGRAPH_ASSERT(to != NULL);
  ------------------
  |  |  924|  5.96k|    do { \
  |  |  925|  5.96k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  5.96k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.96k]
  |  |  ------------------
  ------------------
 2434|  5.96k|    IGRAPH_ASSERT(to->stor_begin != NULL);
  ------------------
  |  |  924|  5.96k|    do { \
  |  |  925|  5.96k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  5.96k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  5.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 5.96k]
  |  |  ------------------
  ------------------
 2435|       |
 2436|  5.96k|    const igraph_int_t to_size = FUNCTION(igraph_vector, size)(to);
  ------------------
  |  |  173|  5.96k|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|  5.96k|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|  5.96k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2437|  5.96k|    const igraph_int_t from_size = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  173|  5.96k|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|  5.96k|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|  5.96k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2438|  5.96k|    const igraph_int_t to_capacity = FUNCTION(igraph_vector, capacity)(to);
  ------------------
  |  |  173|  5.96k|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|  5.96k|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|  5.96k|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2439|  5.96k|    igraph_int_t new_to_size;
 2440|       |
 2441|  5.96k|    IGRAPH_SAFE_ADD(to_size, from_size, &new_to_size);
  ------------------
  |  |   47|  5.96k|    do { \
  |  |   48|  5.96k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  5.96k|        igraph_int_t _safe_sum; \
  |  |   50|  5.96k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 5.96k]
  |  |  ------------------
  |  |   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|  5.96k|        *(res) = _safe_sum; \
  |  |   54|  5.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 5.96k]
  |  |  ------------------
  ------------------
 2442|       |
 2443|  5.96k|    if (to_capacity < new_to_size) {
  ------------------
  |  Branch (2443:9): [True: 4.61k, False: 1.35k]
  ------------------
 2444|  4.61k|        igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  4.61k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  4.61k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (2444:40): [True: 4.61k, False: 0]
  ------------------
 2445|  4.61k|        if (new_to_capacity < new_to_size) {
  ------------------
  |  Branch (2445:13): [True: 3.69k, False: 923]
  ------------------
 2446|  3.69k|            new_to_capacity = new_to_size;
 2447|  3.69k|        }
 2448|  4.61k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(to, new_to_capacity));
  ------------------
  |  |  656|  4.61k|    do { \
  |  |  657|  4.61k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  4.61k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  4.61k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.61k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  4.61k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 4.61k]
  |  |  ------------------
  ------------------
 2449|  4.61k|    }
 2450|       |
 2451|  5.96k|    memcpy(to->stor_begin + to_size, from->stor_begin,
 2452|  5.96k|           sizeof(BASE) * from_size);
 2453|  5.96k|    to->end = to->stor_begin + new_to_size;
 2454|       |
 2455|  5.96k|    return IGRAPH_SUCCESS;
 2456|  5.96k|}
igraph_vector_update:
 2529|    289|                                    const TYPE(igraph_vector) *from) {
 2530|    289|    igraph_int_t n = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  173|    289|        #define FUNCTION(a,c) CONCAT2(a,c)
  |  |  ------------------
  |  |  |  |   20|    289|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|    289|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2531|    289|    IGRAPH_CHECK(FUNCTION(igraph_vector, resize)(to, n));
  ------------------
  |  |  656|    289|    do { \
  |  |  657|    289|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    289|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    289|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 289]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    289|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 289]
  |  |  ------------------
  ------------------
 2532|    289|    memcpy(to->stor_begin, from->stor_begin, sizeof(BASE)*n);
 2533|    289|    return IGRAPH_SUCCESS;
 2534|    289|}
igraph_vector_swap:
 2546|    275|void FUNCTION(igraph_vector, swap)(TYPE(igraph_vector) *v1, TYPE(igraph_vector) *v2) {
 2547|       |
 2548|    275|    TYPE(igraph_vector) tmp;
  ------------------
  |  |  174|    275|        #define TYPE(a) CONCAT2(a,t)
  |  |  ------------------
  |  |  |  |   20|    275|#define CONCAT2(a,b) CONCAT2x(a,b)
  |  |  |  |  ------------------
  |  |  |  |  |  |   19|    275|#define CONCAT2x(a,b) a ## _ ## b
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2549|       |
 2550|    275|    tmp = *v1;
 2551|    275|    *v1 = *v2;
 2552|    275|    *v2 = tmp;
 2553|    275|}
igraph_vector_char_init:
  134|  1.46M|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  1.46M|    igraph_int_t alloc_size;
  136|  1.46M|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  1.46M|    do { \
  |  |  925|  1.46M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.46M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.46M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.46M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.46M]
  |  |  ------------------
  ------------------
  137|  1.46M|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 1.43M, False: 31.0k]
  ------------------
  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.46M|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  1.46M|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  2.93M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 1.46M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 1.46M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 1.46M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.46M|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  1.46M|    do { \
  |  |  710|  1.46M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.46M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.46M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.46M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.46M]
  |  |  ------------------
  ------------------
  145|  1.46M|    v->stor_end = v->stor_begin + alloc_size;
  146|  1.46M|    v->end = v->stor_begin + size;
  147|       |
  148|  1.46M|    return IGRAPH_SUCCESS;
  149|  1.46M|}
igraph_vector_char_view:
  182|  31.3M|        const BASE *data, igraph_int_t length) {
  183|       |
  184|  31.3M|    static const BASE dummy = ZERO;
  ------------------
  |  |   48|  31.3M|    #define ZERO 0
  ------------------
  185|  31.3M|    TYPE(igraph_vector) v;
  ------------------
  |  |  182|  31.3M|        #define TYPE(a) CONCAT3(a,SHORT,t)
  |  |  ------------------
  |  |  |  |   22|  31.3M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  31.3M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|       |    /* When the length is zero, we allow 'data' to be NULL.
  188|       |     * An igraph_vector_t may never contain a NULL pointer,
  189|       |     * thus we use a pointer to a dummy variable in this case. */
  190|  31.3M|    if (length == 0) {
  ------------------
  |  Branch (190:9): [True: 195, False: 31.3M]
  ------------------
  191|    195|        data = &dummy;
  192|  31.3M|    } else {
  193|  31.3M|        IGRAPH_ASSERT(data != NULL);
  ------------------
  |  |  924|  31.3M|    do { \
  |  |  925|  31.3M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  31.3M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  31.3M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 31.3M]
  |  |  ------------------
  ------------------
  194|  31.3M|    }
  195|       |
  196|  31.3M|    v.stor_begin = (BASE*)data;
  197|  31.3M|    v.stor_end = (BASE*)data + length;
  198|  31.3M|    v.end = v.stor_end;
  199|  31.3M|    return v;
  200|  31.3M|}
igraph_vector_char_destroy:
  408|  1.46M|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  1.46M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.46M|    do { \
  |  |  925|  1.46M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.46M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.46M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.46M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.46M]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  1.46M|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 1.46M, False: 0]
  ------------------
  413|  1.46M|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  1.46M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  1.46M|    }
  416|  1.46M|}
igraph_vector_char_capacity:
  436|  32.6M|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|  32.6M|    return v->stor_end - v->stor_begin;
  438|  32.6M|}
igraph_vector_char_reserve:
  468|  1.29M|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|  1.29M|    igraph_int_t current_capacity;
  470|  1.29M|    BASE *tmp;
  ------------------
  |  |   43|  1.29M|    #define BASE char
  ------------------
  471|       |
  472|  1.29M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.29M|    do { \
  |  |  925|  1.29M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.29M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.29M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.29M]
  |  |  ------------------
  ------------------
  473|  1.29M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.29M|    do { \
  |  |  925|  1.29M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.29M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.29M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.29M]
  |  |  ------------------
  ------------------
  474|  1.29M|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  1.29M|    do { \
  |  |  925|  1.29M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.29M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.29M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.29M]
  |  |  ------------------
  ------------------
  475|       |
  476|  1.29M|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  181|  1.29M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  1.29M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  1.29M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|  1.29M|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 706k, False: 587k]
  ------------------
  479|   706k|        return IGRAPH_SUCCESS;
  480|   706k|    }
  481|       |
  482|   587k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|   587k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  1.17M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 587k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 587k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 587k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|   587k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|   587k|    do { \
  |  |  710|   587k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   587k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 587k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   587k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 587k]
  |  |  ------------------
  ------------------
  484|       |
  485|   587k|    v->end = tmp + (v->end - v->stor_begin);
  486|   587k|    v->stor_begin = tmp;
  487|   587k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|   587k|    return IGRAPH_SUCCESS;
  490|   587k|}
igraph_vector_char_size:
  522|  63.5M|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|  63.5M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  63.5M|    do { \
  |  |  925|  63.5M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  63.5M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 63.5M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  63.5M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 63.5M]
  |  |  ------------------
  ------------------
  524|  63.5M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  63.5M|    do { \
  |  |  925|  63.5M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  63.5M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 63.5M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  63.5M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 63.5M]
  |  |  ------------------
  ------------------
  525|  63.5M|    return v->end - v->stor_begin;
  526|  63.5M|}
igraph_vector_char_clear:
  542|   689k|void FUNCTION(igraph_vector, clear)(TYPE(igraph_vector)* v) {
  543|   689k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   689k|    do { \
  |  |  925|   689k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   689k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 689k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   689k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 689k]
  |  |  ------------------
  ------------------
  544|   689k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   689k|    do { \
  |  |  925|   689k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   689k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 689k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   689k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 689k]
  |  |  ------------------
  ------------------
  545|   689k|    v->end = v->stor_begin;
  546|   689k|}
igraph_vector_char_push_back:
  573|  1.29M|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|  1.29M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.29M|    do { \
  |  |  925|  1.29M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.29M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.29M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.29M]
  |  |  ------------------
  ------------------
  575|  1.29M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.29M|    do { \
  |  |  925|  1.29M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.29M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.29M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.29M]
  |  |  ------------------
  ------------------
  576|       |
  577|  1.29M|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 568k, False: 725k]
  ------------------
  578|       |        /* full, allocate more storage */
  579|   568k|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  181|   568k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   568k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   568k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|   568k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   568k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   568k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (580:33): [True: 568k, False: 0]
  ------------------
  581|   568k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|   568k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (581:13): [True: 0, False: 568k]
  ------------------
  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|   568k|        if (new_size == 0) {
  ------------------
  |  Branch (584:13): [True: 0, False: 568k]
  ------------------
  585|      0|            new_size = 1;
  586|      0|        }
  587|   568k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   568k|    do { \
  |  |  657|   568k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   568k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   568k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 568k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   568k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 568k]
  |  |  ------------------
  ------------------
  588|   568k|    }
  589|       |
  590|  1.29M|    *(v->end) = e;
  591|  1.29M|    v->end += 1;
  592|       |
  593|  1.29M|    return IGRAPH_SUCCESS;
  594|  1.29M|}
igraph_vector_char_resize:
 1264|   716k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   716k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   716k|    do { \
  |  |  925|   716k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1266|   716k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   716k|    do { \
  |  |  925|   716k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1267|   716k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   716k|    do { \
  |  |  657|   716k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   716k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1268|   716k|    v->end = v->stor_begin + new_size;
 1269|   716k|    return IGRAPH_SUCCESS;
 1270|   716k|}
igraph_vector_char_append:
 2432|  31.3M|                                               const TYPE(igraph_vector) *from) {
 2433|  31.3M|    IGRAPH_ASSERT(to != NULL);
  ------------------
  |  |  924|  31.3M|    do { \
  |  |  925|  31.3M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  31.3M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  31.3M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 31.3M]
  |  |  ------------------
  ------------------
 2434|  31.3M|    IGRAPH_ASSERT(to->stor_begin != NULL);
  ------------------
  |  |  924|  31.3M|    do { \
  |  |  925|  31.3M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  31.3M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  31.3M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 31.3M]
  |  |  ------------------
  ------------------
 2435|       |
 2436|  31.3M|    const igraph_int_t to_size = FUNCTION(igraph_vector, size)(to);
  ------------------
  |  |  181|  31.3M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  31.3M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  31.3M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2437|  31.3M|    const igraph_int_t from_size = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  181|  31.3M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  31.3M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  31.3M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2438|  31.3M|    const igraph_int_t to_capacity = FUNCTION(igraph_vector, capacity)(to);
  ------------------
  |  |  181|  31.3M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  31.3M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  31.3M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2439|  31.3M|    igraph_int_t new_to_size;
 2440|       |
 2441|  31.3M|    IGRAPH_SAFE_ADD(to_size, from_size, &new_to_size);
  ------------------
  |  |   47|  31.3M|    do { \
  |  |   48|  31.3M|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  31.3M|        igraph_int_t _safe_sum; \
  |  |   50|  31.3M|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 31.3M]
  |  |  ------------------
  |  |   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|  31.3M|        *(res) = _safe_sum; \
  |  |   54|  31.3M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 31.3M]
  |  |  ------------------
  ------------------
 2442|       |
 2443|  31.3M|    if (to_capacity < new_to_size) {
  ------------------
  |  Branch (2443:9): [True: 9.53k, False: 31.3M]
  ------------------
 2444|  9.53k|        igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  9.53k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  9.53k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (2444:40): [True: 9.53k, False: 0]
  ------------------
 2445|  9.53k|        if (new_to_capacity < new_to_size) {
  ------------------
  |  Branch (2445:13): [True: 3.09k, False: 6.44k]
  ------------------
 2446|  3.09k|            new_to_capacity = new_to_size;
 2447|  3.09k|        }
 2448|  9.53k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(to, new_to_capacity));
  ------------------
  |  |  656|  9.53k|    do { \
  |  |  657|  9.53k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.53k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.53k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.53k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.53k]
  |  |  ------------------
  ------------------
 2449|  9.53k|    }
 2450|       |
 2451|  31.3M|    memcpy(to->stor_begin + to_size, from->stor_begin,
 2452|  31.3M|           sizeof(BASE) * from_size);
 2453|  31.3M|    to->end = to->stor_begin + new_to_size;
 2454|       |
 2455|  31.3M|    return IGRAPH_SUCCESS;
 2456|  31.3M|}
igraph_vector_bool_init:
  134|  15.8k|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  15.8k|    igraph_int_t alloc_size;
  136|  15.8k|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  15.8k|    do { \
  |  |  925|  15.8k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  15.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  15.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 15.8k]
  |  |  ------------------
  ------------------
  137|  15.8k|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 6.79k, False: 9.10k]
  ------------------
  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|  15.8k|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  15.8k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  31.7k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 15.8k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 15.8k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 15.8k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  15.8k|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  15.8k|    do { \
  |  |  710|  15.8k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  15.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  15.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 15.8k]
  |  |  ------------------
  ------------------
  145|  15.8k|    v->stor_end = v->stor_begin + alloc_size;
  146|  15.8k|    v->end = v->stor_begin + size;
  147|       |
  148|  15.8k|    return IGRAPH_SUCCESS;
  149|  15.8k|}
igraph_vector_bool_destroy:
  408|  15.8k|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  15.8k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  15.8k|    do { \
  |  |  925|  15.8k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  15.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 15.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  15.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 15.8k]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  15.8k|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 15.8k, False: 0]
  ------------------
  413|  15.8k|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  15.8k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  15.8k|    }
  416|  15.8k|}
igraph_vector_bool_capacity:
  436|   259k|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|   259k|    return v->stor_end - v->stor_begin;
  438|   259k|}
igraph_vector_bool_reserve:
  468|   207k|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|   207k|    igraph_int_t current_capacity;
  470|   207k|    BASE *tmp;
  ------------------
  |  |   53|   207k|    #define BASE igraph_bool_t
  ------------------
  471|       |
  472|   207k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   207k|    do { \
  |  |  925|   207k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   207k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 207k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   207k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 207k]
  |  |  ------------------
  ------------------
  473|   207k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   207k|    do { \
  |  |  925|   207k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   207k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 207k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   207k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 207k]
  |  |  ------------------
  ------------------
  474|   207k|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|   207k|    do { \
  |  |  925|   207k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   207k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 207k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   207k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 207k]
  |  |  ------------------
  ------------------
  475|       |
  476|   207k|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  178|   207k|        #define FUNCTION(a,c) CONCAT3x(a,bool,c)
  |  |  ------------------
  |  |  |  |   21|   207k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  ------------------
  ------------------
  477|       |
  478|   207k|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 202k, False: 4.82k]
  ------------------
  479|   202k|        return IGRAPH_SUCCESS;
  480|   202k|    }
  481|       |
  482|  4.82k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|  4.82k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  9.64k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 4.82k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 4.82k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 4.82k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|  4.82k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|  4.82k|    do { \
  |  |  710|  4.82k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  4.82k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.82k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  4.82k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 4.82k]
  |  |  ------------------
  ------------------
  484|       |
  485|  4.82k|    v->end = tmp + (v->end - v->stor_begin);
  486|  4.82k|    v->stor_begin = tmp;
  487|  4.82k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|  4.82k|    return IGRAPH_SUCCESS;
  490|  4.82k|}
igraph_vector_bool_size:
  522|   265k|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|   265k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   265k|    do { \
  |  |  925|   265k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   265k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 265k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   265k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 265k]
  |  |  ------------------
  ------------------
  524|   265k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   265k|    do { \
  |  |  925|   265k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   265k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 265k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   265k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 265k]
  |  |  ------------------
  ------------------
  525|   265k|    return v->end - v->stor_begin;
  526|   265k|}
igraph_vector_bool_clear:
  542|   150k|void FUNCTION(igraph_vector, clear)(TYPE(igraph_vector)* v) {
  543|   150k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   150k|    do { \
  |  |  925|   150k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   150k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  544|   150k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   150k|    do { \
  |  |  925|   150k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   150k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 150k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   150k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 150k]
  |  |  ------------------
  ------------------
  545|   150k|    v->end = v->stor_begin;
  546|   150k|}
igraph_vector_bool_push_back:
  573|    419|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|    419|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|    419|    do { \
  |  |  925|    419|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|    419|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 419]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|    419|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 419]
  |  |  ------------------
  ------------------
  575|    419|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|    419|    do { \
  |  |  925|    419|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|    419|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 419]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|    419|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 419]
  |  |  ------------------
  ------------------
  576|       |
  577|    419|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 0, False: 419]
  ------------------
  578|       |        /* full, allocate more storage */
  579|      0|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  178|      0|        #define FUNCTION(a,c) CONCAT3x(a,bool,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|    419|    *(v->end) = e;
  591|    419|    v->end += 1;
  592|       |
  593|    419|    return IGRAPH_SUCCESS;
  594|    419|}
igraph_vector_bool_resize:
 1264|   202k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   202k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   202k|    do { \
  |  |  925|   202k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   202k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 202k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   202k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 202k]
  |  |  ------------------
  ------------------
 1266|   202k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   202k|    do { \
  |  |  925|   202k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   202k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 202k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   202k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 202k]
  |  |  ------------------
  ------------------
 1267|   202k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   202k|    do { \
  |  |  657|   202k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   202k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   202k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 202k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   202k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 202k]
  |  |  ------------------
  ------------------
 1268|   202k|    v->end = v->stor_begin + new_size;
 1269|   202k|    return IGRAPH_SUCCESS;
 1270|   202k|}
igraph_vector_bool_append:
 2432|  2.57k|                                               const TYPE(igraph_vector) *from) {
 2433|  2.57k|    IGRAPH_ASSERT(to != NULL);
  ------------------
  |  |  924|  2.57k|    do { \
  |  |  925|  2.57k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.57k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.57k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.57k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.57k]
  |  |  ------------------
  ------------------
 2434|  2.57k|    IGRAPH_ASSERT(to->stor_begin != NULL);
  ------------------
  |  |  924|  2.57k|    do { \
  |  |  925|  2.57k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.57k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.57k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.57k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.57k]
  |  |  ------------------
  ------------------
 2435|       |
 2436|  2.57k|    const igraph_int_t to_size = FUNCTION(igraph_vector, size)(to);
  ------------------
  |  |  178|  2.57k|        #define FUNCTION(a,c) CONCAT3x(a,bool,c)
  |  |  ------------------
  |  |  |  |   21|  2.57k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  ------------------
  ------------------
 2437|  2.57k|    const igraph_int_t from_size = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  178|  2.57k|        #define FUNCTION(a,c) CONCAT3x(a,bool,c)
  |  |  ------------------
  |  |  |  |   21|  2.57k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  ------------------
  ------------------
 2438|  2.57k|    const igraph_int_t to_capacity = FUNCTION(igraph_vector, capacity)(to);
  ------------------
  |  |  178|  2.57k|        #define FUNCTION(a,c) CONCAT3x(a,bool,c)
  |  |  ------------------
  |  |  |  |   21|  2.57k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  ------------------
  ------------------
 2439|  2.57k|    igraph_int_t new_to_size;
 2440|       |
 2441|  2.57k|    IGRAPH_SAFE_ADD(to_size, from_size, &new_to_size);
  ------------------
  |  |   47|  2.57k|    do { \
  |  |   48|  2.57k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  2.57k|        igraph_int_t _safe_sum; \
  |  |   50|  2.57k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 2.57k]
  |  |  ------------------
  |  |   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|  2.57k|        *(res) = _safe_sum; \
  |  |   54|  2.57k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 2.57k]
  |  |  ------------------
  ------------------
 2442|       |
 2443|  2.57k|    if (to_capacity < new_to_size) {
  ------------------
  |  Branch (2443:9): [True: 1.47k, False: 1.09k]
  ------------------
 2444|  1.47k|        igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  1.47k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  1.47k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (2444:40): [True: 1.47k, False: 0]
  ------------------
 2445|  1.47k|        if (new_to_capacity < new_to_size) {
  ------------------
  |  Branch (2445:13): [True: 1.26k, False: 213]
  ------------------
 2446|  1.26k|            new_to_capacity = new_to_size;
 2447|  1.26k|        }
 2448|  1.47k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(to, new_to_capacity));
  ------------------
  |  |  656|  1.47k|    do { \
  |  |  657|  1.47k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.47k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.47k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.47k]
  |  |  ------------------
  ------------------
 2449|  1.47k|    }
 2450|       |
 2451|  2.57k|    memcpy(to->stor_begin + to_size, from->stor_begin,
 2452|  2.57k|           sizeof(BASE) * from_size);
 2453|  2.57k|    to->end = to->stor_begin + new_to_size;
 2454|       |
 2455|  2.57k|    return IGRAPH_SUCCESS;
 2456|  2.57k|}
igraph_vector_bool_update:
 2529|    274|                                    const TYPE(igraph_vector) *from) {
 2530|    274|    igraph_int_t n = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  178|    274|        #define FUNCTION(a,c) CONCAT3x(a,bool,c)
  |  |  ------------------
  |  |  |  |   21|    274|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  ------------------
  ------------------
 2531|    274|    IGRAPH_CHECK(FUNCTION(igraph_vector, resize)(to, n));
  ------------------
  |  |  656|    274|    do { \
  |  |  657|    274|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    274|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    274|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 274]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    274|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 274]
  |  |  ------------------
  ------------------
 2532|    274|    memcpy(to->stor_begin, from->stor_begin, sizeof(BASE)*n);
 2533|    274|    return IGRAPH_SUCCESS;
 2534|    274|}
igraph_vector_int_init:
  134|  1.90M|igraph_error_t FUNCTION(igraph_vector, init)(TYPE(igraph_vector) *v, igraph_int_t size) {
  135|  1.90M|    igraph_int_t alloc_size;
  136|  1.90M|    IGRAPH_ASSERT(size >= 0);
  ------------------
  |  |  924|  1.90M|    do { \
  |  |  925|  1.90M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.90M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.90M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.90M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.90M]
  |  |  ------------------
  ------------------
  137|  1.90M|    alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (137:18): [True: 1.55M, False: 348k]
  ------------------
  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.90M|    v->stor_begin = IGRAPH_CALLOC(alloc_size, BASE);
  ------------------
  |  |   33|  1.90M|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  3.80M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 1.90M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 1.90M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 1.90M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  1.90M|    IGRAPH_CHECK_OOM(v->stor_begin, "Insufficient memory to initialize vector.");
  ------------------
  |  |  709|  1.90M|    do { \
  |  |  710|  1.90M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.90M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.90M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.90M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.90M]
  |  |  ------------------
  ------------------
  145|  1.90M|    v->stor_end = v->stor_begin + alloc_size;
  146|  1.90M|    v->end = v->stor_begin + size;
  147|       |
  148|  1.90M|    return IGRAPH_SUCCESS;
  149|  1.90M|}
igraph_vector_int_destroy:
  408|  1.90M|void FUNCTION(igraph_vector, destroy)(TYPE(igraph_vector) *v) {
  409|  1.90M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.90M|    do { \
  |  |  925|  1.90M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.90M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.90M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.90M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.90M]
  |  |  ------------------
  ------------------
  410|       |    /* vector_init() will leave stor_begin set to NULL when it fails.
  411|       |     * We handle these cases gracefully. */
  412|  1.90M|    if (v->stor_begin != NULL) {
  ------------------
  |  Branch (412:9): [True: 1.90M, False: 0]
  ------------------
  413|  1.90M|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  1.90M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  414|       |        v->stor_begin = NULL;
  415|  1.90M|    }
  416|  1.90M|}
igraph_vector_int_capacity:
  436|  1.10M|igraph_int_t FUNCTION(igraph_vector, capacity)(const TYPE(igraph_vector) *v) {
  437|  1.10M|    return v->stor_end - v->stor_begin;
  438|  1.10M|}
igraph_vector_int_reserve:
  468|  1.09M|igraph_error_t FUNCTION(igraph_vector, reserve)(TYPE(igraph_vector) *v, igraph_int_t capacity) {
  469|  1.09M|    igraph_int_t current_capacity;
  470|  1.09M|    BASE *tmp;
  ------------------
  |  |   69|  1.09M|    #define BASE igraph_int_t
  ------------------
  471|       |
  472|  1.09M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.09M|    do { \
  |  |  925|  1.09M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.09M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.09M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.09M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.09M]
  |  |  ------------------
  ------------------
  473|  1.09M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.09M|    do { \
  |  |  925|  1.09M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.09M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.09M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.09M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.09M]
  |  |  ------------------
  ------------------
  474|  1.09M|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  1.09M|    do { \
  |  |  925|  1.09M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.09M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.09M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.09M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.09M]
  |  |  ------------------
  ------------------
  475|       |
  476|  1.09M|    current_capacity = FUNCTION(igraph_vector, capacity)(v);
  ------------------
  |  |  181|  1.09M|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  1.09M|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  1.09M|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|  1.09M|    if (capacity <= current_capacity) {
  ------------------
  |  Branch (478:9): [True: 334k, False: 764k]
  ------------------
  479|   334k|        return IGRAPH_SUCCESS;
  480|   334k|    }
  481|       |
  482|   764k|    tmp = IGRAPH_REALLOC(v->stor_begin, capacity, BASE);
  ------------------
  |  |   35|   764k|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  1.52M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 764k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 764k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 764k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|   764k|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for vector.");
  ------------------
  |  |  709|   764k|    do { \
  |  |  710|   764k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   764k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 764k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   764k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 764k]
  |  |  ------------------
  ------------------
  484|       |
  485|   764k|    v->end = tmp + (v->end - v->stor_begin);
  486|   764k|    v->stor_begin = tmp;
  487|   764k|    v->stor_end = v->stor_begin + capacity;
  488|       |
  489|   764k|    return IGRAPH_SUCCESS;
  490|   764k|}
igraph_vector_int_empty:
  503|   355k|igraph_bool_t FUNCTION(igraph_vector, empty)(const TYPE(igraph_vector) *v) {
  504|   355k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   355k|    do { \
  |  |  925|   355k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   355k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 355k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   355k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 355k]
  |  |  ------------------
  ------------------
  505|   355k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   355k|    do { \
  |  |  925|   355k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   355k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 355k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   355k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 355k]
  |  |  ------------------
  ------------------
  506|   355k|    return v->stor_begin == v->end;
  507|   355k|}
igraph_vector_int_size:
  522|  6.32M|igraph_int_t FUNCTION(igraph_vector, size)(const TYPE(igraph_vector) *v) {
  523|  6.32M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  6.32M|    do { \
  |  |  925|  6.32M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  6.32M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.32M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  6.32M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 6.32M]
  |  |  ------------------
  ------------------
  524|  6.32M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  6.32M|    do { \
  |  |  925|  6.32M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  6.32M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.32M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  6.32M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 6.32M]
  |  |  ------------------
  ------------------
  525|  6.32M|    return v->end - v->stor_begin;
  526|  6.32M|}
igraph_vector_int_push_back:
  573|  8.33M|igraph_error_t FUNCTION(igraph_vector, push_back)(TYPE(igraph_vector) *v, BASE e) {
  574|  8.33M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  8.33M|    do { \
  |  |  925|  8.33M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.33M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.33M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.33M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.33M]
  |  |  ------------------
  ------------------
  575|  8.33M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  8.33M|    do { \
  |  |  925|  8.33M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.33M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.33M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.33M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.33M]
  |  |  ------------------
  ------------------
  576|       |
  577|  8.33M|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (577:9): [True: 665k, False: 7.66M]
  ------------------
  578|       |        /* full, allocate more storage */
  579|   665k|        igraph_int_t old_size = FUNCTION(igraph_vector, size)(v);
  ------------------
  |  |  181|   665k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|   665k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|   665k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  580|   665k|        igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   665k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_size = old_size < IGRAPH_INTEGER_MAX/2 ? old_size * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|   665k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (580:33): [True: 665k, False: 0]
  ------------------
  581|   665k|        if (old_size == IGRAPH_INTEGER_MAX) {
  ------------------
  |  |   74|   665k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (581:13): [True: 0, False: 665k]
  ------------------
  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|   665k|        if (new_size == 0) {
  ------------------
  |  Branch (584:13): [True: 0, False: 665k]
  ------------------
  585|      0|            new_size = 1;
  586|      0|        }
  587|   665k|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   665k|    do { \
  |  |  657|   665k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   665k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   665k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 665k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   665k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 665k]
  |  |  ------------------
  ------------------
  588|   665k|    }
  589|       |
  590|  8.33M|    *(v->end) = e;
  591|  8.33M|    v->end += 1;
  592|       |
  593|  8.33M|    return IGRAPH_SUCCESS;
  594|  8.33M|}
igraph_vector_int_null:
  725|  78.1k|void FUNCTION(igraph_vector, null)(TYPE(igraph_vector) *v) {
  726|  78.1k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  78.1k|    do { \
  |  |  925|  78.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  78.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 78.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  78.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 78.1k]
  |  |  ------------------
  ------------------
  727|  78.1k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  78.1k|    do { \
  |  |  925|  78.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  78.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 78.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  78.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 78.1k]
  |  |  ------------------
  ------------------
  728|  78.1k|    if (FUNCTION(igraph_vector, size)(v) > 0) {
  ------------------
  |  |  181|  78.1k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  78.1k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  78.1k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (728:9): [True: 67.2k, False: 10.9k]
  ------------------
  729|  67.2k|        memset(v->stor_begin, 0, sizeof(BASE) * FUNCTION(igraph_vector, size)(v));
  ------------------
  |  |  181|  67.2k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  67.2k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  67.2k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  730|  67.2k|    }
  731|  78.1k|}
igraph_vector_int_pop_back:
  838|   350k|BASE FUNCTION(igraph_vector, pop_back)(TYPE(igraph_vector) *v) {
  839|   350k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   350k|    do { \
  |  |  925|   350k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   350k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 350k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   350k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 350k]
  |  |  ------------------
  ------------------
  840|   350k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   350k|    do { \
  |  |  925|   350k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   350k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 350k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   350k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 350k]
  |  |  ------------------
  ------------------
  841|   350k|    IGRAPH_ASSERT(v->end != NULL);
  ------------------
  |  |  924|   350k|    do { \
  |  |  925|   350k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   350k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 350k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   350k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 350k]
  |  |  ------------------
  ------------------
  842|   350k|    IGRAPH_ASSERT(v->end != v->stor_begin);
  ------------------
  |  |  924|   350k|    do { \
  |  |  925|   350k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   350k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 350k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   350k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 350k]
  |  |  ------------------
  ------------------
  843|       |
  844|   350k|    (v->end)--;
  845|       |
  846|   350k|    return *(v->end);
  847|   350k|}
igraph_vector_int_resize:
 1264|   303k|igraph_error_t FUNCTION(igraph_vector, resize)(TYPE(igraph_vector)* v, igraph_int_t new_size) {
 1265|   303k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|   303k|    do { \
  |  |  925|   303k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   303k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 303k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   303k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 303k]
  |  |  ------------------
  ------------------
 1266|   303k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|   303k|    do { \
  |  |  925|   303k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   303k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 303k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   303k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 303k]
  |  |  ------------------
  ------------------
 1267|   303k|    IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(v, new_size));
  ------------------
  |  |  656|   303k|    do { \
  |  |  657|   303k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   303k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   303k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 303k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   303k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 303k]
  |  |  ------------------
  ------------------
 1268|   303k|    v->end = v->stor_begin + new_size;
 1269|   303k|    return IGRAPH_SUCCESS;
 1270|   303k|}
igraph_vector_int_max:
 1327|  2.33k|BASE FUNCTION(igraph_vector, max)(const TYPE(igraph_vector) *v) {
 1328|  2.33k|    BASE max;
  ------------------
  |  |   69|  2.33k|    #define BASE igraph_int_t
  ------------------
 1329|  2.33k|    BASE *ptr;
  ------------------
  |  |   69|  2.33k|    #define BASE igraph_int_t
  ------------------
 1330|  2.33k|    IGRAPH_ASSERT(!FUNCTION(igraph_vector, empty)(v));
  ------------------
  |  |  924|  2.33k|    do { \
  |  |  925|  2.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.33k]
  |  |  ------------------
  ------------------
 1331|  2.33k|    max = *(v->stor_begin);
 1332|       |#if defined(BASE_IGRAPH_REAL)
 1333|       |    if (isnan(max)) { return max; }; /* Result is NaN */
 1334|       |#endif
 1335|  2.33k|    ptr = v->stor_begin + 1;
 1336|   694k|    while (ptr < v->end) {
  ------------------
  |  Branch (1336:12): [True: 691k, False: 2.33k]
  ------------------
 1337|   691k|        if ((*ptr) > max) {
  ------------------
  |  Branch (1337:13): [True: 24.6k, False: 667k]
  ------------------
 1338|  24.6k|            max = *ptr;
 1339|  24.6k|        }
 1340|       |#if defined(BASE_IGRAPH_REAL)
 1341|       |        else if (isnan(*ptr))
 1342|       |            return *ptr; /* Result is NaN */
 1343|       |#endif
 1344|   691k|        ptr++;
 1345|   691k|    }
 1346|  2.33k|    return max;
 1347|  2.33k|}
igraph_vector_int_isininterval:
 1837|  16.4k|        BASE high) {
 1838|  16.4k|    BASE *ptr;
  ------------------
  |  |   69|  16.4k|    #define BASE igraph_int_t
  ------------------
 1839|  16.4k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  16.4k|    do { \
  |  |  925|  16.4k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
 1840|  16.4k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  16.4k|    do { \
  |  |  925|  16.4k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
 1841|  3.49M|    for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (1841:31): [True: 3.47M, False: 16.4k]
  ------------------
 1842|       |        /* Note that the following is not equivalent to *ptr < low || *ptr > high
 1843|       |         * when *ptr is NaN! */
 1844|  3.47M|        if (!(*ptr >= low && *ptr <= high)) {
  ------------------
  |  Branch (1844:15): [True: 3.47M, False: 0]
  |  Branch (1844:30): [True: 3.47M, False: 0]
  ------------------
 1845|      0|            return 0;
 1846|      0|        }
 1847|  3.47M|    }
 1848|  16.4k|    return 1;
 1849|  16.4k|}
igraph_vector_int_append:
 2432|  2.05k|                                               const TYPE(igraph_vector) *from) {
 2433|  2.05k|    IGRAPH_ASSERT(to != NULL);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2434|  2.05k|    IGRAPH_ASSERT(to->stor_begin != NULL);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2435|       |
 2436|  2.05k|    const igraph_int_t to_size = FUNCTION(igraph_vector, size)(to);
  ------------------
  |  |  181|  2.05k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  2.05k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  2.05k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2437|  2.05k|    const igraph_int_t from_size = FUNCTION(igraph_vector, size)(from);
  ------------------
  |  |  181|  2.05k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  2.05k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  2.05k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2438|  2.05k|    const igraph_int_t to_capacity = FUNCTION(igraph_vector, capacity)(to);
  ------------------
  |  |  181|  2.05k|        #define FUNCTION(a,c) CONCAT3(a,SHORT,c)
  |  |  ------------------
  |  |  |  |   22|  2.05k|#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
  |  |  |  |  ------------------
  |  |  |  |  |  |   21|  2.05k|#define CONCAT3x(a,b,c) a ## _ ## b ## _ ## c
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2439|  2.05k|    igraph_int_t new_to_size;
 2440|       |
 2441|  2.05k|    IGRAPH_SAFE_ADD(to_size, from_size, &new_to_size);
  ------------------
  |  |   47|  2.05k|    do { \
  |  |   48|  2.05k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  2.05k|        igraph_int_t _safe_sum; \
  |  |   50|  2.05k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 2.05k]
  |  |  ------------------
  |  |   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|  2.05k|        *(res) = _safe_sum; \
  |  |   54|  2.05k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 2.05k]
  |  |  ------------------
  ------------------
 2442|       |
 2443|  2.05k|    if (to_capacity < new_to_size) {
  ------------------
  |  Branch (2443:9): [True: 0, False: 2.05k]
  ------------------
 2444|      0|        igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                      igraph_int_t new_to_capacity = to_capacity < IGRAPH_INTEGER_MAX/2 ? to_capacity * 2 : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|      0|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (2444:40): [True: 0, False: 0]
  ------------------
 2445|      0|        if (new_to_capacity < new_to_size) {
  ------------------
  |  Branch (2445:13): [True: 0, False: 0]
  ------------------
 2446|      0|            new_to_capacity = new_to_size;
 2447|      0|        }
 2448|      0|        IGRAPH_CHECK(FUNCTION(igraph_vector, reserve)(to, new_to_capacity));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2449|      0|    }
 2450|       |
 2451|  2.05k|    memcpy(to->stor_begin + to_size, from->stor_begin,
 2452|  2.05k|           sizeof(BASE) * from_size);
 2453|  2.05k|    to->end = to->stor_begin + new_to_size;
 2454|       |
 2455|  2.05k|    return IGRAPH_SUCCESS;
 2456|  2.05k|}
vector.c:igraph_vector_sort_cmp:
  924|  1.43k|static int FUNCTION(igraph_vector, sort_cmp)(const void *a, const void *b) {
  925|  1.43k|    const BASE *da = (const BASE *) a;
  926|  1.43k|    const BASE *db = (const BASE *) b;
  927|       |
  928|  1.43k|    return (*da > *db) - (*da < *db);
  929|  1.43k|}

igraph_vector_ptr_init:
   86|  3.08M|igraph_error_t igraph_vector_ptr_init(igraph_vector_ptr_t* v, igraph_int_t size) {
   87|  3.08M|    igraph_int_t alloc_size = size > 0 ? size : 1;
  ------------------
  |  Branch (87:31): [True: 2.89M, False: 190k]
  ------------------
   88|  3.08M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  3.08M|    do { \
  |  |  925|  3.08M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.08M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.08M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  3.08M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.08M]
  |  |  ------------------
  ------------------
   89|  3.08M|    if (size < 0) {
  ------------------
  |  Branch (89:9): [True: 0, False: 3.08M]
  ------------------
   90|      0|        size = 0;
   91|      0|    }
   92|  3.08M|    v->stor_begin = IGRAPH_CALLOC(alloc_size, void*);
  ------------------
  |  |   33|  3.08M|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  6.16M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 3.08M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 3.08M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 3.08M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|  3.08M|    if (v->stor_begin == 0) {
  ------------------
  |  Branch (93:9): [True: 0, False: 3.08M]
  ------------------
   94|      0|        IGRAPH_ERROR("Insufficient memory for initializing a pointer vector.", 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]
  |  |  ------------------
  ------------------
   95|      0|    }
   96|  3.08M|    v->stor_end = v->stor_begin + alloc_size;
   97|  3.08M|    v->end = v->stor_begin + size;
   98|  3.08M|    v->item_destructor = 0;
   99|       |
  100|  3.08M|    return IGRAPH_SUCCESS;
  101|  3.08M|}
igraph_vector_ptr_destroy:
  132|  3.08M|void igraph_vector_ptr_destroy(igraph_vector_ptr_t* v) {
  133|  3.08M|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  3.08M|    do { \
  |  |  925|  3.08M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.08M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.08M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  3.08M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.08M]
  |  |  ------------------
  ------------------
  134|  3.08M|    if (v->stor_begin != 0) {
  ------------------
  |  Branch (134:9): [True: 3.08M, False: 0]
  ------------------
  135|  3.08M|        IGRAPH_FREE(v->stor_begin);
  ------------------
  |  |   36|  3.08M|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  136|       |        v->stor_begin = NULL;
  137|  3.08M|    }
  138|  3.08M|}
igraph_vector_ptr_free_all:
  170|  73.1k|void igraph_vector_ptr_free_all(igraph_vector_ptr_t* v) {
  171|  73.1k|    void **ptr;
  172|  73.1k|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  73.1k|    do { \
  |  |  925|  73.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  73.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 73.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  73.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 73.1k]
  |  |  ------------------
  ------------------
  173|  73.1k|    IGRAPH_ASSERT(v->stor_begin != 0);
  ------------------
  |  |  924|  73.1k|    do { \
  |  |  925|  73.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  73.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 73.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  73.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 73.1k]
  |  |  ------------------
  ------------------
  174|       |
  175|  73.1k|    igraph_i_vector_ptr_call_item_destructor_all(v);
  176|  87.5k|    for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (176:31): [True: 14.3k, False: 73.1k]
  ------------------
  177|       |        IGRAPH_FREE(*ptr);
  ------------------
  |  |   36|  14.3k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  178|  14.3k|    }
  179|  73.1k|}
igraph_vector_ptr_destroy_all:
  199|  73.1k|void igraph_vector_ptr_destroy_all(igraph_vector_ptr_t* v) {
  200|  73.1k|    IGRAPH_ASSERT(v != 0);
  ------------------
  |  |  924|  73.1k|    do { \
  |  |  925|  73.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  73.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 73.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  73.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 73.1k]
  |  |  ------------------
  ------------------
  201|  73.1k|    IGRAPH_ASSERT(v->stor_begin != 0);
  ------------------
  |  |  924|  73.1k|    do { \
  |  |  925|  73.1k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  73.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 73.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  73.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 73.1k]
  |  |  ------------------
  ------------------
  202|  73.1k|    igraph_vector_ptr_free_all(v);
  203|  73.1k|    igraph_vector_ptr_set_item_destructor(v, 0);
  204|  73.1k|    igraph_vector_ptr_destroy(v);
  205|  73.1k|}
igraph_vector_ptr_reserve:
  218|  1.19M|igraph_error_t igraph_vector_ptr_reserve(igraph_vector_ptr_t* v, igraph_int_t capacity) {
  219|  1.19M|    igraph_int_t actual_size = igraph_vector_ptr_size(v);
  220|  1.19M|    void **tmp;
  221|  1.19M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  1.19M|    do { \
  |  |  925|  1.19M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.19M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.19M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.19M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.19M]
  |  |  ------------------
  ------------------
  222|  1.19M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  1.19M|    do { \
  |  |  925|  1.19M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.19M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.19M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.19M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.19M]
  |  |  ------------------
  ------------------
  223|  1.19M|    IGRAPH_ASSERT(capacity >= 0);
  ------------------
  |  |  924|  1.19M|    do { \
  |  |  925|  1.19M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  1.19M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.19M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  1.19M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 1.19M]
  |  |  ------------------
  ------------------
  224|       |
  225|  1.19M|    if (capacity <= igraph_vector_ptr_size(v)) {
  ------------------
  |  Branch (225:9): [True: 0, False: 1.19M]
  ------------------
  226|      0|        return IGRAPH_SUCCESS;
  227|      0|    }
  228|       |
  229|  1.19M|    tmp = IGRAPH_REALLOC(v->stor_begin, (size_t) capacity, void*);
  ------------------
  |  |   35|  1.19M|#define IGRAPH_REALLOC(p,n,t) IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, realloc((void*)(p), sizeof(t) * ((n) > 0 ? (n) : 1)))
  |  |  ------------------
  |  |  |  |   31|  2.39M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 1.19M, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 1.19M, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 1.19M, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  230|  1.19M|    IGRAPH_CHECK_OOM(tmp, "Cannot reserve space for pointer vector.");
  ------------------
  |  |  709|  1.19M|    do { \
  |  |  710|  1.19M|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.19M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.19M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.19M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.19M]
  |  |  ------------------
  ------------------
  231|       |
  232|  1.19M|    v->stor_begin = tmp;
  233|  1.19M|    v->stor_end = v->stor_begin + capacity;
  234|  1.19M|    v->end = v->stor_begin + actual_size;
  235|       |
  236|  1.19M|    return IGRAPH_SUCCESS;
  237|  1.19M|}
igraph_vector_ptr_size:
  294|  8.37M|igraph_int_t igraph_vector_ptr_size(const igraph_vector_ptr_t* v) {
  295|  8.37M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  8.37M|    do { \
  |  |  925|  8.37M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.37M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.37M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.37M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.37M]
  |  |  ------------------
  ------------------
  296|  8.37M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  8.37M|    do { \
  |  |  925|  8.37M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  8.37M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.37M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  8.37M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 8.37M]
  |  |  ------------------
  ------------------
  297|  8.37M|    return v->end - v->stor_begin;
  298|  8.37M|}
igraph_vector_ptr_push_back:
  363|  2.25M|igraph_error_t igraph_vector_ptr_push_back(igraph_vector_ptr_t* v, void* e) {
  364|  2.25M|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  2.25M|    do { \
  |  |  925|  2.25M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.25M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.25M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.25M]
  |  |  ------------------
  ------------------
  365|  2.25M|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  2.25M|    do { \
  |  |  925|  2.25M|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  2.25M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.25M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  2.25M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 2.25M]
  |  |  ------------------
  ------------------
  366|       |
  367|       |    /* full, allocate more storage */
  368|  2.25M|    if (v->stor_end == v->end) {
  ------------------
  |  Branch (368:9): [True: 1.19M, False: 1.06M]
  ------------------
  369|  1.19M|        igraph_int_t new_size = igraph_vector_ptr_size(v) * 2;
  370|  1.19M|        if (new_size == 0) {
  ------------------
  |  Branch (370:13): [True: 0, False: 1.19M]
  ------------------
  371|      0|            new_size = 1;
  372|      0|        }
  373|  1.19M|        IGRAPH_CHECK(igraph_vector_ptr_reserve(v, new_size));
  ------------------
  |  |  656|  1.19M|    do { \
  |  |  657|  1.19M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.19M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.19M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.19M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.19M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.19M]
  |  |  ------------------
  ------------------
  374|  1.19M|    }
  375|       |
  376|  2.25M|    *(v->end) = e;
  377|  2.25M|    v->end += 1;
  378|       |
  379|  2.25M|    return IGRAPH_SUCCESS;
  380|  2.25M|}
igraph_vector_ptr_get:
  442|  20.0k|void *igraph_vector_ptr_get(const igraph_vector_ptr_t* v, igraph_int_t pos) {
  443|  20.0k|    IGRAPH_ASSERT(v != NULL);
  ------------------
  |  |  924|  20.0k|    do { \
  |  |  925|  20.0k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  20.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  20.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 20.0k]
  |  |  ------------------
  ------------------
  444|  20.0k|    IGRAPH_ASSERT(v->stor_begin != NULL);
  ------------------
  |  |  924|  20.0k|    do { \
  |  |  925|  20.0k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  20.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  20.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 20.0k]
  |  |  ------------------
  ------------------
  445|  20.0k|    return *(v->stor_begin + pos);
  446|  20.0k|}
igraph_vector_ptr_set_item_destructor:
  674|   146k|    igraph_vector_ptr_t *v, igraph_finally_func_t *func) {
  675|   146k|    igraph_finally_func_t* result = v->item_destructor;
  676|       |
  677|   146k|    v->item_destructor = func;
  678|       |
  679|   146k|    return result;
  680|   146k|}
vector_ptr.c:igraph_i_vector_ptr_call_item_destructor_all:
  140|  73.1k|static void igraph_i_vector_ptr_call_item_destructor_all(igraph_vector_ptr_t* v) {
  141|  73.1k|    void **ptr;
  142|       |
  143|  73.1k|    if (v->item_destructor != 0) {
  ------------------
  |  Branch (143:9): [True: 73.1k, False: 0]
  ------------------
  144|  87.5k|        for (ptr = v->stor_begin; ptr < v->end; ptr++) {
  ------------------
  |  Branch (144:35): [True: 14.3k, False: 73.1k]
  ------------------
  145|  14.3k|            if (*ptr != 0) {
  ------------------
  |  Branch (145:17): [True: 14.3k, False: 0]
  ------------------
  146|  14.3k|                v->item_destructor(*ptr);
  147|  14.3k|            }
  148|  14.3k|        }
  149|  73.1k|    }
  150|  73.1k|}

igraph_attribute_record_init:
  126|  62.5k|) {
  127|  62.5k|    attr->name = NULL;
  128|  62.5k|    attr->type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  129|  62.5k|    attr->value.as_raw = NULL;
  130|  62.5k|    attr->default_value.string = NULL;
  131|       |
  132|  62.5k|    IGRAPH_CHECK(igraph_attribute_record_set_name(attr, name));
  ------------------
  |  |  656|  62.5k|    do { \
  |  |  657|  62.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  62.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  62.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 62.5k]
  |  |  ------------------
  ------------------
  133|  62.5k|    IGRAPH_FINALLY(igraph_free, attr->name);
  ------------------
  |  |  603|  62.5k|    do { \
  |  |  604|  62.5k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  62.5k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  62.5k|         * incorrect destructor function with the pointer */ \
  |  |  607|  62.5k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 62.5k]
  |  |  ------------------
  |  |  608|  62.5k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  62.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 62.5k]
  |  |  ------------------
  ------------------
  134|  62.5k|    IGRAPH_CHECK(igraph_attribute_record_set_type(attr, type));
  ------------------
  |  |  656|  62.5k|    do { \
  |  |  657|  62.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  62.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  62.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 62.5k]
  |  |  ------------------
  ------------------
  135|  62.5k|    IGRAPH_FINALLY_CLEAN(1);
  136|       |
  137|  62.5k|    return IGRAPH_SUCCESS;
  138|  62.5k|}
igraph_attribute_record_init_copy:
  159|  2.24k|) {
  160|  2.24k|    IGRAPH_CHECK(igraph_attribute_record_init(to, from->name, from->type));
  ------------------
  |  |  656|  2.24k|    do { \
  |  |  657|  2.24k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.24k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.24k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.24k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.24k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.24k]
  |  |  ------------------
  ------------------
  161|       |
  162|  2.24k|    switch (from->type) {
  163|    289|        case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (163:9): [True: 289, False: 1.96k]
  ------------------
  164|    289|            IGRAPH_CHECK(igraph_vector_update(to->value.as_vector, from->value.as_vector));
  ------------------
  |  |  656|    289|    do { \
  |  |  657|    289|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    289|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    289|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 289]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    289|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 289]
  |  |  ------------------
  ------------------
  165|    289|            break;
  166|       |
  167|  1.68k|        case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (167:9): [True: 1.68k, False: 563]
  ------------------
  168|  1.68k|            IGRAPH_CHECK(igraph_strvector_update(to->value.as_strvector, from->value.as_strvector));
  ------------------
  |  |  656|  1.68k|    do { \
  |  |  657|  1.68k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.68k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.68k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.68k]
  |  |  ------------------
  ------------------
  169|  1.68k|            break;
  170|       |
  171|  1.68k|        case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (171:9): [True: 274, False: 1.97k]
  ------------------
  172|    274|            IGRAPH_CHECK(igraph_vector_bool_update(to->value.as_vector_bool, from->value.as_vector_bool));
  ------------------
  |  |  656|    274|    do { \
  |  |  657|    274|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    274|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    274|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 274]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    274|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 274]
  |  |  ------------------
  ------------------
  173|    274|            break;
  174|       |
  175|    274|        case IGRAPH_ATTRIBUTE_UNSPECIFIED:
  ------------------
  |  Branch (175:9): [True: 0, False: 2.24k]
  ------------------
  176|      0|            break;
  177|       |
  178|      0|        default:
  ------------------
  |  Branch (178:9): [True: 0, False: 2.24k]
  ------------------
  179|      0|            break;
  180|  2.24k|    }
  181|       |
  182|  2.24k|    return IGRAPH_SUCCESS;
  183|  2.24k|}
igraph_attribute_record_destroy:
  241|  67.0k|void igraph_attribute_record_destroy(igraph_attribute_record_t *attr) {
  242|  67.0k|    igraph_i_attribute_record_destroy_values(attr);
  243|       |
  244|  67.0k|    if (attr->name) {
  ------------------
  |  Branch (244:9): [True: 62.5k, False: 4.50k]
  ------------------
  245|  62.5k|        igraph_free(attr->name);
  246|       |        attr->name = NULL;
  247|  62.5k|    }
  248|  67.0k|}
igraph_attribute_record_check_type:
  264|  1.16M|) {
  265|  1.16M|    if (type != attr->type) {
  ------------------
  |  Branch (265:9): [True: 1, False: 1.16M]
  ------------------
  266|      1|        switch (type) {
  267|      0|            case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (267:13): [True: 0, False: 1]
  ------------------
  268|      0|                IGRAPH_ERROR("String attribute expected.", 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]
  |  |  ------------------
  ------------------
  269|      0|                break;
  270|      0|            case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (270:13): [True: 0, False: 1]
  ------------------
  271|      0|                IGRAPH_ERROR("Numeric attribute expected.", 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]
  |  |  ------------------
  ------------------
  272|      0|                break;
  273|      1|            case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (273:13): [True: 1, False: 0]
  ------------------
  274|      1|                IGRAPH_ERROR("Boolean attribute expected.", IGRAPH_EINVAL);
  ------------------
  |  |  426|      1|    do { \
  |  |  427|      1|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      1|        return igraph_errno ; \
  |  |  429|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  275|      0|                break;
  276|      0|            case IGRAPH_ATTRIBUTE_OBJECT:
  ------------------
  |  Branch (276:13): [True: 0, False: 1]
  ------------------
  277|      0|                IGRAPH_ERROR("Object attribute expected.", 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]
  |  |  ------------------
  ------------------
  278|      0|                break;
  279|      0|            default:
  ------------------
  |  Branch (279:13): [True: 0, False: 1]
  ------------------
  280|      0|                IGRAPH_ERROR("Attribute with unknown type expected.", 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]
  |  |  ------------------
  ------------------
  281|      0|                break;
  282|      1|        }
  283|      1|    }
  284|       |
  285|  1.16M|    return IGRAPH_SUCCESS;
  286|  1.16M|}
igraph_attribute_record_size:
  295|   399k|igraph_int_t igraph_attribute_record_size(const igraph_attribute_record_t *attr) {
  296|   399k|    IGRAPH_ASSERT(attr != NULL);
  ------------------
  |  |  924|   399k|    do { \
  |  |  925|   399k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   399k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 399k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   399k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 399k]
  |  |  ------------------
  ------------------
  297|       |
  298|   399k|    switch (attr->type) {
  299|  17.4k|        case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (299:9): [True: 17.4k, False: 381k]
  ------------------
  300|  17.4k|            return igraph_vector_size(attr->value.as_vector);
  301|       |
  302|   326k|        case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (302:9): [True: 326k, False: 72.6k]
  ------------------
  303|   326k|            return igraph_strvector_size(attr->value.as_strvector);
  304|       |
  305|  54.9k|        case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (305:9): [True: 54.9k, False: 344k]
  ------------------
  306|  54.9k|            return igraph_vector_bool_size(attr->value.as_vector_bool);
  307|       |
  308|    220|        case IGRAPH_ATTRIBUTE_UNSPECIFIED:
  ------------------
  |  Branch (308:9): [True: 220, False: 398k]
  ------------------
  309|    220|            return 0;
  310|       |
  311|      0|        default:
  ------------------
  |  Branch (311:9): [True: 0, False: 399k]
  ------------------
  312|      0|            IGRAPH_FATALF("Unsupported attribute type: %d.", (int) attr->type);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  313|   399k|    }
  314|   399k|}
igraph_attribute_record_resize:
  332|   361k|) {
  333|   361k|    igraph_int_t i;
  334|   361k|    igraph_vector_t *vec;
  335|   361k|    igraph_vector_bool_t *log;
  336|   361k|    igraph_strvector_t *str;
  337|       |
  338|   361k|    IGRAPH_ASSERT(attr != NULL);
  ------------------
  |  |  924|   361k|    do { \
  |  |  925|   361k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   361k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 361k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   361k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 361k]
  |  |  ------------------
  ------------------
  339|       |
  340|   361k|    switch (attr->type) {
  341|       |
  342|  11.4k|        case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (342:9): [True: 11.4k, False: 350k]
  ------------------
  343|  11.4k|            vec = attr->value.as_vector;
  344|  11.4k|            i = igraph_vector_size(vec);
  345|  11.4k|            IGRAPH_CHECK(igraph_vector_resize(vec, new_size));
  ------------------
  |  |  656|  11.4k|    do { \
  |  |  657|  11.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  11.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  11.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 11.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  11.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 11.4k]
  |  |  ------------------
  ------------------
  346|   199k|            while (i < new_size) {
  ------------------
  |  Branch (346:20): [True: 187k, False: 11.4k]
  ------------------
  347|   187k|                VECTOR(*vec)[i++] = attr->default_value.numeric;
  ------------------
  |  |   60|   187k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  348|   187k|            }
  349|  11.4k|            break;
  350|       |
  351|  52.5k|        case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (351:9): [True: 52.5k, False: 309k]
  ------------------
  352|  52.5k|            log = attr->value.as_vector_bool;
  353|  52.5k|            i = igraph_vector_bool_size(log);
  354|  52.5k|            IGRAPH_CHECK(igraph_vector_bool_resize(log, new_size));
  ------------------
  |  |  656|  52.5k|    do { \
  |  |  657|  52.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  52.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  52.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 52.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  52.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 52.5k]
  |  |  ------------------
  ------------------
  355|   152k|            while (i < new_size) {
  ------------------
  |  Branch (355:20): [True: 99.6k, False: 52.5k]
  ------------------
  356|  99.6k|                VECTOR(*log)[i++] = attr->default_value.boolean;
  ------------------
  |  |   60|  99.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  357|  99.6k|            }
  358|  52.5k|            break;
  359|       |
  360|   297k|        case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (360:9): [True: 297k, False: 63.9k]
  ------------------
  361|   297k|            str = attr->value.as_strvector;
  362|   297k|            if (attr->default_value.string == 0 || (*attr->default_value.string == 0)) {
  ------------------
  |  Branch (362:17): [True: 297k, False: 715]
  |  Branch (362:52): [True: 0, False: 715]
  ------------------
  363|   297k|                IGRAPH_CHECK(igraph_strvector_resize(str, new_size));
  ------------------
  |  |  656|   297k|    do { \
  |  |  657|   297k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   297k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   297k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 297k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   297k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 297k]
  |  |  ------------------
  ------------------
  364|   297k|            } else {
  365|    715|                i = igraph_strvector_size(str);
  366|    715|                IGRAPH_CHECK(igraph_strvector_resize(str, new_size));
  ------------------
  |  |  656|    715|    do { \
  |  |  657|    715|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    715|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    715|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 715]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    715|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 715]
  |  |  ------------------
  ------------------
  367|  77.6k|                while (i < new_size) {
  ------------------
  |  Branch (367:24): [True: 76.8k, False: 715]
  ------------------
  368|  76.8k|                    IGRAPH_CHECK(igraph_strvector_set(str, i++, attr->default_value.string));
  ------------------
  |  |  656|  76.8k|    do { \
  |  |  657|  76.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  76.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  76.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 76.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  76.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 76.8k]
  |  |  ------------------
  ------------------
  369|  76.8k|                }
  370|    715|            }
  371|   297k|            break;
  372|       |
  373|   297k|        case IGRAPH_ATTRIBUTE_UNSPECIFIED:
  ------------------
  |  Branch (373:9): [True: 0, False: 361k]
  ------------------
  374|      0|            IGRAPH_ERROR("Attribute record has no type yet.", 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]
  |  |  ------------------
  ------------------
  375|      0|            break;
  376|       |
  377|      0|        default:
  ------------------
  |  Branch (377:9): [True: 0, False: 361k]
  ------------------
  378|      0|            IGRAPH_ERRORF("Unsupported attribute type: %d.", IGRAPH_EINVAL, (int) attr->type);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  379|   361k|    }
  380|       |
  381|   361k|    return IGRAPH_SUCCESS;
  382|   361k|}
igraph_attribute_record_set_default_numeric:
  399|  12.0k|) {
  400|  12.0k|    if (attr->type != IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (400:9): [True: 0, False: 12.0k]
  ------------------
  401|      0|        return IGRAPH_EINVAL;
  402|      0|    }
  403|       |
  404|  12.0k|    attr->default_value.numeric = value;
  405|  12.0k|    return IGRAPH_SUCCESS;
  406|  12.0k|}
igraph_attribute_record_set_default_boolean:
  423|  1.74k|) {
  424|  1.74k|    if (attr->type != IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (424:9): [True: 0, False: 1.74k]
  ------------------
  425|      0|        return IGRAPH_EINVAL;
  426|      0|    }
  427|       |
  428|  1.74k|    attr->default_value.boolean = value;
  429|  1.74k|    return IGRAPH_SUCCESS;
  430|  1.74k|}
igraph_attribute_record_set_default_string:
  449|    953|) {
  450|    953|    char* copy;
  451|       |
  452|    953|    if (attr->type != IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (452:9): [True: 0, False: 953]
  ------------------
  453|      0|        return IGRAPH_EINVAL;
  454|      0|    }
  455|       |
  456|    953|    if (value && (*value != 0)) {
  ------------------
  |  Branch (456:9): [True: 953, False: 0]
  |  Branch (456:18): [True: 953, False: 0]
  ------------------
  457|    953|        copy = strdup(value);
  458|    953|        IGRAPH_CHECK_OOM(copy, "Insufficient memory to duplicate default value.");
  ------------------
  |  |  709|    953|    do { \
  |  |  710|    953|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|    953|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 953]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    953|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 953]
  |  |  ------------------
  ------------------
  459|    953|    } else {
  460|      0|        copy = NULL;
  461|      0|    }
  462|       |
  463|    953|    if (attr->default_value.string) {
  ------------------
  |  Branch (463:9): [True: 216, False: 737]
  ------------------
  464|    216|        igraph_free(attr->default_value.string);
  465|    216|    }
  466|    953|    attr->default_value.string = copy;
  467|       |
  468|    953|    return IGRAPH_SUCCESS;
  469|    953|}
igraph_attribute_record_set_name:
  483|   101k|) {
  484|   101k|    char *new_name;
  485|       |
  486|   101k|    IGRAPH_ASSERT(attr != NULL);
  ------------------
  |  |  924|   101k|    do { \
  |  |  925|   101k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   101k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 101k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   101k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 101k]
  |  |  ------------------
  ------------------
  487|       |
  488|   101k|    if (name != NULL) {
  ------------------
  |  Branch (488:9): [True: 62.5k, False: 39.3k]
  ------------------
  489|  62.5k|        new_name = strdup(name);
  490|  62.5k|        IGRAPH_CHECK_OOM(new_name, "Insufficient memory for allocating attribute name.");
  ------------------
  |  |  709|  62.5k|    do { \
  |  |  710|  62.5k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  62.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 62.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  62.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 62.5k]
  |  |  ------------------
  ------------------
  491|  62.5k|    } else {
  492|  39.3k|        new_name = NULL;
  493|  39.3k|    }
  494|       |
  495|   101k|    if (attr->name) {
  ------------------
  |  Branch (495:9): [True: 0, False: 101k]
  ------------------
  496|      0|        igraph_free(attr->name);
  497|      0|    }
  498|       |
  499|   101k|    attr->name = new_name;
  500|       |
  501|   101k|    return IGRAPH_SUCCESS;
  502|   101k|}
igraph_attribute_record_set_type:
  539|   101k|) {
  540|   101k|    void *ptr;
  541|       |
  542|   101k|    IGRAPH_ASSERT(attr != NULL);
  ------------------
  |  |  924|   101k|    do { \
  |  |  925|   101k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   101k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 101k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   101k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 101k]
  |  |  ------------------
  ------------------
  543|       |
  544|   101k|    if (attr->type != type) {
  ------------------
  |  Branch (544:9): [True: 61.9k, False: 40.0k]
  ------------------
  545|  61.9k|        switch (type) {
  546|  11.5k|            case IGRAPH_ATTRIBUTE_NUMERIC: {
  ------------------
  |  Branch (546:13): [True: 11.5k, False: 50.3k]
  ------------------
  547|  11.5k|                igraph_vector_t *vec = IGRAPH_CALLOC(1, igraph_vector_t);
  ------------------
  |  |   33|  11.5k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  23.1k|    (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: 11.5k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  548|  11.5k|                IGRAPH_CHECK_OOM(vec, "Insufficient memory for attribute record.");
  ------------------
  |  |  709|  11.5k|    do { \
  |  |  710|  11.5k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  11.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 11.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  11.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 11.5k]
  |  |  ------------------
  ------------------
  549|  11.5k|                IGRAPH_FINALLY(igraph_free, vec);
  ------------------
  |  |  603|  11.5k|    do { \
  |  |  604|  11.5k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  11.5k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  11.5k|         * incorrect destructor function with the pointer */ \
  |  |  607|  11.5k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 11.5k]
  |  |  ------------------
  |  |  608|  11.5k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  11.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 11.5k]
  |  |  ------------------
  ------------------
  550|  11.5k|                IGRAPH_VECTOR_INIT_FINALLY(vec, 0);
  ------------------
  |  |  104|  11.5k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  11.5k|    do { \
  |  |  |  |  657|  11.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  11.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  11.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 11.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  11.5k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 11.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  11.5k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  11.5k|    do { \
  |  |  |  |  604|  11.5k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  11.5k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  11.5k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  11.5k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 11.5k]
  |  |  |  |  ------------------
  |  |  |  |  608|  11.5k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  11.5k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 11.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 11.5k]
  |  |  ------------------
  ------------------
  551|  11.5k|                ptr = vec;
  552|  11.5k|            }
  553|      0|            break;
  554|       |
  555|  44.5k|            case IGRAPH_ATTRIBUTE_STRING: {
  ------------------
  |  Branch (555:13): [True: 44.5k, False: 17.3k]
  ------------------
  556|  44.5k|                igraph_strvector_t *strvec = IGRAPH_CALLOC(1, igraph_strvector_t);
  ------------------
  |  |   33|  44.5k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  89.1k|    (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: 44.5k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  557|  44.5k|                IGRAPH_CHECK_OOM(strvec, "Insufficient memory for attribute record.");
  ------------------
  |  |  709|  44.5k|    do { \
  |  |  710|  44.5k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  44.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  44.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  558|  44.5k|                IGRAPH_FINALLY(igraph_free, strvec);
  ------------------
  |  |  603|  44.5k|    do { \
  |  |  604|  44.5k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  44.5k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  44.5k|         * incorrect destructor function with the pointer */ \
  |  |  607|  44.5k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 44.5k]
  |  |  ------------------
  |  |  608|  44.5k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  44.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  559|  44.5k|                IGRAPH_STRVECTOR_INIT_FINALLY(strvec, 0);
  ------------------
  |  |   62|  44.5k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  44.5k|    do { \
  |  |  |  |  657|  44.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  44.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  44.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  44.5k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  44.5k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  44.5k|    do { \
  |  |  |  |  604|  44.5k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  44.5k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  44.5k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  44.5k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 44.5k]
  |  |  |  |  ------------------
  |  |  |  |  608|  44.5k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  44.5k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  560|  44.5k|                ptr = strvec;
  561|  44.5k|            }
  562|      0|            break;
  563|       |
  564|  5.75k|            case IGRAPH_ATTRIBUTE_BOOLEAN: {
  ------------------
  |  Branch (564:13): [True: 5.75k, False: 56.1k]
  ------------------
  565|  5.75k|                igraph_vector_bool_t *boolvec = IGRAPH_CALLOC(1, igraph_vector_bool_t);
  ------------------
  |  |   33|  5.75k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  11.5k|    (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: 5.75k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  566|  5.75k|                IGRAPH_CHECK_OOM(boolvec, "Insufficient memory for attribute record.");
  ------------------
  |  |  709|  5.75k|    do { \
  |  |  710|  5.75k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  5.75k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.75k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  5.75k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 5.75k]
  |  |  ------------------
  ------------------
  567|  5.75k|                IGRAPH_FINALLY(igraph_free, boolvec);
  ------------------
  |  |  603|  5.75k|    do { \
  |  |  604|  5.75k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  5.75k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  5.75k|         * incorrect destructor function with the pointer */ \
  |  |  607|  5.75k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 5.75k]
  |  |  ------------------
  |  |  608|  5.75k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  5.75k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 5.75k]
  |  |  ------------------
  ------------------
  568|  5.75k|                IGRAPH_VECTOR_BOOL_INIT_FINALLY(boolvec, 0);
  ------------------
  |  |  109|  5.75k|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  5.75k|    do { \
  |  |  |  |  657|  5.75k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  5.75k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  5.75k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.75k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.75k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 5.75k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|  5.75k|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  5.75k|    do { \
  |  |  |  |  604|  5.75k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  5.75k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  5.75k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  5.75k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 5.75k]
  |  |  |  |  ------------------
  |  |  |  |  608|  5.75k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  5.75k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 5.75k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 5.75k]
  |  |  ------------------
  ------------------
  569|  5.75k|                ptr = boolvec;
  570|  5.75k|            }
  571|      0|            break;
  572|       |
  573|      0|            default:
  ------------------
  |  Branch (573:13): [True: 0, False: 61.9k]
  ------------------
  574|      0|                IGRAPH_FATALF("Unsupported attribute type: %d.", (int) type);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  575|  61.9k|        }
  576|       |
  577|  61.9k|        igraph_i_attribute_record_set_type(attr, type, ptr);
  578|  61.9k|        IGRAPH_FINALLY_CLEAN(2);
  579|  61.9k|    }
  580|       |
  581|   101k|    return IGRAPH_SUCCESS;
  582|   101k|}
igraph_i_attribute_init:
  617|  16.4k|) {
  618|  16.4k|    graph->attr = NULL;
  619|  16.4k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (619:9): [True: 16.4k, False: 0]
  ------------------
  620|  16.4k|        IGRAPH_CHECK(igraph_i_attribute_table->init(graph, attr));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  621|  16.4k|        if (graph->attr == NULL) {
  ------------------
  |  Branch (621:13): [True: 0, False: 16.4k]
  ------------------
  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|  16.4k|    }
  625|  16.4k|    return IGRAPH_SUCCESS;
  626|  16.4k|}
igraph_i_attribute_destroy:
  628|  16.4k|void igraph_i_attribute_destroy(igraph_t *graph) {
  629|  16.4k|    if (graph->attr && igraph_i_attribute_table) {
  ------------------
  |  Branch (629:9): [True: 16.4k, False: 0]
  |  Branch (629:24): [True: 16.4k, False: 0]
  ------------------
  630|  16.4k|        igraph_i_attribute_table->destroy(graph);
  631|  16.4k|    }
  632|       |    graph->attr = NULL;
  633|  16.4k|}
igraph_i_attribute_add_vertices:
  649|  32.8k|) {
  650|  32.8k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (650:9): [True: 32.8k, False: 0]
  ------------------
  651|  32.8k|        return igraph_i_attribute_table->add_vertices(graph, nv, attr);
  652|  32.8k|    } else {
  653|      0|        return IGRAPH_SUCCESS;
  654|      0|    }
  655|  32.8k|}
igraph_i_attribute_add_edges:
  690|  16.4k|) {
  691|  16.4k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (691:9): [True: 16.4k, False: 0]
  ------------------
  692|  16.4k|        return igraph_i_attribute_table->add_edges(graph, edges, attr);
  693|  16.4k|    } else {
  694|      0|        return IGRAPH_SUCCESS;
  695|      0|    }
  696|  16.4k|}
igraph_i_attribute_get_info:
  734|  10.0k|                                igraph_vector_int_t *etypes) {
  735|  10.0k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (735:9): [True: 10.0k, False: 0]
  ------------------
  736|  10.0k|        return igraph_i_attribute_table->get_info(graph, gnames, gtypes,
  737|  10.0k|                vnames, vtypes,
  738|  10.0k|                enames, etypes);
  739|  10.0k|    } else {
  740|      0|        return IGRAPH_SUCCESS;
  741|      0|    }
  742|  10.0k|}
igraph_i_attribute_has_attr:
  746|   210k|        const char *name) {
  747|   210k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (747:9): [True: 210k, False: 0]
  ------------------
  748|   210k|        return igraph_i_attribute_table->has_attr(graph, type, name);
  749|   210k|    } else {
  750|       |        return false;
  751|      0|    }
  752|   210k|}
igraph_i_attribute_get_type:
  757|  2.53k|                               const char *name) {
  758|  2.53k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (758:9): [True: 2.53k, False: 0]
  ------------------
  759|  2.53k|        return igraph_i_attribute_table->get_type(graph, type, elemtype, name);
  760|  2.53k|    } else {
  761|      0|        return IGRAPH_SUCCESS;
  762|      0|    }
  763|       |
  764|  2.53k|}
igraph_i_attribute_get_numeric_graph_attr:
  768|    241|        igraph_vector_t *value) {
  769|    241|    igraph_vector_clear(value);
  770|    241|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (770:9): [True: 241, False: 0]
  ------------------
  771|    241|        return igraph_i_attribute_table->get_numeric_graph_attr(graph, name, value);
  772|    241|    } else {
  773|      0|        return IGRAPH_SUCCESS;
  774|      0|    }
  775|    241|}
igraph_i_attribute_get_numeric_vertex_attr:
  780|  14.8k|        igraph_vector_t *value) {
  781|  14.8k|    igraph_vector_clear(value);
  782|  14.8k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (782:9): [True: 14.8k, False: 0]
  ------------------
  783|  14.8k|        return igraph_i_attribute_table->get_numeric_vertex_attr(graph, name, vs, value);
  784|  14.8k|    } else {
  785|      0|        return IGRAPH_SUCCESS;
  786|      0|    }
  787|  14.8k|}
igraph_i_attribute_get_numeric_edge_attr:
  792|   174k|        igraph_vector_t *value) {
  793|   174k|    igraph_vector_clear(value);
  794|   174k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (794:9): [True: 174k, False: 0]
  ------------------
  795|   174k|        return igraph_i_attribute_table->get_numeric_edge_attr(graph, name, es, value);
  796|   174k|    } else {
  797|      0|        return IGRAPH_SUCCESS;
  798|      0|    }
  799|   174k|}
igraph_i_attribute_get_string_graph_attr:
  803|  1.72k|        igraph_strvector_t *value) {
  804|  1.72k|    igraph_strvector_clear(value);
  805|  1.72k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (805:9): [True: 1.72k, False: 0]
  ------------------
  806|  1.72k|        return igraph_i_attribute_table->get_string_graph_attr(graph, name, value);
  807|  1.72k|    } else {
  808|      0|        return IGRAPH_SUCCESS;
  809|      0|    }
  810|  1.72k|}
igraph_i_attribute_get_string_vertex_attr:
  815|   109k|        igraph_strvector_t *value) {
  816|   109k|    igraph_strvector_clear(value);
  817|   109k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (817:9): [True: 109k, False: 0]
  ------------------
  818|   109k|        return igraph_i_attribute_table->get_string_vertex_attr(graph, name, vs, value);
  819|   109k|    } else {
  820|      0|        return IGRAPH_SUCCESS;
  821|      0|    }
  822|   109k|}
igraph_i_attribute_get_string_edge_attr:
  827|   716k|        igraph_strvector_t *value) {
  828|   716k|    igraph_strvector_clear(value);
  829|   716k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (829:9): [True: 716k, False: 0]
  ------------------
  830|   716k|        return igraph_i_attribute_table->get_string_edge_attr(graph, name, es, value);
  831|   716k|    } else {
  832|      0|        return IGRAPH_SUCCESS;
  833|      0|    }
  834|   716k|}
igraph_i_attribute_get_bool_graph_attr:
  838|    419|        igraph_vector_bool_t *value) {
  839|    419|    igraph_vector_bool_clear(value);
  840|    419|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (840:9): [True: 419, False: 0]
  ------------------
  841|    419|        return igraph_i_attribute_table->get_bool_graph_attr(graph, name, value);
  842|    419|    } else {
  843|      0|        return IGRAPH_SUCCESS;
  844|      0|    }
  845|    419|}
igraph_i_attribute_get_bool_vertex_attr:
  850|  23.4k|        igraph_vector_bool_t *value) {
  851|  23.4k|    igraph_vector_bool_clear(value);
  852|  23.4k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (852:9): [True: 23.4k, False: 0]
  ------------------
  853|  23.4k|        return igraph_i_attribute_table->get_bool_vertex_attr(graph, name, vs, value);
  854|  23.4k|    } else {
  855|      0|        return IGRAPH_SUCCESS;
  856|      0|    }
  857|  23.4k|}
igraph_i_attribute_get_bool_edge_attr:
  862|   126k|        igraph_vector_bool_t *value) {
  863|   126k|    igraph_vector_bool_clear(value);
  864|   126k|    if (igraph_i_attribute_table) {
  ------------------
  |  Branch (864:9): [True: 126k, False: 0]
  ------------------
  865|   126k|        return igraph_i_attribute_table->get_bool_edge_attr(graph, name, es, value);
  866|   126k|    } else {
  867|      0|        return IGRAPH_SUCCESS;
  868|      0|    }
  869|   126k|}
igraph_set_attribute_table:
  895|  21.0k|igraph_set_attribute_table(const igraph_attribute_table_t * table) {
  896|  21.0k|    igraph_attribute_table_t *old = igraph_i_attribute_table;
  897|  21.0k|    igraph_i_attribute_table = (igraph_attribute_table_t*) table;
  898|  21.0k|    return old;
  899|  21.0k|}
attributes.c:igraph_i_attribute_record_destroy_values:
  185|   129k|static void igraph_i_attribute_record_destroy_values(igraph_attribute_record_t *attr) {
  186|   129k|    IGRAPH_ASSERT(attr != NULL);
  ------------------
  |  |  924|   129k|    do { \
  |  |  925|   129k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   129k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 129k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   129k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 129k]
  |  |  ------------------
  ------------------
  187|       |
  188|   129k|    if (attr->value.as_raw) {
  ------------------
  |  Branch (188:9): [True: 61.9k, False: 67.0k]
  ------------------
  189|  61.9k|        switch (attr->type) {
  190|  11.5k|            case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (190:13): [True: 11.5k, False: 50.3k]
  ------------------
  191|  11.5k|                igraph_vector_destroy(attr->value.as_vector);
  192|  11.5k|                break;
  193|       |
  194|  44.5k|            case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (194:13): [True: 44.5k, False: 17.3k]
  ------------------
  195|  44.5k|                igraph_strvector_destroy(attr->value.as_strvector);
  196|  44.5k|                break;
  197|       |
  198|  5.75k|            case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (198:13): [True: 5.75k, False: 56.1k]
  ------------------
  199|  5.75k|                igraph_vector_bool_destroy(attr->value.as_vector_bool);
  200|  5.75k|                break;
  201|       |
  202|      0|            default:
  ------------------
  |  Branch (202:13): [True: 0, False: 61.9k]
  ------------------
  203|      0|                break;
  204|  61.9k|        }
  205|       |
  206|  61.9k|        igraph_free(attr->value.as_raw);
  207|  61.9k|        attr->value.as_raw = NULL;
  208|  61.9k|    }
  209|       |
  210|   129k|    switch (attr->type) {
  211|  11.5k|        case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (211:9): [True: 11.5k, False: 117k]
  ------------------
  212|  11.5k|            attr->default_value.numeric = 0;
  213|  11.5k|            break;
  214|       |
  215|  44.5k|        case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (215:9): [True: 44.5k, False: 84.4k]
  ------------------
  216|  44.5k|            if (attr->default_value.string) {
  ------------------
  |  Branch (216:17): [True: 737, False: 43.8k]
  ------------------
  217|    737|                igraph_free(attr->default_value.string);
  218|    737|                attr->default_value.string = NULL;
  219|    737|            }
  220|  44.5k|            break;
  221|       |
  222|  5.75k|        case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (222:9): [True: 5.75k, False: 123k]
  ------------------
  223|  5.75k|            attr->default_value.boolean = 0;
  224|  5.75k|            break;
  225|       |
  226|  67.0k|        default:
  ------------------
  |  Branch (226:9): [True: 67.0k, False: 61.9k]
  ------------------
  227|  67.0k|            break;
  228|   129k|    }
  229|       |
  230|   129k|    attr->type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  231|   129k|}
attributes.c:igraph_i_attribute_record_set_type:
  506|  61.9k|) {
  507|  61.9k|    bool type_changed = attr->type != type;
  508|       |
  509|  61.9k|    if (type_changed || attr->value.as_raw != ptr) {
  ------------------
  |  Branch (509:9): [True: 61.9k, False: 0]
  |  Branch (509:25): [True: 0, False: 0]
  ------------------
  510|  61.9k|        igraph_i_attribute_record_destroy_values(attr);
  511|  61.9k|        attr->type = type;
  512|  61.9k|        attr->value.as_raw = ptr;
  513|  61.9k|    }
  514|       |
  515|  61.9k|    if (type_changed && type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (515:9): [True: 61.9k, False: 0]
  |  Branch (515:25): [True: 11.5k, False: 50.3k]
  ------------------
  516|  11.5k|        IGRAPH_ASSERT(
  ------------------
  |  |  924|  11.5k|    do { \
  |  |  925|  11.5k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  11.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 11.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  11.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 11.5k]
  |  |  ------------------
  ------------------
  517|  11.5k|            igraph_attribute_record_set_default_numeric(attr, IGRAPH_NAN) == IGRAPH_SUCCESS
  518|  11.5k|        );
  519|  11.5k|    }
  520|  61.9k|}
attributes.c:igraph_i_attribute_record_list_init_item:
  596|  39.3k|) {
  597|  39.3k|    IGRAPH_UNUSED(list);
  ------------------
  |  |   30|  39.3k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
  598|       |    return igraph_attribute_record_init(item, NULL, IGRAPH_ATTRIBUTE_UNSPECIFIED);
  599|  39.3k|}
attributes.c:igraph_i_attribute_record_list_copy_item:
  603|  2.24k|) {
  604|  2.24k|    return igraph_attribute_record_init_copy(dest, source);
  605|  2.24k|}
attributes.c:igraph_i_attribute_record_list_destroy_item:
  607|  61.4k|static void igraph_i_attribute_record_list_destroy_item(igraph_attribute_record_t* item) {
  608|  61.4k|    igraph_attribute_record_destroy(item);
  609|  61.4k|}

igraph_i_property_cache_init:
   32|  16.4k|igraph_error_t igraph_i_property_cache_init(igraph_i_property_cache_t *cache) {
   33|  16.4k|    IGRAPH_STATIC_ASSERT(IGRAPH_PROP_I_SIZE <= 32);
  ------------------
  |  |   68|  16.4k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
   34|       |
   35|  16.4k|    memset(cache->value, 0, sizeof(cache->value));
   36|  16.4k|    cache->known = 0;
   37|  16.4k|    return IGRAPH_SUCCESS;
   38|  16.4k|}
igraph_i_property_cache_destroy:
   53|  16.4k|void igraph_i_property_cache_destroy(igraph_i_property_cache_t *cache) {
   54|  16.4k|    IGRAPH_UNUSED(cache);
  ------------------
  |  |   30|  16.4k|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
   55|       |    /* Nothing to do */
   56|  16.4k|}
igraph_i_property_cache_invalidate_conditionally:
  182|  49.2k|) {
  183|  49.2k|    uint32_t invalidate = ~keep_always;
  184|  49.2k|    uint32_t mask;
  185|  49.2k|    uint32_t maybe_keep;
  186|  49.2k|    igraph_bool_t cached_value;
  187|       |
  188|  49.2k|    assert(graph->cache != NULL);
  ------------------
  |  Branch (188:5): [True: 0, False: 49.2k]
  |  Branch (188:5): [True: 49.2k, 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|  49.2k|    maybe_keep = graph->cache->known & invalidate & (keep_when_false | keep_when_true);
  197|       |
  198|  49.2k|    if (maybe_keep) {
  ------------------
  |  Branch (198:9): [True: 0, False: 49.2k]
  ------------------
  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|  49.2k|    graph->cache->known &= ~invalidate;
  216|  49.2k|}

cattributes.c:igraph_i_cattribute_init:
  195|  16.4k|) {
  196|  16.4k|    igraph_i_cattributes_t *nattr;
  197|       |
  198|  16.4k|    nattr = IGRAPH_CALLOC(1, igraph_i_cattributes_t);
  ------------------
  |  |   33|  16.4k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  32.8k|    (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: 16.4k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|  16.4k|    IGRAPH_CHECK_OOM(nattr, "Insufficient memory to allocate attribute storage.");
  ------------------
  |  |  709|  16.4k|    do { \
  |  |  710|  16.4k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  200|  16.4k|    IGRAPH_FINALLY(igraph_free, nattr);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  201|       |
  202|  16.4k|    if (attr) {
  ------------------
  |  Branch (202:9): [True: 9.96k, False: 6.46k]
  ------------------
  203|  9.96k|        IGRAPH_CHECK(igraph_attribute_record_list_init_copy(&nattr->gal, attr));
  ------------------
  |  |  656|  9.96k|    do { \
  |  |  657|  9.96k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.96k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.96k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.96k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.96k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.96k]
  |  |  ------------------
  ------------------
  204|  9.96k|    } else {
  205|  6.46k|        IGRAPH_CHECK(igraph_attribute_record_list_init(&nattr->gal, 0));
  ------------------
  |  |  656|  6.46k|    do { \
  |  |  657|  6.46k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.46k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.46k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.46k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.46k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.46k]
  |  |  ------------------
  ------------------
  206|  6.46k|    }
  207|  16.4k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &nattr->gal);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  208|       |
  209|  16.4k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&nattr->val, 0));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  210|  16.4k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &nattr->val);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  211|       |
  212|  16.4k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&nattr->eal, 0));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  213|  16.4k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &nattr->eal);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  214|       |
  215|  16.4k|    graph->attr = nattr;
  216|  16.4k|    IGRAPH_FINALLY_CLEAN(4);
  217|       |
  218|  16.4k|    return IGRAPH_SUCCESS;
  219|  16.4k|}
cattributes.c:igraph_i_cattribute_destroy:
  221|  16.4k|static void igraph_i_cattribute_destroy(igraph_t *graph) {
  222|  16.4k|    igraph_i_cattributes_t *attr = graph->attr;
  223|  16.4k|    igraph_attribute_record_list_destroy(&attr->eal);
  224|  16.4k|    igraph_attribute_record_list_destroy(&attr->val);
  225|  16.4k|    igraph_attribute_record_list_destroy(&attr->gal);
  226|       |    IGRAPH_FREE(graph->attr); /* sets to NULL */
  ------------------
  |  |   36|  16.4k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  227|  16.4k|}
cattributes.c:igraph_i_cattribute_add_vertices:
  373|  32.8k|) {
  374|  32.8k|    igraph_i_cattributes_t *attr = graph->attr;
  375|  32.8k|    return igraph_i_cattribute_add_vertices_or_edges(&attr->val, igraph_vcount(graph), nv, nattr);
  376|  32.8k|}
cattributes.c:igraph_i_cattribute_add_vertices_or_edges:
  344|  49.2k|) {
  345|  49.2k|    igraph_int_t origlen = newlen - nv;
  346|  49.2k|    igraph_error_t err = igraph_i_cattribute_add_vertices_or_edges_inner(
  347|  49.2k|        val, newlen, nv, nattr
  348|  49.2k|    );
  349|       |
  350|  49.2k|    if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (350:9): [True: 0, False: 49.2k]
  ------------------
  351|       |        /* If unsuccessful, revert attribute vector sizes.
  352|       |         * The following function assumes that all attributes vectors that
  353|       |         * are present have a length at least as great as origlen.
  354|       |         * This is true at the moment because any new attributes that are
  355|       |         * added to the graph are created directly at 'origlen' instead of
  356|       |         * being created at smaller sizes and resized later.
  357|       |         *
  358|       |         * NOTE: While this ensures that all attribute vector lengths are
  359|       |         * correct, it does not ensure that no extra attributes have
  360|       |         * been added to the graph. However, the presence of extra
  361|       |         * attributes does not make the attribute table inconsistent
  362|       |         * like the incorrect attribute vector lengths would.
  363|       |         */
  364|      0|        igraph_i_cattribute_revert_attribute_vector_sizes(val, origlen);
  365|      0|    }
  366|       |
  367|  49.2k|    return err;
  368|  49.2k|}
cattributes.c:igraph_i_cattribute_add_vertices_or_edges_inner:
  269|  49.2k|) {
  270|  49.2k|    igraph_int_t length;
  271|  49.2k|    igraph_int_t nattrno = nattr == NULL ? 0 : igraph_attribute_record_list_size(nattr);
  ------------------
  |  Branch (271:28): [True: 22.6k, False: 26.6k]
  ------------------
  272|  49.2k|    igraph_int_t origlen = newlen - nv;
  273|       |
  274|  49.2k|    IGRAPH_ASSERT(origlen >= 0);
  ------------------
  |  |  924|  49.2k|    do { \
  |  |  925|  49.2k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  49.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 49.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  49.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 49.2k]
  |  |  ------------------
  ------------------
  275|       |
  276|       |    /* Find all the attributes that are newly added, and create new value vectors
  277|       |     * for them in the original graph */
  278|  77.7k|    for (igraph_int_t i = 0; i < nattrno; i++) {
  ------------------
  |  Branch (278:30): [True: 28.4k, False: 49.2k]
  ------------------
  279|  28.4k|        const igraph_attribute_record_t *nattr_entry = igraph_attribute_record_list_get_ptr(nattr, i);
  280|  28.4k|        const char *nname = nattr_entry->name;
  281|  28.4k|        IGRAPH_CHECK(igraph_i_cattribute_find_or_create(val, nname, nattr_entry->type, origlen, NULL));
  ------------------
  |  |  656|  28.4k|    do { \
  |  |  657|  28.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  28.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  282|  28.4k|    }
  283|       |
  284|       |    /* Now append the new values */
  285|  49.2k|    length = igraph_attribute_record_list_size(val);
  286|  77.7k|    for (igraph_int_t i = 0; i < length; i++) {
  ------------------
  |  Branch (286:30): [True: 28.4k, False: 49.2k]
  ------------------
  287|  28.4k|        igraph_attribute_record_t *oldrec = igraph_attribute_record_list_get_ptr(val, i);
  288|  28.4k|        const igraph_attribute_record_t *newrec = nattr
  ------------------
  |  Branch (288:51): [True: 28.4k, False: 0]
  ------------------
  289|  28.4k|            ? igraph_i_cattribute_find_const(nattr, oldrec->name, oldrec->type)
  290|  28.4k|            : NULL;
  291|       |
  292|  28.4k|        IGRAPH_ASSERT(igraph_attribute_record_size(oldrec) == origlen);
  ------------------
  |  |  924|  28.4k|    do { \
  |  |  925|  28.4k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  293|       |
  294|  28.4k|        if (newrec) {
  ------------------
  |  Branch (294:13): [True: 28.4k, False: 0]
  ------------------
  295|       |            /* This attribute is present in nattr */
  296|  28.4k|            switch (oldrec->type) {
  297|  5.45k|            case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (297:13): [True: 5.45k, False: 23.0k]
  ------------------
  298|  5.45k|                if (nv != igraph_vector_size(newrec->value.as_vector)) {
  ------------------
  |  Branch (298:21): [True: 0, False: 5.45k]
  ------------------
  299|      0|                    IGRAPH_ERROR("Invalid numeric attribute 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]
  |  |  ------------------
  ------------------
  300|      0|                }
  301|  5.45k|                IGRAPH_CHECK(igraph_vector_append(
  ------------------
  |  |  656|  5.45k|    do { \
  |  |  657|  5.45k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.45k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.45k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.45k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.45k]
  |  |  ------------------
  ------------------
  302|  5.45k|                    oldrec->value.as_vector, newrec->value.as_vector
  303|  5.45k|                ));
  304|  5.45k|                break;
  305|  20.5k|            case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (305:13): [True: 20.5k, False: 7.94k]
  ------------------
  306|  20.5k|                if (nv != igraph_strvector_size(newrec->value.as_strvector)) {
  ------------------
  |  Branch (306:21): [True: 0, False: 20.5k]
  ------------------
  307|      0|                    IGRAPH_ERROR("Invalid string attribute 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]
  |  |  ------------------
  ------------------
  308|      0|                }
  309|  20.5k|                IGRAPH_CHECK(igraph_strvector_append(
  ------------------
  |  |  656|  20.5k|    do { \
  |  |  657|  20.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  20.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  20.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  20.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 20.5k]
  |  |  ------------------
  ------------------
  310|  20.5k|                    oldrec->value.as_strvector, newrec->value.as_strvector
  311|  20.5k|                ));
  312|  20.5k|                break;
  313|  20.5k|            case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (313:13): [True: 2.49k, False: 25.9k]
  ------------------
  314|  2.49k|                if (nv != igraph_vector_bool_size(newrec->value.as_vector_bool)) {
  ------------------
  |  Branch (314:21): [True: 0, False: 2.49k]
  ------------------
  315|      0|                    IGRAPH_ERROR("Invalid boolean attribute 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]
  |  |  ------------------
  ------------------
  316|      0|                }
  317|  2.49k|                IGRAPH_CHECK(igraph_vector_bool_append(
  ------------------
  |  |  656|  2.49k|    do { \
  |  |  657|  2.49k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.49k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.49k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.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|  2.49k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.49k]
  |  |  ------------------
  ------------------
  318|  2.49k|                    oldrec->value.as_vector_bool, newrec->value.as_vector_bool
  319|  2.49k|                ));
  320|  2.49k|                break;
  321|  2.49k|            default:
  ------------------
  |  Branch (321:13): [True: 0, False: 28.4k]
  ------------------
  322|      0|                IGRAPH_WARNINGF(
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  323|      0|                    "Attribute '%s' with unknown type %d ignored.",
  324|      0|                    oldrec->name, (int) oldrec->type
  325|      0|                );
  326|      0|                break;
  327|  28.4k|            }
  328|  28.4k|        } else {
  329|       |            /* No such attribute among the new ones so just extend the length
  330|       |             * of the current record */
  331|      0|            IGRAPH_CHECK(igraph_attribute_record_resize(oldrec, newlen));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  332|      0|        }
  333|       |
  334|  28.4k|        IGRAPH_ASSERT(igraph_attribute_record_size(oldrec) == newlen);
  ------------------
  |  |  924|  28.4k|    do { \
  |  |  925|  28.4k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  335|  28.4k|    }
  336|       |
  337|  49.2k|    return IGRAPH_SUCCESS;
  338|  49.2k|}
cattributes.c:igraph_i_cattribute_find_const:
   90|  28.4k|) {
   91|  28.4k|    igraph_int_t index = igraph_i_cattribute_find_index(attrs, name);
   92|  28.4k|    const igraph_attribute_record_t *rec;
   93|       |
   94|  28.4k|    if (index >= 0) {
  ------------------
  |  Branch (94:9): [True: 28.4k, False: 0]
  ------------------
   95|  28.4k|        rec = igraph_attribute_record_list_get_ptr(attrs, index);
   96|  28.4k|        if (type == IGRAPH_ATTRIBUTE_UNSPECIFIED || type == rec->type) {
  ------------------
  |  Branch (96:13): [True: 0, False: 28.4k]
  |  Branch (96:53): [True: 28.4k, False: 0]
  ------------------
   97|  28.4k|            return rec;
   98|  28.4k|        }
   99|  28.4k|    }
  100|       |
  101|      0|    return NULL;
  102|  28.4k|}
cattributes.c:igraph_i_cattribute_add_edges:
 1463|  16.4k|) {
 1464|  16.4k|    igraph_int_t ne = igraph_vector_int_size(edges) / 2;
 1465|  16.4k|    igraph_i_cattributes_t *attr = graph->attr;
 1466|  16.4k|    return igraph_i_cattribute_add_vertices_or_edges(&attr->eal, igraph_ecount(graph), ne, nattr);
 1467|  16.4k|}
cattributes.c:igraph_i_cattribute_get_info:
 1498|  10.0k|                                        igraph_vector_int_t *etypes) {
 1499|       |
 1500|  10.0k|    igraph_strvector_t *names[3] = { gnames, vnames, enames };
 1501|  10.0k|    igraph_vector_int_t *types[3] = { gtypes, vtypes, etypes };
 1502|  10.0k|    igraph_i_cattributes_t *at = graph->attr;
 1503|  10.0k|    igraph_attribute_record_list_t *attr[3] = { &at->gal, &at->val, &at->eal };
 1504|       |
 1505|  40.0k|    for (igraph_int_t i = 0; i < 3; i++) {
  ------------------
  |  Branch (1505:30): [True: 30.0k, False: 10.0k]
  ------------------
 1506|  30.0k|        igraph_strvector_t *n = names[i];
 1507|  30.0k|        igraph_vector_int_t *t = types[i];
 1508|  30.0k|        const igraph_attribute_record_list_t *al = attr[i];
 1509|  30.0k|        igraph_int_t len = igraph_attribute_record_list_size(al);
 1510|       |
 1511|  30.0k|        if (n) {
  ------------------
  |  Branch (1511:13): [True: 30.0k, False: 0]
  ------------------
 1512|  30.0k|            IGRAPH_CHECK(igraph_strvector_resize(n, len));
  ------------------
  |  |  656|  30.0k|    do { \
  |  |  657|  30.0k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  30.0k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  30.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 30.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|  30.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 30.0k]
  |  |  ------------------
  ------------------
 1513|  30.0k|        }
 1514|  30.0k|        if (t) {
  ------------------
  |  Branch (1514:13): [True: 30.0k, False: 0]
  ------------------
 1515|  30.0k|            IGRAPH_CHECK(igraph_vector_int_resize(t, len));
  ------------------
  |  |  656|  30.0k|    do { \
  |  |  657|  30.0k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  30.0k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  30.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 30.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|  30.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 30.0k]
  |  |  ------------------
  ------------------
 1516|  30.0k|        }
 1517|       |
 1518|  56.1k|        for (igraph_int_t j = 0; j < len; j++) {
  ------------------
  |  Branch (1518:34): [True: 26.1k, False: 30.0k]
  ------------------
 1519|  26.1k|            const igraph_attribute_record_t *rec = igraph_attribute_record_list_get_ptr(al, j);
 1520|  26.1k|            const char *name = rec->name;
 1521|  26.1k|            igraph_attribute_type_t type = rec->type;
 1522|  26.1k|            if (n) {
  ------------------
  |  Branch (1522:17): [True: 26.1k, False: 0]
  ------------------
 1523|  26.1k|                IGRAPH_CHECK(igraph_strvector_set(n, j, name));
  ------------------
  |  |  656|  26.1k|    do { \
  |  |  657|  26.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  26.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  26.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 26.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  26.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 26.1k]
  |  |  ------------------
  ------------------
 1524|  26.1k|            }
 1525|  26.1k|            if (t) {
  ------------------
  |  Branch (1525:17): [True: 26.1k, False: 0]
  ------------------
 1526|  26.1k|                VECTOR(*t)[j] = type;
  ------------------
  |  |   60|  26.1k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1527|  26.1k|            }
 1528|  26.1k|        }
 1529|  30.0k|    }
 1530|       |
 1531|  10.0k|    return IGRAPH_SUCCESS;
 1532|  10.0k|}
cattributes.c:igraph_i_cattribute_has_attr:
 1536|   210k|                                                  const char *name) {
 1537|   210k|    const igraph_i_cattributes_t *at = graph->attr;
 1538|   210k|    switch (type) {
 1539|      0|    case IGRAPH_ATTRIBUTE_GRAPH:
  ------------------
  |  Branch (1539:5): [True: 0, False: 210k]
  ------------------
 1540|      0|        return igraph_i_cattribute_find_index(&at->gal, name) >= 0;
 1541|   130k|    case IGRAPH_ATTRIBUTE_VERTEX:
  ------------------
  |  Branch (1541:5): [True: 130k, False: 80.1k]
  ------------------
 1542|   130k|        return igraph_i_cattribute_find_index(&at->val, name) >= 0;
 1543|  80.1k|    case IGRAPH_ATTRIBUTE_EDGE:
  ------------------
  |  Branch (1543:5): [True: 80.1k, False: 130k]
  ------------------
 1544|  80.1k|        return igraph_i_cattribute_find_index(&at->eal, name) >= 0;
 1545|      0|    default:
  ------------------
  |  Branch (1545:5): [True: 0, False: 210k]
  ------------------
 1546|      0|        IGRAPH_FATAL("Unknown attribute element type.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1547|   210k|    }
 1548|   210k|}
cattributes.c:igraph_i_cattribute_get_type:
 1553|  2.53k|                                       const char *name) {
 1554|  2.53k|    igraph_attribute_record_t *rec;
 1555|  2.53k|    igraph_i_cattributes_t *at = graph->attr;
 1556|  2.53k|    igraph_attribute_record_list_t *al;
 1557|       |
 1558|  2.53k|    switch (elemtype) {
 1559|      0|    case IGRAPH_ATTRIBUTE_GRAPH:
  ------------------
  |  Branch (1559:5): [True: 0, False: 2.53k]
  ------------------
 1560|      0|        al = &at->gal;
 1561|      0|        break;
 1562|  1.61k|    case IGRAPH_ATTRIBUTE_VERTEX:
  ------------------
  |  Branch (1562:5): [True: 1.61k, False: 913]
  ------------------
 1563|  1.61k|        al = &at->val;
 1564|  1.61k|        break;
 1565|    913|    case IGRAPH_ATTRIBUTE_EDGE:
  ------------------
  |  Branch (1565:5): [True: 913, False: 1.61k]
  ------------------
 1566|    913|        al = &at->eal;
 1567|    913|        break;
 1568|      0|    default:
  ------------------
  |  Branch (1568:5): [True: 0, False: 2.53k]
  ------------------
 1569|      0|        IGRAPH_ERROR("Unknown attribute element type.", 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]
  |  |  ------------------
  ------------------
 1570|      0|        break;
 1571|  2.53k|    }
 1572|       |
 1573|  2.53k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(al, name, IGRAPH_ATTRIBUTE_UNSPECIFIED, &rec));
  ------------------
  |  |  656|  2.53k|    do { \
  |  |  657|  2.53k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.53k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.53k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.53k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.53k]
  |  |  ------------------
  ------------------
 1574|  2.53k|    *type = rec->type;
 1575|       |
 1576|  2.53k|    return IGRAPH_SUCCESS;
 1577|  2.53k|}
cattributes.c:igraph_i_cattribute_find_or_return:
  113|  1.17M|) {
  114|  1.17M|    igraph_attribute_record_t *rec;
  115|       |
  116|  1.17M|    rec = igraph_i_cattribute_find(attrs, name, IGRAPH_ATTRIBUTE_UNSPECIFIED);
  117|  1.17M|    if (!rec) {
  ------------------
  |  Branch (117:9): [True: 16, False: 1.17M]
  ------------------
  118|     16|        IGRAPH_ERRORF("Attribute '%s' does not exist.", IGRAPH_EINVAL, name);
  ------------------
  |  |  464|     16|    do { \
  |  |  465|     16|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     16|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     16|        return igraph_errno; \
  |  |  468|     16|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  119|     16|    }
  120|       |
  121|  1.17M|    if (type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (121:9): [True: 1.16M, False: 2.53k]
  ------------------
  122|  1.16M|        IGRAPH_CHECK(igraph_attribute_record_check_type(rec, type));
  ------------------
  |  |  656|  1.16M|    do { \
  |  |  657|  1.16M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.16M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.16M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 1, False: 1.16M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      1|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      1|    do { \
  |  |  |  |  427|      1|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      1|        return igraph_errno ; \
  |  |  |  |  429|      1|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      1|        } \
  |  |  661|  1.16M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.16M]
  |  |  ------------------
  ------------------
  123|  1.16M|    }
  124|       |
  125|  1.17M|    if (ptr) {
  ------------------
  |  Branch (125:9): [True: 1.17M, False: 0]
  ------------------
  126|  1.17M|        *ptr = rec;
  127|  1.17M|    }
  128|       |
  129|  1.17M|    return IGRAPH_SUCCESS;
  130|  1.17M|}
cattributes.c:igraph_i_cattribute_get_numeric_graph_attr:
 1581|    241|) {
 1582|    241|    igraph_i_cattributes_t *attr = graph->attr;
 1583|    241|    igraph_attribute_record_list_t *gal = &attr->gal;
 1584|    241|    igraph_attribute_record_t *rec;
 1585|       |
 1586|    241|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(gal, name, IGRAPH_ATTRIBUTE_NUMERIC, &rec));
  ------------------
  |  |  656|    241|    do { \
  |  |  657|    241|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    241|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    241|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 241]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    241|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 241]
  |  |  ------------------
  ------------------
 1587|    241|    IGRAPH_CHECK(igraph_vector_push_back(value, VECTOR(*rec->value.as_vector)[0]));
  ------------------
  |  |  656|    241|    do { \
  |  |  657|    241|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    241|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    241|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 241]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    241|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 241]
  |  |  ------------------
  ------------------
 1588|       |
 1589|    241|    return IGRAPH_SUCCESS;
 1590|    241|}
cattributes.c:igraph_i_cattribute_get_string_graph_attr:
 1607|  1.72k|) {
 1608|  1.72k|    igraph_i_cattributes_t *attr = graph->attr;
 1609|  1.72k|    igraph_attribute_record_list_t *gal = &attr->gal;
 1610|  1.72k|    igraph_attribute_record_t *rec;
 1611|       |
 1612|  1.72k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(gal, name, IGRAPH_ATTRIBUTE_STRING, &rec));
  ------------------
  |  |  656|  1.72k|    do { \
  |  |  657|  1.72k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.72k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.72k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.72k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.72k]
  |  |  ------------------
  ------------------
 1613|  1.72k|    IGRAPH_CHECK(igraph_strvector_push_back(value, igraph_strvector_get(rec->value.as_strvector, 0)));
  ------------------
  |  |  656|  1.72k|    do { \
  |  |  657|  1.72k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.72k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.72k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.72k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.72k]
  |  |  ------------------
  ------------------
 1614|       |
 1615|  1.72k|    return IGRAPH_SUCCESS;
 1616|  1.72k|}
cattributes.c:igraph_i_cattribute_get_bool_graph_attr:
 1594|    419|) {
 1595|    419|    igraph_i_cattributes_t *attr = graph->attr;
 1596|    419|    igraph_attribute_record_list_t *gal = &attr->gal;
 1597|    419|    igraph_attribute_record_t *rec;
 1598|       |
 1599|    419|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(gal, name, IGRAPH_ATTRIBUTE_BOOLEAN, &rec));
  ------------------
  |  |  656|    419|    do { \
  |  |  657|    419|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    419|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    419|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 419]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    419|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 419]
  |  |  ------------------
  ------------------
 1600|    419|    IGRAPH_CHECK(igraph_vector_bool_push_back(value, VECTOR(*rec->value.as_vector_bool)[0]));
  ------------------
  |  |  656|    419|    do { \
  |  |  657|    419|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    419|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    419|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 419]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    419|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 419]
  |  |  ------------------
  ------------------
 1601|       |
 1602|    419|    return IGRAPH_SUCCESS;
 1603|    419|}
cattributes.c:igraph_i_cattribute_get_numeric_vertex_attr:
 1621|  14.8k|                                                       igraph_vector_t *value) {
 1622|  14.8k|    igraph_i_cattributes_t *attr = graph->attr;
 1623|  14.8k|    igraph_attribute_record_list_t *val = &attr->val;
 1624|  14.8k|    igraph_attribute_record_t *rec;
 1625|  14.8k|    const igraph_vector_t *num;
 1626|       |
 1627|  14.8k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(val, name, IGRAPH_ATTRIBUTE_NUMERIC, &rec));
  ------------------
  |  |  656|  14.8k|    do { \
  |  |  657|  14.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  14.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.8k]
  |  |  ------------------
  ------------------
 1628|       |
 1629|  14.8k|    num = rec->value.as_vector;
 1630|  14.8k|    if (igraph_vs_is_all(&vs)) {
  ------------------
  |  Branch (1630:9): [True: 64, False: 14.7k]
  ------------------
 1631|     64|        IGRAPH_CHECK(igraph_vector_append(value, num));
  ------------------
  |  |  656|     64|    do { \
  |  |  657|     64|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     64|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     64|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 64]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     64|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 64]
  |  |  ------------------
  ------------------
 1632|  14.7k|    } else {
 1633|  14.7k|        igraph_vit_t it;
 1634|  14.7k|        igraph_int_t i = igraph_vector_size(value);
 1635|  14.7k|        IGRAPH_CHECK(igraph_vit_create(graph, vs, &it));
  ------------------
  |  |  656|  14.7k|    do { \
  |  |  657|  14.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  14.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 1636|  14.7k|        IGRAPH_FINALLY(igraph_vit_destroy, &it);
  ------------------
  |  |  603|  14.7k|    do { \
  |  |  604|  14.7k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  14.7k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  14.7k|         * incorrect destructor function with the pointer */ \
  |  |  607|  14.7k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 14.7k]
  |  |  ------------------
  |  |  608|  14.7k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  14.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 1637|  14.7k|        IGRAPH_CHECK(igraph_vector_resize(value, i + IGRAPH_VIT_SIZE(it)));
  ------------------
  |  |  656|  14.7k|    do { \
  |  |  657|  14.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  14.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.7k]
  |  |  ------------------
  ------------------
 1638|  29.5k|        for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  179|  29.5k|#define IGRAPH_VIT_END(vit)   ((vit).pos >= (vit).end)
  ------------------
                      for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  167|  14.7k|#define IGRAPH_VIT_NEXT(vit)  (++((vit).pos))
  ------------------
  |  Branch (1638:16): [True: 14.7k, False: 14.7k]
  ------------------
 1639|  14.7k|            igraph_int_t v = IGRAPH_VIT_GET(it);
  ------------------
  |  |  214|  14.7k|    ((igraph_int_t)(((vit).type == IGRAPH_VIT_RANGE) ? (vit).pos : \
  |  |  ------------------
  |  |  |  Branch (214:21): [True: 14.7k, False: 0]
  |  |  ------------------
  |  |  215|  14.7k|                        VECTOR(*(vit).vec)[(vit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1640|  14.7k|            VECTOR(*value)[i] = VECTOR(*num)[v];
  ------------------
  |  |   60|  14.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(*value)[i] = VECTOR(*num)[v];
  ------------------
  |  |   60|  14.7k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1641|  14.7k|        }
 1642|  14.7k|        igraph_vit_destroy(&it);
 1643|  14.7k|        IGRAPH_FINALLY_CLEAN(1);
 1644|  14.7k|    }
 1645|       |
 1646|  14.8k|    return IGRAPH_SUCCESS;
 1647|  14.8k|}
cattributes.c:igraph_i_cattribute_get_string_vertex_attr:
 1683|   109k|                                                      igraph_strvector_t *value) {
 1684|   109k|    igraph_i_cattributes_t *attr = graph->attr;
 1685|   109k|    igraph_attribute_record_list_t *val = &attr->val;
 1686|   109k|    igraph_attribute_record_t *rec;
 1687|   109k|    const igraph_strvector_t *str;
 1688|       |
 1689|   109k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(val, name, IGRAPH_ATTRIBUTE_STRING, &rec));
  ------------------
  |  |  656|   109k|    do { \
  |  |  657|   109k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   109k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   109k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 109k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   109k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 109k]
  |  |  ------------------
  ------------------
 1690|       |
 1691|   109k|    str = rec->value.as_strvector;
 1692|   109k|    if (igraph_vs_is_all(&vs)) {
  ------------------
  |  Branch (1692:9): [True: 1.13k, False: 108k]
  ------------------
 1693|  1.13k|        igraph_strvector_clear(value);
 1694|  1.13k|        IGRAPH_CHECK(igraph_strvector_append(value, str));
  ------------------
  |  |  656|  1.13k|    do { \
  |  |  657|  1.13k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.13k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.13k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.13k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.13k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.13k]
  |  |  ------------------
  ------------------
 1695|   108k|    } else {
 1696|   108k|        igraph_vit_t it;
 1697|   108k|        igraph_int_t i = igraph_strvector_size(value);
 1698|   108k|        IGRAPH_CHECK(igraph_vit_create(graph, vs, &it));
  ------------------
  |  |  656|   108k|    do { \
  |  |  657|   108k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   108k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   108k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 108k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   108k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 108k]
  |  |  ------------------
  ------------------
 1699|   108k|        IGRAPH_FINALLY(igraph_vit_destroy, &it);
  ------------------
  |  |  603|   108k|    do { \
  |  |  604|   108k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   108k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   108k|         * incorrect destructor function with the pointer */ \
  |  |  607|   108k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 108k]
  |  |  ------------------
  |  |  608|   108k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   108k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 108k]
  |  |  ------------------
  ------------------
 1700|   108k|        IGRAPH_CHECK(igraph_strvector_resize(value, i + IGRAPH_VIT_SIZE(it)));
  ------------------
  |  |  656|   108k|    do { \
  |  |  657|   108k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   108k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   108k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 108k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   108k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 108k]
  |  |  ------------------
  ------------------
 1701|   216k|        for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  179|   216k|#define IGRAPH_VIT_END(vit)   ((vit).pos >= (vit).end)
  ------------------
                      for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  167|   108k|#define IGRAPH_VIT_NEXT(vit)  (++((vit).pos))
  ------------------
  |  Branch (1701:16): [True: 108k, False: 108k]
  ------------------
 1702|   108k|            igraph_int_t v = IGRAPH_VIT_GET(it);
  ------------------
  |  |  214|   108k|    ((igraph_int_t)(((vit).type == IGRAPH_VIT_RANGE) ? (vit).pos : \
  |  |  ------------------
  |  |  |  Branch (214:21): [True: 108k, False: 0]
  |  |  ------------------
  |  |  215|   108k|                        VECTOR(*(vit).vec)[(vit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1703|   108k|            IGRAPH_CHECK(igraph_strvector_set(value, i, igraph_strvector_get(str, v)));
  ------------------
  |  |  656|   108k|    do { \
  |  |  657|   108k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   108k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   108k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 108k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   108k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 108k]
  |  |  ------------------
  ------------------
 1704|   108k|        }
 1705|   108k|        igraph_vit_destroy(&it);
 1706|   108k|        IGRAPH_FINALLY_CLEAN(1);
 1707|   108k|    }
 1708|       |
 1709|   109k|    return IGRAPH_SUCCESS;
 1710|   109k|}
cattributes.c:igraph_i_cattribute_get_bool_vertex_attr:
 1652|  23.4k|                                                    igraph_vector_bool_t *value) {
 1653|  23.4k|    igraph_i_cattributes_t *attr = graph->attr;
 1654|  23.4k|    igraph_attribute_record_list_t *val = &attr->val;
 1655|  23.4k|    igraph_attribute_record_t *rec;
 1656|  23.4k|    const igraph_vector_bool_t *log;
 1657|       |
 1658|  23.4k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(val, name, IGRAPH_ATTRIBUTE_BOOLEAN, &rec));
  ------------------
  |  |  656|  23.4k|    do { \
  |  |  657|  23.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  23.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  23.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 23.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  23.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
 1659|       |
 1660|  23.4k|    log = rec->value.as_vector_bool;
 1661|  23.4k|    if (igraph_vs_is_all(&vs)) {
  ------------------
  |  Branch (1661:9): [True: 48, False: 23.4k]
  ------------------
 1662|     48|        IGRAPH_CHECK(igraph_vector_bool_append(value, log));
  ------------------
  |  |  656|     48|    do { \
  |  |  657|     48|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     48|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     48|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     48|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 48]
  |  |  ------------------
  ------------------
 1663|  23.4k|    } else {
 1664|  23.4k|        igraph_vit_t it;
 1665|  23.4k|        igraph_int_t i = igraph_vector_bool_size(value);
 1666|  23.4k|        IGRAPH_CHECK(igraph_vit_create(graph, vs, &it));
  ------------------
  |  |  656|  23.4k|    do { \
  |  |  657|  23.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  23.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  23.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 23.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  23.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
 1667|  23.4k|        IGRAPH_FINALLY(igraph_vit_destroy, &it);
  ------------------
  |  |  603|  23.4k|    do { \
  |  |  604|  23.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  23.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  23.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  23.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 23.4k]
  |  |  ------------------
  |  |  608|  23.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  23.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
 1668|  23.4k|        IGRAPH_CHECK(igraph_vector_bool_resize(value, i + IGRAPH_VIT_SIZE(it)));
  ------------------
  |  |  656|  23.4k|    do { \
  |  |  657|  23.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  23.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  23.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 23.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  23.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 23.4k]
  |  |  ------------------
  ------------------
 1669|  46.8k|        for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  179|  46.8k|#define IGRAPH_VIT_END(vit)   ((vit).pos >= (vit).end)
  ------------------
                      for (; !IGRAPH_VIT_END(it); IGRAPH_VIT_NEXT(it), i++) {
  ------------------
  |  |  167|  23.4k|#define IGRAPH_VIT_NEXT(vit)  (++((vit).pos))
  ------------------
  |  Branch (1669:16): [True: 23.4k, False: 23.4k]
  ------------------
 1670|  23.4k|            igraph_int_t v = IGRAPH_VIT_GET(it);
  ------------------
  |  |  214|  23.4k|    ((igraph_int_t)(((vit).type == IGRAPH_VIT_RANGE) ? (vit).pos : \
  |  |  ------------------
  |  |  |  Branch (214:21): [True: 23.4k, False: 0]
  |  |  ------------------
  |  |  215|  23.4k|                        VECTOR(*(vit).vec)[(vit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1671|  23.4k|            VECTOR(*value)[i] = VECTOR(*log)[v];
  ------------------
  |  |   60|  23.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(*value)[i] = VECTOR(*log)[v];
  ------------------
  |  |   60|  23.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1672|  23.4k|        }
 1673|  23.4k|        igraph_vit_destroy(&it);
 1674|  23.4k|        IGRAPH_FINALLY_CLEAN(1);
 1675|  23.4k|    }
 1676|       |
 1677|  23.4k|    return IGRAPH_SUCCESS;
 1678|  23.4k|}
cattributes.c:igraph_i_cattribute_get_numeric_edge_attr:
 1714|   174k|) {
 1715|   174k|    igraph_i_cattributes_t *attr = graph->attr;
 1716|   174k|    igraph_attribute_record_list_t *eal = &attr->eal;
 1717|   174k|    igraph_attribute_record_t *rec;
 1718|   174k|    const igraph_vector_t *num;
 1719|       |
 1720|   174k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(eal, name, IGRAPH_ATTRIBUTE_NUMERIC, &rec));
  ------------------
  |  |  656|   174k|    do { \
  |  |  657|   174k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   174k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   174k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 174k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   174k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 174k]
  |  |  ------------------
  ------------------
 1721|       |
 1722|   174k|    num = rec->value.as_vector;
 1723|   174k|    if (igraph_es_is_all(&es)) {
  ------------------
  |  Branch (1723:9): [True: 449, False: 174k]
  ------------------
 1724|    449|        IGRAPH_CHECK(igraph_vector_append(value, num));
  ------------------
  |  |  656|    449|    do { \
  |  |  657|    449|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    449|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    449|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 449]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    449|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 449]
  |  |  ------------------
  ------------------
 1725|   174k|    } else {
 1726|   174k|        igraph_eit_t it;
 1727|   174k|        igraph_int_t i = igraph_vector_size(value);
 1728|   174k|        IGRAPH_CHECK(igraph_eit_create(graph, es, &it));
  ------------------
  |  |  656|   174k|    do { \
  |  |  657|   174k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   174k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   174k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 174k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   174k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 174k]
  |  |  ------------------
  ------------------
 1729|   174k|        IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|   174k|    do { \
  |  |  604|   174k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   174k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   174k|         * incorrect destructor function with the pointer */ \
  |  |  607|   174k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 174k]
  |  |  ------------------
  |  |  608|   174k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   174k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 174k]
  |  |  ------------------
  ------------------
 1730|   174k|        IGRAPH_CHECK(igraph_vector_resize(value, i + IGRAPH_EIT_SIZE(it)));
  ------------------
  |  |  656|   174k|    do { \
  |  |  657|   174k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   174k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   174k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 174k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   174k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 174k]
  |  |  ------------------
  ------------------
 1731|   348k|        for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  371|   348k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                      for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  359|   174k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (1731:16): [True: 174k, False: 174k]
  ------------------
 1732|   174k|            igraph_int_t e = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|   174k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 174k, False: 0]
  |  |  ------------------
  |  |  406|   174k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1733|   174k|            VECTOR(*value)[i] = VECTOR(*num)[e];
  ------------------
  |  |   60|   174k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(*value)[i] = VECTOR(*num)[e];
  ------------------
  |  |   60|   174k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1734|   174k|        }
 1735|   174k|        igraph_eit_destroy(&it);
 1736|   174k|        IGRAPH_FINALLY_CLEAN(1);
 1737|   174k|    }
 1738|       |
 1739|   174k|    return IGRAPH_SUCCESS;
 1740|   174k|}
cattributes.c:igraph_i_cattribute_get_string_edge_attr:
 1745|   716k|) {
 1746|   716k|    igraph_i_cattributes_t *attr = graph->attr;
 1747|   716k|    igraph_attribute_record_list_t *eal = &attr->eal;
 1748|   716k|    igraph_attribute_record_t *rec;
 1749|   716k|    const igraph_strvector_t *str;
 1750|       |
 1751|   716k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(eal, name, IGRAPH_ATTRIBUTE_STRING, &rec));
  ------------------
  |  |  656|   716k|    do { \
  |  |  657|   716k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   716k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1752|       |
 1753|   716k|    str = rec->value.as_strvector;
 1754|   716k|    if (igraph_es_is_all(&es)) {
  ------------------
  |  Branch (1754:9): [True: 44, False: 716k]
  ------------------
 1755|     44|        IGRAPH_CHECK(igraph_strvector_append(value, str));
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
 1756|   716k|    } else {
 1757|   716k|        igraph_eit_t it;
 1758|   716k|        igraph_int_t i = igraph_strvector_size(value);
 1759|   716k|        IGRAPH_CHECK(igraph_eit_create(graph, es, &it));
  ------------------
  |  |  656|   716k|    do { \
  |  |  657|   716k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   716k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1760|   716k|        IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|   716k|    do { \
  |  |  604|   716k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   716k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   716k|         * incorrect destructor function with the pointer */ \
  |  |  607|   716k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 716k]
  |  |  ------------------
  |  |  608|   716k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1761|   716k|        IGRAPH_CHECK(igraph_strvector_resize(value, i + IGRAPH_EIT_SIZE(it)));
  ------------------
  |  |  656|   716k|    do { \
  |  |  657|   716k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   716k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1762|  1.43M|        for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  371|  1.43M|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                      for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  359|   716k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (1762:16): [True: 716k, False: 716k]
  ------------------
 1763|   716k|            igraph_int_t e = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|   716k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 716k, False: 0]
  |  |  ------------------
  |  |  406|   716k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1764|   716k|            IGRAPH_CHECK(igraph_strvector_set(value, i, igraph_strvector_get(str, e)));
  ------------------
  |  |  656|   716k|    do { \
  |  |  657|   716k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   716k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   716k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 716k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   716k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 716k]
  |  |  ------------------
  ------------------
 1765|   716k|        }
 1766|   716k|        igraph_eit_destroy(&it);
 1767|   716k|        IGRAPH_FINALLY_CLEAN(1);
 1768|   716k|    }
 1769|       |
 1770|   716k|    return IGRAPH_SUCCESS;
 1771|   716k|}
cattributes.c:igraph_i_cattribute_get_bool_edge_attr:
 1776|   126k|) {
 1777|   126k|    igraph_i_cattributes_t *attr = graph->attr;
 1778|   126k|    igraph_attribute_record_list_t *eal = &attr->eal;
 1779|   126k|    igraph_attribute_record_t *rec;
 1780|   126k|    const igraph_vector_bool_t *log;
 1781|       |
 1782|   126k|    IGRAPH_CHECK(igraph_i_cattribute_find_or_return(eal, name, IGRAPH_ATTRIBUTE_BOOLEAN, &rec));
  ------------------
  |  |  656|   126k|    do { \
  |  |  657|   126k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   126k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   126k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 17, False: 126k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     17|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     17|    do { \
  |  |  |  |  427|     17|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     17|        return igraph_errno ; \
  |  |  |  |  429|     17|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     17|        } \
  |  |  661|   126k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 126k]
  |  |  ------------------
  ------------------
 1783|       |
 1784|   126k|    log = rec->value.as_vector_bool;
 1785|   126k|    if (igraph_es_is_all(&es)) {
  ------------------
  |  Branch (1785:9): [True: 30, False: 126k]
  ------------------
 1786|     30|        IGRAPH_CHECK(igraph_vector_bool_append(value, log));
  ------------------
  |  |  656|     30|    do { \
  |  |  657|     30|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     30|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     30|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 30]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     30|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 30]
  |  |  ------------------
  ------------------
 1787|   126k|    } else {
 1788|   126k|        igraph_eit_t it;
 1789|   126k|        igraph_int_t i = igraph_vector_bool_size(value);
 1790|   126k|        IGRAPH_CHECK(igraph_eit_create(graph, es, &it));
  ------------------
  |  |  656|   126k|    do { \
  |  |  657|   126k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   126k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   126k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 126k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   126k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 126k]
  |  |  ------------------
  ------------------
 1791|   126k|        IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|   126k|    do { \
  |  |  604|   126k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   126k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   126k|         * incorrect destructor function with the pointer */ \
  |  |  607|   126k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 126k]
  |  |  ------------------
  |  |  608|   126k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   126k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 126k]
  |  |  ------------------
  ------------------
 1792|   126k|        IGRAPH_CHECK(igraph_vector_bool_resize(value, i + IGRAPH_EIT_SIZE(it)));
  ------------------
  |  |  656|   126k|    do { \
  |  |  657|   126k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   126k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   126k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 126k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   126k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 126k]
  |  |  ------------------
  ------------------
 1793|   253k|        for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  371|   253k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                      for (; !IGRAPH_EIT_END(it); IGRAPH_EIT_NEXT(it), i++) {
  ------------------
  |  |  359|   126k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (1793:16): [True: 126k, False: 126k]
  ------------------
 1794|   126k|            igraph_int_t e = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|   126k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 126k, False: 0]
  |  |  ------------------
  |  |  406|   126k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1795|   126k|            VECTOR(*value)[i] = VECTOR(*log)[e];
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(*value)[i] = VECTOR(*log)[e];
  ------------------
  |  |   60|   126k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1796|   126k|        }
 1797|   126k|        igraph_eit_destroy(&it);
 1798|   126k|        IGRAPH_FINALLY_CLEAN(1);
 1799|   126k|    }
 1800|       |
 1801|   126k|    return IGRAPH_SUCCESS;
 1802|   126k|}
cattributes.c:igraph_i_cattribute_find:
   69|  1.19M|) {
   70|  1.19M|    igraph_int_t index = igraph_i_cattribute_find_index(attrs, name);
   71|  1.19M|    igraph_attribute_record_t *rec;
   72|       |
   73|  1.19M|    if (index >= 0) {
  ------------------
  |  Branch (73:9): [True: 1.17M, False: 28.4k]
  ------------------
   74|  1.17M|        rec = igraph_attribute_record_list_get_ptr(attrs, index);
   75|  1.17M|        if (type == IGRAPH_ATTRIBUTE_UNSPECIFIED || type == rec->type) {
  ------------------
  |  Branch (75:13): [True: 1.17M, False: 0]
  |  Branch (75:53): [True: 0, False: 0]
  ------------------
   76|  1.17M|            return rec;
   77|  1.17M|        }
   78|  1.17M|    }
   79|       |
   80|  28.4k|    return NULL;
   81|  1.19M|}
cattributes.c:igraph_i_cattribute_find_or_create:
  147|  28.4k|) {
  148|  28.4k|    igraph_attribute_record_t *rec;
  149|       |
  150|  28.4k|    rec = igraph_i_cattribute_find(attrs, name, IGRAPH_ATTRIBUTE_UNSPECIFIED);
  151|  28.4k|    if (rec) {
  ------------------
  |  Branch (151:9): [True: 0, False: 28.4k]
  ------------------
  152|      0|        if (type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (152:13): [True: 0, False: 0]
  ------------------
  153|      0|            IGRAPH_CHECK(igraph_attribute_record_check_type(rec, type));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  154|      0|        }
  155|  28.4k|    } else {
  156|  28.4k|        IGRAPH_CHECK(igraph_attribute_record_list_push_back_new(attrs, &rec));
  ------------------
  |  |  656|  28.4k|    do { \
  |  |  657|  28.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  28.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  157|  28.4k|        IGRAPH_CHECK(igraph_attribute_record_set_name(rec, name));
  ------------------
  |  |  656|  28.4k|    do { \
  |  |  657|  28.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  28.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  158|  28.4k|        IGRAPH_CHECK(igraph_attribute_record_set_type(rec, type));
  ------------------
  |  |  656|  28.4k|    do { \
  |  |  657|  28.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  28.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  28.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 28.4k]
  |  |  ------------------
  ------------------
  159|  28.4k|    }
  160|       |
  161|  28.4k|    if (length > 0 && igraph_attribute_record_size(rec) < length) {
  ------------------
  |  Branch (161:9): [True: 0, False: 28.4k]
  |  Branch (161:23): [True: 0, False: 0]
  ------------------
  162|      0|        IGRAPH_CHECK(igraph_attribute_record_resize(rec, length));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  163|      0|    }
  164|       |
  165|  28.4k|    if (ptr) {
  ------------------
  |  Branch (165:9): [True: 0, False: 28.4k]
  ------------------
  166|      0|        *ptr = rec;
  167|      0|    }
  168|       |
  169|  28.4k|    return IGRAPH_SUCCESS;
  170|  28.4k|}
cattributes.c:igraph_i_cattribute_find_index:
   49|  1.43M|) {
   50|  1.43M|    igraph_int_t n = igraph_attribute_record_list_size(attrs);
   51|  2.65M|    for (igraph_int_t i = 0; i < n; i++) {
  ------------------
  |  Branch (51:30): [True: 2.41M, False: 236k]
  ------------------
   52|  2.41M|        const igraph_attribute_record_t *rec = igraph_attribute_record_list_get_ptr(attrs, i);
   53|  2.41M|        if (!strcmp(rec->name, name)) {
  ------------------
  |  Branch (53:13): [True: 1.20M, False: 1.21M]
  ------------------
   54|  1.20M|            return i;
   55|  1.20M|        }
   56|  2.41M|    }
   57|   236k|    return -1;
   58|  1.43M|}

igraph_vss_all:
  115|  1.24k|igraph_vs_t igraph_vss_all(void) {
  116|  1.24k|    igraph_vs_t allvs;
  117|  1.24k|    allvs.type = IGRAPH_VS_ALL;
  118|  1.24k|    return allvs;
  119|  1.24k|}
igraph_vss_1:
  292|   146k|igraph_vs_t igraph_vss_1(igraph_int_t vid) {
  293|   146k|    igraph_vs_t onevs;
  294|   146k|    onevs.type = IGRAPH_VS_1;
  295|   146k|    onevs.data.vid = vid;
  296|   146k|    return onevs;
  297|   146k|}
igraph_vs_is_all:
  544|   147k|igraph_bool_t igraph_vs_is_all(const igraph_vs_t *vs) {
  545|   147k|    return vs->type == IGRAPH_VS_ALL;
  546|   147k|}
igraph_vit_create:
  715|   146k|igraph_error_t igraph_vit_create(const igraph_t *graph, igraph_vs_t vs, igraph_vit_t *vit) {
  716|   146k|    igraph_vector_int_t vec;
  717|   146k|    igraph_vector_int_t *vec_int;
  718|   146k|    igraph_bool_t *seen;
  719|   146k|    igraph_int_t i, j, n;
  720|   146k|    igraph_int_t vec_len;
  721|       |
  722|   146k|    switch (vs.type) {
  723|      0|    case IGRAPH_VS_ALL:
  ------------------
  |  Branch (723:5): [True: 0, False: 146k]
  ------------------
  724|      0|        vit->type = IGRAPH_VIT_RANGE;
  725|      0|        vit->pos = 0;
  726|      0|        vit->start = 0;
  727|      0|        vit->end = igraph_vcount(graph);
  728|      0|        break;
  729|      0|    case IGRAPH_VS_ADJ:
  ------------------
  |  Branch (729:5): [True: 0, False: 146k]
  ------------------
  730|      0|        vec_int = IGRAPH_CALLOC(1, igraph_vector_int_t);
  ------------------
  |  |   33|      0|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|      0|    (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: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  731|      0|        IGRAPH_CHECK_OOM(vec_int, "Cannot create vertex iterator.");
  ------------------
  |  |  709|      0|    do { \
  |  |  710|      0|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  732|      0|        IGRAPH_FINALLY(igraph_free, vec_int);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  733|      0|        IGRAPH_VECTOR_INT_INIT_FINALLY(vec_int, 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]
  |  |  ------------------
  ------------------
  734|      0|        IGRAPH_VECTOR_INT_INIT_FINALLY(&vec, 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]
  |  |  ------------------
  ------------------
  735|      0|        IGRAPH_CHECK(igraph_neighbors(
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  736|      0|            graph, &vec, vs.data.adj.vid, vs.data.adj.mode,
  737|      0|            vs.data.adj.loops, vs.data.adj.multiple
  738|      0|        ));
  739|      0|        n = igraph_vector_int_size(&vec);
  740|      0|        IGRAPH_CHECK(igraph_vector_int_resize(vec_int, n));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  741|      0|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (741:21): [True: 0, False: 0]
  ------------------
  742|      0|            VECTOR(*vec_int)[i] = VECTOR(vec)[i];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          VECTOR(*vec_int)[i] = VECTOR(vec)[i];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  743|      0|        }
  744|       |
  745|      0|        igraph_vector_int_destroy(&vec);
  746|      0|        IGRAPH_FINALLY_CLEAN(3);
  747|       |
  748|      0|        vit->type = IGRAPH_VIT_VECTOR;
  749|      0|        vit->pos = 0;
  750|      0|        vit->start = 0;
  751|      0|        vit->vec = vec_int;
  752|      0|        vit->end = n;
  753|       |
  754|      0|        break;
  755|      0|    case IGRAPH_VS_NONADJ:
  ------------------
  |  Branch (755:5): [True: 0, False: 146k]
  ------------------
  756|      0|        vec_int = IGRAPH_CALLOC(1, igraph_vector_int_t);
  ------------------
  |  |   33|      0|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|      0|    (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: 0, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  757|      0|        IGRAPH_CHECK_OOM(vec_int, "Cannot create vertex iterator.");
  ------------------
  |  |  709|      0|    do { \
  |  |  710|      0|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  758|      0|        IGRAPH_FINALLY(igraph_free, vec_int);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  759|      0|        IGRAPH_VECTOR_INT_INIT_FINALLY(vec_int, 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]
  |  |  ------------------
  ------------------
  760|      0|        IGRAPH_VECTOR_INT_INIT_FINALLY(&vec, 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]
  |  |  ------------------
  ------------------
  761|      0|        IGRAPH_CHECK(igraph_neighbors(
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  762|      0|            graph, &vec, vs.data.adj.vid, vs.data.adj.mode,
  763|      0|            vs.data.adj.loops, vs.data.adj.multiple
  764|      0|        ));
  765|      0|        vec_len = igraph_vector_int_size(&vec);
  766|      0|        n = igraph_vcount(graph);
  767|      0|        seen = IGRAPH_CALLOC(n, igraph_bool_t);
  ------------------
  |  |   33|      0|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|      0|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 0, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 0, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  768|      0|        IGRAPH_CHECK_OOM(seen, "Cannot create vertex iterator.");
  ------------------
  |  |  709|      0|    do { \
  |  |  710|      0|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|      0|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  769|      0|        IGRAPH_FINALLY(igraph_free, seen);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  770|      0|        for (i = 0; i < vec_len; i++) {
  ------------------
  |  Branch (770:21): [True: 0, False: 0]
  ------------------
  771|      0|            if (! seen [ VECTOR(vec)[i] ] ) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (771:17): [True: 0, False: 0]
  ------------------
  772|      0|                n--;
  773|      0|                seen[ VECTOR(vec)[i] ] = true;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  774|      0|            }
  775|      0|        }
  776|      0|        IGRAPH_CHECK(igraph_vector_int_resize(vec_int, n));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  777|      0|        for (i = 0, j = 0; j < n; i++) {
  ------------------
  |  Branch (777:28): [True: 0, False: 0]
  ------------------
  778|      0|            if (!seen[i]) {
  ------------------
  |  Branch (778:17): [True: 0, False: 0]
  ------------------
  779|      0|                VECTOR(*vec_int)[j++] = i;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  780|      0|            }
  781|      0|        }
  782|       |
  783|      0|        IGRAPH_FREE(seen);
  ------------------
  |  |   36|      0|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  784|      0|        igraph_vector_int_destroy(&vec);
  785|      0|        IGRAPH_FINALLY_CLEAN(4);
  786|       |
  787|      0|        vit->type = IGRAPH_VIT_VECTOR;
  788|      0|        vit->pos = 0;
  789|      0|        vit->start = 0;
  790|      0|        vit->vec = vec_int;
  791|      0|        vit->end = n;
  792|      0|        break;
  793|      0|    case IGRAPH_VS_NONE:
  ------------------
  |  Branch (793:5): [True: 0, False: 146k]
  ------------------
  794|      0|        vit->type = IGRAPH_VIT_RANGE;
  795|      0|        vit->pos = 0;
  796|      0|        vit->start = 0;
  797|      0|        vit->end = 0;
  798|      0|        break;
  799|   146k|    case IGRAPH_VS_1:
  ------------------
  |  Branch (799:5): [True: 146k, False: 0]
  ------------------
  800|   146k|        if (vs.data.vid < 0 || vs.data.vid >= igraph_vcount(graph)) {
  ------------------
  |  Branch (800:13): [True: 0, False: 146k]
  |  Branch (800:32): [True: 0, False: 146k]
  ------------------
  801|      0|            IGRAPH_ERROR("Cannot create iterator, invalid 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]
  |  |  ------------------
  ------------------
  802|      0|        }
  803|   146k|        vit->type = IGRAPH_VIT_RANGE;
  804|   146k|        vit->pos = vs.data.vid;
  805|   146k|        vit->start = vs.data.vid;
  806|   146k|        vit->end = vs.data.vid + 1;
  807|   146k|        break;
  808|      0|    case IGRAPH_VS_VECTORPTR:
  ------------------
  |  Branch (808:5): [True: 0, False: 146k]
  ------------------
  809|      0|    case IGRAPH_VS_VECTOR:
  ------------------
  |  Branch (809:5): [True: 0, False: 146k]
  ------------------
  810|      0|        vit->type = IGRAPH_VIT_VECTORPTR;
  811|      0|        vit->pos = 0;
  812|      0|        vit->start = 0;
  813|      0|        vit->vec = vs.data.vecptr;
  814|      0|        vit->end = igraph_vector_int_size(vit->vec);
  815|      0|        if (!igraph_vector_int_isininterval(vit->vec, 0, igraph_vcount(graph) - 1)) {
  ------------------
  |  Branch (815:13): [True: 0, False: 0]
  ------------------
  816|      0|            IGRAPH_ERROR("Cannot create iterator, invalid 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]
  |  |  ------------------
  ------------------
  817|      0|        }
  818|      0|        break;
  819|      0|    case IGRAPH_VS_RANGE:
  ------------------
  |  Branch (819:5): [True: 0, False: 146k]
  ------------------
  820|      0|        {
  821|      0|            igraph_int_t no_of_nodes = igraph_vcount(graph);
  822|      0|            if (vs.data.range.start < 0 ||
  ------------------
  |  Branch (822:17): [True: 0, False: 0]
  ------------------
  823|      0|                vs.data.range.start > no_of_nodes ||
  ------------------
  |  Branch (823:17): [True: 0, False: 0]
  ------------------
  824|      0|                (no_of_nodes > 0 && vs.data.range.start == no_of_nodes)) {
  ------------------
  |  Branch (824:18): [True: 0, False: 0]
  |  Branch (824:37): [True: 0, False: 0]
  ------------------
  825|      0|                IGRAPH_ERROR("Cannot create range iterator, starting vertex ID out of range.", 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]
  |  |  ------------------
  ------------------
  826|      0|            }
  827|      0|            if (vs.data.range.end < 0 || vs.data.range.end > no_of_nodes) {
  ------------------
  |  Branch (827:17): [True: 0, False: 0]
  |  Branch (827:42): [True: 0, False: 0]
  ------------------
  828|      0|                IGRAPH_ERROR("Cannot create range iterator, ending vertex ID out of range.", 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]
  |  |  ------------------
  ------------------
  829|      0|            }
  830|      0|        }
  831|      0|        vit->type = IGRAPH_VIT_RANGE;
  832|      0|        vit->pos = vs.data.range.start;
  833|      0|        vit->start = vs.data.range.start;
  834|      0|        vit->end = vs.data.range.end;
  835|      0|        break;
  836|      0|    default:
  ------------------
  |  Branch (836:5): [True: 0, False: 146k]
  ------------------
  837|      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]
  |  |  ------------------
  ------------------
  838|      0|        break;
  839|   146k|    }
  840|   146k|    return IGRAPH_SUCCESS;
  841|   146k|}
igraph_vit_destroy:
  856|   146k|void igraph_vit_destroy(const igraph_vit_t *vit) {
  857|   146k|    switch (vit->type) {
  858|   146k|    case IGRAPH_VIT_RANGE:
  ------------------
  |  Branch (858:5): [True: 146k, False: 0]
  ------------------
  859|   146k|    case IGRAPH_VIT_VECTORPTR:
  ------------------
  |  Branch (859:5): [True: 0, False: 146k]
  ------------------
  860|   146k|        break;
  861|      0|    case IGRAPH_VIT_VECTOR:
  ------------------
  |  Branch (861:5): [True: 0, False: 146k]
  ------------------
  862|      0|        igraph_vector_int_destroy((igraph_vector_int_t*) vit->vec);
  863|      0|        igraph_free((igraph_vector_int_t*) vit->vec);
  864|      0|        break;
  865|      0|    default:
  ------------------
  |  Branch (865:5): [True: 0, False: 146k]
  ------------------
  866|       |        /*     IGRAPH_ERROR("Cannot destroy iterator, unknown type", IGRAPH_EINVAL); */
  867|      0|        break;
  868|   146k|    }
  869|   146k|}
igraph_es_all:
  924|  17.2k|                  igraph_edgeorder_type_t order) {
  925|  17.2k|    switch (order) {
  926|  10.5k|    case IGRAPH_EDGEORDER_ID:
  ------------------
  |  Branch (926:5): [True: 10.5k, False: 6.67k]
  ------------------
  927|  10.5k|        es->type = IGRAPH_ES_ALL;
  928|  10.5k|        break;
  929|  6.67k|    case IGRAPH_EDGEORDER_FROM:
  ------------------
  |  Branch (929:5): [True: 6.67k, False: 10.5k]
  ------------------
  930|  6.67k|        es->type = IGRAPH_ES_ALLFROM;
  931|  6.67k|        break;
  932|      0|    case IGRAPH_EDGEORDER_TO:
  ------------------
  |  Branch (932:5): [True: 0, False: 17.2k]
  ------------------
  933|      0|        es->type = IGRAPH_ES_ALLTO;
  934|      0|        break;
  935|      0|    default:
  ------------------
  |  Branch (935:5): [True: 0, False: 17.2k]
  ------------------
  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|  17.2k|    }
  939|  17.2k|    return IGRAPH_SUCCESS;
  940|  17.2k|}
igraph_ess_all:
  956|  13.8k|igraph_es_t igraph_ess_all(igraph_edgeorder_type_t order) {
  957|  13.8k|    igraph_es_t es;
  958|  13.8k|    igraph_es_all(&es, order); /* cannot fail */
  959|  13.8k|    return es;
  960|  13.8k|}
igraph_ess_1:
 1061|  1.01M|igraph_es_t igraph_ess_1(igraph_int_t eid) {
 1062|  1.01M|    igraph_es_t es;
 1063|  1.01M|    es.type = IGRAPH_ES_1;
 1064|  1.01M|    es.data.eid = eid;
 1065|  1.01M|    return es;
 1066|  1.01M|}
igraph_es_destroy:
 1411|  3.33k|void igraph_es_destroy(igraph_es_t *es) {
 1412|  3.33k|    switch (es->type) {
 1413|  3.33k|    case IGRAPH_ES_ALL:
  ------------------
  |  Branch (1413:5): [True: 3.33k, False: 0]
  ------------------
 1414|  3.33k|    case IGRAPH_ES_ALLFROM:
  ------------------
  |  Branch (1414:5): [True: 0, False: 3.33k]
  ------------------
 1415|  3.33k|    case IGRAPH_ES_ALLTO:
  ------------------
  |  Branch (1415:5): [True: 0, False: 3.33k]
  ------------------
 1416|  3.33k|    case IGRAPH_ES_INCIDENT:
  ------------------
  |  Branch (1416:5): [True: 0, False: 3.33k]
  ------------------
 1417|  3.33k|    case IGRAPH_ES_NONE:
  ------------------
  |  Branch (1417:5): [True: 0, False: 3.33k]
  ------------------
 1418|  3.33k|    case IGRAPH_ES_1:
  ------------------
  |  Branch (1418:5): [True: 0, False: 3.33k]
  ------------------
 1419|  3.33k|    case IGRAPH_ES_VECTORPTR:
  ------------------
  |  Branch (1419:5): [True: 0, False: 3.33k]
  ------------------
 1420|  3.33k|    case IGRAPH_ES_RANGE:
  ------------------
  |  Branch (1420:5): [True: 0, False: 3.33k]
  ------------------
 1421|  3.33k|    case IGRAPH_ES_ALL_BETWEEN:
  ------------------
  |  Branch (1421:5): [True: 0, False: 3.33k]
  ------------------
 1422|  3.33k|        break;
 1423|      0|    case IGRAPH_ES_VECTOR:
  ------------------
  |  Branch (1423:5): [True: 0, False: 3.33k]
  ------------------
 1424|      0|        igraph_vector_int_destroy((igraph_vector_int_t*)es->data.vecptr);
 1425|      0|        IGRAPH_FREE(es->data.vecptr);
  ------------------
  |  |   36|      0|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1426|      0|        break;
 1427|      0|    case IGRAPH_ES_PAIRS:
  ------------------
  |  Branch (1427:5): [True: 0, False: 3.33k]
  ------------------
 1428|      0|    case IGRAPH_ES_PATH:
  ------------------
  |  Branch (1428:5): [True: 0, False: 3.33k]
  ------------------
 1429|      0|        igraph_vector_int_destroy((igraph_vector_int_t*)es->data.path.ptr);
 1430|      0|        IGRAPH_FREE(es->data.path.ptr);
  ------------------
  |  |   36|      0|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1431|      0|        break;
 1432|      0|    default:
  ------------------
  |  Branch (1432:5): [True: 0, False: 3.33k]
  ------------------
 1433|      0|        break;
 1434|  3.33k|    }
 1435|  3.33k|}
igraph_es_is_all:
 1448|  1.01M|igraph_bool_t igraph_es_is_all(const igraph_es_t *es) {
 1449|  1.01M|    return es->type == IGRAPH_ES_ALL;
 1450|  1.01M|}
igraph_eit_create:
 1928|  1.03M|igraph_error_t igraph_eit_create(const igraph_t *graph, igraph_es_t es, igraph_eit_t *eit) {
 1929|  1.03M|    switch (es.type) {
 1930|  10.0k|    case IGRAPH_ES_ALL:
  ------------------
  |  Branch (1930:5): [True: 10.0k, False: 1.02M]
  ------------------
 1931|  10.0k|        eit->type = IGRAPH_EIT_RANGE;
 1932|  10.0k|        eit->pos = 0;
 1933|  10.0k|        eit->start = 0;
 1934|  10.0k|        eit->end = igraph_ecount(graph);
 1935|  10.0k|        break;
 1936|  6.67k|    case IGRAPH_ES_ALLFROM:
  ------------------
  |  Branch (1936:5): [True: 6.67k, False: 1.02M]
  ------------------
 1937|  6.67k|        IGRAPH_CHECK(igraph_i_eit_create_allfromto(graph, eit, IGRAPH_OUT));
  ------------------
  |  |  656|  6.67k|    do { \
  |  |  657|  6.67k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.67k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.67k]
  |  |  ------------------
  ------------------
 1938|  6.67k|        break;
 1939|  6.67k|    case IGRAPH_ES_ALLTO:
  ------------------
  |  Branch (1939:5): [True: 0, False: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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|  1.01M|    case IGRAPH_ES_1:
  ------------------
  |  Branch (1951:5): [True: 1.01M, False: 16.6k]
  ------------------
 1952|  1.01M|        if (es.data.eid < 0 || es.data.eid >= igraph_ecount(graph)) {
  ------------------
  |  Branch (1952:13): [True: 0, False: 1.01M]
  |  Branch (1952:32): [True: 0, False: 1.01M]
  ------------------
 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|  1.01M|        eit->type = IGRAPH_EIT_RANGE;
 1956|  1.01M|        eit->pos = es.data.eid;
 1957|  1.01M|        eit->start = es.data.eid;
 1958|  1.01M|        eit->end = es.data.eid + 1;
 1959|  1.01M|        break;
 1960|      0|    case IGRAPH_ES_VECTOR:
  ------------------
  |  Branch (1960:5): [True: 0, False: 1.03M]
  ------------------
 1961|      0|    case IGRAPH_ES_VECTORPTR:
  ------------------
  |  Branch (1961:5): [True: 0, False: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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: 1.03M]
  ------------------
 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|  1.03M|    }
 2001|  1.03M|    return IGRAPH_SUCCESS;
 2002|  1.03M|}
igraph_eit_destroy:
 2014|  1.03M|void igraph_eit_destroy(const igraph_eit_t *eit) {
 2015|  1.03M|    switch (eit->type) {
 2016|  1.02M|    case IGRAPH_EIT_RANGE:
  ------------------
  |  Branch (2016:5): [True: 1.02M, False: 6.67k]
  ------------------
 2017|  1.02M|    case IGRAPH_EIT_VECTORPTR:
  ------------------
  |  Branch (2017:5): [True: 0, False: 1.03M]
  ------------------
 2018|  1.02M|        break;
 2019|  6.67k|    case IGRAPH_EIT_VECTOR:
  ------------------
  |  Branch (2019:5): [True: 6.67k, False: 1.02M]
  ------------------
 2020|  6.67k|        igraph_vector_int_destroy((igraph_vector_int_t*)eit->vec);
 2021|  6.67k|        igraph_free((igraph_vector_int_t*)eit->vec);
 2022|  6.67k|        break;
 2023|      0|    default:
  ------------------
  |  Branch (2023:5): [True: 0, False: 1.03M]
  ------------------
 2024|       |        /*     IGRAPH_ERROR("Cannot destroy iterator, unknown type", IGRAPH_EINVAL); */
 2025|      0|        break;
 2026|  1.03M|    }
 2027|  1.03M|}
iterators.c:igraph_i_eit_create_allfromto:
 1702|  6.67k|                                         igraph_neimode_t mode) {
 1703|  6.67k|    igraph_vector_int_t *vec;
 1704|  6.67k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
 1705|  6.67k|    igraph_int_t no_of_edges = igraph_ecount(graph);
 1706|       |
 1707|  6.67k|    vec = IGRAPH_CALLOC(1, igraph_vector_int_t);
  ------------------
  |  |   33|  6.67k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  13.3k|    (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: 6.67k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1708|  6.67k|    IGRAPH_CHECK_OOM(vec, "Cannot create edge iterator.");
  ------------------
  |  |  709|  6.67k|    do { \
  |  |  710|  6.67k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  6.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 6.67k]
  |  |  ------------------
  ------------------
 1709|  6.67k|    IGRAPH_FINALLY(igraph_free, vec);
  ------------------
  |  |  603|  6.67k|    do { \
  |  |  604|  6.67k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.67k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.67k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.67k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.67k]
  |  |  ------------------
  |  |  608|  6.67k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.67k]
  |  |  ------------------
  ------------------
 1710|       |
 1711|  6.67k|    IGRAPH_VECTOR_INT_INIT_FINALLY(vec, 0);
  ------------------
  |  |  119|  6.67k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  6.67k|    do { \
  |  |  |  |  657|  6.67k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  6.67k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  6.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.67k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  6.67k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 6.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  6.67k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  6.67k|    do { \
  |  |  |  |  604|  6.67k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  6.67k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  6.67k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  6.67k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 6.67k]
  |  |  |  |  ------------------
  |  |  |  |  608|  6.67k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  6.67k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 6.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 6.67k]
  |  |  ------------------
  ------------------
 1712|  6.67k|    IGRAPH_CHECK(igraph_vector_int_reserve(vec, no_of_edges));
  ------------------
  |  |  656|  6.67k|    do { \
  |  |  657|  6.67k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.67k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.67k]
  |  |  ------------------
  ------------------
 1713|       |
 1714|  6.67k|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (1714:9): [True: 278, False: 6.39k]
  ------------------
 1715|    278|        igraph_vector_int_t adj;
 1716|    278|        IGRAPH_VECTOR_INT_INIT_FINALLY(&adj, 0);
  ------------------
  |  |  119|    278|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|    278|    do { \
  |  |  |  |  657|    278|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|    278|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    278|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 278]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    278|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 278]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|    278|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|    278|    do { \
  |  |  |  |  604|    278|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|    278|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|    278|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|    278|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 278]
  |  |  |  |  ------------------
  |  |  |  |  608|    278|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|    278|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 278]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 278]
  |  |  ------------------
  ------------------
 1717|  2.33k|        for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (1717:34): [True: 2.05k, False: 278]
  ------------------
 1718|  2.05k|            IGRAPH_CHECK(igraph_incident(graph, &adj, i, mode, IGRAPH_LOOPS));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1719|  2.05k|            igraph_vector_int_append(vec, &adj);  /* reserved */
 1720|  2.05k|        }
 1721|    278|        igraph_vector_int_destroy(&adj);
 1722|    278|        IGRAPH_FINALLY_CLEAN(1);
 1723|  6.39k|    } else {
 1724|  6.39k|        igraph_vector_int_t adj;
 1725|  6.39k|        igraph_bool_t *added;
 1726|  6.39k|        IGRAPH_VECTOR_INT_INIT_FINALLY(&adj, 0);
  ------------------
  |  |  119|  6.39k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  6.39k|    do { \
  |  |  |  |  657|  6.39k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  6.39k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  6.39k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.39k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  6.39k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 6.39k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  6.39k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  6.39k|    do { \
  |  |  |  |  604|  6.39k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  6.39k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  6.39k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  6.39k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 6.39k]
  |  |  |  |  ------------------
  |  |  |  |  608|  6.39k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  6.39k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 6.39k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 6.39k]
  |  |  ------------------
  ------------------
 1727|  6.39k|        added = IGRAPH_CALLOC(no_of_edges, igraph_bool_t);
  ------------------
  |  |   33|  6.39k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  12.7k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 6.39k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 6.39k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 4.56k, False: 1.83k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1728|  6.39k|        IGRAPH_CHECK_OOM(added, "Cannot create edge iterator.");
  ------------------
  |  |  709|  6.39k|    do { \
  |  |  710|  6.39k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  6.39k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.39k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.39k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 6.39k]
  |  |  ------------------
  ------------------
 1729|  6.39k|        IGRAPH_FINALLY(igraph_free, added);
  ------------------
  |  |  603|  6.39k|    do { \
  |  |  604|  6.39k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.39k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.39k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.39k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.39k]
  |  |  ------------------
  |  |  608|  6.39k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.39k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.39k]
  |  |  ------------------
  ------------------
 1730|  73.7k|        for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (1730:34): [True: 67.3k, False: 6.39k]
  ------------------
 1731|  67.3k|            IGRAPH_CHECK(igraph_incident(graph, &adj, i, IGRAPH_ALL, IGRAPH_LOOPS));
  ------------------
  |  |  656|  67.3k|    do { \
  |  |  657|  67.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  67.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  67.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 67.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|  67.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 67.3k]
  |  |  ------------------
  ------------------
 1732|  67.3k|            const igraph_int_t length = igraph_vector_int_size(&adj);
 1733|  1.09M|            for (igraph_int_t j = 0; j < length; j++) {
  ------------------
  |  Branch (1733:38): [True: 1.02M, False: 67.3k]
  ------------------
 1734|  1.02M|                if (!added[ VECTOR(adj)[j] ]) {
  ------------------
  |  |   60|  1.02M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1734:21): [True: 513k, False: 513k]
  ------------------
 1735|   513k|                    igraph_vector_int_push_back(vec, VECTOR(adj)[j]);  /* reserved */
  ------------------
  |  |   60|   513k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1736|   513k|                    added[ VECTOR(adj)[j] ] = true;
  ------------------
  |  |   60|   513k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1737|   513k|                }
 1738|  1.02M|            }
 1739|  67.3k|        }
 1740|  6.39k|        igraph_vector_int_destroy(&adj);
 1741|  6.39k|        IGRAPH_FREE(added);
  ------------------
  |  |   36|  6.39k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1742|  6.39k|        IGRAPH_FINALLY_CLEAN(2);
 1743|  6.39k|    }
 1744|       |
 1745|  6.67k|    eit->type = IGRAPH_EIT_VECTOR;
 1746|  6.67k|    eit->pos = 0;
 1747|  6.67k|    eit->start = 0;
 1748|  6.67k|    eit->vec = vec;
 1749|  6.67k|    eit->end = igraph_vector_int_size(eit->vec);
 1750|       |
 1751|  6.67k|    IGRAPH_FINALLY_CLEAN(2);
 1752|  6.67k|    return IGRAPH_SUCCESS;
 1753|  6.67k|}

igraph_empty:
   64|  6.46k|igraph_error_t igraph_empty(igraph_t *graph, igraph_int_t n, igraph_bool_t directed) {
   65|  6.46k|    return igraph_empty_attrs(graph, n, directed, 0);
   66|  6.46k|}
igraph_edge:
  132|  1.73M|) {
  133|       |
  134|  1.73M|    if (eid < 0 || eid >= igraph_ecount(graph)) {
  ------------------
  |  Branch (134:9): [True: 0, False: 1.73M]
  |  Branch (134:20): [True: 0, False: 1.73M]
  ------------------
  135|      0|        IGRAPH_ERROR("Cannot retrieve edge endpoints.", 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]
  |  |  ------------------
  ------------------
  136|      0|    }
  137|       |
  138|  1.73M|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (138:9): [True: 458k, False: 1.27M]
  ------------------
  139|   458k|        *from = IGRAPH_FROM(graph, eid);
  ------------------
  |  |  115|   458k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   458k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  140|   458k|        *to   = IGRAPH_TO(graph, eid);
  ------------------
  |  |  128|   458k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   458k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  141|  1.27M|    } else {
  142|  1.27M|        *from = IGRAPH_TO(graph, eid);
  ------------------
  |  |  128|  1.27M|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  1.27M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  143|  1.27M|        *to   = IGRAPH_FROM(graph, eid);
  ------------------
  |  |  115|  1.27M|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|  1.27M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  144|  1.27M|    }
  145|       |
  146|  1.73M|    return IGRAPH_SUCCESS;
  147|  1.73M|}

igraph_empty_attrs:
  102|  16.4k|) {
  103|       |
  104|  16.4k|    if (n < 0) {
  ------------------
  |  Branch (104:9): [True: 0, False: 16.4k]
  ------------------
  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|  16.4k|    memset(graph, 0, sizeof(igraph_t));
  109|       |
  110|  16.4k|    graph->n = 0;
  111|  16.4k|    graph->directed = directed;
  112|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->from, 0);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  113|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->to, 0);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  114|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->oi, 0);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  115|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->ii, 0);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  116|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->os, 1);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  117|  16.4k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&graph->is, 1);
  ------------------
  |  |  119|  16.4k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  16.4k|    do { \
  |  |  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  16.4k|    do { \
  |  |  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  16.4k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  118|       |
  119|       |    /* init cache */
  120|  16.4k|    graph->cache = IGRAPH_CALLOC(1, igraph_i_property_cache_t);
  ------------------
  |  |   33|  16.4k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  32.8k|    (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: 16.4k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  121|  16.4k|    IGRAPH_CHECK_OOM(graph->cache, "Cannot create graph.");
  ------------------
  |  |  709|  16.4k|    do { \
  |  |  710|  16.4k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  122|  16.4k|    IGRAPH_FINALLY(igraph_free, graph->cache);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  123|  16.4k|    IGRAPH_CHECK(igraph_i_property_cache_init(graph->cache));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  124|  16.4k|    IGRAPH_FINALLY(igraph_i_property_cache_destroy, graph->cache);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  125|       |
  126|  16.4k|    VECTOR(graph->os)[0] = 0;
  ------------------
  |  |   60|  16.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  127|  16.4k|    VECTOR(graph->is)[0] = 0;
  ------------------
  |  |   60|  16.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  128|       |
  129|       |    /* init attributes */
  130|  16.4k|    IGRAPH_CHECK(igraph_i_attribute_init(graph, attr));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  131|       |
  132|       |    /* add the vertices */
  133|  16.4k|    IGRAPH_CHECK(igraph_add_vertices(graph, n, 0));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  134|       |
  135|  16.4k|    IGRAPH_FINALLY_CLEAN(8);
  136|  16.4k|    return IGRAPH_SUCCESS;
  137|  16.4k|}
igraph_destroy:
  155|  16.4k|void igraph_destroy(igraph_t *graph) {
  156|  16.4k|    igraph_i_attribute_destroy(graph);
  157|       |
  158|  16.4k|    igraph_i_property_cache_destroy(graph->cache);
  159|  16.4k|    IGRAPH_FREE(graph->cache);
  ------------------
  |  |   36|  16.4k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  160|       |
  161|  16.4k|    igraph_vector_int_destroy(&graph->from);
  162|  16.4k|    igraph_vector_int_destroy(&graph->to);
  163|  16.4k|    igraph_vector_int_destroy(&graph->oi);
  164|  16.4k|    igraph_vector_int_destroy(&graph->ii);
  165|  16.4k|    igraph_vector_int_destroy(&graph->os);
  166|  16.4k|    igraph_vector_int_destroy(&graph->is);
  167|  16.4k|}
igraph_add_edges:
  258|  16.4k|) {
  259|  16.4k|    igraph_int_t no_of_edges = igraph_vector_int_size(&graph->from);
  260|  16.4k|    igraph_int_t edges_to_add = igraph_vector_int_size(edges) / 2;
  261|  16.4k|    igraph_int_t new_no_of_edges;
  262|  16.4k|    igraph_int_t i = 0;
  263|  16.4k|    igraph_vector_int_t newoi, newii;
  264|  16.4k|    igraph_bool_t directed = igraph_is_directed(graph);
  265|       |
  266|  16.4k|    if (igraph_vector_int_size(edges) % 2 != 0) {
  ------------------
  |  Branch (266:9): [True: 0, False: 16.4k]
  ------------------
  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|  16.4k|    if (!igraph_vector_int_isininterval(edges, 0, igraph_vcount(graph) - 1)) {
  ------------------
  |  Branch (269:9): [True: 0, False: 16.4k]
  ------------------
  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|  16.4k|    IGRAPH_SAFE_ADD(no_of_edges, edges_to_add, &new_no_of_edges);
  ------------------
  |  |   47|  16.4k|    do { \
  |  |   48|  16.4k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  16.4k|        igraph_int_t _safe_sum; \
  |  |   50|  16.4k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |   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|  16.4k|        *(res) = _safe_sum; \
  |  |   54|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  275|  16.4k|    if (new_no_of_edges > IGRAPH_ECOUNT_MAX) {
  ------------------
  |  |  120|  16.4k|#define IGRAPH_ECOUNT_MAX (IGRAPH_INTEGER_MAX/2)
  |  |  ------------------
  |  |  |  |   74|  16.4k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (275:9): [True: 0, False: 16.4k]
  ------------------
  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|  16.4k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->from, no_of_edges + edges_to_add));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  280|  16.4k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->to, no_of_edges + edges_to_add));
  ------------------
  |  |  656|  16.4k|    do { \
  |  |  657|  16.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  16.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  16.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  281|       |
  282|  1.75M|    while (i < edges_to_add * 2) {
  ------------------
  |  Branch (282:12): [True: 1.73M, False: 16.4k]
  ------------------
  283|  1.73M|        if (directed || VECTOR(*edges)[i] > VECTOR(*edges)[i + 1]) {
  ------------------
  |  |   60|   769k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (directed || VECTOR(*edges)[i] > VECTOR(*edges)[i + 1]) {
  ------------------
  |  |   60|   769k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (283:13): [True: 968k, False: 769k]
  |  Branch (283:25): [True: 295k, False: 474k]
  ------------------
  284|  1.26M|            igraph_vector_int_push_back(&graph->from, VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|  1.26M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  285|  1.26M|            igraph_vector_int_push_back(&graph->to,   VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|  1.26M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  286|  1.26M|        } else {
  287|   474k|            igraph_vector_int_push_back(&graph->to,   VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|   474k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  288|   474k|            igraph_vector_int_push_back(&graph->from, VECTOR(*edges)[i++]); /* reserved */
  ------------------
  |  |   60|   474k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  289|   474k|        }
  290|  1.73M|    }
  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|  16.4k|#define CHECK_ERR(expr) \
  300|  16.4k|    do { \
  301|  16.4k|        igraph_error_t err = (expr); \
  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  303|  16.4k|            igraph_vector_int_resize(&graph->from, no_of_edges); /* gets smaller, error safe */ \
  304|  16.4k|            igraph_vector_int_resize(&graph->to, no_of_edges);   /* gets smaller, error safe */ \
  305|  16.4k|            IGRAPH_FINALLY_EXIT(); \
  306|  16.4k|            IGRAPH_ERROR("Cannot add edges.", err); \
  307|  16.4k|        } \
  308|  16.4k|    } while (0)
  309|       |
  310|       |    /* oi & ii */
  311|  16.4k|    IGRAPH_FINALLY_ENTER();
  312|  16.4k|    {
  313|  16.4k|        CHECK_ERR(igraph_vector_int_init(&newoi, no_of_edges));
  ------------------
  |  |  300|  16.4k|    do { \
  |  |  301|  16.4k|        igraph_error_t err = (expr); \
  |  |  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (302:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (308:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  314|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, &newoi);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  315|  16.4k|        CHECK_ERR(igraph_vector_int_init(&newii, no_of_edges));
  ------------------
  |  |  300|  16.4k|    do { \
  |  |  301|  16.4k|        igraph_error_t err = (expr); \
  |  |  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (302:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (308:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  316|  16.4k|        IGRAPH_FINALLY(igraph_vector_int_destroy, &newii);
  ------------------
  |  |  603|  16.4k|    do { \
  |  |  604|  16.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  16.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  16.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  16.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 16.4k]
  |  |  ------------------
  |  |  608|  16.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  317|  16.4k|        CHECK_ERR(igraph_vector_int_pair_order(&graph->from, &graph->to, &newoi, graph->n));
  ------------------
  |  |  300|  16.4k|    do { \
  |  |  301|  16.4k|        igraph_error_t err = (expr); \
  |  |  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (302:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (308:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  318|  16.4k|        CHECK_ERR(igraph_vector_int_pair_order(&graph->to, &graph->from, &newii, graph->n));
  ------------------
  |  |  300|  16.4k|    do { \
  |  |  301|  16.4k|        igraph_error_t err = (expr); \
  |  |  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (302:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (308:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  319|       |
  320|       |        /* Attributes */
  321|  16.4k|        if (graph->attr) {
  ------------------
  |  Branch (321:13): [True: 16.4k, False: 0]
  ------------------
  322|       |            /* TODO: Does this keep the attribute table in a consistent state upon failure? */
  323|  16.4k|            CHECK_ERR(igraph_i_attribute_add_edges(graph, edges, attr));
  ------------------
  |  |  300|  16.4k|    do { \
  |  |  301|  16.4k|        igraph_error_t err = (expr); \
  |  |  302|  16.4k|        if (err != IGRAPH_SUCCESS) { \
  |  |  ------------------
  |  |  |  Branch (302:13): [True: 0, False: 16.4k]
  |  |  ------------------
  |  |  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|  16.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (308:14): [Folded, False: 16.4k]
  |  |  ------------------
  ------------------
  324|  16.4k|        }
  325|       |
  326|       |        /* os & is, its length does not change, error safe */
  327|  16.4k|        igraph_i_create_start_vectors(&graph->os, &graph->from, &newoi, graph->n);
  328|  16.4k|        igraph_i_create_start_vectors(&graph->is, &graph->to, &newii, graph->n);
  329|       |
  330|       |        /* everything went fine */
  331|  16.4k|        igraph_vector_int_destroy(&graph->oi);
  332|  16.4k|        igraph_vector_int_destroy(&graph->ii);
  333|  16.4k|        IGRAPH_FINALLY_CLEAN(2);
  334|       |
  335|  16.4k|        graph->oi = newoi;
  336|  16.4k|        graph->ii = newii;
  337|  16.4k|    }
  338|      0|    IGRAPH_FINALLY_EXIT();
  339|       |
  340|  16.4k|#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|  16.4k|    igraph_i_property_cache_invalidate_conditionally(
  355|  16.4k|        graph,
  356|  16.4k|        /* keep_always = */ 0,
  357|       |        /* keep_when_false = */
  358|  16.4k|        (1 << IGRAPH_PROP_IS_DAG) | (1 << IGRAPH_PROP_IS_FOREST),
  359|       |        /* keep_when_true = */
  360|  16.4k|        (1 << IGRAPH_PROP_IS_WEAKLY_CONNECTED) |
  361|  16.4k|        (1 << IGRAPH_PROP_IS_STRONGLY_CONNECTED) |
  362|  16.4k|        (1 << IGRAPH_PROP_HAS_LOOP) |
  363|  16.4k|        (1 << IGRAPH_PROP_HAS_MULTI) |
  364|  16.4k|        (1 << IGRAPH_PROP_HAS_MUTUAL)
  365|  16.4k|    );
  366|       |
  367|  16.4k|    return IGRAPH_SUCCESS;
  368|  16.4k|}
igraph_add_vertices:
  392|  32.8k|) {
  393|  32.8k|    igraph_int_t ec = igraph_ecount(graph);
  394|  32.8k|    igraph_int_t vc = igraph_vcount(graph);
  395|  32.8k|    igraph_int_t new_vc;
  396|  32.8k|    igraph_int_t i;
  397|       |
  398|  32.8k|    if (nv < 0) {
  ------------------
  |  Branch (398:9): [True: 0, False: 32.8k]
  ------------------
  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|  32.8k|    IGRAPH_SAFE_ADD(graph->n, nv, &new_vc);
  ------------------
  |  |   47|  32.8k|    do { \
  |  |   48|  32.8k|        igraph_int_t _safe_a = (a), _safe_b = (b); \
  |  |   49|  32.8k|        igraph_int_t _safe_sum; \
  |  |   50|  32.8k|        if (__builtin_add_overflow(_safe_a, _safe_b, &_safe_sum)) { \
  |  |  ------------------
  |  |  |  Branch (50:13): [True: 0, False: 32.8k]
  |  |  ------------------
  |  |   51|      0|            IGRAPH_ERRORF("Overflow when adding %" IGRAPH_PRId " and %" IGRAPH_PRId ".", IGRAPH_EOVERFLOW, _safe_a, _safe_b); \
  |  |  ------------------
  |  |  |  |  464|      0|    do { \
  |  |  |  |  465|      0|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  |  |  466|      0|                      igraph_errno, __VA_ARGS__) ; \
  |  |  |  |  467|      0|        return igraph_errno; \
  |  |  |  |  468|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   52|      0|        } \
  |  |   53|  32.8k|        *(res) = _safe_sum; \
  |  |   54|  32.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (54:14): [Folded, False: 32.8k]
  |  |  ------------------
  ------------------
  403|  32.8k|    if (new_vc > IGRAPH_VCOUNT_MAX) {
  ------------------
  |  |  102|  32.8k|#define IGRAPH_VCOUNT_MAX (IGRAPH_INTEGER_MAX-1)
  |  |  ------------------
  |  |  |  |   74|  32.8k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  |  |  ------------------
  ------------------
  |  Branch (403:9): [True: 0, False: 32.8k]
  ------------------
  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|  32.8k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->os, new_vc + 1));
  ------------------
  |  |  656|  32.8k|    do { \
  |  |  657|  32.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  32.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  32.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 32.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  32.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 32.8k]
  |  |  ------------------
  ------------------
  408|  32.8k|    IGRAPH_CHECK(igraph_vector_int_reserve(&graph->is, new_vc + 1));
  ------------------
  |  |  656|  32.8k|    do { \
  |  |  657|  32.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  32.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  32.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 32.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  32.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 32.8k]
  |  |  ------------------
  ------------------
  409|       |
  410|  32.8k|    igraph_vector_int_resize(&graph->os, new_vc + 1); /* reserved */
  411|  32.8k|    igraph_vector_int_resize(&graph->is, new_vc + 1); /* reserved */
  412|   190k|    for (i = graph->n + 1; i < new_vc + 1; i++) {
  ------------------
  |  Branch (412:28): [True: 157k, False: 32.8k]
  ------------------
  413|   157k|        VECTOR(graph->os)[i] = ec;
  ------------------
  |  |   60|   157k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  414|   157k|        VECTOR(graph->is)[i] = ec;
  ------------------
  |  |   60|   157k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  415|   157k|    }
  416|       |
  417|  32.8k|    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|  32.8k|    if (graph->attr) {
  ------------------
  |  Branch (423:9): [True: 32.8k, False: 0]
  ------------------
  424|  32.8k|        igraph_error_t err;
  425|  32.8k|        IGRAPH_FINALLY_ENTER();
  426|  32.8k|        err = igraph_i_attribute_add_vertices(graph, nv, attr);
  427|  32.8k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (427:13): [True: 0, False: 32.8k]
  ------------------
  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|  32.8k|        IGRAPH_FINALLY_EXIT();
  434|  32.8k|        if (err != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (434:13): [True: 0, False: 32.8k]
  ------------------
  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|  32.8k|    }
  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|  32.8k|    igraph_i_property_cache_invalidate_conditionally(
  459|  32.8k|        graph,
  460|       |        /* keep_always = */
  461|  32.8k|        (1 << IGRAPH_PROP_HAS_LOOP) |
  462|  32.8k|        (1 << IGRAPH_PROP_HAS_MULTI) |
  463|  32.8k|        (1 << IGRAPH_PROP_HAS_MUTUAL) |
  464|  32.8k|        (1 << IGRAPH_PROP_IS_DAG) |
  465|  32.8k|        (1 << IGRAPH_PROP_IS_FOREST),
  466|       |        /* keep_when_false = */
  467|  32.8k|        igraph_vcount(graph) >= 2 ? (
  ------------------
  |  Branch (467:9): [True: 11.0k, False: 21.8k]
  ------------------
  468|  11.0k|            (1 << IGRAPH_PROP_IS_STRONGLY_CONNECTED) |
  469|  11.0k|            (1 << IGRAPH_PROP_IS_WEAKLY_CONNECTED)
  470|  21.8k|        ) : 0,
  471|       |        /* keep_when_true = */
  472|  32.8k|        0
  473|  32.8k|    );
  474|       |
  475|  32.8k|    return IGRAPH_SUCCESS;
  476|  32.8k|}
igraph_vcount:
  830|   714k|igraph_int_t igraph_vcount(const igraph_t *graph) {
  831|   714k|    return graph->n;
  832|   714k|}
igraph_ecount:
  844|  2.83M|igraph_int_t igraph_ecount(const igraph_t *graph) {
  845|  2.83M|    return igraph_vector_int_size(&graph->from);
  846|  2.83M|}
igraph_is_directed:
 1134|  2.19M|igraph_bool_t igraph_is_directed(const igraph_t *graph) {
 1135|  2.19M|    return graph->directed;
 1136|  2.19M|}
igraph_degree_1:
 1172|  11.6k|) {
 1173|  11.6k|    igraph_int_t loop_counter;
 1174|       |
 1175|  11.6k|    if (vid < 0 || vid >= igraph_vcount(graph)) {
  ------------------
  |  Branch (1175:9): [True: 0, False: 11.6k]
  |  Branch (1175:20): [True: 0, False: 11.6k]
  ------------------
 1176|      0|        IGRAPH_ERROR("Vertex ID out of range.", 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]
  |  |  ------------------
  ------------------
 1177|      0|    }
 1178|       |
 1179|  11.6k|    if (!igraph_is_directed(graph)) {
  ------------------
  |  Branch (1179:9): [True: 11.6k, False: 0]
  ------------------
 1180|  11.6k|        mode = IGRAPH_ALL;
 1181|  11.6k|    }
 1182|       |
 1183|  11.6k|    if (loops != IGRAPH_NO_LOOPS && loops != IGRAPH_LOOPS_ONCE &&
  ------------------
  |  Branch (1183:9): [True: 11.6k, False: 0]
  |  Branch (1183:37): [True: 11.6k, False: 0]
  ------------------
 1184|  11.6k|        loops != IGRAPH_LOOPS_TWICE) {
  ------------------
  |  Branch (1184:9): [True: 0, False: 11.6k]
  ------------------
 1185|      0|        IGRAPH_ERROR("Invalid loops argument.", 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]
  |  |  ------------------
  ------------------
 1186|      0|    }
 1187|       |
 1188|  11.6k|    if (loops == IGRAPH_LOOPS_ONCE && (mode & IGRAPH_ALL) != IGRAPH_ALL) {
  ------------------
  |  Branch (1188:9): [True: 0, False: 11.6k]
  |  Branch (1188:39): [True: 0, False: 0]
  ------------------
 1189|      0|        loops = IGRAPH_LOOPS_TWICE;
 1190|      0|    }
 1191|       |
 1192|  11.6k|    *deg = 0;
 1193|  11.6k|    if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (1193:9): [True: 11.6k, False: 0]
  ------------------
 1194|  11.6k|        *deg += (VECTOR(graph->os)[vid + 1] - VECTOR(graph->os)[vid]);
  ------------------
  |  |   60|  11.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      *deg += (VECTOR(graph->os)[vid + 1] - VECTOR(graph->os)[vid]);
  ------------------
  |  |   60|  11.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1195|  11.6k|    }
 1196|  11.6k|    if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (1196:9): [True: 11.6k, False: 0]
  ------------------
 1197|  11.6k|        *deg += (VECTOR(graph->is)[vid + 1] - VECTOR(graph->is)[vid]);
  ------------------
  |  |   60|  11.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      *deg += (VECTOR(graph->is)[vid + 1] - VECTOR(graph->is)[vid]);
  ------------------
  |  |   60|  11.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1198|  11.6k|    }
 1199|       |
 1200|  11.6k|    if (loops != IGRAPH_LOOPS_TWICE) {
  ------------------
  |  Branch (1200:9): [True: 0, False: 11.6k]
  ------------------
 1201|       |        /* When loops should not be counted, we remove their contribution from the
 1202|       |         * previously computed degree. */
 1203|      0|        loop_counter = 0;
 1204|      0|        if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (1204:13): [True: 0, False: 0]
  ------------------
 1205|      0|            for (igraph_int_t i = VECTOR(graph->os)[vid]; i < VECTOR(graph->os)[vid + 1]; i++) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          for (igraph_int_t i = VECTOR(graph->os)[vid]; i < VECTOR(graph->os)[vid + 1]; i++) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1205:59): [True: 0, False: 0]
  ------------------
 1206|      0|                if (VECTOR(graph->to)[ VECTOR(graph->oi)[i] ] == vid) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              if (VECTOR(graph->to)[ VECTOR(graph->oi)[i] ] == vid) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1206:21): [True: 0, False: 0]
  ------------------
 1207|      0|                    loop_counter++;
 1208|      0|                }
 1209|      0|            }
 1210|      0|        }
 1211|      0|        if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (1211:13): [True: 0, False: 0]
  ------------------
 1212|      0|            for (igraph_int_t i = VECTOR(graph->is)[vid]; i < VECTOR(graph->is)[vid + 1]; i++) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                          for (igraph_int_t i = VECTOR(graph->is)[vid]; i < VECTOR(graph->is)[vid + 1]; i++) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1212:59): [True: 0, False: 0]
  ------------------
 1213|      0|                if (VECTOR(graph->from)[ VECTOR(graph->ii)[i] ] == vid) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
                              if (VECTOR(graph->from)[ VECTOR(graph->ii)[i] ] == vid) {
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1213:21): [True: 0, False: 0]
  ------------------
 1214|      0|                    loop_counter++;
 1215|      0|                }
 1216|      0|            }
 1217|      0|        }
 1218|       |
 1219|      0|        if (loops == IGRAPH_NO_LOOPS || mode != IGRAPH_ALL) {
  ------------------
  |  Branch (1219:13): [True: 0, False: 0]
  |  Branch (1219:41): [True: 0, False: 0]
  ------------------
 1220|      0|            *deg -= loop_counter;
 1221|      0|        } else {
 1222|       |            /* loops == IGRAPH_LOOPS_ONCE && mode == IGRAPH_ALL */
 1223|      0|            *deg -= loop_counter / 2;
 1224|      0|        }
 1225|      0|    }
 1226|       |
 1227|  11.6k|    return IGRAPH_SUCCESS;
 1228|  11.6k|}
igraph_get_eid:
 1537|   343k|                   igraph_bool_t directed, igraph_bool_t error) {
 1538|       |
 1539|   343k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
 1540|       |
 1541|   343k|    if (from < 0 || to < 0 || from >= no_of_nodes || to >= no_of_nodes) {
  ------------------
  |  Branch (1541:9): [True: 0, False: 343k]
  |  Branch (1541:21): [True: 0, False: 343k]
  |  Branch (1541:31): [True: 0, False: 343k]
  |  Branch (1541:54): [True: 0, False: 343k]
  ------------------
 1542|      0|        IGRAPH_ERROR("Cannot get edge 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]
  |  |  ------------------
  ------------------
 1543|      0|    }
 1544|       |
 1545|   343k|    *eid = -1;
 1546|   343k|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (1546:9): [True: 91.7k, False: 251k]
  ------------------
 1547|       |
 1548|       |        /* Directed graph */
 1549|  91.7k|        FIND_DIRECTED_EDGE(graph, from, to, eid);
  ------------------
  |  | 1482|  91.7k|    do { \
  |  | 1483|  91.7k|        igraph_int_t start = VECTOR(graph->os)[xfrom]; \
  |  |  ------------------
  |  |  |  |   60|  91.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1484|  91.7k|        igraph_int_t end = VECTOR(graph->os)[xfrom+1]; \
  |  |  ------------------
  |  |  |  |   60|  91.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1485|  91.7k|        igraph_int_t N = end; \
  |  | 1486|  91.7k|        igraph_int_t start2 = VECTOR(graph->is)[xto]; \
  |  |  ------------------
  |  |  |  |   60|  91.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1487|  91.7k|        igraph_int_t end2 = VECTOR(graph->is)[xto+1]; \
  |  |  ------------------
  |  |  |  |   60|  91.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1488|  91.7k|        igraph_int_t N2 = end2; \
  |  | 1489|  91.7k|        igraph_int_t *nullpointer = NULL; \
  |  | 1490|  91.7k|        if (end-start < end2-start2) { \
  |  |  ------------------
  |  |  |  Branch (1490:13): [True: 36.6k, False: 55.1k]
  |  |  ------------------
  |  | 1491|  36.6k|            BINSEARCH(start, end, xto, graph->oi, graph->to, N, eid, nullpointer); \
  |  |  ------------------
  |  |  |  | 1462|  36.6k|    do { \
  |  |  |  | 1463|   190k|        while ((start) < (end)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1463:16): [True: 154k, False: 36.6k]
  |  |  |  |  ------------------
  |  |  |  | 1464|   154k|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  | 1465|   154k|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   154k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1466|   154k|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   154k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1466:17): [True: 37.6k, False: 116k]
  |  |  |  |  ------------------
  |  |  |  | 1467|  37.6k|                (start) = mid+1; \
  |  |  |  | 1468|   116k|            } else { \
  |  |  |  | 1469|   116k|                (end) = mid; \
  |  |  |  | 1470|   116k|            } \
  |  |  |  | 1471|   154k|        } \
  |  |  |  | 1472|  36.6k|        if ((start) < (N)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1472:13): [True: 18.7k, False: 17.8k]
  |  |  |  |  ------------------
  |  |  |  | 1473|  18.7k|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|  18.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1474|  18.7k|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|  18.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1474:17): [True: 9.65k, False: 9.10k]
  |  |  |  |  ------------------
  |  |  |  | 1475|  9.65k|                *(result) = e; \
  |  |  |  | 1476|  9.65k|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1476:21): [True: 0, False: 9.65k]
  |  |  |  |  ------------------
  |  |  |  | 1477|  9.65k|            } \
  |  |  |  | 1478|  18.7k|        } \
  |  |  |  | 1479|  36.6k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1479:14): [Folded, False: 36.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1492|  55.1k|        } else { \
  |  | 1493|  55.1k|            BINSEARCH(start2, end2, xfrom, graph->ii, graph->from, N2, eid, nullpointer); \
  |  |  ------------------
  |  |  |  | 1462|  55.1k|    do { \
  |  |  |  | 1463|   490k|        while ((start) < (end)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1463:16): [True: 435k, False: 55.1k]
  |  |  |  |  ------------------
  |  |  |  | 1464|   435k|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  | 1465|   435k|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   435k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1466|   435k|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   435k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1466:17): [True: 33.1k, False: 402k]
  |  |  |  |  ------------------
  |  |  |  | 1467|  33.1k|                (start) = mid+1; \
  |  |  |  | 1468|   402k|            } else { \
  |  |  |  | 1469|   402k|                (end) = mid; \
  |  |  |  | 1470|   402k|            } \
  |  |  |  | 1471|   435k|        } \
  |  |  |  | 1472|  55.1k|        if ((start) < (N)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1472:13): [True: 52.0k, False: 3.09k]
  |  |  |  |  ------------------
  |  |  |  | 1473|  52.0k|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|  52.0k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1474|  52.0k|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|  52.0k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1474:17): [True: 22.2k, False: 29.7k]
  |  |  |  |  ------------------
  |  |  |  | 1475|  22.2k|                *(result) = e; \
  |  |  |  | 1476|  22.2k|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1476:21): [True: 0, False: 22.2k]
  |  |  |  |  ------------------
  |  |  |  | 1477|  22.2k|            } \
  |  |  |  | 1478|  52.0k|        } \
  |  |  |  | 1479|  55.1k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1479:14): [Folded, False: 55.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1494|  55.1k|        } \
  |  | 1495|  91.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1495:14): [Folded, False: 91.7k]
  |  |  ------------------
  ------------------
 1550|  91.7k|        if (!directed && *eid < 0) {
  ------------------
  |  Branch (1550:13): [True: 0, False: 91.7k]
  |  Branch (1550:26): [True: 0, False: 0]
  ------------------
 1551|      0|            FIND_DIRECTED_EDGE(graph, to, from, eid);
  ------------------
  |  | 1482|      0|    do { \
  |  | 1483|      0|        igraph_int_t start = VECTOR(graph->os)[xfrom]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1484|      0|        igraph_int_t end = VECTOR(graph->os)[xfrom+1]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1485|      0|        igraph_int_t N = end; \
  |  | 1486|      0|        igraph_int_t start2 = VECTOR(graph->is)[xto]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1487|      0|        igraph_int_t end2 = VECTOR(graph->is)[xto+1]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1488|      0|        igraph_int_t N2 = end2; \
  |  | 1489|      0|        igraph_int_t *nullpointer = NULL; \
  |  | 1490|      0|        if (end-start < end2-start2) { \
  |  |  ------------------
  |  |  |  Branch (1490:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 1491|      0|            BINSEARCH(start, end, xto, graph->oi, graph->to, N, eid, nullpointer); \
  |  |  ------------------
  |  |  |  | 1462|      0|    do { \
  |  |  |  | 1463|      0|        while ((start) < (end)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1463:16): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1464|      0|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  | 1465|      0|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1466|      0|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1466:17): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1467|      0|                (start) = mid+1; \
  |  |  |  | 1468|      0|            } else { \
  |  |  |  | 1469|      0|                (end) = mid; \
  |  |  |  | 1470|      0|            } \
  |  |  |  | 1471|      0|        } \
  |  |  |  | 1472|      0|        if ((start) < (N)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1472:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1473|      0|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1474|      0|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1474:17): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1475|      0|                *(result) = e; \
  |  |  |  | 1476|      0|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1476:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1477|      0|            } \
  |  |  |  | 1478|      0|        } \
  |  |  |  | 1479|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1479:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1492|      0|        } else { \
  |  | 1493|      0|            BINSEARCH(start2, end2, xfrom, graph->ii, graph->from, N2, eid, nullpointer); \
  |  |  ------------------
  |  |  |  | 1462|      0|    do { \
  |  |  |  | 1463|      0|        while ((start) < (end)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1463:16): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1464|      0|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  | 1465|      0|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1466|      0|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1466:17): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1467|      0|                (start) = mid+1; \
  |  |  |  | 1468|      0|            } else { \
  |  |  |  | 1469|      0|                (end) = mid; \
  |  |  |  | 1470|      0|            } \
  |  |  |  | 1471|      0|        } \
  |  |  |  | 1472|      0|        if ((start) < (N)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1472:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1473|      0|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1474|      0|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1474:17): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1475|      0|                *(result) = e; \
  |  |  |  | 1476|      0|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1476:21): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 1477|      0|            } \
  |  |  |  | 1478|      0|        } \
  |  |  |  | 1479|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1479:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1494|      0|        } \
  |  | 1495|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1495:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1552|      0|        }
 1553|       |
 1554|   251k|    } else {
 1555|       |
 1556|       |        /* Undirected graph, they only have one mode */
 1557|   251k|        FIND_UNDIRECTED_EDGE(graph, from, to, eid);
  ------------------
  |  | 1498|   251k|    do { \
  |  | 1499|   251k|        igraph_int_t xfrom1 = from > to ? from : to; \
  |  |  ------------------
  |  |  |  Branch (1499:31): [True: 232k, False: 19.6k]
  |  |  ------------------
  |  | 1500|   251k|        igraph_int_t xto1 = from > to ? to : from; \
  |  |  ------------------
  |  |  |  Branch (1500:29): [True: 232k, False: 19.6k]
  |  |  ------------------
  |  | 1501|   251k|        FIND_DIRECTED_EDGE(graph, xfrom1, xto1, eid); \
  |  |  ------------------
  |  |  |  | 1482|   251k|    do { \
  |  |  |  | 1483|   251k|        igraph_int_t start = VECTOR(graph->os)[xfrom]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   251k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1484|   251k|        igraph_int_t end = VECTOR(graph->os)[xfrom+1]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   251k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1485|   251k|        igraph_int_t N = end; \
  |  |  |  | 1486|   251k|        igraph_int_t start2 = VECTOR(graph->is)[xto]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   251k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1487|   251k|        igraph_int_t end2 = VECTOR(graph->is)[xto+1]; \
  |  |  |  |  ------------------
  |  |  |  |  |  |   60|   251k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  ------------------
  |  |  |  | 1488|   251k|        igraph_int_t N2 = end2; \
  |  |  |  | 1489|   251k|        igraph_int_t *nullpointer = NULL; \
  |  |  |  | 1490|   251k|        if (end-start < end2-start2) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1490:13): [True: 212k, False: 39.5k]
  |  |  |  |  ------------------
  |  |  |  | 1491|   212k|            BINSEARCH(start, end, xto, graph->oi, graph->to, N, eid, nullpointer); \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1462|   212k|    do { \
  |  |  |  |  |  | 1463|  2.36M|        while ((start) < (end)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1463:16): [True: 2.15M, False: 212k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1464|  2.15M|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  |  |  | 1465|  2.15M|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|  2.15M|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1466|  2.15M|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|  2.15M|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1466:17): [True: 137k, False: 2.01M]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1467|   137k|                (start) = mid+1; \
  |  |  |  |  |  | 1468|  2.01M|            } else { \
  |  |  |  |  |  | 1469|  2.01M|                (end) = mid; \
  |  |  |  |  |  | 1470|  2.01M|            } \
  |  |  |  |  |  | 1471|  2.15M|        } \
  |  |  |  |  |  | 1472|   212k|        if ((start) < (N)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1472:13): [True: 212k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1473|   212k|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|   212k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1474|   212k|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|   212k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1474:17): [True: 212k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1475|   212k|                *(result) = e; \
  |  |  |  |  |  | 1476|   212k|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1476:21): [True: 0, False: 212k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1477|   212k|            } \
  |  |  |  |  |  | 1478|   212k|        } \
  |  |  |  |  |  | 1479|   212k|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1479:14): [Folded, False: 212k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 1492|   212k|        } else { \
  |  |  |  | 1493|  39.5k|            BINSEARCH(start2, end2, xfrom, graph->ii, graph->from, N2, eid, nullpointer); \
  |  |  |  |  ------------------
  |  |  |  |  |  | 1462|  39.5k|    do { \
  |  |  |  |  |  | 1463|   304k|        while ((start) < (end)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1463:16): [True: 265k, False: 39.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1464|   265k|            igraph_int_t mid =(start)+((end)-(start))/2; \
  |  |  |  |  |  | 1465|   265k|            igraph_int_t e = VECTOR((iindex))[mid]; \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|   265k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1466|   265k|            if (VECTOR((edgelist))[e] < (value)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|   265k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1466:17): [True: 10.8k, False: 254k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1467|  10.8k|                (start) = mid+1; \
  |  |  |  |  |  | 1468|   254k|            } else { \
  |  |  |  |  |  | 1469|   254k|                (end) = mid; \
  |  |  |  |  |  | 1470|   254k|            } \
  |  |  |  |  |  | 1471|   265k|        } \
  |  |  |  |  |  | 1472|  39.5k|        if ((start) < (N)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1472:13): [True: 39.5k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1473|  39.5k|            igraph_int_t e = VECTOR((iindex))[(start)]; \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|  39.5k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1474|  39.5k|            if (VECTOR((edgelist))[e] == (value)) { \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |   60|  39.5k|#define VECTOR(v) ((v).stor_begin)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1474:17): [True: 39.5k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1475|  39.5k|                *(result) = e; \
  |  |  |  |  |  | 1476|  39.5k|                if (result_pos != 0) { *(result_pos) = start; } \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1476:21): [True: 0, False: 39.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 1477|  39.5k|            } \
  |  |  |  |  |  | 1478|  39.5k|        } \
  |  |  |  |  |  | 1479|  39.5k|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (1479:14): [Folded, False: 39.5k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 1494|  39.5k|        } \
  |  |  |  | 1495|   251k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (1495:14): [Folded, False: 251k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 1502|   251k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1502:14): [Folded, False: 251k]
  |  |  ------------------
  ------------------
 1558|       |
 1559|   251k|    }
 1560|       |
 1561|   343k|    if (*eid < 0) {
  ------------------
  |  Branch (1561:9): [True: 59.8k, False: 283k]
  ------------------
 1562|  59.8k|        if (error) {
  ------------------
  |  Branch (1562:13): [True: 0, False: 59.8k]
  ------------------
 1563|      0|            IGRAPH_ERROR("Cannot get edge ID, no such edge.", 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]
  |  |  ------------------
  ------------------
 1564|      0|        }
 1565|  59.8k|    }
 1566|       |
 1567|   343k|    return IGRAPH_SUCCESS;
 1568|   343k|}
igraph_incident:
 1791|  69.4k|) {
 1792|  69.4k|    igraph_int_t length = 0, idx = 0;
 1793|  69.4k|    igraph_int_t i, j;
 1794|  69.4k|    igraph_int_t node = pnode;
 1795|  69.4k|    igraph_bool_t directed = igraph_is_directed(graph);
 1796|       |
 1797|  69.4k|    if (node < 0 || node > igraph_vcount(graph) - 1) {
  ------------------
  |  Branch (1797:9): [True: 0, False: 69.4k]
  |  Branch (1797:21): [True: 0, False: 69.4k]
  ------------------
 1798|      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]
  |  |  ------------------
  ------------------
 1799|      0|    }
 1800|  69.4k|    if (mode != IGRAPH_OUT && mode != IGRAPH_IN &&
  ------------------
  |  Branch (1800:9): [True: 67.3k, False: 2.05k]
  |  Branch (1800:31): [True: 67.3k, False: 0]
  ------------------
 1801|  67.3k|        mode != IGRAPH_ALL) {
  ------------------
  |  Branch (1801:9): [True: 0, False: 67.3k]
  ------------------
 1802|      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]
  |  |  ------------------
  ------------------
 1803|      0|    }
 1804|       |
 1805|  69.4k|    if (!directed) {
  ------------------
  |  Branch (1805:9): [True: 67.3k, False: 2.05k]
  ------------------
 1806|  67.3k|        mode = IGRAPH_ALL;
 1807|  67.3k|    }
 1808|       |
 1809|  69.4k|    if (mode != IGRAPH_ALL && loops == IGRAPH_LOOPS_TWICE) {
  ------------------
  |  Branch (1809:9): [True: 2.05k, False: 67.3k]
  |  Branch (1809:31): [True: 2.05k, False: 0]
  ------------------
 1810|       |        /*
 1811|       |        IGRAPH_ERROR("For a directed graph (with directions not ignored), "
 1812|       |                     "IGRAPH_LOOPS_TWICE does not make sense.", IGRAPH_EINVAL);
 1813|       |        */
 1814|  2.05k|        loops = IGRAPH_LOOPS_ONCE;
 1815|  2.05k|    }
 1816|       |
 1817|       |    /* Calculate needed space first & allocate it */
 1818|       |    /* Note that 'mode' is treated as a bit field here; it's okay because
 1819|       |     * IGRAPH_ALL = IGRAPH_IN | IGRAPH_OUT, bit-wise */
 1820|  69.4k|    if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (1820:9): [True: 69.4k, False: 0]
  ------------------
 1821|  69.4k|        length += (VECTOR(graph->os)[node + 1] - VECTOR(graph->os)[node]);
  ------------------
  |  |   60|  69.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      length += (VECTOR(graph->os)[node + 1] - VECTOR(graph->os)[node]);
  ------------------
  |  |   60|  69.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1822|  69.4k|    }
 1823|  69.4k|    if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (1823:9): [True: 67.3k, False: 2.05k]
  ------------------
 1824|  67.3k|        length += (VECTOR(graph->is)[node + 1] - VECTOR(graph->is)[node]);
  ------------------
  |  |   60|  67.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      length += (VECTOR(graph->is)[node + 1] - VECTOR(graph->is)[node]);
  ------------------
  |  |   60|  67.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1825|  67.3k|    }
 1826|       |
 1827|  69.4k|    IGRAPH_CHECK(igraph_vector_int_resize(eids, length));
  ------------------
  |  |  656|  69.4k|    do { \
  |  |  657|  69.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  69.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  69.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 69.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  69.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 69.4k]
  |  |  ------------------
  ------------------
 1828|       |
 1829|       |    /* The loops below produce an ordering what is consistent with the
 1830|       |     * ordering returned by igraph_neighbors(), and this should be preserved.
 1831|       |     * We are dealing with two sorted lists; one for the successors and one
 1832|       |     * for the predecessors. If we have requested only one of them, we have
 1833|       |     * an easy job. If we have requested both, we need to merge the two lists
 1834|       |     * to ensure that the output is sorted by the vertex IDs of the "other"
 1835|       |     * endpoint of the affected edges */
 1836|  69.4k|    if (!directed || mode != IGRAPH_ALL) {
  ------------------
  |  Branch (1836:9): [True: 67.3k, False: 2.05k]
  |  Branch (1836:22): [True: 2.05k, False: 0]
  ------------------
 1837|       |        /* We did not ask for both directions; this is the easy case */
 1838|       |
 1839|  69.4k|        if (mode & IGRAPH_OUT) {
  ------------------
  |  Branch (1839:13): [True: 69.4k, False: 0]
  ------------------
 1840|  69.4k|            j = VECTOR(graph->os)[node + 1];
  ------------------
  |  |   60|  69.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1841|   765k|            for (i = VECTOR(graph->os)[node]; i < j; i++) {
  ------------------
  |  |   60|  69.4k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1841:47): [True: 696k, False: 69.4k]
  ------------------
 1842|   696k|                igraph_int_t edge = VECTOR(graph->oi)[i];
  ------------------
  |  |   60|   696k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1843|   696k|                igraph_int_t other = VECTOR(graph->to)[edge];
  ------------------
  |  |   60|   696k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1844|   696k|                if (loops == IGRAPH_NO_LOOPS && other == pnode) {
  ------------------
  |  Branch (1844:21): [True: 0, False: 696k]
  |  Branch (1844:49): [True: 0, False: 0]
  ------------------
 1845|      0|                    length--;
 1846|   696k|                } else {
 1847|   696k|                    VECTOR(*eids)[idx++] = edge;
  ------------------
  |  |   60|   696k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1848|   696k|                }
 1849|   696k|            }
 1850|  69.4k|        }
 1851|       |
 1852|  69.4k|        if (mode & IGRAPH_IN) {
  ------------------
  |  Branch (1852:13): [True: 67.3k, False: 2.05k]
  ------------------
 1853|  67.3k|            j = VECTOR(graph->is)[node + 1];
  ------------------
  |  |   60|  67.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1854|   580k|            for (i = VECTOR(graph->is)[node]; i < j; i++) {
  ------------------
  |  |   60|  67.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1854:47): [True: 513k, False: 67.3k]
  ------------------
 1855|   513k|                igraph_int_t edge = VECTOR(graph->ii)[i];
  ------------------
  |  |   60|   513k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1856|   513k|                igraph_int_t other = VECTOR(graph->from)[edge];
  ------------------
  |  |   60|   513k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1857|   513k|                if ((loops == IGRAPH_NO_LOOPS || (loops == IGRAPH_LOOPS_ONCE && !directed)) && other == pnode) {
  ------------------
  |  Branch (1857:22): [True: 0, False: 513k]
  |  Branch (1857:51): [True: 0, False: 513k]
  |  Branch (1857:81): [True: 0, False: 0]
  |  Branch (1857:96): [True: 0, False: 0]
  ------------------
 1858|      0|                    length--;
 1859|   513k|                } else {
 1860|   513k|                    VECTOR(*eids)[idx++] = edge;
  ------------------
  |  |   60|   513k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1861|   513k|                }
 1862|   513k|            }
 1863|  67.3k|        }
 1864|  69.4k|    } else {
 1865|       |        /* both in- and out- neighbors in a directed graph,
 1866|       |           we need to merge the two 'vectors' */
 1867|      0|        igraph_int_t j1 = VECTOR(graph->os)[node + 1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1868|      0|        igraph_int_t j2 = VECTOR(graph->is)[node + 1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1869|      0|        igraph_int_t i1 = VECTOR(graph->os)[node];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1870|      0|        igraph_int_t i2 = VECTOR(graph->is)[node];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1871|      0|        igraph_int_t eid1, eid2;
 1872|      0|        igraph_int_t n1, n2;
 1873|      0|        igraph_bool_t seen_loop_edge = false;
 1874|       |
 1875|      0|        while (i1 < j1 && i2 < j2) {
  ------------------
  |  Branch (1875:16): [True: 0, False: 0]
  |  Branch (1875:27): [True: 0, False: 0]
  ------------------
 1876|      0|            eid1 = VECTOR(graph->oi)[i1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1877|      0|            eid2 = VECTOR(graph->ii)[i2];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1878|      0|            n1 = VECTOR(graph->to)[eid1];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1879|      0|            n2 = VECTOR(graph->from)[eid2];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1880|      0|            if (n1 < n2) {
  ------------------
  |  Branch (1880:17): [True: 0, False: 0]
  ------------------
 1881|      0|                i1++;
 1882|      0|                VECTOR(*eids)[idx++] = eid1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1883|      0|            } else if (n1 > n2) {
  ------------------
  |  Branch (1883:24): [True: 0, False: 0]
  ------------------
 1884|      0|                i2++;
 1885|      0|                VECTOR(*eids)[idx++] = eid2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1886|      0|            } else if (n1 != pnode) {
  ------------------
  |  Branch (1886:24): [True: 0, False: 0]
  ------------------
 1887|       |                /* multiple edge */
 1888|      0|                i1++;
 1889|      0|                i2++;
 1890|      0|                VECTOR(*eids)[idx++] = eid1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1891|      0|                VECTOR(*eids)[idx++] = eid2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1892|      0|            } else {
 1893|       |                /* loop edge */
 1894|      0|                i1++;
 1895|      0|                i2++;
 1896|      0|                if (loops == IGRAPH_NO_LOOPS) {
  ------------------
  |  Branch (1896:21): [True: 0, False: 0]
  ------------------
 1897|      0|                    length -= 2;
 1898|      0|                } else if (loops == IGRAPH_LOOPS_ONCE) {
  ------------------
  |  Branch (1898:28): [True: 0, False: 0]
  ------------------
 1899|      0|                    length--;
 1900|      0|                    if (!seen_loop_edge) {
  ------------------
  |  Branch (1900:25): [True: 0, False: 0]
  ------------------
 1901|      0|                        VECTOR(*eids)[idx++] = eid1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1902|      0|                    } else {
 1903|      0|                        VECTOR(*eids)[idx++] = eid2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1904|      0|                    }
 1905|      0|                    seen_loop_edge = !seen_loop_edge;
 1906|      0|                } else {
 1907|      0|                    VECTOR(*eids)[idx++] = eid1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1908|      0|                    VECTOR(*eids)[idx++] = eid2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1909|      0|                }
 1910|      0|            }
 1911|      0|        }
 1912|       |
 1913|      0|        while (i1 < j1) {
  ------------------
  |  Branch (1913:16): [True: 0, False: 0]
  ------------------
 1914|      0|            eid1 = VECTOR(graph->oi)[i1++];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1915|      0|            VECTOR(*eids)[idx++] = eid1;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1916|      0|        }
 1917|       |
 1918|      0|        while (i2 < j2) {
  ------------------
  |  Branch (1918:16): [True: 0, False: 0]
  ------------------
 1919|      0|            eid2 = VECTOR(graph->ii)[i2++];
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1920|      0|            VECTOR(*eids)[idx++] = eid2;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1921|      0|        }
 1922|      0|    }
 1923|  69.4k|    IGRAPH_CHECK(igraph_vector_int_resize(eids, length));
  ------------------
  |  |  656|  69.4k|    do { \
  |  |  657|  69.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  69.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  69.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 69.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  69.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 69.4k]
  |  |  ------------------
  ------------------
 1924|  69.4k|    return IGRAPH_SUCCESS;
 1925|  69.4k|}
type_indexededgelist.c:igraph_i_create_start_vectors:
 1077|  32.8k|        igraph_vector_int_t *iindex, igraph_int_t nodes) {
 1078|       |
 1079|  32.8k|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
 1080|       |
 1081|  32.8k|    igraph_int_t no_of_nodes;
 1082|  32.8k|    igraph_int_t no_of_edges;
 1083|  32.8k|    igraph_int_t i, j, idx;
 1084|       |
 1085|  32.8k|    no_of_nodes = nodes;
 1086|  32.8k|    no_of_edges = igraph_vector_int_size(el);
 1087|       |
 1088|       |    /* result */
 1089|       |
 1090|  32.8k|    IGRAPH_CHECK(igraph_vector_int_resize(res, nodes + 1));
  ------------------
  |  |  656|  32.8k|    do { \
  |  |  657|  32.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  32.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  32.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 32.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  32.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 32.8k]
  |  |  ------------------
  ------------------
 1091|       |
 1092|       |    /* create the index */
 1093|       |
 1094|  32.8k|    if (no_of_edges == 0) {
  ------------------
  |  Branch (1094:9): [True: 9.13k, False: 23.7k]
  ------------------
 1095|       |        /* empty graph */
 1096|  9.13k|        igraph_vector_int_null(res);
 1097|  23.7k|    } else {
 1098|  23.7k|        idx = -1;
 1099|  58.0k|        for (i = 0; i <= EDGE(0); i++) {
  ------------------
  |  | 1079|  58.0k|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  58.0k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  58.0k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (1099:21): [True: 34.3k, False: 23.7k]
  ------------------
 1100|  34.3k|            idx++; VECTOR(*res)[idx] = 0;
  ------------------
  |  |   60|  34.3k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1101|  34.3k|        }
 1102|  3.47M|        for (i = 1; i < no_of_edges; i++) {
  ------------------
  |  Branch (1102:21): [True: 3.45M, False: 23.7k]
  ------------------
 1103|  3.45M|            igraph_int_t n = EDGE(i) - EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1079|  3.45M|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  3.45M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  3.45M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
                          igraph_int_t n = EDGE(i) - EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1079|  3.45M|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  3.45M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  3.45M|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1104|  3.71M|            for (j = 0; j < n; j++) {
  ------------------
  |  Branch (1104:25): [True: 262k, False: 3.45M]
  ------------------
 1105|   262k|                idx++; VECTOR(*res)[idx] = i;
  ------------------
  |  |   60|   262k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1106|   262k|            }
 1107|  3.45M|        }
 1108|  23.7k|        j = EDGE(VECTOR(*res)[idx]);
  ------------------
  |  | 1079|  23.7k|# define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  23.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  |               # define EDGE(i) (VECTOR(*el)[ VECTOR(*iindex)[(i)] ])
  |  |  ------------------
  |  |  |  |   60|  23.7k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1109|  64.8k|        for (i = 0; i < no_of_nodes - j; i++) {
  ------------------
  |  Branch (1109:21): [True: 41.1k, False: 23.7k]
  ------------------
 1110|  41.1k|            idx++; VECTOR(*res)[idx] = no_of_edges;
  ------------------
  |  |   60|  41.1k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1111|  41.1k|        }
 1112|  23.7k|    }
 1113|       |
 1114|       |    /* clean */
 1115|       |
 1116|  32.8k|# undef EDGE
 1117|  32.8k|    return IGRAPH_SUCCESS;
 1118|  32.8k|}

igraph_qsort:
  264|     27|{
  265|       |	local_qsort(a, n, es, cmp, NULL);
  266|     27|}
qsort.c:local_qsort:
  121|     27|{
  122|     27|	char *pa, *pb, *pc, *pd, *pl, *pm, *pn;
  123|     27|	size_t d1, d2;
  124|     27|	int cmp_result;
  125|     27|	int swap_cnt;
  126|       |
  127|       |    /* if there are less than 2 elements, then sorting is not needed */
  128|     27|    if (IGRAPH_UNLIKELY(n < 2))
  ------------------
  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  ------------------
  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  129|      0|        return;
  130|     27|loop:
  131|     27|	swap_cnt = 0;
  132|     27|	if (n < 7) {
  ------------------
  |  Branch (132:6): [True: 5, False: 22]
  ------------------
  133|     20|		for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
  ------------------
  |  Branch (133:29): [True: 15, False: 5]
  ------------------
  134|     15|			for (pl = pm;
  135|     15|			     pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
  ------------------
  |  |   95|     15|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (135:9): [True: 15, False: 0]
  |  Branch (135:27): [True: 0, False: 15]
  ------------------
  136|     15|			     pl -= es)
  137|      0|				swapfunc(pl, pl - es, es);
  138|      5|		return;
  139|      5|	}
  140|     22|	pm = (char *)a + (n / 2) * es;
  141|     22|	if (n > 7) {
  ------------------
  |  Branch (141:6): [True: 21, False: 1]
  ------------------
  142|     21|		pl = a;
  143|     21|		pn = (char *)a + (n - 1) * es;
  144|     21|		if (n > 40) {
  ------------------
  |  Branch (144:7): [True: 10, False: 11]
  ------------------
  145|     10|			size_t d = (n / 8) * es;
  146|       |
  147|     10|			pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk);
  148|     10|			pm = med3(pm - d, pm, pm + d, cmp, thunk);
  149|     10|			pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk);
  150|     10|		}
  151|     21|		pm = med3(pl, pm, pn, cmp, thunk);
  152|     21|	}
  153|     22|	swapfunc(a, pm, es);
  154|     22|	pa = pb = (char *)a + es;
  155|       |
  156|     22|	pc = pd = (char *)a + (n - 1) * es;
  157|     22|	for (;;) {
  158|  1.29k|		while (pb <= pc && (cmp_result = CMP(thunk, pb, a)) <= 0) {
  ------------------
  |  |   95|  1.26k|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (158:10): [True: 1.26k, False: 22]
  |  Branch (158:22): [True: 1.26k, False: 0]
  ------------------
  159|  1.26k|			if (cmp_result == 0) {
  ------------------
  |  Branch (159:8): [True: 1.26k, False: 0]
  ------------------
  160|  1.26k|				swap_cnt = 1;
  161|  1.26k|				swapfunc(pa, pb, es);
  162|  1.26k|				pa += es;
  163|  1.26k|			}
  164|  1.26k|			pb += es;
  165|  1.26k|		}
  166|     22|		while (pb <= pc && (cmp_result = CMP(thunk, pc, a)) >= 0) {
  ------------------
  |  |   95|      0|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (166:10): [True: 0, False: 22]
  |  Branch (166:22): [True: 0, False: 0]
  ------------------
  167|      0|			if (cmp_result == 0) {
  ------------------
  |  Branch (167:8): [True: 0, False: 0]
  ------------------
  168|      0|				swap_cnt = 1;
  169|      0|				swapfunc(pc, pd, es);
  170|      0|				pd -= es;
  171|      0|			}
  172|      0|			pc -= es;
  173|      0|		}
  174|     22|		if (pb > pc)
  ------------------
  |  Branch (174:7): [True: 22, False: 0]
  ------------------
  175|     22|			break;
  176|      0|		swapfunc(pb, pc, es);
  177|      0|		swap_cnt = 1;
  178|      0|		pb += es;
  179|      0|		pc -= es;
  180|      0|	}
  181|     22|	if (swap_cnt == 0) {  /* Switch to insertion sort */
  ------------------
  |  Branch (181:6): [True: 0, False: 22]
  ------------------
  182|      0|		for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
  ------------------
  |  Branch (182:29): [True: 0, False: 0]
  ------------------
  183|      0|			for (pl = pm;
  184|      0|			     pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
  ------------------
  |  |   95|      0|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (184:9): [True: 0, False: 0]
  |  Branch (184:27): [True: 0, False: 0]
  ------------------
  185|      0|			     pl -= es)
  186|      0|				swapfunc(pl, pl - es, es);
  187|      0|		return;
  188|      0|	}
  189|       |
  190|     22|	pn = (char *)a + n * es;
  191|     22|	d1 = MIN(pa - (char *)a, pb - pa);
  ------------------
  |  |   69|     22|#define	MIN(a, b)	((a) < (b) ? a : b)
  |  |  ------------------
  |  |  |  Branch (69:20): [True: 0, False: 22]
  |  |  ------------------
  ------------------
  192|     22|	vecswap(a, pb - d1, d1);
  ------------------
  |  |   88|     22|	if ((n) > 0) swapfunc(a, b, n)
  |  |  ------------------
  |  |  |  Branch (88:6): [True: 0, False: 22]
  |  |  ------------------
  ------------------
  193|       |	/*
  194|       |	 * Cast es to preserve signedness of right-hand side of MIN()
  195|       |	 * expression, to avoid sign ambiguity in the implied comparison.  es
  196|       |	 * is safely within [0, SSIZE_MAX].
  197|       |	 */
  198|     22|	d1 = MIN(pd - pc, pn - pd - (ptrdiff_t)es);
  ------------------
  |  |   69|     22|#define	MIN(a, b)	((a) < (b) ? a : b)
  |  |  ------------------
  |  |  |  Branch (69:20): [True: 0, False: 22]
  |  |  ------------------
  ------------------
  199|     22|	vecswap(pb, pn - d1, d1);
  ------------------
  |  |   88|     22|	if ((n) > 0) swapfunc(a, b, n)
  |  |  ------------------
  |  |  |  Branch (88:6): [True: 0, False: 22]
  |  |  ------------------
  ------------------
  200|       |
  201|     22|	d1 = pb - pa;
  202|     22|	d2 = pd - pc;
  203|     22|	if (d1 <= d2) {
  ------------------
  |  Branch (203:6): [True: 22, False: 0]
  ------------------
  204|       |		/* Recurse on left partition, then iterate on right partition */
  205|     22|		if (d1 > es) {
  ------------------
  |  Branch (205:7): [True: 0, False: 22]
  ------------------
  206|      0|			local_qsort(a, d1 / es, es, cmp, thunk);
  207|      0|		}
  208|     22|		if (d2 > es) {
  ------------------
  |  Branch (208:7): [True: 0, False: 22]
  ------------------
  209|       |			/* Iterate rather than recurse to save stack space */
  210|       |			/* qsort(pn - d2, d2 / es, es, cmp); */
  211|      0|			a = pn - d2;
  212|      0|			n = d2 / es;
  213|      0|			goto loop;
  214|      0|		}
  215|     22|	} else {
  216|       |		/* Recurse on right partition, then iterate on left partition */
  217|      0|		if (d2 > es) {
  ------------------
  |  Branch (217:7): [True: 0, False: 0]
  ------------------
  218|      0|			local_qsort(pn - d2, d2 / es, es, cmp, thunk);
  219|      0|		}
  220|      0|		if (d1 > es) {
  ------------------
  |  Branch (220:7): [True: 0, False: 0]
  ------------------
  221|       |			/* Iterate rather than recurse to save stack space */
  222|       |			/* qsort(a, d1 / es, es, cmp); */
  223|      0|			n = d1 / es;
  224|      0|			goto loop;
  225|      0|		}
  226|      0|	}
  227|     22|}
qsort.c:swapfunc:
   77|  1.29k|{
   78|  1.29k|	char t;
   79|       |
   80|  10.3k|	do {
   81|  10.3k|		t = *a;
   82|  10.3k|		*a++ = *b;
   83|  10.3k|		*b++ = t;
   84|  10.3k|	} while (--es > 0);
  ------------------
  |  Branch (84:11): [True: 9.03k, False: 1.29k]
  ------------------
   85|  1.29k|}
qsort.c:med3:
  104|     51|{
  105|     51|	return CMP(thunk, a, b) < 0 ?
  ------------------
  |  |   95|     51|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (105:9): [True: 0, False: 51]
  ------------------
  106|      0|	       (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
  ------------------
  |  |   95|      0|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
              	       (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a ))
  ------------------
  |  |   95|      0|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (106:10): [True: 0, False: 0]
  |  Branch (106:38): [True: 0, False: 0]
  ------------------
  107|     51|	      :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
  ------------------
  |  |   95|     51|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
              	      :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c ));
  ------------------
  |  |   95|     51|#define	CMP(t, x, y) (cmp((x), (y)))
  ------------------
  |  Branch (107:10): [True: 0, False: 51]
  |  Branch (107:38): [True: 0, False: 51]
  ------------------
  108|     51|}

igraph_write_graph_dot:
  160|  3.33k|igraph_error_t igraph_write_graph_dot(const igraph_t *graph, FILE* outstream) {
  161|  3.33k|    const igraph_int_t no_of_nodes = igraph_vcount(graph);
  162|  3.33k|    const igraph_int_t no_of_edges = igraph_ecount(graph);
  163|  3.33k|    const igraph_bool_t directed = igraph_is_directed(graph);
  164|  3.33k|    const char *edgeop = directed ? "->" : "--";
  ------------------
  |  Branch (164:26): [True: 139, False: 3.19k]
  ------------------
  165|  3.33k|    igraph_strvector_t gnames, vnames, enames;
  166|  3.33k|    igraph_vector_int_t gtypes, vtypes, etypes;
  167|  3.33k|    igraph_vector_t numv;
  168|  3.33k|    igraph_strvector_t strv;
  169|  3.33k|    igraph_vector_bool_t boolv;
  170|  3.33k|    igraph_vector_char_t buf, buf2;
  171|       |
  172|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&gnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  173|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&vnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  174|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&enames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  175|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&gtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  176|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&vtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  177|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&etypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  178|  3.33k|    IGRAPH_CHECK(igraph_i_attribute_get_info(graph,
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  179|  3.33k|                 &gnames, &gtypes,
  180|  3.33k|                 &vnames, &vtypes,
  181|  3.33k|                 &enames, &etypes));
  182|       |
  183|  3.33k|    IGRAPH_VECTOR_INIT_FINALLY(&numv, 0);
  ------------------
  |  |  104|  3.33k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.33k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  184|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&strv, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  185|  3.33k|    IGRAPH_VECTOR_BOOL_INIT_FINALLY(&boolv, 0);
  ------------------
  |  |  109|  3.33k|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|  3.33k|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  186|       |
  187|  3.33k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&buf, 0);
  ------------------
  |  |  114|  3.33k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|  3.33k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  188|  3.33k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&buf2, 0);
  ------------------
  |  |  114|  3.33k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|  3.33k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  189|       |
  190|  3.33k|    CHECK(fprintf(outstream, "/* Created by igraph %s */\n", IGRAPH_VERSION));
  ------------------
  |  |   37|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 3.33k]
  |  |  |  Branch (37:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  191|       |
  192|  3.33k|    if (directed) {
  ------------------
  |  Branch (192:9): [True: 139, False: 3.19k]
  ------------------
  193|    139|        CHECK(fprintf(outstream, "digraph {\n"));
  ------------------
  |  |   37|    139|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 139]
  |  |  |  Branch (37:116): [Folded, False: 139]
  |  |  ------------------
  ------------------
  194|  3.19k|    } else {
  195|  3.19k|        CHECK(fprintf(outstream, "graph {\n"));
  ------------------
  |  |   37|  3.19k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 3.19k]
  |  |  |  Branch (37:116): [Folded, False: 3.19k]
  |  |  ------------------
  ------------------
  196|  3.19k|    }
  197|       |
  198|       |    /* Write the graph attributes */
  199|  3.33k|    if (igraph_vector_int_size(&gtypes) > 0) {
  ------------------
  |  Branch (199:9): [True: 481, False: 2.85k]
  ------------------
  200|    481|        CHECK(fprintf(outstream, "  graph [\n"));
  ------------------
  |  |   37|    481|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 481]
  |  |  |  Branch (37:116): [Folded, False: 481]
  |  |  ------------------
  ------------------
  201|  1.28k|        for (igraph_int_t i = 0; i < igraph_vector_int_size(&gtypes); i++) {
  ------------------
  |  Branch (201:34): [True: 800, False: 481]
  ------------------
  202|    800|            const char *name;
  203|    800|            name = igraph_strvector_get(&gnames, i);
  204|    800|            IGRAPH_CHECK(dot_escape(name, &buf));
  ------------------
  |  |  656|    800|    do { \
  |  |  657|    800|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    800|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    800|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 800]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    800|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 800]
  |  |  ------------------
  ------------------
  205|    800|            if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|    800|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (205:17): [True: 83, False: 717]
  ------------------
  206|     83|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_graph_attr(graph, name, &numv));
  ------------------
  |  |  656|     83|    do { \
  |  |  657|     83|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     83|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     83|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 83]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     83|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 83]
  |  |  ------------------
  ------------------
  207|     83|                CHECK(fprintf(outstream, "    %s=", VECTOR(buf)));
  ------------------
  |  |   37|     83|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 83]
  |  |  |  Branch (37:116): [Folded, False: 83]
  |  |  ------------------
  ------------------
  208|     83|                IGRAPH_CHECK(fprint_integral_or_precise(outstream, VECTOR(numv)[0], &buf));
  ------------------
  |  |  656|     83|    do { \
  |  |  657|     83|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     83|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     83|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 83]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     83|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 83]
  |  |  ------------------
  ------------------
  209|     83|                CHECK(fputc('\n', outstream));
  ------------------
  |  |   37|     83|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 83]
  |  |  |  Branch (37:116): [Folded, False: 83]
  |  |  ------------------
  ------------------
  210|    717|            } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|    717|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (210:24): [True: 576, False: 141]
  ------------------
  211|    576|                const char *s;
  212|    576|                IGRAPH_CHECK(igraph_i_attribute_get_string_graph_attr(graph, name, &strv));
  ------------------
  |  |  656|    576|    do { \
  |  |  657|    576|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    576|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    576|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 576]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    576|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 576]
  |  |  ------------------
  ------------------
  213|    576|                s = igraph_strvector_get(&strv, 0);
  214|    576|                IGRAPH_CHECK(dot_escape(s, &buf2));
  ------------------
  |  |  656|    576|    do { \
  |  |  657|    576|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    576|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    576|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 576]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    576|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 576]
  |  |  ------------------
  ------------------
  215|    576|                CHECK(fprintf(outstream, "    %s=%s\n", VECTOR(buf), VECTOR(buf2)));
  ------------------
  |  |   37|    576|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 576]
  |  |  |  Branch (37:116): [Folded, False: 576]
  |  |  ------------------
  ------------------
  216|    576|            } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    141|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (216:24): [True: 141, False: 0]
  ------------------
  217|    141|                IGRAPH_CHECK(igraph_i_attribute_get_bool_graph_attr(graph, name, &boolv));
  ------------------
  |  |  656|    141|    do { \
  |  |  657|    141|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    141|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    141|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 141]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    141|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 141]
  |  |  ------------------
  ------------------
  218|    141|                CHECK(fprintf(outstream, "    %s=%d\n", VECTOR(buf), VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |   37|    282|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:33): [True: 0, False: 141]
  |  |  |  Branch (37:42): [True: 0, False: 141]
  |  |  |  Branch (37:116): [Folded, False: 141]
  |  |  ------------------
  ------------------
  219|    141|                IGRAPH_WARNING("Boolean graph attribute was converted to numeric.");
  ------------------
  |  |  797|    141|    do { \
  |  |  798|    141|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|    141|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 141]
  |  |  ------------------
  ------------------
  220|    141|            } else {
  221|      0|                IGRAPH_WARNING("A non-numeric, non-string, non-boolean graph attribute was ignored.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  222|      0|            }
  223|    800|        }
  224|    481|        CHECK(fprintf(outstream, "  ];\n"));
  ------------------
  |  |   37|    481|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 481]
  |  |  |  Branch (37:116): [Folded, False: 481]
  |  |  ------------------
  ------------------
  225|    481|    }
  226|       |
  227|       |    /* Write the vertices */
  228|  3.33k|    if (igraph_vector_int_size(&vtypes) > 0) {
  ------------------
  |  Branch (228:9): [True: 3.32k, False: 13]
  ------------------
  229|  37.7k|        for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (229:34): [True: 34.4k, False: 3.32k]
  ------------------
  230|  34.4k|            CHECK(fprintf(outstream, "  %" IGRAPH_PRId " [\n", i));
  ------------------
  |  |   37|  34.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 34.4k]
  |  |  |  Branch (37:116): [Folded, False: 34.4k]
  |  |  ------------------
  ------------------
  231|  94.0k|            for (igraph_int_t j = 0; j < igraph_vector_int_size(&vtypes); j++) {
  ------------------
  |  Branch (231:38): [True: 59.5k, False: 34.4k]
  ------------------
  232|  59.5k|                const char *name;
  233|  59.5k|                name = igraph_strvector_get(&vnames, j);
  234|  59.5k|                IGRAPH_CHECK(dot_escape(name, &buf));
  ------------------
  |  |  656|  59.5k|    do { \
  |  |  657|  59.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  59.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  59.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 59.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  59.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 59.5k]
  |  |  ------------------
  ------------------
  235|  59.5k|                if (VECTOR(vtypes)[j] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|  59.5k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (235:21): [True: 5.34k, False: 54.2k]
  ------------------
  236|  5.34k|                    IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(graph, name, igraph_vss_1(i), &numv));
  ------------------
  |  |  656|  5.34k|    do { \
  |  |  657|  5.34k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.34k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.34k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.34k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.34k]
  |  |  ------------------
  ------------------
  237|  5.34k|                    CHECK(fprintf(outstream, "    %s=", VECTOR(buf)));
  ------------------
  |  |   37|  5.34k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 5.34k]
  |  |  |  Branch (37:116): [Folded, False: 5.34k]
  |  |  ------------------
  ------------------
  238|  5.34k|                    IGRAPH_CHECK(fprint_integral_or_precise(outstream, VECTOR(numv)[0], &buf));
  ------------------
  |  |  656|  5.34k|    do { \
  |  |  657|  5.34k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.34k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.34k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.34k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.34k]
  |  |  ------------------
  ------------------
  239|  5.34k|                    CHECK(fputc('\n', outstream));
  ------------------
  |  |   37|  5.34k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 5.34k]
  |  |  |  Branch (37:116): [Folded, False: 5.34k]
  |  |  ------------------
  ------------------
  240|  54.2k|                } else if (VECTOR(vtypes)[j] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|  54.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (240:28): [True: 46.8k, False: 7.42k]
  ------------------
  241|  46.8k|                    const char *s;
  242|  46.8k|                    IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, name, igraph_vss_1(i), &strv));
  ------------------
  |  |  656|  46.8k|    do { \
  |  |  657|  46.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  46.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  46.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 46.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  46.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
  243|  46.8k|                    s = igraph_strvector_get(&strv, 0);
  244|  46.8k|                    IGRAPH_CHECK(dot_escape(s, &buf2));
  ------------------
  |  |  656|  46.8k|    do { \
  |  |  657|  46.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  46.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  46.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 46.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  46.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
  245|  46.8k|                    CHECK(fprintf(outstream, "    %s=%s\n", VECTOR(buf), VECTOR(buf2)));
  ------------------
  |  |   37|  46.8k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 46.8k]
  |  |  |  Branch (37:116): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
  246|  46.8k|                } else if (VECTOR(vtypes)[j] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|  7.42k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (246:28): [True: 7.42k, False: 0]
  ------------------
  247|  7.42k|                    IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(graph, name, igraph_vss_1(i), &boolv));
  ------------------
  |  |  656|  7.42k|    do { \
  |  |  657|  7.42k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.42k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.42k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
  248|  7.42k|                    CHECK(fprintf(outstream, "    %s=%d\n", VECTOR(buf), VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |   37|  14.8k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:33): [True: 16, False: 7.40k]
  |  |  |  Branch (37:42): [True: 0, False: 7.42k]
  |  |  |  Branch (37:116): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
  249|  7.42k|                    IGRAPH_WARNING("A boolean vertex attribute was converted to numeric.");
  ------------------
  |  |  797|  7.42k|    do { \
  |  |  798|  7.42k|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
  250|  7.42k|                } else {
  251|      0|                    IGRAPH_WARNING("A non-numeric, non-string, non-boolean vertex attribute was ignored.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  252|      0|                }
  253|  59.5k|            }
  254|  34.4k|            CHECK(fprintf(outstream, "  ];\n"));
  ------------------
  |  |   37|  34.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 34.4k]
  |  |  |  Branch (37:116): [Folded, False: 34.4k]
  |  |  ------------------
  ------------------
  255|  34.4k|        }
  256|  3.32k|    } else {
  257|    257|        for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (257:34): [True: 244, False: 13]
  ------------------
  258|    244|            CHECK(fprintf(outstream, "  %" IGRAPH_PRId ";\n", i));
  ------------------
  |  |   37|    244|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 244]
  |  |  |  Branch (37:116): [Folded, False: 244]
  |  |  ------------------
  ------------------
  259|    244|        }
  260|     13|    }
  261|  3.33k|    CHECK(fprintf(outstream, "\n"));
  ------------------
  |  |   37|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 3.33k]
  |  |  |  Branch (37:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  262|       |
  263|       |    /* Write the edges */
  264|  3.33k|    if (igraph_vector_int_size(&etypes) > 0) {
  ------------------
  |  Branch (264:9): [True: 1.52k, False: 1.81k]
  ------------------
  265|   144k|        for (igraph_int_t i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (265:34): [True: 142k, False: 1.52k]
  ------------------
  266|   142k|            igraph_int_t from = IGRAPH_FROM(graph, i);
  ------------------
  |  |  115|   142k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   142k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  267|   142k|            igraph_int_t to = IGRAPH_TO(graph, i);
  ------------------
  |  |  128|   142k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   142k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  268|   142k|            CHECK(fprintf(outstream, "  %" IGRAPH_PRId " %s %" IGRAPH_PRId " [\n", from, edgeop, to));
  ------------------
  |  |   37|   142k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 142k]
  |  |  |  Branch (37:116): [Folded, False: 142k]
  |  |  ------------------
  ------------------
  269|   467k|            for (igraph_int_t j = 0; j < igraph_vector_int_size(&etypes); j++) {
  ------------------
  |  Branch (269:38): [True: 324k, False: 142k]
  ------------------
  270|   324k|                const char *name;
  271|   324k|                name = igraph_strvector_get(&enames, j);
  272|   324k|                IGRAPH_CHECK(dot_escape(name, &buf));
  ------------------
  |  |  656|   324k|    do { \
  |  |  657|   324k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   324k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   324k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 324k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   324k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 324k]
  |  |  ------------------
  ------------------
  273|   324k|                if (VECTOR(etypes)[j] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|   324k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (273:21): [True: 44.5k, False: 280k]
  ------------------
  274|  44.5k|                    IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph,
  ------------------
  |  |  656|  44.5k|    do { \
  |  |  657|  44.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  44.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  44.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  44.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  275|  44.5k|                                 name, igraph_ess_1(i), &numv));
  276|  44.5k|                    CHECK(fprintf(outstream, "    %s=", VECTOR(buf)));
  ------------------
  |  |   37|  44.5k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 44.5k]
  |  |  |  Branch (37:116): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  277|  44.5k|                    IGRAPH_CHECK(fprint_integral_or_precise(outstream, VECTOR(numv)[0], &buf));
  ------------------
  |  |  656|  44.5k|    do { \
  |  |  657|  44.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  44.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  44.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  44.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  278|  44.5k|                    CHECK(fputc('\n', outstream));
  ------------------
  |  |   37|  44.5k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 44.5k]
  |  |  |  Branch (37:116): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
  279|   280k|                } else if (VECTOR(etypes)[j] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|   280k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (279:28): [True: 238k, False: 42.2k]
  ------------------
  280|   238k|                    const char *s;
  281|   238k|                    IGRAPH_CHECK(igraph_i_attribute_get_string_edge_attr(graph,
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
  282|   238k|                                 name, igraph_ess_1(i), &strv));
  283|   238k|                    s = igraph_strvector_get(&strv, 0);
  284|   238k|                    IGRAPH_CHECK(dot_escape(s, &buf2));
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
  285|   238k|                    CHECK(fprintf(outstream, "    %s=%s\n", VECTOR(buf), VECTOR(buf2)));
  ------------------
  |  |   37|   238k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 238k]
  |  |  |  Branch (37:116): [Folded, False: 238k]
  |  |  ------------------
  ------------------
  286|   238k|                } else if (VECTOR(etypes)[j] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|  42.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (286:28): [True: 42.2k, False: 0]
  ------------------
  287|  42.2k|                    IGRAPH_CHECK(igraph_i_attribute_get_bool_edge_attr(graph,
  ------------------
  |  |  656|  42.2k|    do { \
  |  |  657|  42.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  42.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  42.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 42.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|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
  288|  42.2k|                                 name, igraph_ess_1(i), &boolv));
  289|  42.2k|                    CHECK(fprintf(outstream, "    %s=%d\n", VECTOR(buf), VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |   37|  84.5k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:33): [True: 0, False: 42.2k]
  |  |  |  Branch (37:42): [True: 0, False: 42.2k]
  |  |  |  Branch (37:116): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
  290|  42.2k|                    IGRAPH_WARNING("A boolean edge attribute was converted to numeric.");
  ------------------
  |  |  797|  42.2k|    do { \
  |  |  798|  42.2k|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
  291|  42.2k|                } else {
  292|      0|                    IGRAPH_WARNING("A non-numeric, non-string, non-boolean edge attribute was ignored.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  293|      0|                }
  294|   324k|            }
  295|   142k|            CHECK(fprintf(outstream, "  ];\n"));
  ------------------
  |  |   37|   142k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 142k]
  |  |  |  Branch (37:116): [Folded, False: 142k]
  |  |  ------------------
  ------------------
  296|   142k|        }
  297|  1.81k|    } else {
  298|   207k|        for (igraph_int_t i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (298:34): [True: 205k, False: 1.81k]
  ------------------
  299|   205k|            igraph_int_t from = IGRAPH_FROM(graph, i);
  ------------------
  |  |  115|   205k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   205k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  300|   205k|            igraph_int_t to = IGRAPH_TO(graph, i);
  ------------------
  |  |  128|   205k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   205k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  301|   205k|            CHECK(fprintf(outstream, "  %" IGRAPH_PRId " %s %" IGRAPH_PRId ";\n", from, edgeop, to));
  ------------------
  |  |   37|   205k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 205k]
  |  |  |  Branch (37:116): [Folded, False: 205k]
  |  |  ------------------
  ------------------
  302|   205k|        }
  303|  1.81k|    }
  304|  3.33k|    CHECK(fprintf(outstream, "}\n"));
  ------------------
  |  |   37|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 3.33k]
  |  |  |  Branch (37:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  305|       |
  306|  3.33k|    igraph_vector_char_destroy(&buf2);
  307|  3.33k|    igraph_vector_char_destroy(&buf);
  308|  3.33k|    igraph_vector_bool_destroy(&boolv);
  309|  3.33k|    igraph_strvector_destroy(&strv);
  310|  3.33k|    igraph_vector_destroy(&numv);
  311|  3.33k|    igraph_vector_int_destroy(&etypes);
  312|  3.33k|    igraph_vector_int_destroy(&vtypes);
  313|  3.33k|    igraph_vector_int_destroy(&gtypes);
  314|  3.33k|    igraph_strvector_destroy(&enames);
  315|  3.33k|    igraph_strvector_destroy(&vnames);
  316|  3.33k|    igraph_strvector_destroy(&gnames);
  317|  3.33k|    IGRAPH_FINALLY_CLEAN(11);
  318|       |
  319|  3.33k|    return IGRAPH_SUCCESS;
  320|  3.33k|}
dot.c:dot_escape:
   39|   716k|static igraph_error_t dot_escape(const char *orig, igraph_vector_char_t* result) {
   40|       |    /* do we have to escape the string at all? */
   41|   716k|    igraph_int_t i, j, len = strlen(orig), newlen = 0;
   42|   716k|    igraph_bool_t need_quote = false, is_number = true;
   43|       |
   44|       |    /* first, check whether the string is equal to some reserved word, or empty */
   45|   716k|    if (!strcasecmp(orig, "graph") || !strcasecmp(orig, "digraph") ||
  ------------------
  |  Branch (45:9): [True: 194, False: 716k]
  |  Branch (45:39): [True: 66, False: 716k]
  ------------------
   46|   716k|        !strcasecmp(orig, "node") || !strcasecmp(orig, "edge") ||
  ------------------
  |  Branch (46:9): [True: 197, False: 715k]
  |  Branch (46:38): [True: 215, False: 715k]
  ------------------
   47|   715k|        !strcasecmp(orig, "strict") || !strcasecmp(orig, "subgraph") || len == 0) {
  ------------------
  |  Branch (47:9): [True: 194, False: 715k]
  |  Branch (47:40): [True: 3.96k, False: 711k]
  |  Branch (47:73): [True: 95.9k, False: 615k]
  ------------------
   48|   100k|        need_quote = true;
   49|   100k|        is_number = false;
   50|   100k|    }
   51|       |
   52|       |    /* next, check whether we need to escape the string for any other reason.
   53|       |     * Also update is_number and newlen */
   54|   211M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (54:17): [True: 211M, False: 716k]
  ------------------
   55|   211M|        if (isdigit((unsigned char) orig[i])) {
  ------------------
  |  Branch (55:13): [True: 3.75M, False: 207M]
  ------------------
   56|  3.75M|            newlen++;
   57|   207M|        } else if (orig[i] == '-' && i == 0) {
  ------------------
  |  Branch (57:20): [True: 1.86M, False: 205M]
  |  Branch (57:38): [True: 5.35k, False: 1.85M]
  ------------------
   58|  5.35k|            newlen++;
   59|   207M|        } else if (orig[i] == '.') {
  ------------------
  |  Branch (59:20): [True: 621k, False: 206M]
  ------------------
   60|   621k|            if (is_number) {
  ------------------
  |  Branch (60:17): [True: 3.71k, False: 618k]
  ------------------
   61|  3.71k|                newlen++;
   62|   618k|            } else {
   63|   618k|                need_quote = true;
   64|   618k|                newlen++;
   65|   618k|            }
   66|   206M|        } else if (orig[i] == '_') {
  ------------------
  |  Branch (66:20): [True: 2.32M, False: 204M]
  ------------------
   67|  2.32M|            is_number = false; newlen++;
   68|   204M|        } else if (orig[i] == '\\' || orig[i] == '"' || orig[i] == '\n') {
  ------------------
  |  Branch (68:20): [True: 23.3k, False: 204M]
  |  Branch (68:39): [True: 16.0M, False: 188M]
  |  Branch (68:57): [True: 7.83M, False: 180M]
  ------------------
   69|  23.8M|            need_quote = true; is_number = false; newlen += 2; /* will be escaped */
   70|   180M|        } else if (isalpha((unsigned char) orig[i])) {
  ------------------
  |  Branch (70:20): [True: 47.2M, False: 133M]
  ------------------
   71|  47.2M|            is_number = false; newlen++;
   72|   133M|        } else {
   73|   133M|            is_number = false; need_quote = true; newlen++;
   74|   133M|        }
   75|   211M|    }
   76|   716k|    if (is_number && len > 0 && orig[len - 1] == '.') {
  ------------------
  |  Branch (76:9): [True: 7.14k, False: 709k]
  |  Branch (76:22): [True: 7.14k, False: 0]
  |  Branch (76:33): [True: 279, False: 6.86k]
  ------------------
   77|    279|        is_number = false;
   78|    279|    }
   79|   716k|    if (!is_number && isdigit((unsigned char) orig[0])) {
  ------------------
  |  Branch (79:9): [True: 709k, False: 6.86k]
  |  Branch (79:23): [True: 2.83k, False: 706k]
  ------------------
   80|  2.83k|        need_quote = true;
   81|  2.83k|    }
   82|       |
   83|   716k|    if (is_number || !need_quote) {
  ------------------
  |  Branch (83:9): [True: 6.86k, False: 709k]
  |  Branch (83:22): [True: 562k, False: 147k]
  ------------------
   84|   569k|        IGRAPH_CHECK(igraph_vector_char_resize(result, newlen + 1));
  ------------------
  |  |  656|   569k|    do { \
  |  |  657|   569k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   569k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   569k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 569k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   569k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 569k]
  |  |  ------------------
  ------------------
   85|   569k|        memcpy(VECTOR(*result), orig, newlen);
  ------------------
  |  |   60|   569k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   86|   569k|    } else {
   87|   147k|        newlen += 2;
   88|   147k|        IGRAPH_CHECK(igraph_vector_char_resize(result, newlen + 1));
  ------------------
  |  |  656|   147k|    do { \
  |  |  657|   147k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   147k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   147k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 147k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   147k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 147k]
  |  |  ------------------
  ------------------
   89|   147k|        VECTOR(*result)[0] = '"';
  ------------------
  |  |   60|   147k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   90|   147k|        VECTOR(*result)[newlen - 1] = '"';
  ------------------
  |  |   60|   147k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   91|       |
   92|       |        /* Escape quotes, backslashes and newlines.
   93|       |         * Even though the format spec at https://graphviz.org/doc/info/lang.html
   94|       |         * claims that only quotes need escaping, escaping backslashes appears to
   95|       |         * be necessary as well for GraphViz to render labels correctly.
   96|       |         * Tested with GraphViz 2.50. */
   97|   202M|        for (i = 0, j = 1; i < len; i++) {
  ------------------
  |  Branch (97:28): [True: 202M, False: 147k]
  ------------------
   98|   202M|            if (orig[i] == '\n') {
  ------------------
  |  Branch (98:17): [True: 7.83M, False: 194M]
  ------------------
   99|  7.83M|                VECTOR(*result)[j++] = '\\';
  ------------------
  |  |   60|  7.83M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  100|  7.83M|                VECTOR(*result)[j++] = 'n';
  ------------------
  |  |   60|  7.83M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  101|  7.83M|                continue;
  102|  7.83M|            }
  103|   194M|            if (orig[i] == '\\' || orig[i] == '"') {
  ------------------
  |  Branch (103:17): [True: 23.3k, False: 194M]
  |  Branch (103:36): [True: 16.0M, False: 178M]
  ------------------
  104|  16.0M|                VECTOR(*result)[j++] = '\\';
  ------------------
  |  |   60|  16.0M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  105|  16.0M|            }
  106|   194M|            VECTOR(*result)[j++] = orig[i];
  ------------------
  |  |   60|   194M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  107|   194M|        }
  108|   147k|    }
  109|   716k|    VECTOR(*result)[newlen] = 0;
  ------------------
  |  |   60|   716k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  110|       |
  111|   716k|    return IGRAPH_SUCCESS;
  112|   716k|}
dot.c:fprint_integral_or_precise:
  117|  49.9k|static igraph_error_t fprint_integral_or_precise(FILE *file, igraph_real_t x, igraph_vector_char_t *buf) {
  118|  49.9k|    if (fabs(x) <= IGRAPH_MAX_EXACT_REAL && floor(x) == x) {
  ------------------
  |  |   35|  99.9k|#define IGRAPH_MAX_EXACT_REAL ((double)(1LL << DBL_MANT_DIG))
  ------------------
  |  Branch (118:9): [True: 5.58k, False: 44.3k]
  |  Branch (118:45): [True: 4.54k, False: 1.03k]
  ------------------
  119|       |        /* write exactly representable integral values in standard integer notation;
  120|       |         * the above conditional skips +-Inf and NaN */
  121|  4.54k|        CHECK(fprintf(file, "%.f", x));
  ------------------
  |  |   37|  4.54k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 4.54k]
  |  |  |  Branch (37:116): [Folded, False: 4.54k]
  |  |  ------------------
  ------------------
  122|  45.4k|    } else {
  123|       |        /* write as precise float and quote if necessary */
  124|  45.4k|        char str[50]; /* large enough to hold any precisely printed real */
  125|  45.4k|        CHECK(igraph_real_snprintf_precise(str, sizeof(str) / sizeof(str[0]), x));
  ------------------
  |  |   37|  45.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 45.4k]
  |  |  |  Branch (37:116): [Folded, False: 45.4k]
  |  |  ------------------
  ------------------
  126|  45.4k|        IGRAPH_CHECK(dot_escape(str, buf));
  ------------------
  |  |  656|  45.4k|    do { \
  |  |  657|  45.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  45.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  45.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 45.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  45.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 45.4k]
  |  |  ------------------
  ------------------
  127|  45.4k|        CHECK(fputs(VECTOR(*buf), file));
  ------------------
  |  |   37|  45.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing DOT format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (37:42): [True: 0, False: 45.4k]
  |  |  |  Branch (37:116): [Folded, False: 45.4k]
  |  |  ------------------
  ------------------
  128|  45.4k|    }
  129|  49.9k|    return IGRAPH_SUCCESS;
  130|  49.9k|}

igraph_gml_tree_init_integer:
   31|   790k|                                            igraph_int_t value) {
   32|       |
   33|   790k|    igraph_int_t *p;
   34|       |
   35|   790k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->names, 1);
  ------------------
  |  |   46|   790k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   790k|    do { \
  |  |  |  |  657|   790k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   790k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   790k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   790k|    do { \
  |  |  |  |  604|   790k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   790k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   790k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   790k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  |  |  608|   790k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 790k]
  |  |  ------------------
  ------------------
   36|   790k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&t->types, 1);
  ------------------
  |  |  114|   790k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   790k|    do { \
  |  |  |  |  657|   790k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   790k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|   790k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   790k|    do { \
  |  |  |  |  604|   790k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   790k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   790k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   790k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  |  |  608|   790k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 790k]
  |  |  ------------------
  ------------------
   37|   790k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->children, 1);
  ------------------
  |  |   46|   790k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   790k|    do { \
  |  |  |  |  657|   790k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   790k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   790k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   790k|    do { \
  |  |  |  |  604|   790k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   790k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   790k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   790k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  |  |  608|   790k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 790k]
  |  |  ------------------
  ------------------
   38|   790k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&t->lines, 1);
  ------------------
  |  |  119|   790k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   790k|    do { \
  |  |  |  |  657|   790k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   790k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   790k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   790k|    do { \
  |  |  |  |  604|   790k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   790k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   790k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   790k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  |  |  608|   790k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   790k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 790k]
  |  |  ------------------
  ------------------
   39|       |
   40|       |    /* names */
   41|   790k|    VECTOR(t->names)[0] = (void*) name;
  ------------------
  |  |   60|   790k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   42|       |
   43|       |    /* line number */
   44|   790k|    VECTOR(t->lines)[0] = line;
  ------------------
  |  |   60|   790k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   45|       |
   46|       |    /* types */
   47|   790k|    VECTOR(t->types)[0] = IGRAPH_I_GML_TREE_INTEGER;
  ------------------
  |  |   60|   790k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   48|       |
   49|       |    /* children */
   50|   790k|    p = IGRAPH_CALLOC(1, igraph_int_t);
  ------------------
  |  |   33|   790k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  1.58M|    (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: 790k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   51|   790k|    IGRAPH_CHECK_OOM(p, "Cannot create integer GML tree node.");
  ------------------
  |  |  709|   790k|    do { \
  |  |  710|   790k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   790k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 790k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   790k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 790k]
  |  |  ------------------
  ------------------
   52|   790k|    *p = value;
   53|   790k|    VECTOR(t->children)[0] = p;
  ------------------
  |  |   60|   790k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   54|       |
   55|   790k|    IGRAPH_FINALLY_CLEAN(4);
   56|   790k|    return IGRAPH_SUCCESS;
   57|   790k|}
igraph_gml_tree_init_real:
   62|  1.29k|                                         igraph_real_t value) {
   63|       |
   64|  1.29k|    igraph_real_t *p;
   65|       |
   66|  1.29k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->names, 1);
  ------------------
  |  |   46|  1.29k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.29k|    do { \
  |  |  |  |  657|  1.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|  1.29k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.29k|    do { \
  |  |  |  |  604|  1.29k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.29k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.29k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.29k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.29k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
   67|  1.29k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&t->types, 1);
  ------------------
  |  |  114|  1.29k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.29k|    do { \
  |  |  |  |  657|  1.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|  1.29k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.29k|    do { \
  |  |  |  |  604|  1.29k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.29k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.29k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.29k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.29k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
   68|  1.29k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->children, 1);
  ------------------
  |  |   46|  1.29k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.29k|    do { \
  |  |  |  |  657|  1.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|  1.29k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.29k|    do { \
  |  |  |  |  604|  1.29k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.29k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.29k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.29k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.29k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
   69|  1.29k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&t->lines, 1);
  ------------------
  |  |  119|  1.29k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  1.29k|    do { \
  |  |  |  |  657|  1.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  1.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  1.29k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  1.29k|    do { \
  |  |  |  |  604|  1.29k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  1.29k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  1.29k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  1.29k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  |  |  608|  1.29k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  1.29k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
   70|       |
   71|       |    /* names */
   72|  1.29k|    VECTOR(t->names)[0] = (void*) name;
  ------------------
  |  |   60|  1.29k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   73|       |
   74|       |    /* line number */
   75|  1.29k|    VECTOR(t->lines)[0] = line;
  ------------------
  |  |   60|  1.29k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   76|       |
   77|       |    /* types */
   78|  1.29k|    VECTOR(t->types)[0] = IGRAPH_I_GML_TREE_REAL;
  ------------------
  |  |   60|  1.29k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   79|       |
   80|       |    /* children */
   81|  1.29k|    p = IGRAPH_CALLOC(1, igraph_real_t);
  ------------------
  |  |   33|  1.29k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  2.58k|    (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: 1.29k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   82|  1.29k|    IGRAPH_CHECK_OOM(p, "Cannot create real GML tree node.");
  ------------------
  |  |  709|  1.29k|    do { \
  |  |  710|  1.29k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  1.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 1.29k]
  |  |  ------------------
  ------------------
   83|  1.29k|    *p = value;
   84|  1.29k|    VECTOR(t->children)[0] = p;
  ------------------
  |  |   60|  1.29k|#define VECTOR(v) ((v).stor_begin)
  ------------------
   85|       |
   86|  1.29k|    IGRAPH_FINALLY_CLEAN(4);
   87|  1.29k|    return IGRAPH_SUCCESS;
   88|  1.29k|}
igraph_gml_tree_init_string:
   93|   255k|                                           const char *value) {
   94|       |
   95|   255k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->names, 1);
  ------------------
  |  |   46|   255k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   255k|    do { \
  |  |  |  |  657|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   255k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   255k|    do { \
  |  |  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 255k]
  |  |  ------------------
  ------------------
   96|   255k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&t->types, 1);
  ------------------
  |  |  114|   255k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   255k|    do { \
  |  |  |  |  657|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|   255k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   255k|    do { \
  |  |  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 255k]
  |  |  ------------------
  ------------------
   97|   255k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->children, 1);
  ------------------
  |  |   46|   255k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   255k|    do { \
  |  |  |  |  657|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   255k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   255k|    do { \
  |  |  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 255k]
  |  |  ------------------
  ------------------
   98|   255k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&t->lines, 1);
  ------------------
  |  |  119|   255k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   255k|    do { \
  |  |  |  |  657|   255k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   255k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   255k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 255k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   255k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   255k|    do { \
  |  |  |  |  604|   255k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   255k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   255k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   255k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  |  |  608|   255k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   255k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 255k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 255k]
  |  |  ------------------
  ------------------
   99|       |
  100|       |    /* names */
  101|   255k|    VECTOR(t->names)[0] = (void*) name;
  ------------------
  |  |   60|   255k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  102|       |
  103|       |    /* line number */
  104|   255k|    VECTOR(t->lines)[0] = line;
  ------------------
  |  |   60|   255k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  105|       |
  106|       |    /* types */
  107|   255k|    VECTOR(t->types)[0] = IGRAPH_I_GML_TREE_STRING;
  ------------------
  |  |   60|   255k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  108|       |
  109|       |    /* children */
  110|   255k|    VECTOR(t->children)[0] = (void*) value;
  ------------------
  |  |   60|   255k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  111|       |
  112|   255k|    IGRAPH_FINALLY_CLEAN(4);
  113|   255k|    return IGRAPH_SUCCESS;
  114|   255k|}
igraph_gml_tree_init_tree:
  119|   386k|                                         igraph_gml_tree_t *value) {
  120|       |
  121|   386k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->names, 1);
  ------------------
  |  |   46|   386k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   386k|    do { \
  |  |  |  |  657|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   386k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   386k|    do { \
  |  |  |  |  604|   386k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   386k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   386k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   386k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  |  |  608|   386k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 386k]
  |  |  ------------------
  ------------------
  122|   386k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&t->types, 1);
  ------------------
  |  |  114|   386k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   386k|    do { \
  |  |  |  |  657|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|   386k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   386k|    do { \
  |  |  |  |  604|   386k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   386k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   386k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   386k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  |  |  608|   386k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 386k]
  |  |  ------------------
  ------------------
  123|   386k|    IGRAPH_VECTOR_PTR_INIT_FINALLY(&t->children, 1);
  ------------------
  |  |   46|   386k|    do { IGRAPH_CHECK(igraph_vector_ptr_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   386k|    do { \
  |  |  |  |  657|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   47|   386k|         IGRAPH_FINALLY(igraph_vector_ptr_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   386k|    do { \
  |  |  |  |  604|   386k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   386k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   386k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   386k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  |  |  608|   386k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (47:65): [Folded, False: 386k]
  |  |  ------------------
  ------------------
  124|   386k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&t->lines, 1);
  ------------------
  |  |  119|   386k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|   386k|    do { \
  |  |  |  |  657|   386k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|   386k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|   386k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 386k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|   386k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|   386k|    do { \
  |  |  |  |  604|   386k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|   386k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|   386k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|   386k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  |  |  608|   386k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|   386k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 386k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 386k]
  |  |  ------------------
  ------------------
  125|       |
  126|       |    /* names */
  127|   386k|    VECTOR(t->names)[0] = (void*) name;
  ------------------
  |  |   60|   386k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  128|       |
  129|       |    /* line number */
  130|   386k|    VECTOR(t->lines)[0] = line;
  ------------------
  |  |   60|   386k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  131|       |
  132|       |    /* types */
  133|   386k|    VECTOR(t->types)[0] = IGRAPH_I_GML_TREE_TREE;
  ------------------
  |  |   60|   386k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  134|       |
  135|       |    /* children */
  136|   386k|    VECTOR(t->children)[0] = value;
  ------------------
  |  |   60|   386k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  137|       |
  138|   386k|    IGRAPH_FINALLY_CLEAN(4);
  139|   386k|    return IGRAPH_SUCCESS;
  140|       |
  141|   386k|}
igraph_gml_tree_mergedest:
  153|  1.04M|igraph_error_t igraph_gml_tree_mergedest(igraph_gml_tree_t *t1, igraph_gml_tree_t *t2) {
  154|  1.04M|    igraph_int_t i, n = igraph_vector_ptr_size(&t2->children);
  155|       |
  156|  2.08M|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (156:17): [True: 1.04M, False: 1.04M]
  ------------------
  157|  1.04M|        IGRAPH_CHECK(igraph_vector_ptr_push_back(&t1->names, VECTOR(t2->names)[i]));
  ------------------
  |  |  656|  1.04M|    do { \
  |  |  657|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
  158|  1.04M|        IGRAPH_CHECK(igraph_vector_char_push_back(&t1->types, VECTOR(t2->types)[i]));
  ------------------
  |  |  656|  1.04M|    do { \
  |  |  657|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
  159|  1.04M|        IGRAPH_CHECK(igraph_vector_ptr_push_back(&t1->children, VECTOR(t2->children)[i]));
  ------------------
  |  |  656|  1.04M|    do { \
  |  |  657|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
  160|  1.04M|        IGRAPH_CHECK(igraph_vector_int_push_back(&t1->lines, VECTOR(t2->lines)[i]));
  ------------------
  |  |  656|  1.04M|    do { \
  |  |  657|  1.04M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.04M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.04M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.04M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.04M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.04M]
  |  |  ------------------
  ------------------
  161|  1.04M|    }
  162|       |
  163|  1.04M|    igraph_vector_ptr_destroy(&t2->names);
  164|  1.04M|    igraph_vector_char_destroy(&t2->types);
  165|  1.04M|    igraph_vector_ptr_destroy(&t2->children);
  166|  1.04M|    igraph_vector_int_destroy(&t2->lines);
  167|       |
  168|  1.04M|    return IGRAPH_SUCCESS;
  169|  1.04M|}
igraph_gml_tree_destroy:
  171|   389k|void igraph_gml_tree_destroy(igraph_gml_tree_t *t) {
  172|       |
  173|   389k|    igraph_int_t i, n = igraph_vector_ptr_size(&t->children);
  174|  1.82M|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (174:17): [True: 1.43M, False: 389k]
  ------------------
  175|  1.43M|        igraph_i_gml_tree_type_t type = (igraph_i_gml_tree_type_t) VECTOR(t->types)[i];
  ------------------
  |  |   60|  1.43M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  176|  1.43M|        switch (type) {
  ------------------
  |  Branch (176:17): [True: 1.43M, False: 0]
  ------------------
  177|   386k|        case IGRAPH_I_GML_TREE_TREE:
  ------------------
  |  Branch (177:9): [True: 386k, False: 1.04M]
  ------------------
  178|   386k|            igraph_gml_tree_destroy(VECTOR(t->children)[i]);
  ------------------
  |  |   60|   386k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  179|   386k|            IGRAPH_FREE(VECTOR(t->names)[i]);
  ------------------
  |  |   36|   386k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  180|   386k|            break;
  181|   790k|        case IGRAPH_I_GML_TREE_INTEGER:
  ------------------
  |  Branch (181:9): [True: 790k, False: 643k]
  ------------------
  182|   790k|            IGRAPH_FREE(VECTOR(t->children)[i]);
  ------------------
  |  |   36|   790k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  183|   790k|            IGRAPH_FREE(VECTOR(t->names)[i]);
  ------------------
  |  |   36|   790k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  184|   790k|            break;
  185|  1.29k|        case IGRAPH_I_GML_TREE_REAL:
  ------------------
  |  Branch (185:9): [True: 1.29k, False: 1.43M]
  ------------------
  186|  1.29k|            IGRAPH_FREE(VECTOR(t->children)[i]);
  ------------------
  |  |   36|  1.29k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  187|  1.29k|            IGRAPH_FREE(VECTOR(t->names)[i]);
  ------------------
  |  |   36|  1.29k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  188|  1.29k|            break;
  189|   255k|        case IGRAPH_I_GML_TREE_STRING:
  ------------------
  |  Branch (189:9): [True: 255k, False: 1.17M]
  ------------------
  190|   255k|            IGRAPH_FREE(VECTOR(t->children)[i]);
  ------------------
  |  |   36|   255k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  191|   255k|            IGRAPH_FREE(VECTOR(t->names)[i]);
  ------------------
  |  |   36|   255k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  192|   255k|            break;
  193|      0|        case IGRAPH_I_GML_TREE_DELETED:
  ------------------
  |  Branch (193:9): [True: 0, False: 1.43M]
  ------------------
  194|      0|            break;
  195|  1.43M|        }
  196|  1.43M|    }
  197|   389k|    igraph_vector_ptr_destroy(&t->names);
  198|   389k|    igraph_vector_char_destroy(&t->types);
  199|   389k|    igraph_vector_ptr_destroy(&t->children);
  200|   389k|    igraph_vector_int_destroy(&t->lines);
  201|       |    IGRAPH_FREE(t);
  ------------------
  |  |   36|   389k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  202|   389k|}
igraph_gml_tree_length:
  204|  3.62M|igraph_int_t igraph_gml_tree_length(const igraph_gml_tree_t *t) {
  205|  3.62M|    return igraph_vector_ptr_size(&t->names);
  206|  3.62M|}
igraph_gml_tree_find:
  210|   737k|) {
  211|   737k|    igraph_int_t size = igraph_vector_ptr_size(&t->names);
  212|  1.09M|    while ( from < size && (! VECTOR(t->names)[from] ||
  ------------------
  |  |   60|  1.09M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (212:13): [True: 1.09M, False: 0]
  |  Branch (212:29): [True: 0, False: 1.09M]
  ------------------
  213|  1.09M|                            strcmp(VECTOR(t->names)[from], name)) ) {
  ------------------
  |  |   60|  1.09M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (213:29): [True: 358k, False: 737k]
  ------------------
  214|   358k|        from++;
  215|   358k|    }
  216|       |
  217|   737k|    if (from == size) {
  ------------------
  |  Branch (217:9): [True: 0, False: 737k]
  ------------------
  218|      0|        from = -1;
  219|      0|    }
  220|   737k|    return from;
  221|   737k|}
igraph_gml_tree_type:
  234|  1.77M|igraph_i_gml_tree_type_t igraph_gml_tree_type(const igraph_gml_tree_t *t, igraph_int_t pos) {
  235|  1.77M|    return (igraph_i_gml_tree_type_t) VECTOR(t->types)[pos];
  ------------------
  |  |   60|  1.77M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  236|  1.77M|}
igraph_gml_tree_name:
  238|  2.84M|const char *igraph_gml_tree_name(const igraph_gml_tree_t *t, igraph_int_t pos) {
  239|  2.84M|    return VECTOR(t->names)[pos];
  ------------------
  |  |   60|  2.84M|#define VECTOR(v) ((v).stor_begin)
  ------------------
  240|  2.84M|}
igraph_gml_tree_get_integer:
  247|   860k|                                             igraph_int_t pos) {
  248|   860k|    igraph_int_t *i = VECTOR(t->children)[pos];
  ------------------
  |  |   60|   860k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  249|   860k|    return *i;
  250|   860k|}
igraph_gml_tree_get_real:
  253|  1.29k|                                       igraph_int_t pos) {
  254|  1.29k|    igraph_real_t *d = VECTOR(t->children)[pos];
  ------------------
  |  |   60|  1.29k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  255|  1.29k|    return *d;
  256|  1.29k|}
igraph_gml_tree_get_string:
  259|   252k|                                       igraph_int_t pos) {
  260|   252k|    const char *s = VECTOR(t->children)[pos];
  ------------------
  |  |   60|   252k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  261|   252k|    return s;
  262|   252k|}
igraph_gml_tree_get_tree:
  265|   769k|                                            igraph_int_t pos) {
  266|   769k|    igraph_gml_tree_t *tree = VECTOR(t->children)[pos];
  ------------------
  |  |   60|   769k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  267|   769k|    return tree;
  268|   769k|}

igraph_i_gml_parsedata_init:
  212|  3.33k|igraph_error_t igraph_i_gml_parsedata_init(igraph_i_gml_parsedata_t *context) {
  213|  3.33k|    context->depth = 0;
  214|  3.33k|    context->scanner = NULL;
  215|  3.33k|    context->tree = NULL;
  216|  3.33k|    context->errmsg[0] = '\0';
  217|  3.33k|    context->igraph_errno = IGRAPH_SUCCESS;
  218|       |
  219|  3.33k|    return IGRAPH_SUCCESS;
  220|  3.33k|}
igraph_i_gml_parsedata_destroy:
  222|  3.33k|void igraph_i_gml_parsedata_destroy(igraph_i_gml_parsedata_t *context) {
  223|  3.33k|    if (context->tree != NULL) {
  ------------------
  |  Branch (223:9): [True: 3.33k, False: 0]
  ------------------
  224|  3.33k|        igraph_gml_tree_destroy(context->tree);
  225|  3.33k|        context->tree = NULL;
  226|  3.33k|    }
  227|       |
  228|  3.33k|    if (context->scanner != NULL) {
  ------------------
  |  Branch (228:9): [True: 3.33k, False: 0]
  ------------------
  229|  3.33k|        (void) igraph_gml_yylex_destroy(context->scanner);
  230|       |        context->scanner = NULL;
  231|  3.33k|    }
  232|  3.33k|}
igraph_read_graph_gml:
  386|  3.33k|igraph_error_t igraph_read_graph_gml(igraph_t *graph, FILE *instream) {
  387|       |
  388|  3.33k|    igraph_int_t i;
  389|  3.33k|    igraph_int_t no_of_nodes = 0, no_of_edges = 0;
  390|  3.33k|    igraph_int_t node_no;
  391|  3.33k|    igraph_trie_t trie;
  392|  3.33k|    igraph_vector_int_t edges;
  393|  3.33k|    igraph_bool_t directed = IGRAPH_UNDIRECTED;
  394|  3.33k|    igraph_bool_t has_directed = false;
  395|  3.33k|    igraph_gml_tree_t *gtree;
  396|  3.33k|    igraph_int_t gidx;
  397|  3.33k|    igraph_trie_t vattrnames;
  398|  3.33k|    igraph_trie_t eattrnames;
  399|  3.33k|    igraph_trie_t gattrnames;
  400|  3.33k|    igraph_attribute_record_list_t gattrs, vattrs, eattrs;
  401|  3.33k|    igraph_int_t edgeptr = 0;
  402|  3.33k|    igraph_i_gml_parsedata_t context;
  403|  3.33k|    igraph_bool_t entity_warned = false; /* used to warn at most once about unsupported entities */
  404|       |
  405|  3.33k|    IGRAPH_CHECK(igraph_i_gml_parsedata_init(&context));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  406|  3.33k|    IGRAPH_FINALLY(igraph_i_gml_parsedata_destroy, &context);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  407|       |
  408|  3.33k|    igraph_gml_yylex_init_extra(&context, &context.scanner);
  409|       |
  410|  3.33k|    igraph_gml_yyset_in(instream, context.scanner);
  411|       |
  412|       |    /* Protect 'context' from being destroyed before returning from yyparse() */
  413|  3.33k|    IGRAPH_FINALLY_ENTER();
  414|  3.33k|    int err = igraph_gml_yyparse(&context);
  415|  3.33k|    IGRAPH_FINALLY_EXIT();
  416|  3.33k|    switch (err) {
  417|  3.33k|    case 0: /* success */
  ------------------
  |  Branch (417:5): [True: 3.33k, False: 0]
  ------------------
  418|  3.33k|        break;
  419|      0|    case 1: /* parse error */
  ------------------
  |  Branch (419:5): [True: 0, False: 3.33k]
  ------------------
  420|      0|        if (context.errmsg[0] != '\0') {
  ------------------
  |  Branch (420:13): [True: 0, False: 0]
  ------------------
  421|      0|            IGRAPH_ERROR(context.errmsg, IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  422|      0|        } else if (context.igraph_errno != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (422:20): [True: 0, False: 0]
  ------------------
  423|      0|            IGRAPH_ERROR("", context.igraph_errno);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  424|      0|        } else {
  425|      0|            IGRAPH_ERROR("Cannot read GML file.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  426|      0|        }
  427|      0|        break;
  428|      0|    case 2: /* out of memory */
  ------------------
  |  Branch (428:5): [True: 0, False: 3.33k]
  ------------------
  429|      0|        IGRAPH_ERROR("Cannot read GML file.", 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]
  |  |  ------------------
  ------------------
  430|      0|        break;
  431|      0|    default: /* must never reach here */
  ------------------
  |  Branch (431:5): [True: 0, False: 3.33k]
  ------------------
  432|       |        /* Hint: This will usually be triggered if an IGRAPH_CHECK() is used in a Bison
  433|       |         * action instead of an IGRAPH_YY_CHECK(), resulting in an igraph errno being
  434|       |         * returned in place of a Bison error code.
  435|       |         * TODO: What if future Bison versions introduce error codes other than 0, 1 and 2?
  436|       |         */
  437|      0|        IGRAPH_FATALF("Parser returned unexpected error code (%d) when reading GML file.", err);  /* LCOV_EXCL_LINE */
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  438|  3.33k|    }
  439|       |
  440|       |    /* Check version, if present, integer and not '1' then ignored */
  441|  3.33k|    i = igraph_gml_tree_find(context.tree, "Version", 0);
  442|  3.33k|    if (i >= 0 &&
  ------------------
  |  Branch (442:9): [True: 3.33k, False: 0]
  ------------------
  443|  3.33k|        igraph_gml_tree_type(context.tree, i) == IGRAPH_I_GML_TREE_INTEGER &&
  ------------------
  |  Branch (443:9): [True: 3.33k, False: 0]
  ------------------
  444|  3.33k|        igraph_gml_tree_get_integer(context.tree, i) != 1) {
  ------------------
  |  Branch (444:9): [True: 0, False: 3.33k]
  ------------------
  445|      0|        IGRAPH_WARNINGF("Unknown GML version: %" IGRAPH_PRId ". "
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  446|      0|                        "Parsing will continue assuming GML version 1, but may fail.",
  447|      0|                        igraph_gml_tree_get_integer(context.tree, i));
  448|      0|    }
  449|       |
  450|       |    /* Get the graph */
  451|  3.33k|    gidx = igraph_gml_tree_find(context.tree, "graph", 0);
  452|  3.33k|    if (gidx == -1) {
  ------------------
  |  Branch (452:9): [True: 0, False: 3.33k]
  ------------------
  453|      0|        IGRAPH_ERROR("No 'graph' object in GML file.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  454|      0|    }
  455|  3.33k|    if (igraph_gml_tree_type(context.tree, gidx) !=
  ------------------
  |  Branch (455:9): [True: 0, False: 3.33k]
  ------------------
  456|  3.33k|        IGRAPH_I_GML_TREE_TREE) {
  457|      0|        IGRAPH_ERRORF("Invalid type for 'graph' object in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  458|      0|                      igraph_gml_tree_line(context.tree, gidx));
  459|      0|    }
  460|  3.33k|    gtree = igraph_gml_tree_get_tree(context.tree, gidx);
  461|       |
  462|  3.33k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&gattrs, 0));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  463|  3.33k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &gattrs);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  464|  3.33k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&vattrs, 0));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  465|  3.33k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &vattrs);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  466|  3.33k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&eattrs, 0));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  467|  3.33k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &eattrs);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  468|       |
  469|  3.33k|    IGRAPH_TRIE_INIT_FINALLY(&trie, 0);
  ------------------
  |  |   55|  3.33k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.33k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  470|  3.33k|    IGRAPH_TRIE_INIT_FINALLY(&vattrnames, 0);
  ------------------
  |  |   55|  3.33k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.33k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  471|  3.33k|    IGRAPH_TRIE_INIT_FINALLY(&eattrnames, 0);
  ------------------
  |  |   55|  3.33k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.33k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  472|  3.33k|    IGRAPH_TRIE_INIT_FINALLY(&gattrnames, 0);
  ------------------
  |  |   55|  3.33k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.33k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  473|       |
  474|       |    /* Now we go over all objects in the graph to
  475|       |     *  - collect the attribute names and types
  476|       |     *  - collect node IDs
  477|       |     *  - set directedness
  478|       |     *  - do some checks which the following code relies on
  479|       |     *
  480|       |     * The 'id' fields of 'node' objects are converted into strings, so that they
  481|       |     * can be inserted into a trie and re-encoded as consecutive integers starting
  482|       |     * at 0. The GML spec allows isolated nodes with no 'id' field. These get a
  483|       |     * generated string id of the form "n123" consisting of "n" and their count
  484|       |     * (i.e. ordinal position) within the GML file.
  485|       |     *
  486|       |     * We use an attribute type value of IGRAPH_ATTRIBUTE_UNSPECIFIED to mark attribute
  487|       |     * records which correspond to composite GML values and must therefore be removed
  488|       |     * before creating the graph.
  489|       |     */
  490|  3.33k|    node_no = 0;
  491|   390k|    for (i = 0; i < igraph_gml_tree_length(gtree); i++) {
  ------------------
  |  Branch (491:17): [True: 387k, False: 3.33k]
  ------------------
  492|   387k|        const char *name = igraph_gml_tree_name(gtree, i);
  493|   387k|        if (!strcmp(name, "node")) {
  ------------------
  |  Branch (493:13): [True: 34.7k, False: 352k]
  ------------------
  494|  34.7k|            igraph_gml_tree_t *node;
  495|  34.7k|            igraph_bool_t hasid;
  496|  34.7k|            node_no++;
  497|  34.7k|            no_of_nodes++;
  498|  34.7k|            if (igraph_gml_tree_type(gtree, i) != IGRAPH_I_GML_TREE_TREE) {
  ------------------
  |  Branch (498:17): [True: 0, False: 34.7k]
  ------------------
  499|      0|                IGRAPH_ERRORF("'node' is not a list in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  500|      0|                              igraph_gml_tree_line(gtree, i));
  501|      0|            }
  502|  34.7k|            node = igraph_gml_tree_get_tree(gtree, i);
  503|  34.7k|            hasid = false;
  504|  93.0k|            for (igraph_int_t j = 0; j < igraph_gml_tree_length(node); j++) {
  ------------------
  |  Branch (504:38): [True: 58.3k, False: 34.7k]
  ------------------
  505|  58.3k|                const char *name = igraph_gml_tree_name(node, j);
  506|  58.3k|                igraph_i_gml_tree_type_t type = igraph_gml_tree_type(node, j);
  507|  58.3k|                IGRAPH_CHECK(create_or_update_attribute(name, type, &vattrnames, &vattrs));
  ------------------
  |  |  656|  58.3k|    do { \
  |  |  657|  58.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  58.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  58.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 58.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|  58.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 58.3k]
  |  |  ------------------
  ------------------
  508|       |                /* check id */
  509|  58.3k|                if (!strcmp(name, "id")) {
  ------------------
  |  Branch (509:21): [True: 34.7k, False: 23.6k]
  ------------------
  510|  34.7k|                    igraph_int_t id, trie_id;
  511|  34.7k|                    igraph_int_t trie_size = igraph_trie_size(&trie);
  512|  34.7k|                    if (hasid) {
  ------------------
  |  Branch (512:25): [True: 0, False: 34.7k]
  ------------------
  513|       |                        /* A 'node' must not have more than one 'id' field.
  514|       |                         * This error cannot be relaxed into a warning because all ids we find are
  515|       |                         * added to the trie, and eventually converted to igraph vertex ids. */
  516|      0|                        IGRAPH_ERRORF("Node has multiple 'id' fields in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  517|      0|                                      IGRAPH_PARSEERROR,
  518|      0|                                      igraph_gml_tree_line(node, j));
  519|      0|                    }
  520|  34.7k|                    if (type != IGRAPH_I_GML_TREE_INTEGER) {
  ------------------
  |  Branch (520:25): [True: 0, False: 34.7k]
  ------------------
  521|      0|                        IGRAPH_ERRORF("Non-integer node ID in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  522|      0|                                      igraph_gml_tree_line(node, j));
  523|      0|                    }
  524|  34.7k|                    id = igraph_gml_tree_get_integer(node, j);
  525|  34.7k|                    IGRAPH_CHECK(igraph_trie_get(&trie, strid(id, ""), &trie_id));
  ------------------
  |  |  656|  34.7k|    do { \
  |  |  657|  34.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  34.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  34.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 34.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  34.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 34.7k]
  |  |  ------------------
  ------------------
  526|  34.7k|                    if (trie_id != trie_size) {
  ------------------
  |  Branch (526:25): [True: 0, False: 34.7k]
  ------------------
  527|       |                        /* This id has already been seen in a previous node. */
  528|      0|                        IGRAPH_ERRORF("Duplicate node ID in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  529|      0|                                      igraph_gml_tree_line(node, j));
  530|      0|                    }
  531|  34.7k|                    hasid = true;
  532|  34.7k|                }
  533|  58.3k|            }
  534|  34.7k|            if (!hasid) {
  ------------------
  |  Branch (534:17): [True: 0, False: 34.7k]
  ------------------
  535|       |                /* Isolated nodes are allowed not to have an id.
  536|       |                 * We generate an "n"-prefixed string id to be used in the trie. */
  537|      0|                igraph_int_t trie_id;
  538|      0|                IGRAPH_CHECK(igraph_trie_get(&trie, strid(node_no, "n"), &trie_id));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  539|      0|            }
  540|   352k|        } else if (!strcmp(name, "edge")) {
  ------------------
  |  Branch (540:20): [True: 348k, False: 4.05k]
  ------------------
  541|   348k|            igraph_gml_tree_t *edge;
  542|   348k|            igraph_bool_t has_source = false, has_target = false;
  543|   348k|            no_of_edges++;
  544|   348k|            if (igraph_gml_tree_type(gtree, i) != IGRAPH_I_GML_TREE_TREE) {
  ------------------
  |  Branch (544:17): [True: 0, False: 348k]
  ------------------
  545|      0|                IGRAPH_ERRORF("'edge' is not a list in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  546|      0|                              igraph_gml_tree_line(gtree, i));
  547|      0|            }
  548|   348k|            edge = igraph_gml_tree_get_tree(gtree, i);
  549|  1.32M|            for (igraph_int_t j = 0; j < igraph_gml_tree_length(edge); j++) {
  ------------------
  |  Branch (549:38): [True: 978k, False: 348k]
  ------------------
  550|   978k|                const char *name = igraph_gml_tree_name(edge, j);
  551|   978k|                igraph_i_gml_tree_type_t type = igraph_gml_tree_type(edge, j);
  552|   978k|                if (!strcmp(name, "source")) {
  ------------------
  |  Branch (552:21): [True: 348k, False: 630k]
  ------------------
  553|   348k|                    if (has_source) {
  ------------------
  |  Branch (553:25): [True: 0, False: 348k]
  ------------------
  554|       |                        /* An edge must not have more than one 'source' field.
  555|       |                         * This could be relaxed to a warning, but we keep it as an error
  556|       |                         * for consistency with the handling of duplicate node 'id' field,
  557|       |                         * and because it indicates a serious corruption in the GML file. */
  558|      0|                        IGRAPH_ERRORF("Duplicate 'source' in an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  559|      0|                                      IGRAPH_PARSEERROR,
  560|      0|                                      igraph_gml_tree_line(edge, j));
  561|      0|                    }
  562|   348k|                    has_source = true;
  563|   348k|                    if (type != IGRAPH_I_GML_TREE_INTEGER) {
  ------------------
  |  Branch (563:25): [True: 0, False: 348k]
  ------------------
  564|      0|                        IGRAPH_ERRORF("Non-integer 'source' for an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  565|      0|                                      IGRAPH_PARSEERROR,
  566|      0|                                      igraph_gml_tree_line(edge, j));
  567|      0|                    }
  568|   630k|                } else if (!strcmp(name, "target")) {
  ------------------
  |  Branch (568:28): [True: 348k, False: 282k]
  ------------------
  569|   348k|                    if (has_target) {
  ------------------
  |  Branch (569:25): [True: 0, False: 348k]
  ------------------
  570|       |                        /* An edge must not have more than one 'target' field. */
  571|      0|                        IGRAPH_ERRORF("Duplicate 'target' in an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  572|      0|                                      IGRAPH_PARSEERROR,
  573|      0|                                      igraph_gml_tree_line(edge, j));
  574|      0|                    }
  575|   348k|                    has_target = true;
  576|   348k|                    if (type != IGRAPH_I_GML_TREE_INTEGER) {
  ------------------
  |  Branch (576:25): [True: 0, False: 348k]
  ------------------
  577|      0|                        IGRAPH_ERRORF("Non-integer 'target' for an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  578|      0|                                      IGRAPH_PARSEERROR,
  579|      0|                                      igraph_gml_tree_line(edge, j));
  580|      0|                    }
  581|   348k|                } else {
  582|   282k|                    IGRAPH_CHECK(create_or_update_attribute(name, type, &eattrnames, &eattrs));
  ------------------
  |  |  656|   282k|    do { \
  |  |  657|   282k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   282k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   282k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 282k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   282k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 282k]
  |  |  ------------------
  ------------------
  583|   282k|                }
  584|   978k|            } /* for */
  585|   348k|            if (!has_source) {
  ------------------
  |  Branch (585:17): [True: 0, False: 348k]
  ------------------
  586|      0|                IGRAPH_ERRORF("No 'source' for edge in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  587|      0|                              igraph_gml_tree_line(gtree, i));
  588|      0|            }
  589|   348k|            if (!has_target) {
  ------------------
  |  Branch (589:17): [True: 0, False: 348k]
  ------------------
  590|      0|                IGRAPH_ERRORF("No 'target' for edge in GML file, line %" IGRAPH_PRId ".", IGRAPH_PARSEERROR,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  591|      0|                              igraph_gml_tree_line(gtree, i));
  592|      0|            }
  593|   348k|        } else if (! strcmp(name, "directed")) {
  ------------------
  |  Branch (593:20): [True: 3.33k, False: 717]
  ------------------
  594|       |            /* Set directedness of graph. */
  595|  3.33k|            if (has_directed) {
  ------------------
  |  Branch (595:17): [True: 0, False: 3.33k]
  ------------------
  596|       |                /* Be tolerant of duplicate entries, but do show a warning. */
  597|      0|                IGRAPH_WARNINGF("Duplicate 'directed' field in 'graph', line %" IGRAPH_PRId ". "
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  598|      0|                                "Ignoring previous 'directed' fields.",
  599|      0|                                igraph_gml_tree_line(gtree, i));
  600|      0|            }
  601|  3.33k|            if (igraph_gml_tree_type(gtree, i) == IGRAPH_I_GML_TREE_INTEGER) {
  ------------------
  |  Branch (601:17): [True: 3.33k, False: 0]
  ------------------
  602|  3.33k|                igraph_int_t dir = igraph_gml_tree_get_integer(gtree, i);
  603|  3.33k|                if (dir != 0 && dir != 1) {
  ------------------
  |  Branch (603:21): [True: 139, False: 3.19k]
  |  Branch (603:33): [True: 0, False: 139]
  ------------------
  604|      0|                    IGRAPH_WARNINGF(
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  605|      0|                        "Invalid value %" IGRAPH_PRId " for 'directed' attribute on line %" IGRAPH_PRId ", should be 0 or 1.",
  606|      0|                        dir, igraph_gml_tree_line(gtree, i));
  607|      0|                }
  608|  3.33k|                if (dir) {
  ------------------
  |  Branch (608:21): [True: 139, False: 3.19k]
  ------------------
  609|    139|                    directed = IGRAPH_DIRECTED;
  610|    139|                }
  611|  3.33k|                has_directed = true;
  612|  3.33k|            } else {
  613|      0|                IGRAPH_WARNINGF("Invalid type for 'directed' attribute on line %" IGRAPH_PRId ", assuming undirected.",
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  614|      0|                                igraph_gml_tree_line(gtree, i));
  615|      0|            }
  616|  3.33k|        } else {
  617|       |            /* Add the rest of items as graph attributes. */
  618|    717|            igraph_i_gml_tree_type_t type = igraph_gml_tree_type(gtree, i);
  619|    717|            IGRAPH_CHECK(create_or_update_attribute(name, type, &gattrnames, &gattrs));
  ------------------
  |  |  656|    717|    do { \
  |  |  657|    717|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    717|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    717|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 717]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    717|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 717]
  |  |  ------------------
  ------------------
  620|    717|        }
  621|   387k|    }
  622|       |
  623|       |    /* At this point, all nodes must have an id (from the file or generated) stored
  624|       |     * in the trie. Any condition that violates this should have been caught during
  625|       |     * the preceding checks. */
  626|  3.33k|    IGRAPH_ASSERT(igraph_trie_size(&trie) == no_of_nodes);
  ------------------
  |  |  924|  3.33k|    do { \
  |  |  925|  3.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  627|       |
  628|       |    /* Now we allocate the vectors and strvectors for the attributes */
  629|  3.33k|    IGRAPH_CHECK(allocate_attributes(&vattrs, no_of_nodes, "vertex"));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  630|  3.33k|    IGRAPH_CHECK(allocate_attributes(&eattrs, no_of_edges, "edge"));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  631|  3.33k|    IGRAPH_CHECK(allocate_attributes(&gattrs, 1, "graph"));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  632|       |
  633|       |    /* Add edges, edge attributes and vertex attributes */
  634|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&edges, no_of_edges * 2);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  635|  3.33k|    node_no = 0;
  636|   390k|    for (i = 0; i < igraph_gml_tree_length(gtree); i++) {
  ------------------
  |  Branch (636:17): [True: 387k, False: 3.33k]
  ------------------
  637|   387k|        const char *name;
  638|   387k|        name = igraph_gml_tree_name(gtree, i);
  639|   387k|        if (!strcmp(name, "node")) {
  ------------------
  |  Branch (639:13): [True: 34.7k, False: 352k]
  ------------------
  640|  34.7k|            igraph_gml_tree_t *node = igraph_gml_tree_get_tree(gtree, i);
  641|  34.7k|            igraph_int_t iidx = igraph_gml_tree_find(node, "id", 0);
  642|  34.7k|            igraph_int_t trie_id;
  643|  34.7k|            const char *sid;
  644|  34.7k|            node_no++;
  645|  34.7k|            if (iidx < 0) {
  ------------------
  |  Branch (645:17): [True: 0, False: 34.7k]
  ------------------
  646|       |                /* Isolated node with no id field, use n-prefixed generated id */
  647|      0|                sid = strid(node_no, "n");
  648|  34.7k|            } else {
  649|  34.7k|                sid = strid(igraph_gml_tree_get_integer(node, iidx), "");
  650|  34.7k|            }
  651|  34.7k|            IGRAPH_CHECK(igraph_trie_get(&trie, sid, &trie_id));
  ------------------
  |  |  656|  34.7k|    do { \
  |  |  657|  34.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  34.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  34.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 34.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  34.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 34.7k]
  |  |  ------------------
  ------------------
  652|  93.0k|            for (igraph_int_t j = 0; j < igraph_gml_tree_length(node); j++) {
  ------------------
  |  Branch (652:38): [True: 58.3k, False: 34.7k]
  ------------------
  653|  58.3k|                const char *aname = igraph_gml_tree_name(node, j);
  654|  58.3k|                igraph_attribute_record_t *atrec;
  655|  58.3k|                igraph_attribute_type_t type;
  656|  58.3k|                igraph_int_t ai;
  657|  58.3k|                IGRAPH_CHECK(igraph_trie_get(&vattrnames, aname, &ai));
  ------------------
  |  |  656|  58.3k|    do { \
  |  |  657|  58.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  58.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  58.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 58.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|  58.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 58.3k]
  |  |  ------------------
  ------------------
  658|  58.3k|                atrec = igraph_attribute_record_list_get_ptr(&vattrs, ai);
  659|  58.3k|                type = atrec->type;
  660|  58.3k|                if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (660:21): [True: 44.6k, False: 13.6k]
  ------------------
  661|  44.6k|                    VECTOR(*atrec->value.as_vector)[trie_id] = igraph_i_gml_toreal(node, j);
  ------------------
  |  |   60|  44.6k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  662|  44.6k|                } else if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (662:28): [True: 13.6k, False: 0]
  ------------------
  663|  13.6k|                    igraph_strvector_t *v = atrec->value.as_strvector;
  664|  13.6k|                    const char *value = igraph_i_gml_tostring(node, j);
  665|  13.6k|                    if (needs_coding(value)) {
  ------------------
  |  Branch (665:25): [True: 7.69k, False: 5.98k]
  ------------------
  666|  7.69k|                        char *value_decoded;
  667|  7.69k|                        IGRAPH_CHECK(entity_decode(value, &value_decoded, &entity_warned));
  ------------------
  |  |  656|  7.69k|    do { \
  |  |  657|  7.69k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.69k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.69k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.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|  7.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
  668|  7.69k|                        IGRAPH_FINALLY(igraph_free, value_decoded);
  ------------------
  |  |  603|  7.69k|    do { \
  |  |  604|  7.69k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  7.69k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  7.69k|         * incorrect destructor function with the pointer */ \
  |  |  607|  7.69k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 7.69k]
  |  |  ------------------
  |  |  608|  7.69k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  7.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
  669|  7.69k|                        IGRAPH_CHECK(igraph_strvector_set(v, trie_id, value_decoded));
  ------------------
  |  |  656|  7.69k|    do { \
  |  |  657|  7.69k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.69k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.69k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.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|  7.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
  670|  7.69k|                        IGRAPH_FREE(value_decoded);
  ------------------
  |  |   36|  7.69k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  671|  7.69k|                        IGRAPH_FINALLY_CLEAN(1);
  672|  7.69k|                    } else {
  673|  5.98k|                        IGRAPH_CHECK(igraph_strvector_set(v, trie_id, value));
  ------------------
  |  |  656|  5.98k|    do { \
  |  |  657|  5.98k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.98k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.98k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.98k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.98k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.98k]
  |  |  ------------------
  ------------------
  674|  5.98k|                    }
  675|  13.6k|                } else {
  676|       |                    /* Ignored composite attribute */
  677|      0|                }
  678|  58.3k|            }
  679|   352k|        } else if (!strcmp(name, "edge")) {
  ------------------
  |  Branch (679:20): [True: 348k, False: 4.05k]
  ------------------
  680|   348k|            igraph_gml_tree_t *edge;
  681|   348k|            igraph_int_t from, to, fromidx = 0, toidx = 0;
  682|   348k|            edge = igraph_gml_tree_get_tree(gtree, i);
  683|  1.32M|            for (igraph_int_t j = 0; j < igraph_gml_tree_length(edge); j++) {
  ------------------
  |  Branch (683:38): [True: 978k, False: 348k]
  ------------------
  684|   978k|                const char *aname = igraph_gml_tree_name(edge, j);
  685|   978k|                if (!strcmp(aname, "source")) {
  ------------------
  |  Branch (685:21): [True: 348k, False: 630k]
  ------------------
  686|   348k|                    fromidx = igraph_gml_tree_find(edge, "source", 0);
  687|   630k|                } else if (!strcmp(aname, "target")) {
  ------------------
  |  Branch (687:28): [True: 348k, False: 282k]
  ------------------
  688|   348k|                    toidx = igraph_gml_tree_find(edge, "target", 0);
  689|   348k|                } else {
  690|   282k|                    igraph_int_t edgeid = edgeptr / 2;
  691|   282k|                    igraph_int_t ai;
  692|   282k|                    igraph_attribute_record_t *atrec;
  693|   282k|                    igraph_attribute_type_t type;
  694|   282k|                    IGRAPH_CHECK(igraph_trie_get(&eattrnames, aname, &ai));
  ------------------
  |  |  656|   282k|    do { \
  |  |  657|   282k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   282k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   282k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 282k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   282k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 282k]
  |  |  ------------------
  ------------------
  695|   282k|                    atrec = igraph_attribute_record_list_get_ptr(&eattrs, ai);
  696|   282k|                    type = atrec->type;
  697|   282k|                    if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (697:25): [True: 43.2k, False: 238k]
  ------------------
  698|  43.2k|                        VECTOR(*atrec->value.as_vector)[edgeid] = igraph_i_gml_toreal(edge, j);
  ------------------
  |  |   60|  43.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  699|   238k|                    } else if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (699:32): [True: 238k, False: 0]
  ------------------
  700|   238k|                        igraph_strvector_t *v = atrec->value.as_strvector;
  701|   238k|                        const char *value = igraph_i_gml_tostring(edge, j);
  702|   238k|                        if (needs_coding(value)) {
  ------------------
  |  Branch (702:29): [True: 1.92k, False: 236k]
  ------------------
  703|  1.92k|                            char *value_decoded;
  704|  1.92k|                            IGRAPH_CHECK(entity_decode(value, &value_decoded, &entity_warned));
  ------------------
  |  |  656|  1.92k|    do { \
  |  |  657|  1.92k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.92k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.92k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.92k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
  705|  1.92k|                            IGRAPH_FINALLY(igraph_free, value_decoded);
  ------------------
  |  |  603|  1.92k|    do { \
  |  |  604|  1.92k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  1.92k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  1.92k|         * incorrect destructor function with the pointer */ \
  |  |  607|  1.92k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 1.92k]
  |  |  ------------------
  |  |  608|  1.92k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  1.92k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
  706|  1.92k|                            IGRAPH_CHECK(igraph_strvector_set(v, edgeid, value_decoded));
  ------------------
  |  |  656|  1.92k|    do { \
  |  |  657|  1.92k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.92k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.92k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.92k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
  707|  1.92k|                            IGRAPH_FREE(value_decoded);
  ------------------
  |  |   36|  1.92k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  708|  1.92k|                            IGRAPH_FINALLY_CLEAN(1);
  709|   236k|                        } else {
  710|   236k|                            IGRAPH_CHECK(igraph_strvector_set(v, edgeid, value));
  ------------------
  |  |  656|   236k|    do { \
  |  |  657|   236k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   236k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   236k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 236k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   236k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 236k]
  |  |  ------------------
  ------------------
  711|   236k|                        }
  712|   238k|                    } else {
  713|       |                        /* Ignored composite attribute */
  714|      0|                    }
  715|   282k|                }
  716|   978k|            }
  717|   348k|            from = igraph_gml_tree_get_integer(edge, fromidx);
  718|   348k|            to = igraph_gml_tree_get_integer(edge, toidx);
  719|   348k|            IGRAPH_CHECK(igraph_trie_check(&trie, strid(from, ""), &from));
  ------------------
  |  |  656|   348k|    do { \
  |  |  657|   348k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   348k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   348k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 348k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   348k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 348k]
  |  |  ------------------
  ------------------
  720|   348k|            if (from < 0) {
  ------------------
  |  Branch (720:17): [True: 0, False: 348k]
  ------------------
  721|      0|                IGRAPH_ERRORF("Unknown source node ID found in an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  722|      0|                             IGRAPH_PARSEERROR, igraph_gml_tree_line(edge, fromidx));
  723|      0|            }
  724|   348k|            IGRAPH_CHECK(igraph_trie_check(&trie, strid(to, ""), &to));
  ------------------
  |  |  656|   348k|    do { \
  |  |  657|   348k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   348k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   348k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 348k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   348k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 348k]
  |  |  ------------------
  ------------------
  725|   348k|            if (to < 0) {
  ------------------
  |  Branch (725:17): [True: 0, False: 348k]
  ------------------
  726|      0|                IGRAPH_ERRORF("Unknown target node ID found in an edge in GML file, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  727|      0|                             IGRAPH_PARSEERROR, igraph_gml_tree_line(edge, toidx));
  728|      0|            }
  729|   348k|            VECTOR(edges)[edgeptr++] = from;
  ------------------
  |  |   60|   348k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  730|   348k|            VECTOR(edges)[edgeptr++] = to;
  ------------------
  |  |   60|   348k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  731|   348k|        } else if (! strcmp(name, "directed")) {
  ------------------
  |  Branch (731:20): [True: 3.33k, False: 717]
  ------------------
  732|       |            /* Nothing to do for 'directed' field, already handled earlier. */
  733|  3.33k|        } else {
  734|       |            /* Set the rest as graph attributes */
  735|    717|            igraph_int_t ai;
  736|    717|            igraph_attribute_record_t *atrec;
  737|    717|            igraph_attribute_type_t type;
  738|    717|            IGRAPH_CHECK(igraph_trie_get(&gattrnames, name, &ai));
  ------------------
  |  |  656|    717|    do { \
  |  |  657|    717|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    717|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    717|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 717]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    717|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 717]
  |  |  ------------------
  ------------------
  739|    717|            atrec = igraph_attribute_record_list_get_ptr(&gattrs, ai);
  740|    717|            type = atrec->type;
  741|    717|            if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (741:17): [True: 134, False: 583]
  ------------------
  742|    134|                VECTOR(*atrec->value.as_vector)[0] = igraph_i_gml_toreal(gtree, i);
  ------------------
  |  |   60|    134|#define VECTOR(v) ((v).stor_begin)
  ------------------
  743|    583|            } else if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (743:24): [True: 583, False: 0]
  ------------------
  744|    583|                igraph_strvector_t *v = atrec->value.as_strvector;
  745|    583|                const char *value = igraph_i_gml_tostring(gtree, i);
  746|    583|                if (needs_coding(value)) {
  ------------------
  |  Branch (746:21): [True: 60, False: 523]
  ------------------
  747|     60|                    char *value_decoded;
  748|     60|                    IGRAPH_CHECK(entity_decode(value, &value_decoded, &entity_warned));
  ------------------
  |  |  656|     60|    do { \
  |  |  657|     60|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     60|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     60|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 60]
  |  |  ------------------
  ------------------
  749|     60|                    IGRAPH_FINALLY(igraph_free, value_decoded);
  ------------------
  |  |  603|     60|    do { \
  |  |  604|     60|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|     60|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|     60|         * incorrect destructor function with the pointer */ \
  |  |  607|     60|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 60]
  |  |  ------------------
  |  |  608|     60|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 60]
  |  |  ------------------
  ------------------
  750|     60|                    IGRAPH_CHECK(igraph_strvector_set(v, 0, value_decoded));
  ------------------
  |  |  656|     60|    do { \
  |  |  657|     60|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     60|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     60|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 60]
  |  |  ------------------
  ------------------
  751|     60|                    IGRAPH_FREE(value_decoded);
  ------------------
  |  |   36|     60|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  752|     60|                    IGRAPH_FINALLY_CLEAN(1);
  753|    523|                } else {
  754|    523|                    IGRAPH_CHECK(igraph_strvector_set(v, 0, value));
  ------------------
  |  |  656|    523|    do { \
  |  |  657|    523|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    523|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    523|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 523]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    523|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 523]
  |  |  ------------------
  ------------------
  755|    523|                }
  756|    583|            } else {
  757|       |                /* Ignored composite attribute */
  758|      0|            }
  759|    717|        }
  760|   387k|    }
  761|       |
  762|       |    /* Remove composite attributes that we cannot represent in igraph */
  763|  3.33k|    IGRAPH_CHECK(prune_unknown_attributes(&vattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  764|  3.33k|    IGRAPH_CHECK(prune_unknown_attributes(&eattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  765|  3.33k|    IGRAPH_CHECK(prune_unknown_attributes(&gattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  766|       |
  767|  3.33k|    igraph_trie_destroy(&trie);
  768|  3.33k|    igraph_trie_destroy(&gattrnames);
  769|  3.33k|    igraph_trie_destroy(&vattrnames);
  770|  3.33k|    igraph_trie_destroy(&eattrnames);
  771|  3.33k|    IGRAPH_FINALLY_CLEAN(4);
  772|       |
  773|  3.33k|    IGRAPH_CHECK(igraph_empty_attrs(graph, 0, directed, &gattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  774|  3.33k|    IGRAPH_FINALLY(igraph_destroy, graph);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  775|  3.33k|    IGRAPH_CHECK(igraph_add_vertices(graph, no_of_nodes, &vattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  776|  3.33k|    IGRAPH_CHECK(igraph_add_edges(graph, &edges, &eattrs));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  777|  3.33k|    IGRAPH_FINALLY_CLEAN(1); /* do not destroy 'graph', just pop it from the stack */
  778|       |
  779|  3.33k|    igraph_vector_int_destroy(&edges);
  780|  3.33k|    igraph_attribute_record_list_destroy(&eattrs);
  781|  3.33k|    igraph_attribute_record_list_destroy(&vattrs);
  782|  3.33k|    igraph_attribute_record_list_destroy(&gattrs);
  783|  3.33k|    igraph_i_gml_parsedata_destroy(&context);
  784|  3.33k|    IGRAPH_FINALLY_CLEAN(5);
  785|       |
  786|  3.33k|    return IGRAPH_SUCCESS;
  787|  3.33k|}
igraph_write_graph_gml:
  929|  3.33k|                                      const igraph_vector_t *id, const char *creator) {
  930|  3.33k|    igraph_strvector_t gnames, vnames, enames; /* attribute names */
  931|  3.33k|    igraph_vector_int_t gtypes, vtypes, etypes; /* attribute types */
  932|  3.33k|    igraph_int_t gattr_no, vattr_no, eattr_no; /* attribute counts */
  933|  3.33k|    igraph_vector_t numv;
  934|  3.33k|    igraph_strvector_t strv;
  935|  3.33k|    igraph_vector_bool_t boolv;
  936|  3.33k|    igraph_int_t i;
  937|  3.33k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
  938|  3.33k|    igraph_int_t no_of_edges = igraph_ecount(graph);
  939|       |
  940|       |    /* Each element is a bit field used to prevent showing more
  941|       |     * than one warning for each vertex or edge attribute. */
  942|  3.33k|    igraph_vector_int_t warning_shown;
  943|       |
  944|  3.33k|    igraph_vector_t v_myid;
  945|  3.33k|    const igraph_vector_t *myid = id;
  946|       |
  947|       |    /* Creator line */
  948|  3.33k|    if (creator == NULL) {
  ------------------
  |  Branch (948:9): [True: 0, False: 3.33k]
  ------------------
  949|      0|        time_t curtime = time(0);
  950|      0|        char *timestr = ctime(&curtime);
  951|      0|        timestr[strlen(timestr) - 1] = '\0'; /* nicely remove \n */
  952|       |
  953|      0|        CHECK(fprintf(outstream,
  ------------------
  |  |  845|      0|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 0]
  |  |  |  Branch (845:116): [Folded, False: 0]
  |  |  ------------------
  ------------------
  954|      0|                      "Creator \"igraph version %s %s\"\n",
  955|      0|                      IGRAPH_VERSION, timestr));
  956|  3.33k|    } else if (creator[0] == '\0') {
  ------------------
  |  Branch (956:16): [True: 0, False: 3.33k]
  ------------------
  957|       |        /* creator == "", omit Creator line */
  958|  3.33k|    } else {
  959|  3.33k|        if (needs_coding(creator)) {
  ------------------
  |  Branch (959:13): [True: 0, False: 3.33k]
  ------------------
  960|      0|            char *d;
  961|      0|            IGRAPH_CHECK(entity_encode(creator, &d, IGRAPH_WRITE_GML_ENCODE_ONLY_QUOT_SW & options));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  962|      0|            IGRAPH_FINALLY(igraph_free, d);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  963|      0|            CHECK(fprintf(outstream,
  ------------------
  |  |  845|      0|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 0]
  |  |  |  Branch (845:116): [Folded, False: 0]
  |  |  ------------------
  ------------------
  964|      0|                          "Creator \"%s\"\n",
  965|      0|                          creator));
  966|      0|            IGRAPH_FREE(d);
  ------------------
  |  |   36|      0|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  967|      0|            IGRAPH_FINALLY_CLEAN(1);
  968|  3.33k|        } else {
  969|  3.33k|            CHECK(fprintf(outstream,
  ------------------
  |  |  845|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 3.33k]
  |  |  |  Branch (845:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  970|  3.33k|                          "Creator \"%s\"\n",
  971|  3.33k|                          creator));
  972|  3.33k|        }
  973|  3.33k|    }
  974|       |
  975|       |    /* Version line */
  976|  3.33k|    CHECK(fprintf(outstream, "Version 1\n"));
  ------------------
  |  |  845|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 3.33k]
  |  |  |  Branch (845:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  977|       |
  978|       |    /* The graph */
  979|  3.33k|    CHECK(fprintf(outstream, "graph\n[\n"));
  ------------------
  |  |  845|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 3.33k]
  |  |  |  Branch (845:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  980|       |
  981|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&gnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  982|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&vnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  983|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&enames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  984|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&gtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  985|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&vtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  986|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&etypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  987|  3.33k|    IGRAPH_CHECK(igraph_i_attribute_get_info(graph,
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  988|  3.33k|                 &gnames, &gtypes,
  989|  3.33k|                 &vnames, &vtypes,
  990|  3.33k|                 &enames, &etypes));
  991|  3.33k|    gattr_no = igraph_vector_int_size(&gtypes);
  992|  3.33k|    vattr_no = igraph_vector_int_size(&vtypes);
  993|  3.33k|    eattr_no = igraph_vector_int_size(&etypes);
  994|       |
  995|  3.33k|    IGRAPH_VECTOR_INIT_FINALLY(&numv, 1);
  ------------------
  |  |  104|  3.33k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.33k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  996|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&strv, 1);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  997|  3.33k|    IGRAPH_VECTOR_BOOL_INIT_FINALLY(&boolv, 1);
  ------------------
  |  |  109|  3.33k|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|  3.33k|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  998|       |
  999|       |    /* Check whether there is an 'id' node attribute if the supplied is 0 */
 1000|  3.33k|    if (!id) {
  ------------------
  |  Branch (1000:9): [True: 3.33k, False: 0]
  ------------------
 1001|  3.33k|        igraph_bool_t found = false;
 1002|  8.55k|        for (i = 0; i < igraph_vector_int_size(&vtypes); i++) {
  ------------------
  |  Branch (1002:21): [True: 5.26k, False: 3.29k]
  ------------------
 1003|  5.26k|            const char *n = igraph_strvector_get(&vnames, i);
 1004|  5.26k|            if (!strcmp(n, "id") && VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|  3.32k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1004:17): [True: 3.32k, False: 1.94k]
  |  Branch (1004:37): [True: 43, False: 3.27k]
  ------------------
 1005|     43|                found = true; break;
 1006|     43|            }
 1007|  5.26k|        }
 1008|  3.33k|        if (found) {
  ------------------
  |  Branch (1008:13): [True: 43, False: 3.29k]
  ------------------
 1009|     43|            IGRAPH_VECTOR_INIT_FINALLY(&v_myid, no_of_nodes);
  ------------------
  |  |  104|     43|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     43|    do { \
  |  |  |  |  657|     43|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     43|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     43|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 43]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     43|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 43]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|     43|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     43|    do { \
  |  |  |  |  604|     43|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     43|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     43|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     43|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 43]
  |  |  |  |  ------------------
  |  |  |  |  608|     43|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     43|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 43]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 43]
  |  |  ------------------
  ------------------
 1010|     43|            IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(graph, "id",
  ------------------
  |  |  656|     43|    do { \
  |  |  657|     43|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     43|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     43|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 43]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     43|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 43]
  |  |  ------------------
  ------------------
 1011|     43|                         igraph_vss_all(),
 1012|     43|                         &v_myid));
 1013|     43|            myid = &v_myid;
 1014|     43|        }
 1015|  3.33k|    }
 1016|       |
 1017|       |    /* Scan id vector for invalid values. If any are found, all ids are ignored.
 1018|       |     * Invalid values may occur as a result of reading a GML file in which some
 1019|       |     * nodes did not have an id, or by adding new vertices to a graph with an "id"
 1020|       |     * attribute. In this case, the "id" attribute will contain NaN values.
 1021|       |     */
 1022|  3.33k|    if (myid) {
  ------------------
  |  Branch (1022:9): [True: 43, False: 3.29k]
  ------------------
 1023|     43|        if (igraph_vector_size(myid) != no_of_nodes) {
  ------------------
  |  Branch (1023:13): [True: 0, False: 43]
  ------------------
 1024|      0|            IGRAPH_ERROR("Size of ID vector must match vertex count.", 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]
  |  |  ------------------
  ------------------
 1025|      0|        }
 1026|  1.36k|        for (i = 0; i < no_of_nodes; ++i) {
  ------------------
  |  Branch (1026:21): [True: 1.32k, False: 41]
  ------------------
 1027|  1.32k|            igraph_real_t val = VECTOR(*myid)[i];
  ------------------
  |  |   60|  1.32k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1028|  1.32k|            igraph_real_t trunc_val = trunc(val);
 1029|  1.32k|            if (! (val == trunc_val && igraph_i_is_real_representable_as_integer(trunc_val))) {
  ------------------
  |  Branch (1029:20): [True: 1.32k, False: 1]
  |  Branch (1029:40): [True: 1.32k, False: 1]
  ------------------
 1030|      2|                IGRAPH_WARNINGF("%g is not a valid integer ID for GML files, ignoring all supplied IDs.", val);
  ------------------
  |  |  777|      2|    do { \
  |  |  778|      2|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      2|                        __VA_ARGS__); \
  |  |  780|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 2]
  |  |  ------------------
  ------------------
 1031|      2|                if (myid == &v_myid) {
  ------------------
  |  Branch (1031:21): [True: 2, False: 0]
  ------------------
 1032|      2|                    igraph_vector_destroy(&v_myid);
 1033|      2|                    IGRAPH_FINALLY_CLEAN(1);
 1034|      2|                }
 1035|      2|                myid = NULL;
 1036|      2|                break;
 1037|      2|            }
 1038|  1.32k|        }
 1039|     43|    }
 1040|       |
 1041|  3.33k|    if (myid) {
  ------------------
  |  Branch (1041:9): [True: 41, False: 3.29k]
  ------------------
 1042|     41|        igraph_bool_t duplicate_free;
 1043|     41|        IGRAPH_CHECK(igraph_i_vector_is_duplicate_free(myid, &duplicate_free));
  ------------------
  |  |  656|     41|    do { \
  |  |  657|     41|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     41|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     41|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 41]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     41|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 41]
  |  |  ------------------
  ------------------
 1044|     41|        if (! duplicate_free) {
  ------------------
  |  Branch (1044:13): [True: 27, False: 14]
  ------------------
 1045|     27|            IGRAPH_WARNING("Duplicate ID values found, ignoring supplied IDs.");
  ------------------
  |  |  797|     27|    do { \
  |  |  798|     27|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
 1046|     27|            if (myid == &v_myid) {
  ------------------
  |  Branch (1046:17): [True: 27, False: 0]
  ------------------
 1047|     27|                igraph_vector_destroy(&v_myid);
 1048|     27|                IGRAPH_FINALLY_CLEAN(1);
 1049|     27|            }
 1050|     27|            myid = NULL;
 1051|     27|        }
 1052|     41|    }
 1053|       |
 1054|       |    /* directedness */
 1055|  3.33k|    CHECK(fprintf(outstream, "  directed %i\n", igraph_is_directed(graph) ? 1 : 0));
  ------------------
  |  |  845|  6.67k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 139, False: 3.19k]
  |  |  |  Branch (845:42): [True: 0, False: 3.33k]
  |  |  |  Branch (845:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1056|       |
 1057|       |    /* Graph attributes first */
 1058|  4.13k|    for (i = 0; i < gattr_no; i++) {
  ------------------
  |  Branch (1058:17): [True: 800, False: 3.33k]
  ------------------
 1059|    800|        const char *name;
 1060|    800|        char *newname;
 1061|    800|        name = igraph_strvector_get(&gnames, i);
 1062|    800|        IGRAPH_CHECK(igraph_i_gml_convert_to_key(name, &newname));
  ------------------
  |  |  656|    800|    do { \
  |  |  657|    800|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    800|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    800|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 800]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    800|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 800]
  |  |  ------------------
  ------------------
 1063|    800|        IGRAPH_FINALLY(igraph_free, newname);
  ------------------
  |  |  603|    800|    do { \
  |  |  604|    800|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    800|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    800|         * incorrect destructor function with the pointer */ \
  |  |  607|    800|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 800]
  |  |  ------------------
  |  |  608|    800|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    800|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 800]
  |  |  ------------------
  ------------------
 1064|    800|        if (!strcmp(newname, "directed")|| !strcmp(newname, "edge") || !strcmp(newname, "node")) {
  ------------------
  |  Branch (1064:13): [True: 6, False: 794]
  |  Branch (1064:44): [True: 5, False: 789]
  |  Branch (1064:72): [True: 9, False: 780]
  ------------------
 1065|     20|            IGRAPH_WARNINGF("The graph attribute '%s' was ignored while writing GML format.", name);
  ------------------
  |  |  777|     20|    do { \
  |  |  778|     20|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|     20|                        __VA_ARGS__); \
  |  |  780|     20|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 20]
  |  |  ------------------
  ------------------
 1066|    780|        } else {
 1067|    780|            if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|    780|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1067:17): [True: 75, False: 705]
  ------------------
 1068|     75|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_graph_attr(graph, name, &numv));
  ------------------
  |  |  656|     75|    do { \
  |  |  657|     75|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     75|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     75|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 75]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     75|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 75]
  |  |  ------------------
  ------------------
 1069|       |                /* Treat NaN as missing, skip writing it. GML does not officially support NaN. */
 1070|     75|                if (! isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1070:21): [True: 12, False: 63]
  ------------------
 1071|     12|                    if (! isfinite(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1071:25): [True: 0, False: 12]
  ------------------
 1072|      0|                        IGRAPH_WARNINGF("Infinite value in numeric graph attribute '%s'. "
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1073|      0|                                        "Produced GML file will not be conformant.", name);
 1074|      0|                    }
 1075|     12|                    CHECK(fprintf(outstream, "  %s ", newname));
  ------------------
  |  |  845|     12|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 12]
  |  |  |  Branch (845:116): [Folded, False: 12]
  |  |  ------------------
  ------------------
 1076|     12|                    CHECK(igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]));
  ------------------
  |  |  845|     12|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 12]
  |  |  |  Branch (845:116): [Folded, False: 12]
  |  |  ------------------
  ------------------
 1077|     12|                    CHECK(fputc('\n', outstream));
  ------------------
  |  |  845|     12|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 12]
  |  |  |  Branch (845:116): [Folded, False: 12]
  |  |  ------------------
  ------------------
 1078|     12|                }
 1079|    705|            } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|    705|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1079:24): [True: 568, False: 137]
  ------------------
 1080|    568|                const char *s;
 1081|    568|                IGRAPH_CHECK(igraph_i_attribute_get_string_graph_attr(graph, name, &strv));
  ------------------
  |  |  656|    568|    do { \
  |  |  657|    568|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    568|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    568|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 568]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    568|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 568]
  |  |  ------------------
  ------------------
 1082|    568|                s = igraph_strvector_get(&strv, 0);
 1083|    568|                if (needs_coding(s)) {
  ------------------
  |  Branch (1083:21): [True: 60, False: 508]
  ------------------
 1084|     60|                    char *d;
 1085|     60|                    IGRAPH_CHECK(entity_encode(s, &d, IGRAPH_WRITE_GML_ENCODE_ONLY_QUOT_SW & options));
  ------------------
  |  |  656|     60|    do { \
  |  |  657|     60|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     60|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     60|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 60]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 60]
  |  |  ------------------
  ------------------
 1086|     60|                    IGRAPH_FINALLY(igraph_free, d);
  ------------------
  |  |  603|     60|    do { \
  |  |  604|     60|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|     60|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|     60|         * incorrect destructor function with the pointer */ \
  |  |  607|     60|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 60]
  |  |  ------------------
  |  |  608|     60|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 60]
  |  |  ------------------
  ------------------
 1087|     60|                    CHECK(fprintf(outstream, "  %s \"%s\"\n", newname, d));
  ------------------
  |  |  845|     60|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 60]
  |  |  |  Branch (845:116): [Folded, False: 60]
  |  |  ------------------
  ------------------
 1088|     60|                    IGRAPH_FREE(d);
  ------------------
  |  |   36|     60|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1089|     60|                    IGRAPH_FINALLY_CLEAN(1);
 1090|    508|                } else {
 1091|    508|                    CHECK(fprintf(outstream, "  %s \"%s\"\n", newname, s));
  ------------------
  |  |  845|    508|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 508]
  |  |  |  Branch (845:116): [Folded, False: 508]
  |  |  ------------------
  ------------------
 1092|    508|                }
 1093|    568|            } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    137|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1093:24): [True: 137, False: 0]
  ------------------
 1094|    137|                IGRAPH_CHECK(igraph_i_attribute_get_bool_graph_attr(graph, name, &boolv));
  ------------------
  |  |  656|    137|    do { \
  |  |  657|    137|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    137|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    137|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 137]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    137|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 137]
  |  |  ------------------
  ------------------
 1095|    137|                CHECK(fprintf(outstream, "  %s %d\n", newname, VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |  845|    274|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 0, False: 137]
  |  |  |  Branch (845:42): [True: 0, False: 137]
  |  |  |  Branch (845:116): [Folded, False: 137]
  |  |  ------------------
  ------------------
 1096|    137|                IGRAPH_WARNING("A boolean graph attribute was converted to numeric.");
  ------------------
  |  |  797|    137|    do { \
  |  |  798|    137|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|    137|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 137]
  |  |  ------------------
  ------------------
 1097|    137|            } else {
 1098|      0|                IGRAPH_WARNING("A non-numeric, non-string, non-boolean graph attribute ignored.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1099|      0|            }
 1100|    780|        }
 1101|    800|        IGRAPH_FREE(newname);
  ------------------
  |  |   36|    800|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1102|    800|        IGRAPH_FINALLY_CLEAN(1);
 1103|    800|    }
 1104|       |
 1105|       |    /* Macros used to work with the bit fiels in 'warning_shown',
 1106|       |     * and avoid showing warnings more than once for each attribute. */
 1107|  3.33k|#define GETBIT(k, i) ((k) & (1 << i))
 1108|  3.33k|#define SETBIT(k, i) ((k) |= (1 << i))
 1109|  3.33k|#define WARN_ONCE(attrno, bit, warn) \
 1110|  3.33k|    do { \
 1111|  3.33k|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
 1112|  3.33k|        if (! GETBIT(*p, bit)) { \
 1113|  3.33k|            warn; \
 1114|  3.33k|            SETBIT(*p, bit); \
 1115|  3.33k|        } \
 1116|  3.33k|    } while (0)
 1117|       |
 1118|       |
 1119|       |    /* Now come the vertices */
 1120|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&warning_shown, vattr_no);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1121|  38.0k|    for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (1121:17): [True: 34.7k, False: 3.33k]
  ------------------
 1122|  34.7k|        igraph_int_t j;
 1123|  34.7k|        CHECK(fprintf(outstream, "  node\n  [\n"));
  ------------------
  |  |  845|  34.7k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 34.7k]
  |  |  |  Branch (845:116): [Folded, False: 34.7k]
  |  |  ------------------
  ------------------
 1124|       |        /* id */
 1125|  34.7k|        CHECK(fprintf(outstream, "    id %" IGRAPH_PRId "\n", myid ? (igraph_int_t)VECTOR(*myid)[i] : i));
  ------------------
  |  |  845|  69.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 11, False: 34.6k]
  |  |  |  Branch (845:42): [True: 0, False: 34.7k]
  |  |  |  Branch (845:116): [Folded, False: 34.7k]
  |  |  ------------------
  ------------------
 1126|       |        /* other attributes */
 1127|  94.2k|        for (j = 0; j < vattr_no; j++) {
  ------------------
  |  Branch (1127:21): [True: 59.5k, False: 34.7k]
  ------------------
 1128|  59.5k|            igraph_attribute_type_t type = (igraph_attribute_type_t) VECTOR(vtypes)[j];
  ------------------
  |  |   60|  59.5k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1129|  59.5k|            const char *name;
 1130|  59.5k|            char *newname;
 1131|  59.5k|            name = igraph_strvector_get(&vnames, j);
 1132|  59.5k|            if (!strcmp(name, "id")) {
  ------------------
  |  Branch (1132:17): [True: 34.4k, False: 25.1k]
  ------------------
 1133|       |                /* No warning, the presence of this attribute is expected, and is handled specially. */
 1134|  34.4k|                continue;
 1135|  34.4k|            }
 1136|  25.1k|            IGRAPH_CHECK(igraph_i_gml_convert_to_key(name, &newname));
  ------------------
  |  |  656|  25.1k|    do { \
  |  |  657|  25.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  25.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  25.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 25.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  25.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 25.1k]
  |  |  ------------------
  ------------------
 1137|  25.1k|            IGRAPH_FINALLY(igraph_free, newname);
  ------------------
  |  |  603|  25.1k|    do { \
  |  |  604|  25.1k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  25.1k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  25.1k|         * incorrect destructor function with the pointer */ \
  |  |  607|  25.1k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 25.1k]
  |  |  ------------------
  |  |  608|  25.1k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  25.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 25.1k]
  |  |  ------------------
  ------------------
 1138|  25.1k|            if (!strcmp(newname, "id")) {
  ------------------
  |  Branch (1138:17): [True: 337, False: 24.7k]
  ------------------
 1139|       |                /* In case an attribute name would conflict with 'id' only after encoding. */
 1140|    337|                WARN_ONCE(j, 0,
  ------------------
  |  | 1110|    337|    do { \
  |  | 1111|    337|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|    337|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|    337|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|    337|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 12, False: 325]
  |  |  ------------------
  |  | 1113|     24|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 12]
  |  |  ------------------
  |  | 1114|     12|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|     12|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|     12|        } \
  |  | 1116|    337|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 337]
  |  |  ------------------
  ------------------
 1141|    337|                          IGRAPH_WARNINGF("The vertex attribute '%s' was ignored while writing GML format.", name));
 1142|  24.7k|            } else {
 1143|  24.7k|                if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (1143:21): [True: 3.68k, False: 21.1k]
  ------------------
 1144|  3.68k|                    IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(graph, name,
  ------------------
  |  |  656|  3.68k|    do { \
  |  |  657|  3.68k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.68k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.68k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.68k]
  |  |  ------------------
  ------------------
 1145|  3.68k|                                 igraph_vss_1(i), &numv));
 1146|       |                    /* Treat NaN as missing, skip writing it. GML does not officially support NaN. */
 1147|  3.68k|                    if (! isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1147:25): [True: 2.55k, False: 1.13k]
  ------------------
 1148|  2.55k|                        if (! isfinite(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1148:29): [True: 0, False: 2.55k]
  ------------------
 1149|      0|                            WARN_ONCE(j, 3,
  ------------------
  |  | 1110|      0|    do { \
  |  | 1111|      0|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|      0|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|      0|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 1113|      0|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 0]
  |  |  ------------------
  |  | 1114|      0|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|      0|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|      0|        } \
  |  | 1116|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1150|      0|                                      IGRAPH_WARNINGF("Infinite value in numeric vertex attribute '%s'. "
 1151|      0|                                                      "Produced GML file will not be conformant.", name));
 1152|      0|                        }
 1153|  2.55k|                        CHECK(fprintf(outstream, "    %s ", newname));
  ------------------
  |  |  845|  2.55k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 2.55k]
  |  |  |  Branch (845:116): [Folded, False: 2.55k]
  |  |  ------------------
  ------------------
 1154|  2.55k|                        CHECK(igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]));
  ------------------
  |  |  845|  2.55k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 2.55k]
  |  |  |  Branch (845:116): [Folded, False: 2.55k]
  |  |  ------------------
  ------------------
 1155|  2.55k|                        CHECK(fputc('\n', outstream));
  ------------------
  |  |  845|  2.55k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 2.55k]
  |  |  |  Branch (845:116): [Folded, False: 2.55k]
  |  |  ------------------
  ------------------
 1156|  2.55k|                    }
 1157|  21.1k|                } else if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (1157:28): [True: 13.6k, False: 7.42k]
  ------------------
 1158|  13.6k|                    const char *s;
 1159|  13.6k|                    IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, name,
  ------------------
  |  |  656|  13.6k|    do { \
  |  |  657|  13.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  13.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  13.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 13.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|  13.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 13.6k]
  |  |  ------------------
  ------------------
 1160|  13.6k|                                 igraph_vss_1(i), &strv));
 1161|  13.6k|                    s = igraph_strvector_get(&strv, 0);
 1162|  13.6k|                    if (needs_coding(s)) {
  ------------------
  |  Branch (1162:25): [True: 7.69k, False: 5.98k]
  ------------------
 1163|  7.69k|                        char *d;
 1164|  7.69k|                        IGRAPH_CHECK(entity_encode(s, &d, IGRAPH_WRITE_GML_ENCODE_ONLY_QUOT_SW & options));
  ------------------
  |  |  656|  7.69k|    do { \
  |  |  657|  7.69k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.69k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.69k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.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|  7.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
 1165|  7.69k|                        IGRAPH_FINALLY(igraph_free, d);
  ------------------
  |  |  603|  7.69k|    do { \
  |  |  604|  7.69k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  7.69k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  7.69k|         * incorrect destructor function with the pointer */ \
  |  |  607|  7.69k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 7.69k]
  |  |  ------------------
  |  |  608|  7.69k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  7.69k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
 1166|  7.69k|                        CHECK(fprintf(outstream, "    %s \"%s\"\n", newname, d));
  ------------------
  |  |  845|  7.69k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 7.69k]
  |  |  |  Branch (845:116): [Folded, False: 7.69k]
  |  |  ------------------
  ------------------
 1167|  7.69k|                        IGRAPH_FREE(d);
  ------------------
  |  |   36|  7.69k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1168|  7.69k|                        IGRAPH_FINALLY_CLEAN(1);
 1169|  7.69k|                    } else {
 1170|  5.98k|                        CHECK(fprintf(outstream, "    %s \"%s\"\n", newname, s));
  ------------------
  |  |  845|  5.98k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 5.98k]
  |  |  |  Branch (845:116): [Folded, False: 5.98k]
  |  |  ------------------
  ------------------
 1171|  5.98k|                    }
 1172|  13.6k|                } else if (type == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (1172:28): [True: 7.42k, False: 0]
  ------------------
 1173|  7.42k|                    IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(graph, name,
  ------------------
  |  |  656|  7.42k|    do { \
  |  |  657|  7.42k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.42k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.42k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
 1174|  7.42k|                                 igraph_vss_1(i), &boolv));
 1175|  7.42k|                    CHECK(fprintf(outstream, "    %s %d\n", newname, VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |  845|  14.8k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 16, False: 7.40k]
  |  |  |  Branch (845:42): [True: 0, False: 7.42k]
  |  |  |  Branch (845:116): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
 1176|  7.42k|                    WARN_ONCE(j, 1,
  ------------------
  |  | 1110|  7.42k|    do { \
  |  | 1111|  7.42k|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|  7.42k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|  7.42k|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|  7.42k|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 550, False: 6.87k]
  |  |  ------------------
  |  | 1113|  1.10k|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 550]
  |  |  ------------------
  |  | 1114|    550|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|    550|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|    550|        } \
  |  | 1116|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
 1177|  7.42k|                              IGRAPH_WARNINGF("The boolean vertex attribute '%s' was converted to numeric.", name));
 1178|  7.42k|                } else {
 1179|      0|                    WARN_ONCE(j, 2,
  ------------------
  |  | 1110|      0|    do { \
  |  | 1111|      0|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|      0|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|      0|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 1113|      0|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 0]
  |  |  ------------------
  |  | 1114|      0|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|      0|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|      0|        } \
  |  | 1116|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1180|      0|                              IGRAPH_WARNINGF("The non-numeric, non-string, non-boolean vertex attribute '%s' was ignored.", name));
 1181|      0|                }
 1182|  24.7k|            }
 1183|  25.1k|            IGRAPH_FREE(newname);
  ------------------
  |  |   36|  25.1k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1184|  25.1k|            IGRAPH_FINALLY_CLEAN(1);
 1185|  25.1k|        }
 1186|  34.7k|        CHECK(fprintf(outstream, "  ]\n"));
  ------------------
  |  |  845|  34.7k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 34.7k]
  |  |  |  Branch (845:116): [Folded, False: 34.7k]
  |  |  ------------------
  ------------------
 1187|  34.7k|    }
 1188|       |
 1189|       |    /* The edges too */
 1190|  3.33k|    IGRAPH_CHECK(igraph_vector_int_resize(&warning_shown, eattr_no));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1191|  3.33k|    igraph_vector_int_null(&warning_shown);
 1192|   351k|    for (i = 0; i < no_of_edges; i++) {
  ------------------
  |  Branch (1192:17): [True: 348k, False: 3.33k]
  ------------------
 1193|   348k|        igraph_int_t from = IGRAPH_FROM(graph, i);
  ------------------
  |  |  115|   348k|#define IGRAPH_FROM(graph,eid) ((igraph_int_t)(VECTOR((graph)->from)[(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   348k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1194|   348k|        igraph_int_t to = IGRAPH_TO(graph, i);
  ------------------
  |  |  128|   348k|#define IGRAPH_TO(graph,eid)   ((igraph_int_t)(VECTOR((graph)->to)  [(igraph_int_t)(eid)]))
  |  |  ------------------
  |  |  |  |   60|   348k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1195|   348k|        igraph_int_t j;
 1196|   348k|        CHECK(fprintf(outstream, "  edge\n  [\n"));
  ------------------
  |  |  845|   348k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 348k]
  |  |  |  Branch (845:116): [Folded, False: 348k]
  |  |  ------------------
  ------------------
 1197|       |        /* source and target */
 1198|   348k|        CHECK(fprintf(outstream, "    source %" IGRAPH_PRId "\n",
  ------------------
  |  |  845|   696k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 70, False: 348k]
  |  |  |  Branch (845:42): [True: 0, False: 348k]
  |  |  |  Branch (845:116): [Folded, False: 348k]
  |  |  ------------------
  ------------------
 1199|   348k|                      myid ? (igraph_int_t)VECTOR(*myid)[from] : from));
 1200|   348k|        CHECK(fprintf(outstream, "    target %" IGRAPH_PRId "\n",
  ------------------
  |  |  845|   696k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 70, False: 348k]
  |  |  |  Branch (845:42): [True: 0, False: 348k]
  |  |  |  Branch (845:116): [Folded, False: 348k]
  |  |  ------------------
  ------------------
 1201|   348k|                      myid ? (igraph_int_t)VECTOR(*myid)[to] : to));
 1202|       |
 1203|       |        /* other attributes */
 1204|   673k|        for (j = 0; j < eattr_no; j++) {
  ------------------
  |  Branch (1204:21): [True: 324k, False: 348k]
  ------------------
 1205|   324k|            igraph_attribute_type_t type = (igraph_attribute_type_t) VECTOR(etypes)[j];
  ------------------
  |  |   60|   324k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1206|   324k|            const char *name;
 1207|   324k|            char *newname;
 1208|   324k|            name = igraph_strvector_get(&enames, j);
 1209|   324k|            IGRAPH_CHECK(igraph_i_gml_convert_to_key(name, &newname));
  ------------------
  |  |  656|   324k|    do { \
  |  |  657|   324k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   324k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   324k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 324k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   324k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 324k]
  |  |  ------------------
  ------------------
 1210|   324k|            IGRAPH_FINALLY(igraph_free, newname);
  ------------------
  |  |  603|   324k|    do { \
  |  |  604|   324k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   324k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   324k|         * incorrect destructor function with the pointer */ \
  |  |  607|   324k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 324k]
  |  |  ------------------
  |  |  608|   324k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   324k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 324k]
  |  |  ------------------
  ------------------
 1211|   324k|            if (!strcmp(newname, "source") || !strcmp(newname, "target")) {
  ------------------
  |  Branch (1211:17): [True: 494, False: 324k]
  |  Branch (1211:47): [True: 257, False: 324k]
  ------------------
 1212|    751|                WARN_ONCE(j, 0,
  ------------------
  |  | 1110|    751|    do { \
  |  | 1111|    751|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|    751|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|    751|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|    751|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 24, False: 727]
  |  |  ------------------
  |  | 1113|     48|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 24]
  |  |  ------------------
  |  | 1114|     24|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|     24|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|     24|        } \
  |  | 1116|    751|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 751]
  |  |  ------------------
  ------------------
 1213|    751|                          IGRAPH_WARNINGF("The edge attribute '%s' was ignored while writing GML format.", name));
 1214|   324k|            } else {
 1215|   324k|                if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (1215:21): [True: 44.0k, False: 280k]
  ------------------
 1216|  44.0k|                    IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, name,
  ------------------
  |  |  656|  44.0k|    do { \
  |  |  657|  44.0k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  44.0k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  44.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.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|  44.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44.0k]
  |  |  ------------------
  ------------------
 1217|  44.0k|                                 igraph_ess_1(i), &numv));
 1218|       |                    /* Treat NaN as missing, skip writing it. GML does not officially support NaN. */
 1219|  44.0k|                    if (! isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1219:25): [True: 1.83k, False: 42.1k]
  ------------------
 1220|  1.83k|                        if (! isfinite(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1220:29): [True: 0, False: 1.83k]
  ------------------
 1221|      0|                            WARN_ONCE(j, 3,
  ------------------
  |  | 1110|      0|    do { \
  |  | 1111|      0|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|      0|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|      0|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 1113|      0|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 0]
  |  |  ------------------
  |  | 1114|      0|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|      0|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|      0|        } \
  |  | 1116|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1222|      0|                                      IGRAPH_WARNINGF("Infinite value in numeric edge attribute '%s'. "
 1223|      0|                                                      "Produced GML file will not be conformant.", name));
 1224|      0|                        }
 1225|  1.83k|                        CHECK(fprintf(outstream, "    %s ", newname));
  ------------------
  |  |  845|  1.83k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 1.83k]
  |  |  |  Branch (845:116): [Folded, False: 1.83k]
  |  |  ------------------
  ------------------
 1226|  1.83k|                        CHECK(igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]));
  ------------------
  |  |  845|  1.83k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 1.83k]
  |  |  |  Branch (845:116): [Folded, False: 1.83k]
  |  |  ------------------
  ------------------
 1227|  1.83k|                        CHECK(fputc('\n', outstream));
  ------------------
  |  |  845|  1.83k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 1.83k]
  |  |  |  Branch (845:116): [Folded, False: 1.83k]
  |  |  ------------------
  ------------------
 1228|  1.83k|                    }
 1229|   280k|                } else if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (1229:28): [True: 238k, False: 42.2k]
  ------------------
 1230|   238k|                    const char *s;
 1231|   238k|                    IGRAPH_CHECK(igraph_i_attribute_get_string_edge_attr(graph, name,
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
 1232|   238k|                                 igraph_ess_1(i), &strv));
 1233|   238k|                    s = igraph_strvector_get(&strv, 0);
 1234|   238k|                    if (needs_coding(s)) {
  ------------------
  |  Branch (1234:25): [True: 1.92k, False: 236k]
  ------------------
 1235|  1.92k|                        char *d;
 1236|  1.92k|                        IGRAPH_CHECK(entity_encode(s, &d, IGRAPH_WRITE_GML_ENCODE_ONLY_QUOT_SW & options));
  ------------------
  |  |  656|  1.92k|    do { \
  |  |  657|  1.92k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.92k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.92k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.92k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.92k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
 1237|  1.92k|                        IGRAPH_FINALLY(igraph_free, d);
  ------------------
  |  |  603|  1.92k|    do { \
  |  |  604|  1.92k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  1.92k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  1.92k|         * incorrect destructor function with the pointer */ \
  |  |  607|  1.92k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 1.92k]
  |  |  ------------------
  |  |  608|  1.92k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  1.92k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
 1238|  1.92k|                        CHECK(fprintf(outstream, "    %s \"%s\"\n", newname, d));
  ------------------
  |  |  845|  1.92k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 1.92k]
  |  |  |  Branch (845:116): [Folded, False: 1.92k]
  |  |  ------------------
  ------------------
 1239|  1.92k|                        IGRAPH_FREE(d);
  ------------------
  |  |   36|  1.92k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1240|  1.92k|                        IGRAPH_FINALLY_CLEAN(1);
 1241|   236k|                    } else {
 1242|   236k|                        CHECK(fprintf(outstream, "    %s \"%s\"\n", newname, s));
  ------------------
  |  |  845|   236k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 236k]
  |  |  |  Branch (845:116): [Folded, False: 236k]
  |  |  ------------------
  ------------------
 1243|   236k|                    }
 1244|   238k|                } else if (type == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (1244:28): [True: 42.2k, False: 0]
  ------------------
 1245|  42.2k|                    IGRAPH_CHECK(igraph_i_attribute_get_bool_edge_attr(graph, name,
  ------------------
  |  |  656|  42.2k|    do { \
  |  |  657|  42.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  42.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  42.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 42.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|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
 1246|  42.2k|                                 igraph_ess_1(i), &boolv));
 1247|  42.2k|                    CHECK(fprintf(outstream, "    %s %d\n", newname, VECTOR(boolv)[0] ? 1 : 0));
  ------------------
  |  |  845|  84.4k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:33): [True: 0, False: 42.2k]
  |  |  |  Branch (845:42): [True: 0, False: 42.2k]
  |  |  |  Branch (845:116): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
 1248|  42.2k|                    WARN_ONCE(j, 1,
  ------------------
  |  | 1110|  42.2k|    do { \
  |  | 1111|  42.2k|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|  42.2k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|  42.2k|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|  42.2k|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 431, False: 41.7k]
  |  |  ------------------
  |  | 1113|    862|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 431]
  |  |  ------------------
  |  | 1114|    431|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|    431|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|    431|        } \
  |  | 1116|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
 1249|  42.2k|                              IGRAPH_WARNINGF("The boolean edge attribute '%s' was converted to numeric.", name));
 1250|  42.2k|                } else {
 1251|      0|                    WARN_ONCE(j, 2,
  ------------------
  |  | 1110|      0|    do { \
  |  | 1111|      0|        igraph_int_t *p = &VECTOR(warning_shown)[attrno]; \
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  |  | 1112|      0|        if (! GETBIT(*p, bit)) { \
  |  |  ------------------
  |  |  |  | 1107|      0|#define GETBIT(k, i) ((k) & (1 << i))
  |  |  ------------------
  |  |  |  Branch (1112:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 1113|      0|            warn; \
  |  |  ------------------
  |  |  |  Branch (1113:13): [Folded, False: 0]
  |  |  ------------------
  |  | 1114|      0|            SETBIT(*p, bit); \
  |  |  ------------------
  |  |  |  | 1108|      0|#define SETBIT(k, i) ((k) |= (1 << i))
  |  |  ------------------
  |  | 1115|      0|        } \
  |  | 1116|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (1116:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1252|      0|                              IGRAPH_WARNINGF("The non-numeric, non-string, non-boolean edge attribute '%s' was ignored.", name));
 1253|      0|                }
 1254|   324k|            }
 1255|   324k|            IGRAPH_FREE(newname);
  ------------------
  |  |   36|   324k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1256|   324k|            IGRAPH_FINALLY_CLEAN(1);
 1257|   324k|        }
 1258|   348k|        CHECK(fprintf(outstream, "  ]\n"));
  ------------------
  |  |  845|   348k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 348k]
  |  |  |  Branch (845:116): [Folded, False: 348k]
  |  |  ------------------
  ------------------
 1259|   348k|    }
 1260|       |
 1261|  3.33k|    CHECK(fprintf(outstream, "]\n"));
  ------------------
  |  |  845|  3.33k|#define CHECK(cmd) do { int ret=cmd; if (ret<0) IGRAPH_ERROR("Writing GML format failed.", IGRAPH_EFILE); } while (0)
  |  |  ------------------
  |  |  |  |  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 (845:42): [True: 0, False: 3.33k]
  |  |  |  Branch (845:116): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1262|       |
 1263|  3.33k|#undef GETBIT
 1264|  3.33k|#undef SETBIT
 1265|  3.33k|#undef WARN_ONCE
 1266|       |
 1267|  3.33k|    if (&v_myid == myid) {
  ------------------
  |  Branch (1267:9): [True: 14, False: 3.32k]
  ------------------
 1268|     14|        igraph_vector_destroy(&v_myid);
 1269|     14|        IGRAPH_FINALLY_CLEAN(1);
 1270|     14|    }
 1271|       |
 1272|  3.33k|    igraph_vector_int_destroy(&warning_shown);
 1273|  3.33k|    igraph_vector_bool_destroy(&boolv);
 1274|  3.33k|    igraph_strvector_destroy(&strv);
 1275|  3.33k|    igraph_vector_destroy(&numv);
 1276|  3.33k|    igraph_vector_int_destroy(&etypes);
 1277|  3.33k|    igraph_vector_int_destroy(&vtypes);
 1278|  3.33k|    igraph_vector_int_destroy(&gtypes);
 1279|  3.33k|    igraph_strvector_destroy(&enames);
 1280|  3.33k|    igraph_strvector_destroy(&vnames);
 1281|  3.33k|    igraph_strvector_destroy(&gnames);
 1282|  3.33k|    IGRAPH_FINALLY_CLEAN(10);
 1283|       |
 1284|  3.33k|    return IGRAPH_SUCCESS;
 1285|  3.33k|}
gml.c:create_or_update_attribute:
  274|   341k|                                                 igraph_attribute_record_list_t *attrs) {
  275|       |
  276|   341k|    igraph_int_t trieid, triesize = igraph_trie_size(attrnames);
  277|   341k|    igraph_attribute_type_t desired_type;
  278|       |
  279|   341k|    IGRAPH_CHECK(igraph_trie_get(attrnames, name, &trieid));
  ------------------
  |  |  656|   341k|    do { \
  |  |  657|   341k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   341k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   341k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 341k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   341k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 341k]
  |  |  ------------------
  ------------------
  280|   341k|    if (trieid == triesize) {
  ------------------
  |  Branch (280:9): [True: 6.66k, False: 334k]
  ------------------
  281|       |        /* new attribute */
  282|  6.66k|        igraph_attribute_record_t atrec;
  283|       |
  284|  6.66k|        if (type == IGRAPH_I_GML_TREE_INTEGER || type == IGRAPH_I_GML_TREE_REAL) {
  ------------------
  |  Branch (284:13): [True: 3.83k, False: 2.83k]
  |  Branch (284:50): [True: 49, False: 2.78k]
  ------------------
  285|  3.88k|            desired_type = IGRAPH_ATTRIBUTE_NUMERIC;
  286|  3.88k|        } else if (type == IGRAPH_I_GML_TREE_STRING) {
  ------------------
  |  Branch (286:20): [True: 2.78k, False: 0]
  ------------------
  287|  2.78k|            desired_type = IGRAPH_ATTRIBUTE_STRING;
  288|  2.78k|        } else {
  289|      0|            desired_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  290|      0|        }
  291|       |
  292|  6.66k|        IGRAPH_CHECK(igraph_attribute_record_init(&atrec, name, desired_type));
  ------------------
  |  |  656|  6.66k|    do { \
  |  |  657|  6.66k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.66k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.66k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.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|  6.66k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.66k]
  |  |  ------------------
  ------------------
  293|  6.66k|        IGRAPH_FINALLY(igraph_attribute_record_destroy, &atrec);
  ------------------
  |  |  603|  6.66k|    do { \
  |  |  604|  6.66k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.66k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.66k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.66k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.66k]
  |  |  ------------------
  |  |  608|  6.66k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.66k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.66k]
  |  |  ------------------
  ------------------
  294|  6.66k|        IGRAPH_CHECK(igraph_attribute_record_list_push_back(attrs, &atrec));
  ------------------
  |  |  656|  6.66k|    do { \
  |  |  657|  6.66k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.66k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.66k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.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|  6.66k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.66k]
  |  |  ------------------
  ------------------
  295|  6.66k|        IGRAPH_FINALLY_CLEAN(1);  /* ownership of 'atrec' taken by 'attrs' */
  296|   334k|    } else {
  297|       |        /* already seen, should we update type? */
  298|   334k|        igraph_attribute_record_t *atrec = igraph_attribute_record_list_get_ptr(attrs, trieid);
  299|   334k|        igraph_attribute_type_t existing_type = atrec->type;
  300|   334k|        if (type == IGRAPH_I_GML_TREE_STRING) {
  ------------------
  |  Branch (300:13): [True: 249k, False: 84.9k]
  ------------------
  301|   249k|            if (existing_type != IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (301:17): [True: 21, False: 249k]
  ------------------
  302|     21|                IGRAPH_CHECK(igraph_attribute_record_set_type(atrec, IGRAPH_ATTRIBUTE_STRING));
  ------------------
  |  |  656|     21|    do { \
  |  |  657|     21|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     21|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     21|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 21]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     21|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 21]
  |  |  ------------------
  ------------------
  303|     21|            }
  304|   249k|        } else if (existing_type == IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (304:20): [True: 0, False: 84.9k]
  ------------------
  305|      0|            if (type == IGRAPH_I_GML_TREE_INTEGER || type == IGRAPH_I_GML_TREE_REAL) {
  ------------------
  |  Branch (305:17): [True: 0, False: 0]
  |  Branch (305:54): [True: 0, False: 0]
  ------------------
  306|      0|                IGRAPH_CHECK(igraph_attribute_record_set_type(atrec, IGRAPH_ATTRIBUTE_NUMERIC));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  307|      0|            }
  308|      0|        }
  309|   334k|    }
  310|       |
  311|   341k|    return IGRAPH_SUCCESS;
  312|   341k|}
gml.c:strid:
  262|   765k|static const char *strid(igraph_int_t id, const char *prefix) {
  263|   765k|    static char name[100];
  264|       |    snprintf(name, sizeof(name) / sizeof(char) - 1, "%s%" IGRAPH_PRId, prefix, id);
  ------------------
  |  |   65|   765k|#  define IGRAPH_PRId PRId64
  ------------------
  265|   765k|    return name;
  266|   765k|}
gml.c:allocate_attributes:
  322|  10.0k|) {
  323|  10.0k|    igraph_int_t i, n = igraph_attribute_record_list_size(attrs);
  324|  16.6k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (324:17): [True: 6.66k, False: 10.0k]
  ------------------
  325|  6.66k|        igraph_attribute_record_t *atrec = igraph_attribute_record_list_get_ptr(attrs, i);
  326|       |
  327|       |        /* We have unspecified attribute types in the attribute record list at
  328|       |         * this point because we need to keep the same order in the attribute
  329|       |         * record list as it was in the trie that we use to look up an
  330|       |         * attribute record by name. However, we cannot resize unknown attributes
  331|       |         * so we need to take care of this */
  332|  6.66k|        if (atrec->type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (332:13): [True: 6.66k, False: 0]
  ------------------
  333|  6.66k|            IGRAPH_CHECK(igraph_attribute_record_resize(atrec, no_of_items));
  ------------------
  |  |  656|  6.66k|    do { \
  |  |  657|  6.66k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.66k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.66k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.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|  6.66k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.66k]
  |  |  ------------------
  ------------------
  334|  6.66k|        } else {
  335|      0|            IGRAPH_WARNINGF("Composite %s attribute '%s' ignored in GML file.", kind, atrec->name);
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  336|      0|        }
  337|  6.66k|    }
  338|  10.0k|    return IGRAPH_SUCCESS;
  339|  10.0k|}
gml.c:igraph_i_gml_toreal:
  164|  88.0k|static igraph_real_t igraph_i_gml_toreal(igraph_gml_tree_t *node, igraph_int_t pos) {
  165|  88.0k|    igraph_i_gml_tree_type_t type = igraph_gml_tree_type(node, pos);
  166|       |
  167|  88.0k|    switch (type) {
  168|  87.1k|    case IGRAPH_I_GML_TREE_INTEGER:
  ------------------
  |  Branch (168:5): [True: 87.1k, False: 908]
  ------------------
  169|  87.1k|        return igraph_gml_tree_get_integer(node, pos);
  170|    908|    case IGRAPH_I_GML_TREE_REAL:
  ------------------
  |  Branch (170:5): [True: 908, False: 87.1k]
  ------------------
  171|    908|        return igraph_gml_tree_get_real(node, pos);
  172|      0|    case IGRAPH_I_GML_TREE_TREE:
  ------------------
  |  Branch (172:5): [True: 0, False: 88.0k]
  ------------------
  173|      0|        return IGRAPH_NAN; /* default value of NaN when composite is ignored */
  ------------------
  |  |  140|      0|#define IGRAPH_NAN ((double)NAN)
  ------------------
  174|      0|    default:
  ------------------
  |  Branch (174:5): [True: 0, False: 88.0k]
  ------------------
  175|       |        /* Must never reach here, regardless of the contents of the GML file. */
  176|      0|        IGRAPH_FATALF("Unexpected node type in GML tree, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  177|  88.0k|                      igraph_gml_tree_line(node, pos)); /* LCOV_EXCL_LINE */
  178|  88.0k|    }
  179|  88.0k|}
gml.c:igraph_i_gml_tostring:
  181|   253k|static const char *igraph_i_gml_tostring(igraph_gml_tree_t *node, igraph_int_t pos) {
  182|   253k|    igraph_i_gml_tree_type_t type = igraph_gml_tree_type(node, pos);
  183|   253k|    static char tmp[100];
  184|   253k|    const char *p = tmp;
  185|   253k|    igraph_int_t i;
  186|   253k|    igraph_real_t d;
  187|       |
  188|   253k|    switch (type) {
  189|    455|    case IGRAPH_I_GML_TREE_INTEGER:
  ------------------
  |  Branch (189:5): [True: 455, False: 252k]
  ------------------
  190|    455|        i = igraph_gml_tree_get_integer(node, pos);
  191|    455|        snprintf(tmp, sizeof(tmp) / sizeof(char), "%" IGRAPH_PRId, i);
  ------------------
  |  |   65|    455|#  define IGRAPH_PRId PRId64
  ------------------
  192|    455|        break;
  193|    384|    case IGRAPH_I_GML_TREE_REAL:
  ------------------
  |  Branch (193:5): [True: 384, False: 252k]
  ------------------
  194|    384|        d = igraph_gml_tree_get_real(node, pos);
  195|    384|        igraph_real_snprintf_precise(tmp, sizeof(tmp) / sizeof(char), d);
  196|    384|        break;
  197|   252k|    case IGRAPH_I_GML_TREE_STRING:
  ------------------
  |  Branch (197:5): [True: 252k, False: 839]
  ------------------
  198|   252k|        p = igraph_gml_tree_get_string(node, pos);
  199|   252k|        break;
  200|      0|    case IGRAPH_I_GML_TREE_TREE:
  ------------------
  |  Branch (200:5): [True: 0, False: 253k]
  ------------------
  201|      0|        tmp[0] = '\0'; /* default value of "" when composite is ignored */
  202|      0|        break;
  203|      0|    default:
  ------------------
  |  Branch (203:5): [True: 0, False: 253k]
  ------------------
  204|       |        /* Must never reach here, regardless of the contents of the GML file. */
  205|      0|        IGRAPH_FATALF("Unexpected node type in GML tree, line %" IGRAPH_PRId ".",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  206|   253k|                      igraph_gml_tree_line(node, pos)); /* LCOV_EXCL_LINE */
  207|   253k|    }
  208|       |
  209|   253k|    return p;
  210|   253k|}
gml.c:needs_coding:
   54|   508k|static igraph_bool_t needs_coding(const char *str) {
   55|  32.9M|    while (*str) {
  ------------------
  |  Branch (55:12): [True: 32.4M, False: 489k]
  ------------------
   56|  32.4M|        if (*str == '&' || *str == '"') {
  ------------------
  |  Branch (56:13): [True: 10.3k, False: 32.4M]
  |  Branch (56:28): [True: 9.02k, False: 32.3M]
  ------------------
   57|  19.3k|            return true;
   58|  19.3k|        }
   59|  32.3M|        str++;
   60|  32.3M|    }
   61|   489k|    return false;
   62|   508k|}
gml.c:entity_decode:
  110|  9.67k|static igraph_error_t entity_decode(const char *src, char **dest, igraph_bool_t *warned) {
  111|  9.67k|    const char *entity_names[] = {
  112|  9.67k|        "&quot;", "&amp;", "&apos;", "&lt;", "&gt;"
  113|  9.67k|    };
  114|       |
  115|  9.67k|    const char entity_values[] = {
  116|  9.67k|        '"', '&', '\'', '<', '>'
  117|  9.67k|    };
  118|       |
  119|  9.67k|    const int entity_count = sizeof entity_values / sizeof entity_values[0];
  120|       |
  121|  9.67k|    const char *s;
  122|  9.67k|    char *d;
  123|  9.67k|    size_t len = strlen(src);
  124|  9.67k|    *dest = IGRAPH_CALLOC(len+1, char); /* at most as much storage needed as for 'src' */
  ------------------
  |  |   33|  9.67k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  19.3k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 9.67k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 9.67k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 9.67k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|  9.67k|    IGRAPH_CHECK_OOM(*dest, "Not enough memory to decode string during GML import.");
  ------------------
  |  |  709|  9.67k|    do { \
  |  |  710|  9.67k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  9.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  9.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 9.67k]
  |  |  ------------------
  ------------------
  126|       |
  127|  81.2M|    for (s = src, d = *dest; *s != '\0';) {
  ------------------
  |  Branch (127:30): [True: 81.2M, False: 9.67k]
  ------------------
  128|  81.2M|        if (*s == '&') {
  ------------------
  |  Branch (128:13): [True: 16.0M, False: 65.2M]
  ------------------
  129|  16.0M|            int i;
  130|  16.0M|            for (i=0; i < entity_count; i++) {
  ------------------
  |  Branch (130:23): [True: 16.0M, False: 0]
  ------------------
  131|  16.0M|                size_t entity_len = strlen(entity_names[i]);
  132|  16.0M|                if (!strncasecmp(s, entity_names[i], entity_len)) {
  ------------------
  |  Branch (132:21): [True: 16.0M, False: 1.28k]
  ------------------
  133|  16.0M|                    *d++ = entity_values[i];
  134|  16.0M|                    s += entity_len;
  135|  16.0M|                    break;
  136|  16.0M|                }
  137|  16.0M|            }
  138|       |            /* None of the known entities match, report warning and pass through unchanged. */
  139|  16.0M|            if (i == entity_count) {
  ------------------
  |  Branch (139:17): [True: 0, False: 16.0M]
  ------------------
  140|      0|                if (! *warned) {
  ------------------
  |  Branch (140:21): [True: 0, False: 0]
  ------------------
  141|      0|                    const int max_entity_name_length = 34;
  142|      0|                    int j = 0;
  143|      0|                    while (s[j] != '\0' && s[j] != ';' && j < max_entity_name_length) {
  ------------------
  |  Branch (143:28): [True: 0, False: 0]
  |  Branch (143:44): [True: 0, False: 0]
  |  Branch (143:59): [True: 0, False: 0]
  ------------------
  144|      0|                        j++;
  145|      0|                    }
  146|      0|                    if (s[j] == '\0' || j == max_entity_name_length) {
  ------------------
  |  Branch (146:25): [True: 0, False: 0]
  |  Branch (146:41): [True: 0, False: 0]
  ------------------
  147|      0|                        IGRAPH_WARNING("Unterminated entity or stray & character found, will be returned verbatim.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  148|      0|                    } else {
  149|      0|                        IGRAPH_WARNINGF("One or more unknown entities will be returned verbatim (%.*s).", j+1, s);
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  150|      0|                    }
  151|      0|                    *warned = true; /* warn only once */
  152|      0|                }
  153|      0|                *d++ = *s++;
  154|      0|            }
  155|  65.2M|        } else {
  156|  65.2M|            *d++ = *s++;
  157|  65.2M|        }
  158|  81.2M|    }
  159|  9.67k|    *d = '\0';
  160|       |
  161|  9.67k|    return IGRAPH_SUCCESS;
  162|  9.67k|}
gml.c:prune_unknown_attributes:
  236|  10.0k|static igraph_error_t prune_unknown_attributes(igraph_attribute_record_list_t *attrs) {
  237|  10.0k|    igraph_int_t i, n;
  238|  10.0k|    igraph_vector_int_t to_remove;
  239|       |
  240|  10.0k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&to_remove, 0);
  ------------------
  |  |  119|  10.0k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  10.0k|    do { \
  |  |  |  |  657|  10.0k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  10.0k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  10.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 10.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|  10.0k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  10.0k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  10.0k|    do { \
  |  |  |  |  604|  10.0k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  10.0k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  10.0k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  10.0k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  |  |  608|  10.0k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  10.0k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 10.0k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 10.0k]
  |  |  ------------------
  ------------------
  241|       |
  242|  10.0k|    n = igraph_attribute_record_list_size(attrs);
  243|  16.6k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (243:17): [True: 6.66k, False: 10.0k]
  ------------------
  244|  6.66k|        igraph_attribute_record_t *atrec = igraph_attribute_record_list_get_ptr(attrs, i);
  245|  6.66k|        if (atrec->type == IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (245:13): [True: 0, False: 6.66k]
  ------------------
  246|      0|            IGRAPH_CHECK(igraph_vector_int_push_back(&to_remove, i));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  247|      0|        }
  248|  6.66k|    }
  249|       |
  250|  10.0k|    n = igraph_vector_int_size(&to_remove);
  251|  10.0k|    for (i = n - 1; i >= 0; i--) {
  ------------------
  |  Branch (251:21): [True: 0, False: 10.0k]
  ------------------
  252|      0|        igraph_attribute_record_list_discard(attrs, VECTOR(to_remove)[i]);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  253|      0|    }
  254|       |
  255|  10.0k|    igraph_vector_int_destroy(&to_remove);
  256|  10.0k|    IGRAPH_FINALLY_CLEAN(1);
  257|       |
  258|  10.0k|    return IGRAPH_SUCCESS;
  259|  10.0k|}
gml.c:entity_encode:
   67|  9.67k|static igraph_error_t entity_encode(const char *src, char **dest, igraph_bool_t only_quot) {
   68|  9.67k|    igraph_int_t destlen = 0;
   69|  9.67k|    const char *s;
   70|  9.67k|    char *d;
   71|       |
   72|  81.2M|    for (s = src; *s != '\0'; s++, destlen++) {
  ------------------
  |  Branch (72:19): [True: 81.2M, False: 9.67k]
  ------------------
   73|  81.2M|        switch (*s) {
  ------------------
  |  Branch (73:17): [True: 16.0M, False: 65.2M]
  ------------------
   74|  1.28k|        case '&': /* &amp; */
  ------------------
  |  Branch (74:9): [True: 1.28k, False: 81.2M]
  ------------------
   75|  1.28k|            if (! only_quot) {
  ------------------
  |  Branch (75:17): [True: 1.28k, False: 0]
  ------------------
   76|  1.28k|                destlen += 4;
   77|  1.28k|            }
   78|  1.28k|            break;
   79|  16.0M|        case '"': /* &quot; */
  ------------------
  |  Branch (79:9): [True: 16.0M, False: 65.2M]
  ------------------
   80|  16.0M|            destlen += 5; break;
   81|  81.2M|        }
   82|  81.2M|    }
   83|  9.67k|    *dest = IGRAPH_CALLOC(destlen + 1, char);
  ------------------
  |  |   33|  9.67k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  19.3k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 9.67k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 9.67k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 9.67k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   84|  9.67k|    IGRAPH_CHECK_OOM(*dest, "Not enough memory to encode string for GML export.");
  ------------------
  |  |  709|  9.67k|    do { \
  |  |  710|  9.67k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  9.67k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  711|      0|            IGRAPH_ERROR(message, IGRAPH_ENOMEM); /* LCOV_EXCL_LINE */ \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  712|      0|        } \
  |  |  713|  9.67k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 9.67k]
  |  |  ------------------
  ------------------
   85|  81.2M|    for (s = src, d = *dest; *s != '\0'; s++, d++) {
  ------------------
  |  Branch (85:30): [True: 81.2M, False: 9.67k]
  ------------------
   86|  81.2M|        switch (*s) {
   87|  1.28k|        case '&':
  ------------------
  |  Branch (87:9): [True: 1.28k, False: 81.2M]
  ------------------
   88|  1.28k|            if (! only_quot) {
  ------------------
  |  Branch (88:17): [True: 1.28k, False: 0]
  ------------------
   89|  1.28k|                strcpy(d, "&amp;");
   90|  1.28k|                d += 4;
   91|  1.28k|            } else {
   92|      0|                *d = *s;
   93|      0|            }
   94|  1.28k|            break;
   95|  16.0M|        case '"':
  ------------------
  |  Branch (95:9): [True: 16.0M, False: 65.2M]
  ------------------
   96|  16.0M|            strcpy(d, "&quot;"); d += 5; break;
   97|  65.2M|        default:
  ------------------
  |  Branch (97:9): [True: 65.2M, False: 16.0M]
  ------------------
   98|  65.2M|            *d = *s;
   99|  81.2M|        }
  100|  81.2M|    }
  101|  9.67k|    *d = '\0';
  102|  9.67k|    return IGRAPH_SUCCESS;
  103|  9.67k|}
gml.c:igraph_i_vector_is_duplicate_free:
  818|     41|static igraph_error_t igraph_i_vector_is_duplicate_free(const igraph_vector_t *v, igraph_bool_t *res) {
  819|     41|    igraph_vector_t u;
  820|     41|    igraph_int_t n = igraph_vector_size(v);
  821|       |
  822|     41|    if (n < 2) {
  ------------------
  |  Branch (822:9): [True: 14, False: 27]
  ------------------
  823|     14|        *res = true;
  824|     14|        return IGRAPH_SUCCESS;
  825|     14|    }
  826|       |
  827|     27|    IGRAPH_CHECK(igraph_vector_init_copy(&u, v));
  ------------------
  |  |  656|     27|    do { \
  |  |  657|     27|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     27|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     27|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 27]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
  828|     27|    IGRAPH_FINALLY(igraph_vector_destroy, &u);
  ------------------
  |  |  603|     27|    do { \
  |  |  604|     27|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|     27|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|     27|         * incorrect destructor function with the pointer */ \
  |  |  607|     27|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 27]
  |  |  ------------------
  |  |  608|     27|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|     27|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 27]
  |  |  ------------------
  ------------------
  829|     27|    igraph_vector_sort(&u);
  830|       |
  831|     27|    *res = true;
  832|     27|    for (igraph_int_t i=1; i < n; i++) {
  ------------------
  |  Branch (832:28): [True: 27, False: 0]
  ------------------
  833|     27|        if (VECTOR(u)[i-1] == VECTOR(u)[i]) {
  ------------------
  |  |   60|     27|#define VECTOR(v) ((v).stor_begin)
  ------------------
                      if (VECTOR(u)[i-1] == VECTOR(u)[i]) {
  ------------------
  |  |   60|     27|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (833:13): [True: 27, False: 0]
  ------------------
  834|     27|            *res = false;
  835|     27|            break;
  836|     27|        }
  837|     27|    }
  838|       |
  839|     27|    igraph_vector_destroy(&u);
  840|     27|    IGRAPH_FINALLY_CLEAN(1);
  841|       |
  842|     27|    return IGRAPH_SUCCESS;
  843|     27|}
gml.c:igraph_i_gml_convert_to_key:
  789|   350k|static igraph_error_t igraph_i_gml_convert_to_key(const char *orig, char **key) {
  790|   350k|    char strno[50];
  791|   350k|    size_t i, len = strlen(orig), newlen = 0, plen = 0;
  792|       |
  793|       |    /* do we need a prefix? */
  794|   350k|    if (len == 0 || !isalpha((unsigned char) orig[0])) {
  ------------------
  |  Branch (794:9): [True: 239, False: 350k]
  |  Branch (794:21): [True: 10.6k, False: 340k]
  ------------------
  795|  10.9k|        snprintf(strno, sizeof(strno) - 1, "igraph");
  796|  10.9k|        plen = newlen = strlen(strno);
  797|  10.9k|    }
  798|   122M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (798:17): [True: 121M, False: 350k]
  ------------------
  799|   121M|        if (isalnum((unsigned char) orig[i])) {
  ------------------
  |  Branch (799:13): [True: 17.7M, False: 104M]
  ------------------
  800|  17.7M|            newlen++;
  801|  17.7M|        }
  802|   121M|    }
  803|   350k|    *key = IGRAPH_CALLOC(newlen + 1, char);
  ------------------
  |  |   33|   350k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|   701k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 350k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 350k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 350k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  804|   350k|    IGRAPH_CHECK_OOM(*key, "Writing GML format failed.");
  ------------------
  |  |  709|   350k|    do { \
  |  |  710|   350k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   350k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 350k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   350k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 350k]
  |  |  ------------------
  ------------------
  805|   350k|    memcpy(*key, strno, plen * sizeof(char));
  806|   122M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (806:17): [True: 121M, False: 350k]
  ------------------
  807|   121M|        if (isalnum((unsigned char) orig[i])) {
  ------------------
  |  Branch (807:13): [True: 17.7M, False: 104M]
  ------------------
  808|  17.7M|            (*key)[plen++] = orig[i];
  809|  17.7M|        }
  810|   121M|    }
  811|   350k|    (*key)[newlen] = '\0';
  812|       |
  813|   350k|    return IGRAPH_SUCCESS;
  814|   350k|}

igraph_read_graph_graphml:
 1528|  24.3k|igraph_error_t igraph_read_graph_graphml(igraph_t *graph, FILE *instream, igraph_int_t index) {
 1529|       |
 1530|  24.3k|#if HAVE_LIBXML == 1
 1531|  24.3k|    xmlParserCtxtPtr ctxt;
 1532|  24.3k|    xmlGenericErrorFunc libxml_old_generic_error_handler;
 1533|  24.3k|    void* libxml_old_generic_error_context;
 1534|  24.3k|    xmlStructuredErrorFunc libxml_old_structured_error_handler;
 1535|  24.3k|    void* libxml_old_structured_error_context;
 1536|  24.3k|    xmlDocPtr doc;
 1537|       |
 1538|  24.3k|    struct igraph_i_graphml_parser_state state;
 1539|  24.3k|    int res;
 1540|  24.3k|    char buffer[4096];
 1541|  24.3k|    igraph_bool_t parsing_successful;
 1542|  24.3k|    char* error_message;
 1543|       |
 1544|  24.3k|    if (index < 0) {
  ------------------
  |  Branch (1544:9): [True: 0, False: 24.3k]
  ------------------
 1545|      0|        IGRAPH_ERROR("Graph index must be non-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]
  |  |  ------------------
  ------------------
 1546|      0|    }
 1547|       |
 1548|  24.3k|    xmlInitParser();
 1549|       |
 1550|  24.3k|    IGRAPH_CHECK(igraph_i_graphml_parser_state_init(&state, graph, index));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
 1551|  24.3k|    IGRAPH_FINALLY(igraph_i_graphml_parser_state_destroy, &state);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
 1552|       |
 1553|       |    /* Create a progressive parser context and use the first 4K to detect the
 1554|       |     * encoding */
 1555|  24.3k|    res = (int) fread(buffer, 1, sizeof(buffer), instream);
 1556|  24.3k|    if (res < (int) sizeof buffer && !feof(instream)) {
  ------------------
  |  Branch (1556:9): [True: 21.1k, False: 3.27k]
  |  Branch (1556:38): [True: 0, False: 21.1k]
  ------------------
 1557|      0|        IGRAPH_ERROR("IO error while reading GraphML data.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1558|      0|    }
 1559|       |
 1560|       |    /* Retrieve the current libxml2 error handlers and temporarily replace them
 1561|       |     * with ones that do not print anything to stdout/stderr */
 1562|  24.3k|    libxml_old_generic_error_handler = xmlGenericError;
  ------------------
  |  |  976|  24.3k|  #define xmlGenericError (*__xmlGenericError())
  ------------------
 1563|  24.3k|    libxml_old_generic_error_context = xmlGenericErrorContext;
  ------------------
  |  |  983|  24.3k|  #define xmlGenericErrorContext (*__xmlGenericErrorContext())
  ------------------
 1564|  24.3k|    libxml_old_structured_error_handler = xmlStructuredError;
  ------------------
  |  |  990|  24.3k|  #define xmlStructuredError (*__xmlStructuredError())
  ------------------
 1565|  24.3k|    libxml_old_structured_error_context = xmlStructuredErrorContext;
  ------------------
  |  |  997|  24.3k|  #define xmlStructuredErrorContext (*__xmlStructuredErrorContext())
  ------------------
 1566|  24.3k|    xmlSetGenericErrorFunc(&state, &igraph_i_libxml_generic_error_handler);
 1567|  24.3k|    xmlSetStructuredErrorFunc(&state, &igraph_i_libxml_structured_error_handler);
 1568|       |
 1569|       |    /* Okay, parsing will start now. The parser might do things that eventually
 1570|       |     * trigger the igraph error handler, but we want the parser state to
 1571|       |     * survive whatever happens here. So, we put a barrier on the FINALLY stack
 1572|       |     * that prevents IGRAPH_ERROR() from freeing the parser state, and then we
 1573|       |     * do this ourselves when needed */
 1574|  24.3k|    IGRAPH_FINALLY_ENTER();
 1575|  24.3k|    {
 1576|  24.3k|        ctxt = xmlCreatePushParserCtxt(&igraph_i_graphml_sax_handler,
 1577|  24.3k|                                       &state,
 1578|  24.3k|                                       buffer,
 1579|  24.3k|                                       res,
 1580|  24.3k|                                       NULL);
 1581|  24.3k|        if (ctxt) {
  ------------------
  |  Branch (1581:13): [True: 24.3k, False: 0]
  ------------------
 1582|  24.3k|            if (xmlCtxtUseOptions(ctxt,
  ------------------
  |  Branch (1582:17): [True: 0, False: 24.3k]
  ------------------
 1583|  24.3k|                                  XML_PARSE_NOBLANKS |
 1584|  24.3k|                                  XML_PARSE_NONET | XML_PARSE_NSCLEAN |
 1585|  24.3k|                                  XML_PARSE_NOCDATA | XML_PARSE_HUGE
 1586|  24.3k|                                  )) {
 1587|      0|                xmlFreeParserCtxt(ctxt);
 1588|      0|                ctxt = NULL;
 1589|      0|            }
 1590|  24.3k|        }
 1591|       |
 1592|       |        /* Do the parsing */
 1593|  24.3k|        if (ctxt) {
  ------------------
  |  Branch (1593:13): [True: 24.3k, False: 0]
  ------------------
 1594|   345k|            while ((res = (int) fread(buffer, 1, sizeof buffer, instream)) > 0) {
  ------------------
  |  Branch (1594:20): [True: 321k, False: 23.9k]
  ------------------
 1595|   321k|                xmlParseChunk(ctxt, buffer, res, 0);
 1596|   321k|                if (!state.successful) {
  ------------------
  |  Branch (1596:21): [True: 455, False: 320k]
  ------------------
 1597|    455|                    break;
 1598|    455|                }
 1599|   320k|                IGRAPH_ALLOW_INTERRUPTION();
  ------------------
  |  |   46|   320k|    do { \
  |  |   47|   320k|        if (igraph_i_interruption_handler) { \
  |  |  ------------------
  |  |  |  Branch (47:13): [True: 0, False: 320k]
  |  |  ------------------
  |  |   48|      0|            if (igraph_allow_interruption()) { \
  |  |  ------------------
  |  |  |  Branch (48:17): [True: 0, False: 0]
  |  |  ------------------
  |  |   49|      0|                return IGRAPH_INTERRUPTED; \
  |  |   50|      0|            } \
  |  |   51|      0|        } \
  |  |   52|   320k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (52:14): [Folded, False: 320k]
  |  |  ------------------
  ------------------
 1600|   320k|            }
 1601|  24.3k|            xmlParseChunk(ctxt, buffer, res, 1);
 1602|  24.3k|        }
 1603|  24.3k|    }
 1604|  24.3k|    IGRAPH_FINALLY_EXIT();
 1605|       |
 1606|       |    /* Restore error handlers */
 1607|  24.3k|    xmlSetGenericErrorFunc(libxml_old_generic_error_context, libxml_old_generic_error_handler);
 1608|  24.3k|    xmlSetStructuredErrorFunc(libxml_old_structured_error_context, libxml_old_structured_error_handler);
 1609|       |
 1610|       |    /* Free the context */
 1611|  24.3k|    if (ctxt) {
  ------------------
  |  Branch (1611:9): [True: 24.3k, False: 0]
  ------------------
 1612|  24.3k|        doc = ctxt->myDoc;
 1613|  24.3k|        xmlFreeParserCtxt(ctxt);
 1614|  24.3k|        if (doc) {
  ------------------
  |  Branch (1614:13): [True: 1.46k, False: 22.9k]
  ------------------
 1615|       |            /* In theory this should not be necessary, but it looks like certain malformed
 1616|       |             * GraphML files leave a partially-parsed doc in memory */
 1617|  1.46k|            xmlFreeDoc(doc);
 1618|  1.46k|        }
 1619|  24.3k|    } else {
 1620|       |        /* We could not create the context earlier so no parsing was done */
 1621|      0|        IGRAPH_ERROR("Cannot create XML parser context.", 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]
  |  |  ------------------
  ------------------
 1622|      0|    }
 1623|       |
 1624|       |    /* Extract the error message from the parser state (if any), and make a
 1625|       |     * copy so we can safely destroy the parser state before triggering the
 1626|       |     * error */
 1627|  24.3k|    parsing_successful = state.successful;
 1628|  24.3k|    error_message = parsing_successful || state.error_message == NULL ? NULL : strdup(state.error_message);
  ------------------
  |  Branch (1628:21): [True: 6.69k, False: 17.6k]
  |  Branch (1628:43): [True: 0, False: 17.6k]
  ------------------
 1629|       |
 1630|       |    /* ...and we can also put the error message pointer on the FINALLY stack */
 1631|  24.3k|    if (error_message != NULL) {
  ------------------
  |  Branch (1631:9): [True: 17.6k, False: 6.69k]
  ------------------
 1632|  17.6k|        IGRAPH_FINALLY(igraph_free, error_message);
  ------------------
  |  |  603|  17.6k|    do { \
  |  |  604|  17.6k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  17.6k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  17.6k|         * incorrect destructor function with the pointer */ \
  |  |  607|  17.6k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 17.6k]
  |  |  ------------------
  |  |  608|  17.6k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  17.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 17.6k]
  |  |  ------------------
  ------------------
 1633|  17.6k|    }
 1634|       |
 1635|       |    /* Trigger the stored error if needed */
 1636|  24.3k|    if (!parsing_successful) {
  ------------------
  |  Branch (1636:9): [True: 17.6k, False: 6.69k]
  ------------------
 1637|  17.6k|        if (error_message != NULL) {
  ------------------
  |  Branch (1637:13): [True: 17.6k, False: 0]
  ------------------
 1638|  17.6k|            size_t len = strlen(error_message);
 1639|  17.6k|            if (error_message[len-1] == '\n') {
  ------------------
  |  Branch (1639:17): [True: 17.3k, False: 393]
  ------------------
 1640|  17.3k|                error_message[len-1] = '\0';
 1641|  17.3k|            }
 1642|  17.6k|            IGRAPH_ERROR(error_message, IGRAPH_PARSEERROR);
  ------------------
  |  |  426|  17.6k|    do { \
  |  |  427|  17.6k|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|  17.6k|        return igraph_errno ; \
  |  |  429|  17.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1643|  17.6k|        } else {
 1644|      0|            IGRAPH_ERROR("Malformed GraphML file.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1645|      0|        }
 1646|  17.6k|    }
 1647|       |
 1648|       |    /* Did we actually manage to reach the graph to be parsed, given its index?
 1649|       |     * If not, that's an error as well. */
 1650|  6.69k|    if (state.index >= 0) {
  ------------------
  |  Branch (1650:9): [True: 63, False: 6.63k]
  ------------------
 1651|     63|        IGRAPH_ERROR("Graph index was too large.", IGRAPH_EINVAL);
  ------------------
  |  |  426|     63|    do { \
  |  |  427|     63|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     63|        return igraph_errno ; \
  |  |  429|     63|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1652|     63|    }
 1653|       |
 1654|       |    /* Okay, everything seems good. We can now take the parser state and
 1655|       |     * construct our graph from the data gathered during the parsing */
 1656|  6.63k|    IGRAPH_CHECK(igraph_i_graphml_parser_state_finish_parsing(&state));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
 1657|       |
 1658|  6.63k|    igraph_i_graphml_parser_state_destroy(&state);
 1659|  6.63k|    IGRAPH_FINALLY_CLEAN(1);
 1660|       |
 1661|  6.63k|    return IGRAPH_SUCCESS;
 1662|       |#else // HAVE_LIBXML == 1
 1663|       |    IGRAPH_UNUSED(graph);
 1664|       |    IGRAPH_UNUSED(instream);
 1665|       |    IGRAPH_UNUSED(index);
 1666|       |
 1667|       |    IGRAPH_ERROR("GraphML support is disabled.", IGRAPH_UNIMPLEMENTED);
 1668|       |#endif // HAVE_LIBXML == 1
 1669|  6.63k|}
igraph_write_graph_graphml:
 1706|  3.33k|                               igraph_bool_t prefixattr) {
 1707|  3.33k|    int ret;
 1708|  3.33k|    igraph_int_t l, vc;
 1709|  3.33k|    igraph_eit_t it;
 1710|  3.33k|    igraph_strvector_t gnames, vnames, enames;
 1711|  3.33k|    igraph_vector_int_t gtypes, vtypes, etypes;
 1712|  3.33k|    igraph_int_t i;
 1713|  3.33k|    igraph_vector_t numv;
 1714|  3.33k|    igraph_strvector_t strv;
 1715|  3.33k|    igraph_vector_bool_t boolv;
 1716|  3.33k|    const char *gprefix = prefixattr ? "g_" : "";
  ------------------
  |  Branch (1716:27): [True: 0, False: 3.33k]
  ------------------
 1717|  3.33k|    const char *vprefix = prefixattr ? "v_" : "";
  ------------------
  |  Branch (1717:27): [True: 0, False: 3.33k]
  ------------------
 1718|  3.33k|    const char *eprefix = prefixattr ? "e_" : "";
  ------------------
  |  Branch (1718:27): [True: 0, False: 3.33k]
  ------------------
 1719|  3.33k|    char what[100];
 1720|       |
 1721|  3.33k|    ret = fprintf(outstream, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
 1722|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1722:9): [True: 0, False: 3.33k]
  ------------------
 1723|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1724|      0|    }
 1725|  3.33k|    ret = fprintf(outstream, "<graphml xmlns=\"%s\"\n", GRAPHML_NAMESPACE_URI);
  ------------------
  |  |   38|  3.33k|#define GRAPHML_NAMESPACE_URI "http://graphml.graphdrawing.org/xmlns"
  ------------------
 1726|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1726:9): [True: 0, False: 3.33k]
  ------------------
 1727|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1728|      0|    }
 1729|  3.33k|    ret = fprintf(outstream, "         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n");
 1730|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1730:9): [True: 0, False: 3.33k]
  ------------------
 1731|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1732|      0|    }
 1733|  3.33k|    ret = fprintf(outstream, "         xsi:schemaLocation=\"%s\n", GRAPHML_NAMESPACE_URI);
  ------------------
  |  |   38|  3.33k|#define GRAPHML_NAMESPACE_URI "http://graphml.graphdrawing.org/xmlns"
  ------------------
 1734|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1734:9): [True: 0, False: 3.33k]
  ------------------
 1735|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1736|      0|    }
 1737|  3.33k|    ret = fprintf(outstream, "         %s/1.0/graphml.xsd\">\n", GRAPHML_NAMESPACE_URI);
  ------------------
  |  |   38|  3.33k|#define GRAPHML_NAMESPACE_URI "http://graphml.graphdrawing.org/xmlns"
  ------------------
 1738|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1738:9): [True: 0, False: 3.33k]
  ------------------
 1739|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1740|      0|    }
 1741|  3.33k|    ret = fprintf(outstream, "<!-- Created by igraph -->\n");
 1742|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1742:9): [True: 0, False: 3.33k]
  ------------------
 1743|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1744|      0|    }
 1745|       |
 1746|       |    /* dump the <key> elements if any */
 1747|       |
 1748|  3.33k|    IGRAPH_VECTOR_INIT_FINALLY(&numv, 1);
  ------------------
  |  |  104|  3.33k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.33k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1749|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&strv, 1);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1750|  3.33k|    IGRAPH_VECTOR_BOOL_INIT_FINALLY(&boolv, 1);
  ------------------
  |  |  109|  3.33k|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|  3.33k|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1751|       |
 1752|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&gnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1753|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&vnames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1754|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&enames, 0);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1755|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&gtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1756|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&vtypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1757|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&etypes, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1758|  3.33k|    IGRAPH_CHECK(igraph_i_attribute_get_info(graph,
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1759|  3.33k|                                &gnames, &gtypes,
 1760|  3.33k|                                &vnames, &vtypes,
 1761|  3.33k|                                &enames, &etypes));
 1762|       |
 1763|       |    /* graph attributes */
 1764|  4.13k|    for (i = 0; i < igraph_vector_int_size(&gtypes); i++) {
  ------------------
  |  Branch (1764:17): [True: 800, False: 3.33k]
  ------------------
 1765|    800|        const char *name; char *name_escaped;
 1766|    800|        name = igraph_strvector_get(&gnames, i);
 1767|    800|        IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "graph attribute name"));
  ------------------
  |  |  656|    800|    do { \
  |  |  657|    800|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    800|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    800|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 800]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    800|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 800]
  |  |  ------------------
  ------------------
 1768|    800|        IGRAPH_FINALLY(igraph_free, name_escaped);
  ------------------
  |  |  603|    800|    do { \
  |  |  604|    800|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    800|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    800|         * incorrect destructor function with the pointer */ \
  |  |  607|    800|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 800]
  |  |  ------------------
  |  |  608|    800|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    800|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 800]
  |  |  ------------------
  ------------------
 1769|    800|        if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|    800|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1769:13): [True: 576, False: 224]
  ------------------
 1770|    576|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"graph\" attr.name=\"%s\" attr.type=\"string\"/>\n", gprefix, name_escaped, name_escaped);
 1771|    576|            if (ret < 0) {
  ------------------
  |  Branch (1771:17): [True: 0, False: 576]
  ------------------
 1772|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1773|      0|            }
 1774|    576|        } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|    224|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1774:20): [True: 83, False: 141]
  ------------------
 1775|     83|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"graph\" attr.name=\"%s\" attr.type=\"double\"/>\n", gprefix, name_escaped, name_escaped);
 1776|     83|            if (ret < 0) {
  ------------------
  |  Branch (1776:17): [True: 0, False: 83]
  ------------------
 1777|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1778|      0|            }
 1779|    141|        } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    141|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1779:20): [True: 141, False: 0]
  ------------------
 1780|    141|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"graph\" attr.name=\"%s\" attr.type=\"boolean\"/>\n", gprefix, name_escaped, name_escaped);
 1781|    141|            if (ret < 0) {
  ------------------
  |  Branch (1781:17): [True: 0, False: 141]
  ------------------
 1782|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1783|      0|            }
 1784|    141|        }
 1785|    800|        IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|    800|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1786|    800|        IGRAPH_FINALLY_CLEAN(1);
 1787|    800|    }
 1788|       |
 1789|       |    /* vertex attributes */
 1790|  8.60k|    for (i = 0; i < igraph_vector_int_size(&vtypes); i++) {
  ------------------
  |  Branch (1790:17): [True: 5.26k, False: 3.33k]
  ------------------
 1791|  5.26k|        const char *name; char *name_escaped;
 1792|  5.26k|        name = igraph_strvector_get(&vnames, i);
 1793|  5.26k|        IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "vertex attribute name"));
  ------------------
  |  |  656|  5.26k|    do { \
  |  |  657|  5.26k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.26k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.26k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.26k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.26k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.26k]
  |  |  ------------------
  ------------------
 1794|  5.26k|        IGRAPH_FINALLY(igraph_free, name_escaped);
  ------------------
  |  |  603|  5.26k|    do { \
  |  |  604|  5.26k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  5.26k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  5.26k|         * incorrect destructor function with the pointer */ \
  |  |  607|  5.26k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 5.26k]
  |  |  ------------------
  |  |  608|  5.26k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  5.26k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 5.26k]
  |  |  ------------------
  ------------------
 1795|  5.26k|        if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|  5.26k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1795:13): [True: 4.29k, False: 971]
  ------------------
 1796|  4.29k|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"node\" attr.name=\"%s\" attr.type=\"string\"/>\n", vprefix, name_escaped, name_escaped);
 1797|  4.29k|            if (ret < 0) {
  ------------------
  |  Branch (1797:17): [True: 0, False: 4.29k]
  ------------------
 1798|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1799|      0|            }
 1800|  4.29k|        } else if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|    971|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1800:20): [True: 336, False: 635]
  ------------------
 1801|    336|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"node\" attr.name=\"%s\" attr.type=\"double\"/>\n", vprefix, name_escaped, name_escaped);
 1802|    336|            if (ret < 0) {
  ------------------
  |  Branch (1802:17): [True: 0, False: 336]
  ------------------
 1803|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1804|      0|            }
 1805|    635|        } else if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    635|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1805:20): [True: 635, False: 0]
  ------------------
 1806|    635|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"node\" attr.name=\"%s\" attr.type=\"boolean\"/>\n", vprefix, name_escaped, name_escaped);
 1807|    635|            if (ret < 0) {
  ------------------
  |  Branch (1807:17): [True: 0, False: 635]
  ------------------
 1808|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1809|      0|            }
 1810|    635|        }
 1811|  5.26k|        IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  5.26k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1812|  5.26k|        IGRAPH_FINALLY_CLEAN(1);
 1813|  5.26k|    }
 1814|       |
 1815|       |    /* edge attributes */
 1816|  5.99k|    for (i = 0; i < igraph_vector_int_size(&etypes); i++) {
  ------------------
  |  Branch (1816:17): [True: 2.65k, False: 3.33k]
  ------------------
 1817|  2.65k|        const char *name; char *name_escaped;
 1818|  2.65k|        name = igraph_strvector_get(&enames, i);
 1819|  2.65k|        IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "edge attribute name"));
  ------------------
  |  |  656|  2.65k|    do { \
  |  |  657|  2.65k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.65k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.65k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.65k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.65k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.65k]
  |  |  ------------------
  ------------------
 1820|  2.65k|        IGRAPH_FINALLY(igraph_free, name_escaped);
  ------------------
  |  |  603|  2.65k|    do { \
  |  |  604|  2.65k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  2.65k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  2.65k|         * incorrect destructor function with the pointer */ \
  |  |  607|  2.65k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 2.65k]
  |  |  ------------------
  |  |  608|  2.65k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  2.65k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 2.65k]
  |  |  ------------------
  ------------------
 1821|  2.65k|        if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|  2.65k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1821:13): [True: 1.63k, False: 1.01k]
  ------------------
 1822|  1.63k|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"edge\" attr.name=\"%s\" attr.type=\"string\"/>\n", eprefix, name_escaped, name_escaped);
 1823|  1.63k|            if (ret < 0) {
  ------------------
  |  Branch (1823:17): [True: 0, False: 1.63k]
  ------------------
 1824|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1825|      0|            }
 1826|  1.63k|        } else if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|  1.01k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1826:20): [True: 393, False: 622]
  ------------------
 1827|    393|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"edge\" attr.name=\"%s\" attr.type=\"double\"/>\n", eprefix, name_escaped, name_escaped);
 1828|    393|            if (ret < 0) {
  ------------------
  |  Branch (1828:17): [True: 0, False: 393]
  ------------------
 1829|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1830|      0|            }
 1831|    622|        } else if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    622|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1831:20): [True: 622, False: 0]
  ------------------
 1832|    622|            ret = fprintf(outstream, "  <key id=\"%s%s\" for=\"edge\" attr.name=\"%s\" attr.type=\"boolean\"/>\n", eprefix, name_escaped, name_escaped);
 1833|    622|            if (ret < 0) {
  ------------------
  |  Branch (1833:17): [True: 0, False: 622]
  ------------------
 1834|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1835|      0|            }
 1836|    622|        }
 1837|  2.65k|        IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  2.65k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1838|  2.65k|        IGRAPH_FINALLY_CLEAN(1);
 1839|  2.65k|    }
 1840|       |
 1841|  3.33k|    ret = fprintf(outstream, "  <graph id=\"G\" edgedefault=\"%s\">\n", (igraph_is_directed(graph) ? "directed" : "undirected"));
  ------------------
  |  Branch (1841:74): [True: 139, False: 3.19k]
  ------------------
 1842|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (1842:9): [True: 0, False: 3.33k]
  ------------------
 1843|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1844|      0|    }
 1845|       |
 1846|       |    /* Write the graph atributes before anything else */
 1847|       |
 1848|  4.13k|    for (i = 0; i < igraph_vector_int_size(&gtypes); i++) {
  ------------------
  |  Branch (1848:17): [True: 800, False: 3.33k]
  ------------------
 1849|    800|        const char *name; char *name_escaped;
 1850|    800|        if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|    800|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1850:13): [True: 83, False: 717]
  ------------------
 1851|     83|            name = igraph_strvector_get(&gnames, i);
 1852|     83|            IGRAPH_CHECK(igraph_i_attribute_get_numeric_graph_attr(graph, name, &numv));
  ------------------
  |  |  656|     83|    do { \
  |  |  657|     83|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     83|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     83|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 83]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     83|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 83]
  |  |  ------------------
  ------------------
 1853|     83|            if (!isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1853:17): [True: 12, False: 71]
  ------------------
 1854|     12|                IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "graph attribute name"));
  ------------------
  |  |  656|     12|    do { \
  |  |  657|     12|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     12|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     12|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 12]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     12|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 12]
  |  |  ------------------
  ------------------
 1855|     12|                ret = fprintf(outstream, "    <data key=\"%s%s\">", gprefix, name_escaped);
 1856|     12|                IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|     12|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1857|     12|                if (ret < 0) {
  ------------------
  |  Branch (1857:21): [True: 0, False: 12]
  ------------------
 1858|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1859|      0|                }
 1860|     12|                ret = igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|     12|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1861|     12|                if (ret < 0) {
  ------------------
  |  Branch (1861:21): [True: 0, False: 12]
  ------------------
 1862|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1863|      0|                }
 1864|     12|                ret = fprintf(outstream, "</data>\n");
 1865|     12|                if (ret < 0) {
  ------------------
  |  Branch (1865:21): [True: 0, False: 12]
  ------------------
 1866|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1867|      0|                }
 1868|     12|            }
 1869|    717|        } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|    717|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1869:20): [True: 576, False: 141]
  ------------------
 1870|    576|            const char *s;
 1871|    576|            char *s_escaped;
 1872|    576|            name = igraph_strvector_get(&gnames, i);
 1873|    576|            IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "graph attribute name"));
  ------------------
  |  |  656|    576|    do { \
  |  |  657|    576|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    576|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    576|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 576]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    576|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 576]
  |  |  ------------------
  ------------------
 1874|    576|            ret = fprintf(outstream, "    <data key=\"%s%s\">", gprefix,
 1875|    576|                          name_escaped);
 1876|    576|            IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|    576|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1877|    576|            if (ret < 0) {
  ------------------
  |  Branch (1877:17): [True: 0, False: 576]
  ------------------
 1878|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1879|      0|            }
 1880|    576|            IGRAPH_CHECK(igraph_i_attribute_get_string_graph_attr(graph, name, &strv));
  ------------------
  |  |  656|    576|    do { \
  |  |  657|    576|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    576|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    576|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 576]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    576|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 576]
  |  |  ------------------
  ------------------
 1881|    576|            s = igraph_strvector_get(&strv, 0);
 1882|    576|            snprintf(what, sizeof(what) / sizeof(what[0]), "the value of the '%s' graph attribute", name);
 1883|    576|            IGRAPH_CHECK(igraph_i_xml_escape(s, &s_escaped, what));
  ------------------
  |  |  656|    576|    do { \
  |  |  657|    576|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    576|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    576|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 576]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    576|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 576]
  |  |  ------------------
  ------------------
 1884|    576|            ret = fprintf(outstream, "%s", s_escaped);
 1885|    576|            IGRAPH_FREE(s_escaped);
  ------------------
  |  |   36|    576|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1886|    576|            if (ret < 0) {
  ------------------
  |  Branch (1886:17): [True: 0, False: 576]
  ------------------
 1887|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1888|      0|            }
 1889|    576|            ret = fprintf(outstream, "</data>\n");
 1890|    576|            if (ret < 0) {
  ------------------
  |  Branch (1890:17): [True: 0, False: 576]
  ------------------
 1891|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1892|      0|            }
 1893|    576|        } else if (VECTOR(gtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|    141|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1893:20): [True: 141, False: 0]
  ------------------
 1894|    141|            name = igraph_strvector_get(&gnames, i);
 1895|    141|            IGRAPH_CHECK(igraph_i_attribute_get_bool_graph_attr(graph, name, &boolv));
  ------------------
  |  |  656|    141|    do { \
  |  |  657|    141|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    141|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    141|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 141]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    141|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 141]
  |  |  ------------------
  ------------------
 1896|    141|            IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "graph attribute name"));
  ------------------
  |  |  656|    141|    do { \
  |  |  657|    141|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    141|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    141|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 141]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    141|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 141]
  |  |  ------------------
  ------------------
 1897|    141|            ret = fprintf(outstream, "    <data key=\"%s%s\">%s</data>\n",
 1898|    141|                          gprefix, name_escaped, VECTOR(boolv)[0] ? "true" : "false");
  ------------------
  |  |   60|    141|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1898:50): [True: 0, False: 141]
  ------------------
 1899|    141|            IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|    141|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1900|    141|            if (ret < 0) {
  ------------------
  |  Branch (1900:17): [True: 0, False: 141]
  ------------------
 1901|      0|                IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1902|      0|            }
 1903|    141|        }
 1904|    800|    }
 1905|       |
 1906|       |    /* Let's dump the nodes first */
 1907|  3.33k|    vc = igraph_vcount(graph);
 1908|  38.0k|    for (l = 0; l < vc; l++) {
  ------------------
  |  Branch (1908:17): [True: 34.7k, False: 3.33k]
  ------------------
 1909|  34.7k|        const char *name; char *name_escaped;
 1910|  34.7k|        ret = fprintf(outstream, "    <node id=\"n%" IGRAPH_PRId "\">\n", l);
 1911|       |
 1912|  34.7k|        if (ret < 0) {
  ------------------
  |  Branch (1912:13): [True: 0, False: 34.7k]
  ------------------
 1913|      0|            IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1914|      0|        }
 1915|       |
 1916|  94.2k|        for (i = 0; i < igraph_vector_int_size(&vtypes); i++) {
  ------------------
  |  Branch (1916:21): [True: 59.5k, False: 34.7k]
  ------------------
 1917|  59.5k|            if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|  59.5k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1917:17): [True: 5.34k, False: 54.2k]
  ------------------
 1918|  5.34k|                name = igraph_strvector_get(&vnames, i);
 1919|  5.34k|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(graph, name,
  ------------------
  |  |  656|  5.34k|    do { \
  |  |  657|  5.34k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.34k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.34k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.34k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.34k]
  |  |  ------------------
  ------------------
 1920|  5.34k|                             igraph_vss_1(l), &numv));
 1921|  5.34k|                if (!isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (1921:21): [True: 4.03k, False: 1.31k]
  ------------------
 1922|  4.03k|                    IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "vertex attribute name"));
  ------------------
  |  |  656|  4.03k|    do { \
  |  |  657|  4.03k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  4.03k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  4.03k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.03k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  4.03k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 4.03k]
  |  |  ------------------
  ------------------
 1923|  4.03k|                    ret = fprintf(outstream, "      <data key=\"%s%s\">", vprefix, name_escaped);
 1924|  4.03k|                    IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  4.03k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1925|  4.03k|                    if (ret < 0) {
  ------------------
  |  Branch (1925:25): [True: 0, False: 4.03k]
  ------------------
 1926|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1927|      0|                    }
 1928|  4.03k|                    ret = igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|  4.03k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 1929|  4.03k|                    if (ret < 0) {
  ------------------
  |  Branch (1929:25): [True: 0, False: 4.03k]
  ------------------
 1930|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1931|      0|                    }
 1932|  4.03k|                    ret = fprintf(outstream, "</data>\n");
 1933|  4.03k|                    if (ret < 0) {
  ------------------
  |  Branch (1933:25): [True: 0, False: 4.03k]
  ------------------
 1934|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1935|      0|                    }
 1936|  4.03k|                }
 1937|  54.2k|            } else if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|  54.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1937:24): [True: 46.8k, False: 7.42k]
  ------------------
 1938|  46.8k|                const char *s;
 1939|  46.8k|                char *s_escaped;
 1940|  46.8k|                name = igraph_strvector_get(&vnames, i);
 1941|  46.8k|                IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "vertex attribute name"));
  ------------------
  |  |  656|  46.8k|    do { \
  |  |  657|  46.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  46.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  46.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 46.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  46.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
 1942|  46.8k|                ret = fprintf(outstream, "      <data key=\"%s%s\">", vprefix,
 1943|  46.8k|                              name_escaped);
 1944|  46.8k|                IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  46.8k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1945|  46.8k|                if (ret < 0) {
  ------------------
  |  Branch (1945:21): [True: 0, False: 46.8k]
  ------------------
 1946|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1947|      0|                }
 1948|  46.8k|                IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, name,
  ------------------
  |  |  656|  46.8k|    do { \
  |  |  657|  46.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  46.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  46.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 46.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  46.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
 1949|  46.8k|                             igraph_vss_1(l), &strv));
 1950|  46.8k|                s = igraph_strvector_get(&strv, 0);
 1951|  46.8k|                snprintf(what, sizeof(what) / sizeof(what[0]), "a value of the '%s' vertex attribute", name);
 1952|  46.8k|                IGRAPH_CHECK(igraph_i_xml_escape(s, &s_escaped, what));
  ------------------
  |  |  656|  46.8k|    do { \
  |  |  657|  46.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  46.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  46.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 46.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  46.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 46.8k]
  |  |  ------------------
  ------------------
 1953|  46.8k|                ret = fprintf(outstream, "%s", s_escaped);
 1954|  46.8k|                IGRAPH_FREE(s_escaped);
  ------------------
  |  |   36|  46.8k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1955|  46.8k|                if (ret < 0) {
  ------------------
  |  Branch (1955:21): [True: 0, False: 46.8k]
  ------------------
 1956|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1957|      0|                }
 1958|  46.8k|                ret = fprintf(outstream, "</data>\n");
 1959|  46.8k|                if (ret < 0) {
  ------------------
  |  Branch (1959:21): [True: 0, False: 46.8k]
  ------------------
 1960|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1961|      0|                }
 1962|  46.8k|            } else if (VECTOR(vtypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|  7.42k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1962:24): [True: 7.42k, False: 0]
  ------------------
 1963|  7.42k|                name = igraph_strvector_get(&vnames, i);
 1964|  7.42k|                IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(graph, name,
  ------------------
  |  |  656|  7.42k|    do { \
  |  |  657|  7.42k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.42k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.42k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
 1965|  7.42k|                             igraph_vss_1(l), &boolv));
 1966|  7.42k|                IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "vertex attribute name"));
  ------------------
  |  |  656|  7.42k|    do { \
  |  |  657|  7.42k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.42k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.42k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.42k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.42k]
  |  |  ------------------
  ------------------
 1967|  7.42k|                ret = fprintf(outstream, "      <data key=\"%s%s\">%s</data>\n",
 1968|  7.42k|                              vprefix, name_escaped, VECTOR(boolv)[0] ? "true" : "false");
  ------------------
  |  |   60|  7.42k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1968:54): [True: 16, False: 7.40k]
  ------------------
 1969|  7.42k|                IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  7.42k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 1970|  7.42k|                if (ret < 0) {
  ------------------
  |  Branch (1970:21): [True: 0, False: 7.42k]
  ------------------
 1971|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  426|      0|    do { \
  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      0|        return igraph_errno ; \
  |  |  429|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1972|      0|                }
 1973|  7.42k|            }
 1974|  59.5k|        }
 1975|       |
 1976|  34.7k|        ret = fprintf(outstream, "    </node>\n");
 1977|  34.7k|        if (ret < 0) {
  ------------------
  |  Branch (1977:13): [True: 0, False: 34.7k]
  ------------------
 1978|      0|            IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1979|      0|        }
 1980|  34.7k|    }
 1981|       |
 1982|       |    /* Now the edges */
 1983|  3.33k|    IGRAPH_CHECK(igraph_eit_create(graph, igraph_ess_all(IGRAPH_EDGEORDER_ID), &it));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1984|  3.33k|    IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
 1985|   351k|    while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|   351k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (1985:12): [True: 348k, False: 3.33k]
  ------------------
 1986|   348k|        igraph_int_t from, to;
 1987|   348k|        const char *name; char *name_escaped;
 1988|   348k|        igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|   348k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 348k, False: 0]
  |  |  ------------------
  |  |  406|   348k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
 1989|       |
 1990|   348k|        IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|   348k|    do { \
  |  |  657|   348k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   348k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   348k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 348k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   348k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 348k]
  |  |  ------------------
  ------------------
 1991|   348k|        ret = fprintf(outstream, "    <edge source=\"n%" IGRAPH_PRId "\" target=\"n%" IGRAPH_PRId "\">\n",
 1992|   348k|                      from, to);
 1993|   348k|        if (ret < 0) {
  ------------------
  |  Branch (1993:13): [True: 0, False: 348k]
  ------------------
 1994|      0|            IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1995|      0|        }
 1996|       |
 1997|   673k|        for (i = 0; i < igraph_vector_int_size(&etypes); i++) {
  ------------------
  |  Branch (1997:21): [True: 324k, False: 348k]
  ------------------
 1998|   324k|            if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |   60|   324k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (1998:17): [True: 44.5k, False: 280k]
  ------------------
 1999|  44.5k|                name = igraph_strvector_get(&enames, i);
 2000|  44.5k|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, name,
  ------------------
  |  |  656|  44.5k|    do { \
  |  |  657|  44.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  44.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  44.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  44.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44.5k]
  |  |  ------------------
  ------------------
 2001|  44.5k|                             igraph_ess_1(edge), &numv));
 2002|  44.5k|                if (!isnan(VECTOR(numv)[0])) {
  ------------------
  |  Branch (2002:21): [True: 1.83k, False: 42.6k]
  ------------------
 2003|  1.83k|                    IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "edge attribute name"));
  ------------------
  |  |  656|  1.83k|    do { \
  |  |  657|  1.83k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.83k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.83k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.83k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.83k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.83k]
  |  |  ------------------
  ------------------
 2004|  1.83k|                    ret = fprintf(outstream, "      <data key=\"%s%s\">", eprefix, name_escaped);
 2005|  1.83k|                    IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  1.83k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 2006|  1.83k|                    if (ret < 0) {
  ------------------
  |  Branch (2006:25): [True: 0, False: 1.83k]
  ------------------
 2007|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2008|      0|                    }
 2009|  1.83k|                    ret = igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|  1.83k|#define VECTOR(v) ((v).stor_begin)
  ------------------
 2010|  1.83k|                    if (ret < 0) {
  ------------------
  |  Branch (2010:25): [True: 0, False: 1.83k]
  ------------------
 2011|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2012|      0|                    }
 2013|  1.83k|                    ret = fprintf(outstream, "</data>\n");
 2014|  1.83k|                    if (ret < 0) {
  ------------------
  |  Branch (2014:25): [True: 0, False: 1.83k]
  ------------------
 2015|      0|                        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2016|      0|                    }
 2017|  1.83k|                }
 2018|   280k|            } else if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |   60|   280k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (2018:24): [True: 238k, False: 42.2k]
  ------------------
 2019|   238k|                const char *s;
 2020|   238k|                char *s_escaped;
 2021|   238k|                name = igraph_strvector_get(&enames, i);
 2022|   238k|                IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "edge attribute name"));
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
 2023|   238k|                ret = fprintf(outstream, "      <data key=\"%s%s\">", eprefix,
 2024|   238k|                              name_escaped);
 2025|   238k|                IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|   238k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 2026|   238k|                if (ret < 0) {
  ------------------
  |  Branch (2026:21): [True: 0, False: 238k]
  ------------------
 2027|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2028|      0|                }
 2029|   238k|                IGRAPH_CHECK(igraph_i_attribute_get_string_edge_attr(graph, name,
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
 2030|   238k|                             igraph_ess_1(edge), &strv));
 2031|   238k|                s = igraph_strvector_get(&strv, 0);
 2032|   238k|                snprintf(what, sizeof(what) / sizeof(what[0]), "a value of the '%s' edge attribute", name);
 2033|   238k|                IGRAPH_CHECK(igraph_i_xml_escape(s, &s_escaped, what));
  ------------------
  |  |  656|   238k|    do { \
  |  |  657|   238k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   238k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   238k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 238k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   238k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 238k]
  |  |  ------------------
  ------------------
 2034|   238k|                ret = fprintf(outstream, "%s", s_escaped);
 2035|   238k|                IGRAPH_FREE(s_escaped);
  ------------------
  |  |   36|   238k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 2036|   238k|                if (ret < 0) {
  ------------------
  |  Branch (2036:21): [True: 0, False: 238k]
  ------------------
 2037|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2038|      0|                }
 2039|   238k|                ret = fprintf(outstream, "</data>\n");
 2040|   238k|                if (ret < 0) {
  ------------------
  |  Branch (2040:21): [True: 0, False: 238k]
  ------------------
 2041|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2042|      0|                }
 2043|   238k|            } else if (VECTOR(etypes)[i] == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  |   60|  42.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (2043:24): [True: 42.2k, False: 0]
  ------------------
 2044|  42.2k|                name = igraph_strvector_get(&enames, i);
 2045|  42.2k|                IGRAPH_CHECK(igraph_i_attribute_get_bool_edge_attr(graph, name,
  ------------------
  |  |  656|  42.2k|    do { \
  |  |  657|  42.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  42.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  42.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 42.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|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
 2046|  42.2k|                             igraph_ess_1(edge), &boolv));
 2047|  42.2k|                IGRAPH_CHECK(igraph_i_xml_escape(name, &name_escaped, "edge attribute name"));
  ------------------
  |  |  656|  42.2k|    do { \
  |  |  657|  42.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  42.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  42.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 42.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|  42.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 42.2k]
  |  |  ------------------
  ------------------
 2048|  42.2k|                ret = fprintf(outstream, "      <data key=\"%s%s\">%s</data>\n",
 2049|  42.2k|                              eprefix, name_escaped, VECTOR(boolv)[0] ? "true" : "false");
  ------------------
  |  |   60|  42.2k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (2049:54): [True: 0, False: 42.2k]
  ------------------
 2050|  42.2k|                IGRAPH_FREE(name_escaped);
  ------------------
  |  |   36|  42.2k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
 2051|  42.2k|                if (ret < 0) {
  ------------------
  |  Branch (2051:21): [True: 0, False: 42.2k]
  ------------------
 2052|      0|                    IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2053|      0|                }
 2054|  42.2k|            }
 2055|   324k|        }
 2056|       |
 2057|   348k|        ret = fprintf(outstream, "    </edge>\n");
 2058|   348k|        if (ret < 0) {
  ------------------
  |  Branch (2058:13): [True: 0, False: 348k]
  ------------------
 2059|      0|            IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2060|      0|        }
 2061|   348k|        IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|   348k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
 2062|   348k|    }
 2063|  3.33k|    igraph_eit_destroy(&it);
 2064|  3.33k|    IGRAPH_FINALLY_CLEAN(1);
 2065|       |
 2066|  3.33k|    ret = fprintf(outstream, "  </graph>\n");
 2067|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (2067:9): [True: 0, False: 3.33k]
  ------------------
 2068|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2069|      0|    }
 2070|  3.33k|    fprintf(outstream, "</graphml>\n");
 2071|  3.33k|    if (ret < 0) {
  ------------------
  |  Branch (2071:9): [True: 0, False: 3.33k]
  ------------------
 2072|      0|        IGRAPH_ERROR("Write failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 2073|      0|    }
 2074|       |
 2075|  3.33k|    igraph_strvector_destroy(&gnames);
 2076|  3.33k|    igraph_strvector_destroy(&vnames);
 2077|  3.33k|    igraph_strvector_destroy(&enames);
 2078|  3.33k|    igraph_vector_int_destroy(&gtypes);
 2079|  3.33k|    igraph_vector_int_destroy(&vtypes);
 2080|  3.33k|    igraph_vector_int_destroy(&etypes);
 2081|  3.33k|    igraph_vector_destroy(&numv);
 2082|  3.33k|    igraph_strvector_destroy(&strv);
 2083|  3.33k|    igraph_vector_bool_destroy(&boolv);
 2084|  3.33k|    IGRAPH_FINALLY_CLEAN(9);
 2085|       |
 2086|  3.33k|    return IGRAPH_SUCCESS;
 2087|  3.33k|}
graphml.c:igraph_i_graphml_parser_state_init:
  197|  24.3k|static igraph_error_t igraph_i_graphml_parser_state_init(struct igraph_i_graphml_parser_state* state, igraph_t* graph, igraph_int_t index) {
  198|  24.3k|    memset(state, 0, sizeof(struct igraph_i_graphml_parser_state));
  199|       |
  200|  24.3k|    state->g = graph;
  201|  24.3k|    state->index = index < 0 ? 0 : index;
  ------------------
  |  Branch (201:20): [True: 0, False: 24.3k]
  ------------------
  202|  24.3k|    state->successful = 1;
  203|  24.3k|    state->error_message = NULL;
  204|       |
  205|  24.3k|    IGRAPH_CHECK(igraph_vector_int_init(&state->prev_state_stack, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  206|  24.3k|    IGRAPH_CHECK(igraph_vector_int_reserve(&state->prev_state_stack, 32));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  207|  24.3k|    IGRAPH_FINALLY(igraph_vector_int_destroy, &state->prev_state_stack);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  208|       |
  209|  24.3k|    IGRAPH_CHECK(igraph_vector_ptr_init(&state->v_attrs, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  210|  24.3k|    IGRAPH_VECTOR_PTR_SET_ITEM_DESTRUCTOR(&state->v_attrs,
  ------------------
  |  |   94|  24.3k|    igraph_vector_ptr_set_item_destructor((v), (igraph_finally_func_t*)(func))
  ------------------
  211|  24.3k|                                          igraph_i_graphml_attribute_record_destroy);
  212|  24.3k|    IGRAPH_FINALLY(igraph_vector_ptr_destroy_all, &state->v_attrs);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  213|       |
  214|  24.3k|    IGRAPH_CHECK(igraph_vector_ptr_init(&state->e_attrs, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  215|  24.3k|    IGRAPH_VECTOR_PTR_SET_ITEM_DESTRUCTOR(&state->e_attrs,
  ------------------
  |  |   94|  24.3k|    igraph_vector_ptr_set_item_destructor((v), (igraph_finally_func_t*)(func))
  ------------------
  216|  24.3k|                                          igraph_i_graphml_attribute_record_destroy);
  217|  24.3k|    IGRAPH_FINALLY(igraph_vector_ptr_destroy_all, &state->e_attrs);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  218|       |
  219|  24.3k|    IGRAPH_CHECK(igraph_vector_ptr_init(&state->g_attrs, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  220|  24.3k|    IGRAPH_VECTOR_PTR_SET_ITEM_DESTRUCTOR(&state->g_attrs,
  ------------------
  |  |   94|  24.3k|    igraph_vector_ptr_set_item_destructor((v), (igraph_finally_func_t*)(func))
  ------------------
  221|  24.3k|                                          igraph_i_graphml_attribute_record_destroy);
  222|  24.3k|    IGRAPH_FINALLY(igraph_vector_ptr_destroy_all, &state->g_attrs);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  223|       |
  224|  24.3k|    IGRAPH_CHECK(igraph_vector_int_init(&state->edgelist, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  225|  24.3k|    IGRAPH_FINALLY(igraph_vector_int_destroy, &state->edgelist);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  226|       |
  227|  24.3k|    IGRAPH_CHECK(igraph_trie_init(&state->node_trie, 1));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  228|  24.3k|    IGRAPH_FINALLY(igraph_trie_destroy, &state->node_trie);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  229|       |
  230|  24.3k|    IGRAPH_CHECK(igraph_strvector_init(&state->edgeids, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  231|  24.3k|    IGRAPH_FINALLY(igraph_strvector_destroy, &state->edgeids);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  232|       |
  233|  24.3k|    IGRAPH_CHECK(igraph_trie_init(&state->v_attr_ids, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  234|  24.3k|    IGRAPH_FINALLY(igraph_trie_destroy, &state->v_attr_ids);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  235|       |
  236|  24.3k|    IGRAPH_CHECK(igraph_trie_init(&state->e_attr_ids, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  237|  24.3k|    IGRAPH_FINALLY(igraph_trie_destroy, &state->e_attr_ids);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  238|       |
  239|  24.3k|    IGRAPH_CHECK(igraph_trie_init(&state->g_attr_ids, 0));
  ------------------
  |  |  656|  24.3k|    do { \
  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  240|  24.3k|    IGRAPH_FINALLY(igraph_trie_destroy, &state->g_attr_ids);
  ------------------
  |  |  603|  24.3k|    do { \
  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  ------------------
  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  24.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  241|       |
  242|  24.3k|    IGRAPH_VECTOR_CHAR_INIT_FINALLY(&state->data_char, 0);
  ------------------
  |  |  114|  24.3k|  do { IGRAPH_CHECK(igraph_vector_char_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  24.3k|    do { \
  |  |  |  |  657|  24.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  24.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  24.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 24.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|  24.3k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 24.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  115|  24.3k|  IGRAPH_FINALLY(igraph_vector_char_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  24.3k|    do { \
  |  |  |  |  604|  24.3k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  24.3k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  24.3k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  24.3k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 24.3k]
  |  |  |  |  ------------------
  |  |  |  |  608|  24.3k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  24.3k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 24.3k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (115:59): [Folded, False: 24.3k]
  |  |  ------------------
  ------------------
  243|       |
  244|  24.3k|    IGRAPH_FINALLY_CLEAN(11);
  245|       |
  246|  24.3k|    return IGRAPH_SUCCESS;
  247|  24.3k|}
graphml.c:igraph_i_graphml_attribute_record_destroy:
  184|  18.8k|static void igraph_i_graphml_attribute_record_destroy(igraph_i_graphml_attribute_record_t* rec) {
  185|  18.8k|    if (!rec->record_disowned) {
  ------------------
  |  Branch (185:9): [True: 5.66k, False: 13.2k]
  ------------------
  186|  5.66k|        igraph_attribute_record_destroy(&rec->record);
  187|  5.66k|    }
  188|       |
  189|  18.8k|    if (rec->id != NULL) {
  ------------------
  |  Branch (189:9): [True: 18.6k, False: 254]
  ------------------
  190|  18.6k|        igraph_free(rec->id);
  191|  18.6k|        rec->id = NULL;
  192|  18.6k|    }
  193|       |
  194|  18.8k|    memset(rec, 0, sizeof(igraph_i_graphml_attribute_record_t));
  195|  18.8k|}
graphml.c:igraph_i_graphml_parser_state_destroy:
  249|  24.3k|static void igraph_i_graphml_parser_state_destroy(struct igraph_i_graphml_parser_state* state) {
  250|  24.3k|    igraph_trie_destroy(&state->node_trie);
  251|  24.3k|    igraph_strvector_destroy(&state->edgeids);
  252|  24.3k|    igraph_trie_destroy(&state->v_attr_ids);
  253|  24.3k|    igraph_trie_destroy(&state->e_attr_ids);
  254|  24.3k|    igraph_trie_destroy(&state->g_attr_ids);
  255|  24.3k|    igraph_vector_int_destroy(&state->edgelist);
  256|  24.3k|    igraph_vector_int_destroy(&state->prev_state_stack);
  257|       |
  258|  24.3k|    igraph_vector_ptr_destroy_all(&state->v_attrs);
  259|  24.3k|    igraph_vector_ptr_destroy_all(&state->e_attrs);
  260|  24.3k|    igraph_vector_ptr_destroy_all(&state->g_attrs);
  261|       |
  262|  24.3k|    igraph_vector_char_destroy(&state->data_char);
  263|       |
  264|  24.3k|    if (state->data_key) {
  ------------------
  |  Branch (264:9): [True: 3.38k, False: 21.0k]
  ------------------
  265|  3.38k|        xmlFree((void *) state->data_key);
  266|  3.38k|        state->data_key = NULL;
  267|  3.38k|    }
  268|       |
  269|  24.3k|    if (state->error_message) {
  ------------------
  |  Branch (269:9): [True: 17.7k, False: 6.65k]
  ------------------
  270|  17.7k|        IGRAPH_FREE(state->error_message);
  ------------------
  |  |   36|  17.7k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  271|  17.7k|    }
  272|       |
  273|  24.3k|    if (state->blank_entity) {
  ------------------
  |  Branch (273:9): [True: 1.52k, False: 22.8k]
  ------------------
  274|       |        /* xmlFreeNode() can free an xmlEntityPtr. The structs xmlNode and
  275|       |         * xmlEntity have an identical layout at the start, and xmlFreeNode()
  276|       |         * uses their type member to determine how to free the structure.
  277|       |         * Starting with libxml2 2.13.1, it passes entities to xmlFreeEntity().
  278|       |         *
  279|       |         * We do not call xmlFreeEntity() directly: it is only available
  280|       |         * since libxml2 2.12, so igraph compiled with newer libxml2 headers
  281|       |         * could then not be used with an older libxml2 library.
  282|       |         */
  283|  1.52k|        xmlFreeNode((xmlNodePtr) state->blank_entity);
  284|       |        state->blank_entity = NULL;
  285|  1.52k|    }
  286|  24.3k|}
graphml.c:igraph_i_graphml_parser_state_set_error_from_varargs:
  290|    605|) {
  291|    605|    const size_t max_error_message_length = 4096;
  292|       |
  293|    605|    state->successful = 0;
  294|    605|    state->st = ERROR;
  295|       |
  296|    605|    if (state->error_message == 0) {
  ------------------
  |  Branch (296:9): [True: 596, False: 9]
  ------------------
  297|       |        /* ownership of state->error_message passed on immediately to
  298|       |         * state so the state destructor is responsible for freeing it */
  299|    596|        state->error_message = IGRAPH_CALLOC(max_error_message_length, char);
  ------------------
  |  |   33|    596|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  1.19k|    (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: 596, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  300|    596|    }
  301|       |
  302|       |    /* we need to guard against state->error_message == 0, which may happen
  303|       |     * if the memory allocation for the error message itself failed */
  304|    605|    if (state->error_message != 0) {
  ------------------
  |  Branch (304:9): [True: 605, False: 0]
  ------------------
  305|    605|        vsnprintf(state->error_message, max_error_message_length, msg, args);
  306|    605|    }
  307|    605|}
graphml.c:igraph_i_libxml_structured_error_handler:
 1486|   232k|static void igraph_i_libxml_structured_error_handler(void* ctx, const xmlError *error) {
 1487|   232k|#endif
 1488|   232k|    struct igraph_i_graphml_parser_state* state = (struct igraph_i_graphml_parser_state*) ctx;
 1489|   232k|    igraph_i_graphml_parser_state_set_error_from_xmlerror(state, error);
 1490|   232k|}
graphml.c:igraph_i_graphml_parser_state_set_error_from_xmlerror:
  311|   232k|) {
  312|   232k|    const size_t max_error_message_length = 4096;
  313|       |
  314|   232k|    state->successful = 0;
  315|   232k|    state->st = ERROR;
  316|       |
  317|   232k|    if (state->error_message == 0) {
  ------------------
  |  Branch (317:9): [True: 17.1k, False: 215k]
  ------------------
  318|       |        /* ownership of state->error_message passed on immediately to
  319|       |         * state so the state destructor is responsible for freeing it */
  320|  17.1k|        state->error_message = IGRAPH_CALLOC(max_error_message_length, char);
  ------------------
  |  |   33|  17.1k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  34.2k|    (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: 17.1k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|  17.1k|    }
  322|       |
  323|       |    /* we need to guard against state->error_message == 0, which may happen
  324|       |     * if the memory allocation for the error message itself failed */
  325|   232k|    if (state->error_message != 0) {
  ------------------
  |  Branch (325:9): [True: 232k, False: 0]
  ------------------
  326|   232k|        snprintf(state->error_message, max_error_message_length, "Line %d: %s",
  327|   232k|            error->line, error->message);
  328|   232k|    }
  329|   232k|}
graphml.c:igraph_i_graphml_sax_handler_get_entity:
  341|  19.5k|        const xmlChar* name) {
  342|  19.5k|    struct igraph_i_graphml_parser_state *state =
  343|  19.5k|        (struct igraph_i_graphml_parser_state *) state0;
  344|  19.5k|    xmlEntityPtr predef = xmlGetPredefinedEntity(name);
  345|  19.5k|    const char* entityName;
  346|       |
  347|  19.5k|    if (predef != NULL) {
  ------------------
  |  Branch (347:9): [True: 3.66k, False: 15.8k]
  ------------------
  348|  3.66k|        return predef;
  349|  3.66k|    }
  350|       |
  351|  15.8k|    entityName = fromXmlChar(name);
  ------------------
  |  |   47|  15.8k|#define fromXmlChar(a) ((char *)(a)) /* not the most elegant way... */
  ------------------
  352|  15.8k|    IGRAPH_WARNINGF("Unknown XML entity found: '%s'.", entityName);
  ------------------
  |  |  777|  15.8k|    do { \
  |  |  778|  15.8k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  15.8k|                        __VA_ARGS__); \
  |  |  780|  15.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 15.8k]
  |  |  ------------------
  ------------------
  353|       |
  354|       |    /* We return a blank placeholder entity for an unresolved reference.
  355|       |     * This is allocated lazily here using xmlNewEntity.
  356|       |     *
  357|       |     * Previous versions of igraph used a global xmlEntity variable.
  358|       |     * However, the layout of this struct changed in libxml2 2.11,
  359|       |     * and was also patched by several Linux distros including Ubuntu
  360|       |     * (see https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/2141260)
  361|       |     * Therefore we cannot rely on knowledge of the struct layout.
  362|       |     */
  363|  15.8k|    if (state->blank_entity == NULL) {
  ------------------
  |  Branch (363:9): [True: 1.52k, False: 14.3k]
  ------------------
  364|  1.52k|        state->blank_entity = xmlNewEntity(
  365|  1.52k|            /* doc = */ NULL,
  366|  1.52k|            /* name = */ toXmlChar(""),
  ------------------
  |  |   46|  1.52k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  1.52k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  367|  1.52k|            /* type = */ XML_EXTERNAL_GENERAL_PARSED_ENTITY,
  368|  1.52k|            /* publicID = */ NULL,
  369|  1.52k|            /* systemID = */ NULL,
  370|  1.52k|            /* content = */ toXmlChar("")
  ------------------
  |  |   46|  1.52k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  1.52k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  371|  1.52k|        );
  372|  1.52k|    }
  373|       |
  374|  15.8k|    return state->blank_entity;
  375|  19.5k|}
graphml.c:igraph_i_graphml_sax_handler_start_document:
  388|  23.6k|static void igraph_i_graphml_sax_handler_start_document(void *state0) {
  389|  23.6k|    struct igraph_i_graphml_parser_state *state =
  390|  23.6k|        (struct igraph_i_graphml_parser_state*)state0;
  391|       |
  392|  23.6k|    state->st = START;
  393|  23.6k|    state->successful = 1;
  394|  23.6k|    state->edges_directed = 0;
  395|       |    state->data_key = NULL;
  396|  23.6k|    state->unknown_depth = 0;
  397|  23.6k|    state->ignore_namespaces = 0;
  398|  23.6k|}
graphml.c:igraph_i_graphml_sax_handler_chars:
 1355|  33.2M|static void igraph_i_graphml_sax_handler_chars(void* state0, const xmlChar* ch, int len) {
 1356|  33.2M|    struct igraph_i_graphml_parser_state *state =
 1357|  33.2M|        (struct igraph_i_graphml_parser_state*)state0;
 1358|  33.2M|    igraph_error_t result = IGRAPH_SUCCESS;
 1359|       |
 1360|  33.2M|    if (!state->successful) {
  ------------------
  |  Branch (1360:9): [True: 10.6k, False: 33.1M]
  ------------------
 1361|  10.6k|        return;
 1362|  10.6k|    }
 1363|       |
 1364|  33.1M|    switch (state->st) {
 1365|  2.20k|    case INSIDE_KEY:
  ------------------
  |  Branch (1365:5): [True: 2.20k, False: 33.1M]
  ------------------
 1366|  2.20k|        break;
 1367|       |
 1368|  31.3M|    case INSIDE_DATA:
  ------------------
  |  Branch (1368:5): [True: 31.3M, False: 1.83M]
  ------------------
 1369|  31.3M|    case INSIDE_DEFAULT:
  ------------------
  |  Branch (1369:5): [True: 9.11k, False: 33.1M]
  ------------------
 1370|  31.3M|        result = igraph_i_graphml_append_to_data_char(state, ch, len);
 1371|  31.3M|        break;
 1372|       |
 1373|  1.82M|    default:
  ------------------
  |  Branch (1373:5): [True: 1.82M, False: 31.3M]
  ------------------
 1374|       |        /* just ignore it */
 1375|  1.82M|        break;
 1376|  33.1M|    }
 1377|       |
 1378|  33.1M|    if (result != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (1378:9): [True: 0, False: 33.1M]
  ------------------
 1379|      0|        RETURN_GRAPHML_PARSE_ERROR_WITH_CODE(state, "Cannot parse GraphML file.", result);
  ------------------
  |  |   56|      0|    do { \
  |  |   57|      0|        GRAPHML_PARSE_ERROR_WITH_CODE(state, msg, code); \
  |  |  ------------------
  |  |  |  |   50|      0|    do {  \
  |  |  |  |   51|      0|        if (state->successful) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (51:13): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   52|      0|            igraph_i_graphml_sax_handler_error(state, msg); \
  |  |  |  |   53|      0|        } \
  |  |  |  |   54|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (54:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|      0|        return; \
  |  |   59|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (59:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1380|      0|    }
 1381|  33.1M|}
graphml.c:igraph_i_graphml_append_to_data_char:
  791|  31.3M|) {
  792|  31.3M|    const igraph_vector_char_t data_vec =
  793|  31.3M|        igraph_vector_char_view((char *) data, len);
  794|       |
  795|  31.3M|    if (!state->successful) {
  ------------------
  |  Branch (795:9): [True: 0, False: 31.3M]
  ------------------
  796|      0|        return IGRAPH_SUCCESS;
  797|      0|    }
  798|       |
  799|  31.3M|    IGRAPH_STATIC_ASSERT(sizeof(char) == sizeof(xmlChar));
  ------------------
  |  |   68|  31.3M|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  800|  31.3M|    IGRAPH_CHECK(igraph_vector_char_append(
  ------------------
  |  |  656|  31.3M|    do { \
  |  |  657|  31.3M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  31.3M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  31.3M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.3M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  31.3M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 31.3M]
  |  |  ------------------
  ------------------
  801|  31.3M|        &state->data_char,
  802|  31.3M|        &data_vec
  803|  31.3M|    ));
  804|       |
  805|  31.3M|    return IGRAPH_SUCCESS;
  806|  31.3M|}
graphml.c:igraph_i_graphml_sax_handler_error:
  331|    605|static void igraph_i_graphml_sax_handler_error(void *state0, const char* msg, ...) {
  332|    605|    struct igraph_i_graphml_parser_state *state =
  333|    605|        (struct igraph_i_graphml_parser_state*)state0;
  334|    605|    va_list args;
  335|    605|    va_start(args, msg);
  336|    605|    igraph_i_graphml_parser_state_set_error_from_varargs(state, msg, args);
  337|       |    va_end(args);
  338|    605|}
graphml.c:igraph_i_graphml_sax_handler_start_element_ns:
 1255|  4.97M|        int nb_attributes, int nb_defaulted, const xmlChar** attributes) {
 1256|  4.97M|    struct igraph_i_graphml_parser_state *state =
 1257|  4.97M|        (struct igraph_i_graphml_parser_state*)state0;
 1258|  4.97M|    igraph_error_t result;
 1259|       |
 1260|  4.97M|    if (!state->successful) {
  ------------------
  |  Branch (1260:9): [True: 54.5k, False: 4.92M]
  ------------------
 1261|  54.5k|        return;
 1262|  54.5k|    }
 1263|       |
 1264|  4.92M|    result = igraph_i_graphml_sax_handler_start_element_ns_inner(
 1265|  4.92M|        state, localname, prefix, uri, nb_namespaces, namespaces,
 1266|  4.92M|        nb_attributes, nb_defaulted, attributes
 1267|  4.92M|    );
 1268|       |
 1269|  4.92M|    if (result != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (1269:9): [True: 516, False: 4.92M]
  ------------------
 1270|    516|        RETURN_GRAPHML_PARSE_ERROR_WITH_CODE(state, "Cannot parse GraphML file.", result);
  ------------------
  |  |   56|    516|    do { \
  |  |   57|    516|        GRAPHML_PARSE_ERROR_WITH_CODE(state, msg, code); \
  |  |  ------------------
  |  |  |  |   50|    516|    do {  \
  |  |  |  |   51|    516|        if (state->successful) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (51:13): [True: 516, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   52|    516|            igraph_i_graphml_sax_handler_error(state, msg); \
  |  |  |  |   53|    516|        } \
  |  |  |  |   54|    516|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (54:14): [Folded, False: 516]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|    516|        return; \
  |  |   59|    516|    } while (0)
  |  |  ------------------
  |  |  |  Branch (59:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1271|    516|    }
 1272|  4.92M|}
graphml.c:igraph_i_graphml_sax_handler_start_element_ns_inner:
  999|  4.92M|        int nb_attributes, int nb_defaulted, const xmlChar** attributes) {
 1000|  4.92M|    xmlChar** it;
 1001|  4.92M|    xmlChar* attr_value = 0;
 1002|  4.92M|    igraph_int_t id1, id2;
 1003|  4.92M|    int i;
 1004|  4.92M|    igraph_bool_t tag_is_unknown = false;
 1005|       |
 1006|  4.92M|    IGRAPH_UNUSED(prefix);
  ------------------
  |  |   30|  4.92M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1007|  4.92M|    IGRAPH_UNUSED(nb_namespaces);
  ------------------
  |  |   30|  4.92M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1008|  4.92M|    IGRAPH_UNUSED(namespaces);
  ------------------
  |  |   30|  4.92M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1009|  4.92M|    IGRAPH_UNUSED(nb_defaulted);
  ------------------
  |  |   30|  4.92M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1010|       |
 1011|  4.92M|    if (uri) {
  ------------------
  |  Branch (1011:9): [True: 950k, False: 3.97M]
  ------------------
 1012|   950k|        if (!xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), uri)) {
  ------------------
  |  |   46|   950k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|   950k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1012:13): [True: 121k, False: 829k]
  ------------------
 1013|       |            /* Tag is in a different namespace, so treat it as an unknown start
 1014|       |             * tag irrespectively of our state */
 1015|   121k|            tag_is_unknown = 1;
 1016|   121k|        }
 1017|  3.97M|    } else {
 1018|       |        /* No namespace URI. If we are in lenient mode, accept it and proceed
 1019|       |         * as if we are in the GraphML namespace to handle lots of naive
 1020|       |         * non-namespace-aware GraphML files floating out there. If we are not
 1021|       |         * in lenient mode _but_ we are in the START state, accept it as well
 1022|       |         * and see whether the root tag is <graphml> (in which case we will
 1023|       |         * enter lenient mode). Otherwise, reject the tag */
 1024|  3.97M|        if (!state->ignore_namespaces && state->st != START) {
  ------------------
  |  Branch (1024:13): [True: 3.58M, False: 391k]
  |  Branch (1024:42): [True: 3.57M, False: 7.21k]
  ------------------
 1025|  3.57M|            tag_is_unknown = 1;
 1026|  3.57M|        }
 1027|  3.97M|    }
 1028|       |
 1029|  4.92M|    if (tag_is_unknown) {
  ------------------
  |  Branch (1029:9): [True: 3.69M, False: 1.22M]
  ------------------
 1030|  3.69M|        IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|  3.69M|    do { \
  |  |  657|  3.69M|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.69M|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.69M|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.69M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.69M|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.69M]
  |  |  ------------------
  ------------------
 1031|  3.69M|        goto exit;
 1032|  3.69M|    }
 1033|       |
 1034|  1.22M|    switch (state->st) {
 1035|  10.7k|    case START:
  ------------------
  |  Branch (1035:5): [True: 10.7k, False: 1.21M]
  ------------------
 1036|       |        /* If we are in the START state and received a graphml tag,
 1037|       |         * change to INSIDE_GRAPHML state. Otherwise, change to UNKNOWN. */
 1038|  10.7k|        if (xmlStrEqual(localname, toXmlChar("graphml"))) {
  ------------------
  |  |   46|  10.7k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  10.7k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1038:13): [True: 8.12k, False: 2.66k]
  ------------------
 1039|  8.12k|            if (uri == 0) {
  ------------------
  |  Branch (1039:17): [True: 4.55k, False: 3.56k]
  ------------------
 1040|  4.55k|                state->ignore_namespaces = 1;
 1041|  4.55k|            }
 1042|  8.12k|            state->st = INSIDE_GRAPHML;
 1043|  8.12k|        } else {
 1044|  2.66k|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|  2.66k|    do { \
  |  |  657|  2.66k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.66k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.66k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.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|  2.66k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.66k]
  |  |  ------------------
  ------------------
 1045|  2.66k|        }
 1046|  10.7k|        break;
 1047|       |
 1048|  27.5k|    case INSIDE_GRAPHML:
  ------------------
  |  Branch (1048:5): [True: 27.5k, False: 1.20M]
  ------------------
 1049|       |        /* If we are in the INSIDE_GRAPHML state and received a graph tag,
 1050|       |         * change to INSIDE_GRAPH state if the state->index counter reached
 1051|       |         * zero (this is to handle multiple graphs in the same file).
 1052|       |         * Otherwise, change to UNKNOWN. */
 1053|  27.5k|        if (xmlStrEqual(localname, toXmlChar("graph"))) {
  ------------------
  |  |   46|  27.5k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  27.5k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1053:13): [True: 7.95k, False: 19.5k]
  ------------------
 1054|  7.95k|            if (state->index == 0) {
  ------------------
  |  Branch (1054:17): [True: 7.17k, False: 777]
  ------------------
 1055|  7.17k|                state->st = INSIDE_GRAPH;
 1056|  15.3k|                for (i = 0, it = (xmlChar**)attributes; i < nb_attributes; i++, it += 5) {
  ------------------
  |  Branch (1056:57): [True: 8.16k, False: 7.17k]
  ------------------
 1057|  8.16k|                    if (XML_ATTR_URI(it) != 0 &&
  ------------------
  |  |  508|  8.16k|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1057:25): [True: 36, False: 8.13k]
  ------------------
 1058|     36|                        !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |   46|     36|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|     36|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                                      !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |  508|     36|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1058:25): [True: 18, False: 18]
  ------------------
 1059|       |                        /* Attribute is from a different namespace, so skip it */
 1060|     18|                        continue;
 1061|     18|                    }
 1062|  8.15k|                    if (xmlStrEqual(*it, toXmlChar("edgedefault"))) {
  ------------------
  |  |   46|  8.15k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  8.15k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1062:25): [True: 3.55k, False: 4.60k]
  ------------------
 1063|  3.55k|                        if (xmlAttrValueEqual(it, "directed")) {
  ------------------
  |  Branch (1063:29): [True: 285, False: 3.26k]
  ------------------
 1064|    285|                            state->edges_directed = 1;
 1065|  3.26k|                        } else if (xmlAttrValueEqual(it, "undirected")) {
  ------------------
  |  Branch (1065:36): [True: 3.17k, False: 94]
  ------------------
 1066|  3.17k|                            state->edges_directed = 0;
 1067|  3.17k|                        }
 1068|  3.55k|                    }
 1069|  8.15k|                }
 1070|  7.17k|            }
 1071|  7.95k|            state->index--;
 1072|  19.5k|        } else if (xmlStrEqual(localname, toXmlChar("key"))) {
  ------------------
  |  |   46|  19.5k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  19.5k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1072:20): [True: 18.8k, False: 717]
  ------------------
 1073|  18.8k|            IGRAPH_CHECK(
  ------------------
  |  |  656|  18.8k|    do { \
  |  |  657|  18.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  18.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  18.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 430, False: 18.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|    430|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|    430|    do { \
  |  |  |  |  427|    430|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|    430|        return igraph_errno ; \
  |  |  |  |  429|    430|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|    430|        } \
  |  |  661|  18.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 18.4k]
  |  |  ------------------
  ------------------
 1074|  18.8k|                igraph_i_graphml_add_attribute_key(
 1075|  18.8k|                    &state->current_attr_record,
 1076|  18.8k|                    attributes, nb_attributes, state
 1077|  18.8k|                )
 1078|  18.8k|            );
 1079|       |            /* NULL is okay here for state->current_attr_record -- we should have
 1080|       |             * triggered an error in the parser already if we returned NULL, and
 1081|       |             * the rest of the code is prepared to handle NULLs */
 1082|  18.4k|            state->st = INSIDE_KEY;
 1083|  18.4k|        } else {
 1084|    717|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    717|    do { \
  |  |  657|    717|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    717|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    717|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 717]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    717|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 717]
  |  |  ------------------
  ------------------
 1085|    717|        }
 1086|  27.1k|        break;
 1087|       |
 1088|  27.1k|    case INSIDE_KEY:
  ------------------
  |  Branch (1088:5): [True: 4.28k, False: 1.22M]
  ------------------
 1089|       |        /* If we are in the INSIDE_KEY state and we are not skipping the current
 1090|       |         * attribute, check for default tag */
 1091|  4.28k|        if (state->current_attr_record != NULL && xmlStrEqual(localname, toXmlChar("default"))) {
  ------------------
  |  |   46|  3.95k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  3.95k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1091:13): [True: 3.95k, False: 334]
  |  Branch (1091:51): [True: 3.72k, False: 229]
  ------------------
 1092|  3.72k|            state->st = INSIDE_DEFAULT;
 1093|  3.72k|        } else {
 1094|    563|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    563|    do { \
  |  |  657|    563|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    563|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    563|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 563]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    563|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 563]
  |  |  ------------------
  ------------------
 1095|    563|        }
 1096|  4.28k|        break;
 1097|       |
 1098|  4.28k|    case INSIDE_DEFAULT:
  ------------------
  |  Branch (1098:5): [True: 263, False: 1.22M]
  ------------------
 1099|       |        /* If we are in the INSIDE_DEFAULT state, every further tag will be unknown */
 1100|    263|        IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    263|    do { \
  |  |  657|    263|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    263|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    263|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 263]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    263|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 263]
  |  |  ------------------
  ------------------
 1101|    263|        break;
 1102|       |
 1103|   745k|    case INSIDE_GRAPH:
  ------------------
  |  Branch (1103:5): [True: 745k, False: 482k]
  ------------------
 1104|       |        /* If we are in the INSIDE_GRAPH state, check for node and edge tags */
 1105|   745k|        if (xmlStrEqual(localname, toXmlChar("edge"))) {
  ------------------
  |  |   46|   745k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|   745k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1105:13): [True: 703k, False: 42.6k]
  ------------------
 1106|   703k|            id1 = -1; id2 = -1;
 1107|  2.20M|            for (i = 0, it = (xmlChar**)attributes; i < nb_attributes; i++, it += 5) {
  ------------------
  |  Branch (1107:53): [True: 1.49M, False: 703k]
  ------------------
 1108|  1.49M|                if (XML_ATTR_URI(it) != 0 &&
  ------------------
  |  |  508|  1.49M|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1108:21): [True: 85, False: 1.49M]
  ------------------
 1109|     85|                    !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |   46|     85|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|     85|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                                  !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |  508|     85|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1109:21): [True: 67, False: 18]
  ------------------
 1110|       |                    /* Attribute is from a different namespace, so skip it */
 1111|     67|                    continue;
 1112|     67|                }
 1113|  1.49M|                if (xmlStrEqual(*it, toXmlChar("source"))) {
  ------------------
  |  |   46|  1.49M|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  1.49M|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1113:21): [True: 703k, False: 795k]
  ------------------
 1114|   703k|                    attr_value = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|   703k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
 1115|   703k|                    if (attr_value == 0) {
  ------------------
  |  Branch (1115:25): [True: 0, False: 703k]
  ------------------
 1116|      0|                        IGRAPH_ERROR("Cannot copy value of edge source attribute.", IGRAPH_ENOMEM);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1117|      0|                    }
 1118|   703k|                    IGRAPH_FINALLY(xmlFree, attr_value);
  ------------------
  |  |  603|   703k|    do { \
  |  |  604|   703k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   703k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   703k|         * incorrect destructor function with the pointer */ \
  |  |  607|   703k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 703k]
  |  |  ------------------
  |  |  608|   703k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1119|       |
 1120|   703k|                    IGRAPH_CHECK(igraph_trie_get(&state->node_trie, fromXmlChar(attr_value), &id1));
  ------------------
  |  |  656|   703k|    do { \
  |  |  657|   703k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   703k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   703k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 2, False: 703k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      2|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      2|    do { \
  |  |  |  |  427|      2|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      2|        return igraph_errno ; \
  |  |  |  |  429|      2|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      2|        } \
  |  |  661|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1121|       |
 1122|   703k|                    xmlFree(attr_value); attr_value = NULL;
 1123|   703k|                    IGRAPH_FINALLY_CLEAN(1);
 1124|   795k|                } else if (xmlStrEqual(*it, toXmlChar("target"))) {
  ------------------
  |  |   46|   795k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|   795k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1124:28): [True: 703k, False: 92.8k]
  ------------------
 1125|   703k|                    attr_value = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|   703k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
 1126|   703k|                    if (attr_value == 0) {
  ------------------
  |  Branch (1126:25): [True: 0, False: 703k]
  ------------------
 1127|      0|                        IGRAPH_ERROR("Cannot copy value of edge target attribute.", IGRAPH_ENOMEM);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1128|      0|                    }
 1129|   703k|                    IGRAPH_FINALLY(xmlFree, attr_value);
  ------------------
  |  |  603|   703k|    do { \
  |  |  604|   703k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|   703k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|   703k|         * incorrect destructor function with the pointer */ \
  |  |  607|   703k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 703k]
  |  |  ------------------
  |  |  608|   703k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1130|       |
 1131|   703k|                    IGRAPH_CHECK(igraph_trie_get(&state->node_trie, fromXmlChar(attr_value), &id2));
  ------------------
  |  |  656|   703k|    do { \
  |  |  657|   703k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   703k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   703k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 1, False: 703k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      1|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      1|    do { \
  |  |  |  |  427|      1|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      1|        return igraph_errno ; \
  |  |  |  |  429|      1|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      1|        } \
  |  |  661|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1132|       |
 1133|   703k|                    xmlFree(attr_value); attr_value = NULL;
 1134|   703k|                    IGRAPH_FINALLY_CLEAN(1);
 1135|   703k|                } else if (xmlStrEqual(*it, toXmlChar("id"))) {
  ------------------
  |  |   46|  92.8k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  92.8k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1135:28): [True: 85.7k, False: 7.08k]
  ------------------
 1136|  85.7k|                    igraph_int_t edges = igraph_vector_int_size(&state->edgelist) / 2 + 1;
 1137|  85.7k|                    igraph_int_t origsize = igraph_strvector_size(&state->edgeids);
 1138|       |
 1139|  85.7k|                    attr_value = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|  85.7k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
 1140|  85.7k|                    if (attr_value == 0) {
  ------------------
  |  Branch (1140:25): [True: 0, False: 85.7k]
  ------------------
 1141|      0|                        IGRAPH_ERROR("Cannot copy value of edge ID attribute.", IGRAPH_ENOMEM);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1142|      0|                    }
 1143|  85.7k|                    IGRAPH_FINALLY(xmlFree, attr_value);
  ------------------
  |  |  603|  85.7k|    do { \
  |  |  604|  85.7k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  85.7k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  85.7k|         * incorrect destructor function with the pointer */ \
  |  |  607|  85.7k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 85.7k]
  |  |  ------------------
  |  |  608|  85.7k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  85.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 85.7k]
  |  |  ------------------
  ------------------
 1144|       |
 1145|  85.7k|                    if (origsize >= edges) {
  ------------------
  |  Branch (1145:25): [True: 0, False: 85.7k]
  ------------------
 1146|       |                        /* This edge already has an ID, e.g. both 'id' and a
 1147|       |                         * namespaced 'id' were given. The last one wins. */
 1148|      0|                        IGRAPH_CHECK(igraph_strvector_set(&state->edgeids, edges - 1, fromXmlChar(attr_value)));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1149|  85.7k|                    } else {
 1150|       |                        /* Push back to grow geometrically. */
 1151|   122k|                        for (; origsize < edges - 1; origsize++) {
  ------------------
  |  Branch (1151:32): [True: 36.5k, False: 85.7k]
  ------------------
 1152|  36.5k|                            IGRAPH_CHECK(igraph_strvector_push_back(&state->edgeids, ""));
  ------------------
  |  |  656|  36.5k|    do { \
  |  |  657|  36.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  36.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  36.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 36.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  36.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 36.5k]
  |  |  ------------------
  ------------------
 1153|  36.5k|                        }
 1154|  85.7k|                        IGRAPH_CHECK(igraph_strvector_push_back(&state->edgeids, fromXmlChar(attr_value)));
  ------------------
  |  |  656|  85.7k|    do { \
  |  |  657|  85.7k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  85.7k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  85.7k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 85.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  85.7k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 85.7k]
  |  |  ------------------
  ------------------
 1155|  85.7k|                    }
 1156|       |
 1157|  85.7k|                    xmlFree(attr_value); attr_value = NULL;
 1158|  85.7k|                    IGRAPH_FINALLY_CLEAN(1);
 1159|  85.7k|                }
 1160|  1.49M|            }
 1161|   703k|            if (id1 >= 0 && id2 >= 0) {
  ------------------
  |  Branch (1161:17): [True: 703k, False: 49]
  |  Branch (1161:29): [True: 703k, False: 11]
  ------------------
 1162|   703k|                IGRAPH_CHECK(igraph_vector_int_push_back(&state->edgelist, id1));
  ------------------
  |  |  656|   703k|    do { \
  |  |  657|   703k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   703k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   703k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 703k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1163|   703k|                IGRAPH_CHECK(igraph_vector_int_push_back(&state->edgelist, id2));
  ------------------
  |  |  656|   703k|    do { \
  |  |  657|   703k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   703k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   703k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 703k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   703k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 703k]
  |  |  ------------------
  ------------------
 1164|   703k|            } else {
 1165|     60|                IGRAPH_ERROR("Edge with missing source or target encountered.", IGRAPH_PARSEERROR);
  ------------------
  |  |  426|     60|    do { \
  |  |  427|     60|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     60|        return igraph_errno ; \
  |  |  429|     60|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1166|     60|            }
 1167|   703k|            state->st = INSIDE_EDGE;
 1168|   703k|        } else if (xmlStrEqual(localname, toXmlChar("node"))) {
  ------------------
  |  |   46|  42.6k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  42.6k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1168:20): [True: 35.4k, False: 7.22k]
  ------------------
 1169|  35.4k|            id1 = -1;
 1170|  36.1k|            for (i = 0, it = (xmlChar**)attributes; i < nb_attributes; i++, it += 5) {
  ------------------
  |  Branch (1170:53): [True: 36.1k, False: 19]
  ------------------
 1171|  36.1k|                if (XML_ATTR_URI(it) != 0 &&
  ------------------
  |  |  508|  36.1k|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1171:21): [True: 212, False: 35.9k]
  ------------------
 1172|    212|                    !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |   46|    212|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|    212|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                                  !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |  508|    212|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (1172:21): [True: 194, False: 18]
  ------------------
 1173|       |                    /* Attribute is from a different namespace, so skip it */
 1174|    194|                    continue;
 1175|    194|                }
 1176|  35.9k|                if (xmlStrEqual(XML_ATTR_LOCALNAME(it), toXmlChar("id"))) {
  ------------------
  |  |  506|  35.9k|#define XML_ATTR_LOCALNAME(it) it[0]
  ------------------
                              if (xmlStrEqual(XML_ATTR_LOCALNAME(it), toXmlChar("id"))) {
  ------------------
  |  |   46|  35.9k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  35.9k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1176:21): [True: 35.4k, False: 512]
  ------------------
 1177|  35.4k|                    attr_value = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|  35.4k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
 1178|  35.4k|                    if (attr_value == 0) {
  ------------------
  |  Branch (1178:25): [True: 0, False: 35.4k]
  ------------------
 1179|      0|                        IGRAPH_ERROR("Cannot copy value of node ID attribute.", IGRAPH_ENOMEM);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1180|      0|                    }
 1181|  35.4k|                    IGRAPH_FINALLY(xmlFree, attr_value);
  ------------------
  |  |  603|  35.4k|    do { \
  |  |  604|  35.4k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  35.4k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  35.4k|         * incorrect destructor function with the pointer */ \
  |  |  607|  35.4k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 35.4k]
  |  |  ------------------
  |  |  608|  35.4k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  35.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 35.4k]
  |  |  ------------------
  ------------------
 1182|       |
 1183|  35.4k|                    IGRAPH_CHECK(igraph_trie_get(&state->node_trie, fromXmlChar(attr_value), &id1));
  ------------------
  |  |  656|  35.4k|    do { \
  |  |  657|  35.4k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  35.4k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  35.4k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 4, False: 35.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      4|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      4|    do { \
  |  |  |  |  427|      4|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      4|        return igraph_errno ; \
  |  |  |  |  429|      4|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      4|        } \
  |  |  661|  35.4k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 35.4k]
  |  |  ------------------
  ------------------
 1184|       |
 1185|  35.4k|                    xmlFree(attr_value); attr_value = NULL;
 1186|  35.4k|                    IGRAPH_FINALLY_CLEAN(1);
 1187|  35.4k|                    break;
 1188|  35.4k|                }
 1189|  35.9k|            }
 1190|  35.4k|            if (id1 >= 0) {
  ------------------
  |  Branch (1190:17): [True: 35.4k, False: 19]
  ------------------
 1191|  35.4k|                state->act_node = id1;
 1192|  35.4k|            } else {
 1193|     19|                state->act_node = -1;
 1194|     19|                IGRAPH_ERROR("Node with missing ID encountered.", IGRAPH_PARSEERROR);
  ------------------
  |  |  426|     19|    do { \
  |  |  427|     19|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     19|        return igraph_errno ; \
  |  |  429|     19|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1195|     19|            }
 1196|  35.4k|            state->st = INSIDE_NODE;
 1197|  35.4k|        } else if (xmlStrEqual(localname, toXmlChar("data"))) {
  ------------------
  |  |   46|  7.22k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  7.22k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1197:20): [True: 3.47k, False: 3.74k]
  ------------------
 1198|  3.47k|            IGRAPH_CHECK(igraph_i_graphml_attribute_data_setup(
  ------------------
  |  |  656|  3.47k|    do { \
  |  |  657|  3.47k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.47k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.47k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.47k]
  |  |  ------------------
  ------------------
 1199|  3.47k|                state, attributes, nb_attributes, IGRAPH_ATTRIBUTE_GRAPH
 1200|  3.47k|            ));
 1201|  3.47k|            IGRAPH_CHECK(igraph_vector_int_push_back(&state->prev_state_stack, state->st));
  ------------------
  |  |  656|  3.47k|    do { \
  |  |  657|  3.47k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.47k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.47k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.47k]
  |  |  ------------------
  ------------------
 1202|  3.47k|            state->st = INSIDE_DATA;
 1203|  3.74k|        } else {
 1204|  3.74k|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|  3.74k|    do { \
  |  |  657|  3.74k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.74k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.74k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.74k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.74k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.74k]
  |  |  ------------------
  ------------------
 1205|  3.74k|        }
 1206|   745k|        break;
 1207|       |
 1208|   745k|    case INSIDE_NODE:
  ------------------
  |  Branch (1208:5): [True: 58.4k, False: 1.17M]
  ------------------
 1209|  58.4k|        if (xmlStrEqual(localname, toXmlChar("data"))) {
  ------------------
  |  |   46|  58.4k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  58.4k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1209:13): [True: 58.1k, False: 212]
  ------------------
 1210|  58.1k|            IGRAPH_CHECK(igraph_i_graphml_attribute_data_setup(
  ------------------
  |  |  656|  58.1k|    do { \
  |  |  657|  58.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  58.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  58.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 58.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  58.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 58.1k]
  |  |  ------------------
  ------------------
 1211|  58.1k|                state, attributes, nb_attributes, IGRAPH_ATTRIBUTE_VERTEX
 1212|  58.1k|            ));
 1213|  58.1k|            IGRAPH_CHECK(igraph_vector_int_push_back(&state->prev_state_stack, state->st));
  ------------------
  |  |  656|  58.1k|    do { \
  |  |  657|  58.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  58.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  58.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 58.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  58.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 58.1k]
  |  |  ------------------
  ------------------
 1214|  58.1k|            state->st = INSIDE_DATA;
 1215|  58.1k|        } else {
 1216|    212|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    212|    do { \
  |  |  657|    212|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    212|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    212|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 212]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    212|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 212]
  |  |  ------------------
  ------------------
 1217|    212|        }
 1218|  58.4k|        break;
 1219|       |
 1220|   282k|    case INSIDE_EDGE:
  ------------------
  |  Branch (1220:5): [True: 282k, False: 945k]
  ------------------
 1221|   282k|        if (xmlStrEqual(localname, toXmlChar("data"))) {
  ------------------
  |  |   46|   282k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|   282k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (1221:13): [True: 282k, False: 428]
  ------------------
 1222|   282k|            IGRAPH_CHECK(igraph_i_graphml_attribute_data_setup(
  ------------------
  |  |  656|   282k|    do { \
  |  |  657|   282k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   282k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   282k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 282k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   282k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 282k]
  |  |  ------------------
  ------------------
 1223|   282k|                state, attributes, nb_attributes, IGRAPH_ATTRIBUTE_EDGE
 1224|   282k|            ));
 1225|   282k|            IGRAPH_CHECK(igraph_vector_int_push_back(&state->prev_state_stack, state->st));
  ------------------
  |  |  656|   282k|    do { \
  |  |  657|   282k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   282k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   282k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 282k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   282k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 282k]
  |  |  ------------------
  ------------------
 1226|   282k|            state->st = INSIDE_DATA;
 1227|   282k|        } else {
 1228|    428|            IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    428|    do { \
  |  |  657|    428|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    428|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    428|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 428]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    428|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 428]
  |  |  ------------------
  ------------------
 1229|    428|        }
 1230|   282k|        break;
 1231|       |
 1232|   282k|    case INSIDE_DATA:
  ------------------
  |  Branch (1232:5): [True: 216, False: 1.22M]
  ------------------
 1233|       |        /* We do not expect any new tags within a <data> tag */
 1234|    216|        IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|    216|    do { \
  |  |  657|    216|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    216|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    216|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 216]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    216|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 216]
  |  |  ------------------
  ------------------
 1235|    216|        break;
 1236|       |
 1237|  97.5k|    case UNKNOWN:
  ------------------
  |  Branch (1237:5): [True: 97.5k, False: 1.13M]
  ------------------
 1238|  97.5k|        IGRAPH_CHECK(igraph_i_graphml_handle_unknown_start_tag(state));
  ------------------
  |  |  656|  97.5k|    do { \
  |  |  657|  97.5k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  97.5k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  97.5k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 97.5k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  97.5k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 97.5k]
  |  |  ------------------
  ------------------
 1239|  97.5k|        break;
 1240|       |
 1241|  97.5k|    case FINISH:
  ------------------
  |  Branch (1241:5): [True: 793, False: 1.22M]
  ------------------
 1242|    793|        break;
 1243|       |
 1244|      0|    default:
  ------------------
  |  Branch (1244:5): [True: 0, False: 1.22M]
  ------------------
 1245|      0|        IGRAPH_FATALF("Unexpected GraphML reader state %d.", (int) state->st);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1246|  1.22M|    }
 1247|       |
 1248|  4.92M|exit:
 1249|  4.92M|    return IGRAPH_SUCCESS;
 1250|  1.22M|}
graphml.c:igraph_i_graphml_handle_unknown_start_tag:
  377|  3.80M|static igraph_error_t igraph_i_graphml_handle_unknown_start_tag(struct igraph_i_graphml_parser_state *state) {
  378|  3.80M|    if (state->st != UNKNOWN) {
  ------------------
  |  Branch (378:9): [True: 9.10k, False: 3.79M]
  ------------------
  379|  9.10k|        IGRAPH_CHECK(igraph_vector_int_push_back(&state->prev_state_stack, state->st));
  ------------------
  |  |  656|  9.10k|    do { \
  |  |  657|  9.10k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  9.10k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  9.10k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9.10k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  9.10k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9.10k]
  |  |  ------------------
  ------------------
  380|  9.10k|        state->st = UNKNOWN;
  381|  9.10k|        state->unknown_depth = 1;
  382|  3.79M|    } else {
  383|  3.79M|        state->unknown_depth++;
  384|  3.79M|    }
  385|  3.80M|    return IGRAPH_SUCCESS;
  386|  3.80M|}
graphml.c:xmlAttrValueEqual:
  543|  86.4k|static igraph_bool_t xmlAttrValueEqual(xmlChar** attr, const char* expected) {
  544|  86.4k|    size_t expected_length = strlen(expected);
  545|  86.4k|    return (
  546|  86.4k|        expected_length == XML_ATTR_VALUE_LENGTH(attr) &&
  ------------------
  |  |  511|   172k|#define XML_ATTR_VALUE_LENGTH(it) (size_t)(it[4] - it[3])
  ------------------
  |  Branch (546:9): [True: 43.5k, False: 42.9k]
  ------------------
  547|  43.5k|        !xmlStrncmp(toXmlChar(expected), XML_ATTR_VALUE(attr))
  ------------------
  |  |   46|  43.5k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  43.5k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                      !xmlStrncmp(toXmlChar(expected), XML_ATTR_VALUE(attr))
  ------------------
  |  |  512|  43.5k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
  |  Branch (547:9): [True: 34.9k, False: 8.57k]
  ------------------
  548|  86.4k|    );
  549|  86.4k|}
graphml.c:igraph_i_graphml_add_attribute_key:
  555|  18.8k|) {
  556|       |
  557|       |    /* This function must return in three possible ways:
  558|       |     *
  559|       |     * - a proper newly allocated attribute record is returned in 'record' and
  560|       |     *   the function returns IGRAPH_SUCCESS; the parser will process the attribute
  561|       |     * - NULL is returned in 'record' and the function returns an igraph error
  562|       |     *   code; the parser will handle the error
  563|       |     * - NULL is returned in 'record', but the function itself returns
  564|       |     *   IGRAPH_SUCCESS; the parser will skip the attribute
  565|       |     *
  566|       |     * The caller should be prepared to handle all three cases.
  567|       |     */
  568|       |
  569|  18.8k|    xmlChar **it;
  570|  18.8k|    xmlChar *localname;
  571|  18.8k|    igraph_trie_t *trie = NULL;
  572|  18.8k|    igraph_vector_ptr_t *ptrvector = NULL;
  573|  18.8k|    igraph_int_t i, n;
  574|  18.8k|    igraph_int_t id;
  575|  18.8k|    igraph_i_graphml_attribute_record_t *rec = NULL;
  576|  18.8k|    char *attr_name;
  577|  18.8k|    igraph_attribute_type_t igraph_attr_type;
  578|  18.8k|    igraph_bool_t skip = false;
  579|       |
  580|  18.8k|    attr_name = NULL;
  581|  18.8k|    IGRAPH_FINALLY(safely_free_optional_string, &attr_name);
  ------------------
  |  |  603|  18.8k|    do { \
  |  |  604|  18.8k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  18.8k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  18.8k|         * incorrect destructor function with the pointer */ \
  |  |  607|  18.8k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 18.8k]
  |  |  ------------------
  |  |  608|  18.8k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  18.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 18.8k]
  |  |  ------------------
  ------------------
  582|       |
  583|  18.8k|    if (!state->successful) {
  ------------------
  |  Branch (583:9): [True: 0, False: 18.8k]
  ------------------
  584|       |        /* Parser is already in an error state */
  585|      0|        goto exit;
  586|      0|    }
  587|       |
  588|  18.8k|    rec = IGRAPH_CALLOC(1, igraph_i_graphml_attribute_record_t);
  ------------------
  |  |   33|  18.8k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  37.7k|    (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: 18.8k, Folded]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  589|  18.8k|    IGRAPH_CHECK_OOM(rec, "Insufficient memory to allocate attribute record.");
  ------------------
  |  |  709|  18.8k|    do { \
  |  |  710|  18.8k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  18.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 18.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  18.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 18.8k]
  |  |  ------------------
  ------------------
  590|  18.8k|    IGRAPH_FINALLY(igraph_free, rec);
  ------------------
  |  |  603|  18.8k|    do { \
  |  |  604|  18.8k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  18.8k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  18.8k|         * incorrect destructor function with the pointer */ \
  |  |  607|  18.8k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 18.8k]
  |  |  ------------------
  |  |  608|  18.8k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  18.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 18.8k]
  |  |  ------------------
  ------------------
  591|  18.8k|    IGRAPH_FINALLY(igraph_i_graphml_attribute_record_destroy, rec);
  ------------------
  |  |  603|  18.8k|    do { \
  |  |  604|  18.8k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  18.8k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  18.8k|         * incorrect destructor function with the pointer */ \
  |  |  607|  18.8k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 18.8k]
  |  |  ------------------
  |  |  608|  18.8k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  18.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 18.8k]
  |  |  ------------------
  ------------------
  592|  18.8k|    memset(rec, 0, sizeof(igraph_i_graphml_attribute_record_t));
  593|       |
  594|  18.8k|    igraph_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  595|       |
  596|  83.1k|    for (i = 0, it = (xmlChar**)attrs; i < nb_attrs; i++, it += 5) {
  ------------------
  |  Branch (596:40): [True: 64.5k, False: 18.5k]
  ------------------
  597|  64.5k|        if (XML_ATTR_URI(it) != 0 &&
  ------------------
  |  |  508|  64.5k|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (597:13): [True: 897, False: 63.6k]
  ------------------
  598|    897|            !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |   46|    897|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|    897|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                          !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |  508|    897|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (598:13): [True: 701, False: 196]
  ------------------
  599|    701|            continue;
  600|    701|        }
  601|       |
  602|  63.8k|        localname = XML_ATTR_LOCALNAME(it);
  ------------------
  |  |  506|  63.8k|#define XML_ATTR_LOCALNAME(it) it[0]
  ------------------
  603|       |
  604|  63.8k|        if (xmlStrEqual(localname, toXmlChar("id"))) {
  ------------------
  |  |   46|  63.8k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  63.8k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (604:13): [True: 18.6k, False: 45.2k]
  ------------------
  605|  18.6k|            safely_free_optional_string(&rec->id);
  606|  18.6k|            IGRAPH_CHECK(safely_convert_xml_attribute_to_string(it, &rec->id));
  ------------------
  |  |  656|  18.6k|    do { \
  |  |  657|  18.6k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  18.6k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  18.6k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 18.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|  18.6k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 18.6k]
  |  |  ------------------
  ------------------
  607|  45.2k|        } else if (xmlStrEqual(localname, toXmlChar("attr.name"))) {
  ------------------
  |  |   46|  45.2k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  45.2k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (607:20): [True: 10.2k, False: 34.9k]
  ------------------
  608|  10.2k|            safely_free_optional_string(&attr_name);
  609|  10.2k|            IGRAPH_CHECK(safely_convert_xml_attribute_to_string(it, &attr_name));
  ------------------
  |  |  656|  10.2k|    do { \
  |  |  657|  10.2k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  10.2k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  10.2k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 10.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|  10.2k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 10.2k]
  |  |  ------------------
  ------------------
  610|  34.9k|        } else if (xmlStrEqual(localname, toXmlChar("attr.type"))) {
  ------------------
  |  |   46|  34.9k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  34.9k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (610:20): [True: 14.7k, False: 20.2k]
  ------------------
  611|  14.7k|            if (xmlAttrValueEqual(it, "boolean")) {
  ------------------
  |  Branch (611:17): [True: 3.00k, False: 11.7k]
  ------------------
  612|  3.00k|                igraph_attr_type = IGRAPH_ATTRIBUTE_BOOLEAN;
  613|  3.00k|                rec->type = I_GRAPHML_BOOLEAN;
  614|  11.7k|            } else if (xmlAttrValueEqual(it, "string")) {
  ------------------
  |  Branch (614:24): [True: 9.15k, False: 2.61k]
  ------------------
  615|  9.15k|                igraph_attr_type = IGRAPH_ATTRIBUTE_STRING;
  616|  9.15k|                rec->type = I_GRAPHML_STRING;
  617|  9.15k|            } else if (xmlAttrValueEqual(it, "float")) {
  ------------------
  |  Branch (617:24): [True: 255, False: 2.35k]
  ------------------
  618|    255|                igraph_attr_type = IGRAPH_ATTRIBUTE_NUMERIC;
  619|    255|                rec->type = I_GRAPHML_FLOAT;
  620|  2.35k|            } else if (xmlAttrValueEqual(it, "double")) {
  ------------------
  |  Branch (620:24): [True: 1.92k, False: 436]
  ------------------
  621|  1.92k|                igraph_attr_type = IGRAPH_ATTRIBUTE_NUMERIC;
  622|  1.92k|                rec->type = I_GRAPHML_DOUBLE;
  623|  1.92k|            } else if (xmlAttrValueEqual(it, "int")) {
  ------------------
  |  Branch (623:24): [True: 260, False: 176]
  ------------------
  624|    260|                igraph_attr_type = IGRAPH_ATTRIBUTE_NUMERIC;
  625|    260|                rec->type = I_GRAPHML_INTEGER;
  626|    260|            } else if (xmlAttrValueEqual(it, "long")) {
  ------------------
  |  Branch (626:24): [True: 74, False: 102]
  ------------------
  627|     74|                igraph_attr_type = IGRAPH_ATTRIBUTE_NUMERIC;
  628|     74|                rec->type = I_GRAPHML_LONG;
  629|    102|            } else {
  630|    102|                IGRAPH_ERRORF("Unknown attribute type '%.*s'.", IGRAPH_PARSEERROR,
  ------------------
  |  |  464|    102|    do { \
  |  |  465|    102|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|    102|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|    102|        return igraph_errno; \
  |  |  468|    102|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  631|    102|                              XML_ATTR_VALUE_PF(it));
  632|    102|            }
  633|  20.2k|        } else if (xmlStrEqual(*it, toXmlChar("for"))) {
  ------------------
  |  |   46|  20.2k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|  20.2k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (633:20): [True: 17.0k, False: 3.18k]
  ------------------
  634|       |            /* graph, vertex or edge attribute? */
  635|  17.0k|            if (xmlAttrValueEqual(it, "graph")) {
  ------------------
  |  Branch (635:17): [True: 1.88k, False: 15.1k]
  ------------------
  636|  1.88k|                trie = &state->g_attr_ids;
  637|  1.88k|                ptrvector = &state->g_attrs;
  638|  15.1k|            } else if (xmlAttrValueEqual(it, "node")) {
  ------------------
  |  Branch (638:24): [True: 7.61k, False: 7.51k]
  ------------------
  639|  7.61k|                trie = &state->v_attr_ids;
  640|  7.61k|                ptrvector = &state->v_attrs;
  641|  7.61k|            } else if (xmlAttrValueEqual(it, "edge")) {
  ------------------
  |  Branch (641:24): [True: 4.96k, False: 2.55k]
  ------------------
  642|  4.96k|                trie = &state->e_attr_ids;
  643|  4.96k|                ptrvector = &state->e_attrs;
  644|  4.96k|            } else if (xmlAttrValueEqual(it, "graphml")) {
  ------------------
  |  Branch (644:24): [True: 257, False: 2.29k]
  ------------------
  645|    257|                igraph_i_report_unhandled_attribute_target("graphml", IGRAPH_FILE_BASENAME, __LINE__);
  646|    257|                skip = 1;
  647|  2.29k|            } else if (xmlAttrValueEqual(it, "hyperedge")) {
  ------------------
  |  Branch (647:24): [True: 752, False: 1.54k]
  ------------------
  648|    752|                igraph_i_report_unhandled_attribute_target("hyperedge", IGRAPH_FILE_BASENAME, __LINE__);
  649|    752|                skip = 1;
  650|  1.54k|            } else if (xmlAttrValueEqual(it, "port")) {
  ------------------
  |  Branch (650:24): [True: 620, False: 924]
  ------------------
  651|    620|                igraph_i_report_unhandled_attribute_target("port", IGRAPH_FILE_BASENAME, __LINE__);
  652|    620|                skip = 1;
  653|    924|            } else if (xmlAttrValueEqual(it, "endpoint")) {
  ------------------
  |  Branch (653:24): [True: 393, False: 531]
  ------------------
  654|    393|                igraph_i_report_unhandled_attribute_target("endpoint", IGRAPH_FILE_BASENAME, __LINE__);
  655|    393|                skip = 1;
  656|    531|            } else if (xmlAttrValueEqual(it, "all")) {
  ------------------
  |  Branch (656:24): [True: 358, False: 173]
  ------------------
  657|       |                /* TODO: we should handle this */
  658|    358|                igraph_i_report_unhandled_attribute_target("all", IGRAPH_FILE_BASENAME, __LINE__);
  659|    358|                skip = 1;
  660|    358|            } else {
  661|    173|                IGRAPH_ERRORF("Unknown value '%.*s' in the 'for' attribute of a <key> tag.", IGRAPH_PARSEERROR,
  ------------------
  |  |  464|    173|    do { \
  |  |  465|    173|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|    173|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|    173|        return igraph_errno; \
  |  |  468|    173|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  662|    173|                              XML_ATTR_VALUE_PF(it));
  663|    173|            }
  664|  17.0k|        }
  665|  63.8k|    }
  666|       |
  667|       |    /* throw an error if there is no ID; this is a clear violation of the GraphML DTD */
  668|  18.5k|    if (rec->id == NULL) {
  ------------------
  |  Branch (668:9): [True: 99, False: 18.4k]
  ------------------
  669|     99|        IGRAPH_ERROR("Found <key> tag with no 'id' attribute.", IGRAPH_PARSEERROR);
  ------------------
  |  |  426|     99|    do { \
  |  |  427|     99|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     99|        return igraph_errno ; \
  |  |  429|     99|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  670|     99|    }
  671|       |
  672|       |    /* throw an error if the ID is an empty string; this is also a clear violation of the GraphML DTD */
  673|  18.4k|    if (*(rec->id) == '\0') {
  ------------------
  |  Branch (673:9): [True: 50, False: 18.4k]
  ------------------
  674|     50|        IGRAPH_ERROR("Found <key> tag with an empty 'id' attribute.", IGRAPH_PARSEERROR);
  ------------------
  |  |  426|     50|    do { \
  |  |  427|     50|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     50|        return igraph_errno ; \
  |  |  429|     50|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  675|     50|    }
  676|       |
  677|       |    /* in case of a missing attr.name attribute, use the id as the attribute name */
  678|  18.4k|    if (attr_name == NULL) {
  ------------------
  |  Branch (678:9): [True: 8.25k, False: 10.1k]
  ------------------
  679|       |        /* Allocation here is protected by safely_free_optional_string(&attr_name),
  680|       |         * which is already in the finally stack */
  681|  8.25k|        attr_name = strdup(rec->id);
  682|  8.25k|        IGRAPH_CHECK_OOM(attr_name, "Cannot duplicate attribute ID as name.");
  ------------------
  |  |  709|  8.25k|    do { \
  |  |  710|  8.25k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  8.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 8.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 8.25k]
  |  |  ------------------
  ------------------
  683|  8.25k|    }
  684|       |
  685|       |    /* if the attribute type is missing, ignore the attribute with a warning */
  686|  18.4k|    if (!skip && rec->type == I_GRAPHML_UNKNOWN_TYPE) {
  ------------------
  |  Branch (686:9): [True: 16.0k, False: 2.35k]
  |  Branch (686:18): [True: 0, False: 16.0k]
  ------------------
  687|      0|        IGRAPH_WARNINGF("Ignoring <key id=\"%s\"> because of a missing 'attr.type' attribute.", rec->id);
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  688|      0|        skip = 1;
  689|      0|    }
  690|       |
  691|       |    /* if the value of the 'for' attribute was missing, ignore the attribute with a warning */
  692|  18.4k|    if (!skip && trie == 0) {
  ------------------
  |  Branch (692:9): [True: 16.0k, False: 2.35k]
  |  Branch (692:18): [True: 1.71k, False: 14.3k]
  ------------------
  693|  1.71k|        IGRAPH_WARNINGF("Ignoring <key id=\"%s\"> because of a missing 'for' attribute.", rec->id);
  ------------------
  |  |  777|  1.71k|    do { \
  |  |  778|  1.71k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  1.71k|                        __VA_ARGS__); \
  |  |  780|  1.71k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 1.71k]
  |  |  ------------------
  ------------------
  694|  1.71k|        skip = 1;
  695|  1.71k|    }
  696|       |
  697|       |    /* If attribute is skipped, proceed according to the type of the associated graph element. */
  698|  18.4k|    if (skip) {
  ------------------
  |  Branch (698:9): [True: 4.07k, False: 14.3k]
  ------------------
  699|  4.07k|        if (trie == 0) {
  ------------------
  |  Branch (699:13): [True: 4.07k, False: 0]
  ------------------
  700|       |            /* Attribute was skipped because it is not for a node, edge or the graph.
  701|       |             * Free everything and return. */
  702|  4.07k|            if (rec) {
  ------------------
  |  Branch (702:17): [True: 4.07k, False: 0]
  ------------------
  703|  4.07k|                igraph_i_graphml_attribute_record_destroy(rec);
  704|  4.07k|                IGRAPH_FREE(rec);
  ------------------
  |  |   36|  4.07k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  705|  4.07k|            }
  706|  4.07k|            IGRAPH_FINALLY_CLEAN(2);
  707|  4.07k|            goto exit;
  708|  4.07k|        } else {
  709|       |            /* If the skipped attribute was for a supported graph element, we add it
  710|       |             * as "UNSPECIFIED" so that we can avoid reporting "unknown attribute" warnings
  711|       |             * later. */
  712|      0|            igraph_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  713|      0|        }
  714|  4.07k|    }
  715|       |
  716|       |    /* check if we have already seen this ID */
  717|  14.3k|    IGRAPH_CHECK(igraph_trie_check(trie, rec->id, &id));
  ------------------
  |  |  656|  14.3k|    do { \
  |  |  657|  14.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.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|  14.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  718|  14.3k|    if (id >= 0) {
  ------------------
  |  Branch (718:9): [True: 5, False: 14.3k]
  ------------------
  719|      5|        IGRAPH_ERRORF("Duplicate attribute ID found: '%s'.", IGRAPH_PARSEERROR, rec->id);
  ------------------
  |  |  464|      5|    do { \
  |  |  465|      5|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      5|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      5|        return igraph_errno; \
  |  |  468|      5|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  720|      5|    }
  721|       |
  722|       |    /* check if we have already seen this attribute name */
  723|  14.3k|    n = igraph_vector_ptr_size(ptrvector);
  724|  34.4k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (724:17): [True: 20.0k, False: 14.3k]
  ------------------
  725|  20.0k|        if (!strcmp(
  ------------------
  |  Branch (725:13): [True: 1, False: 20.0k]
  ------------------
  726|  20.0k|            attr_name,
  727|  20.0k|            ((igraph_i_graphml_attribute_record_t*) igraph_vector_ptr_get(ptrvector, i))->record.name
  728|  20.0k|        )) {
  729|      1|            IGRAPH_ERRORF(
  ------------------
  |  |  464|      1|    do { \
  |  |  465|      1|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|      1|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|      1|        return igraph_errno; \
  |  |  468|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  730|      1|                "Duplicate attribute name found: '%s' (for <key id='%s'>).",
  731|      1|                IGRAPH_PARSEERROR, attr_name, rec->id
  732|      1|            );
  733|      1|        }
  734|  20.0k|    }
  735|       |
  736|       |    /* add to trie, attributes */
  737|  14.3k|    IGRAPH_CHECK(igraph_trie_get(trie, rec->id, &id));
  ------------------
  |  |  656|  14.3k|    do { \
  |  |  657|  14.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.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|  14.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  738|  14.3k|    IGRAPH_CHECK(igraph_vector_ptr_push_back(ptrvector, rec));
  ------------------
  |  |  656|  14.3k|    do { \
  |  |  657|  14.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.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|  14.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  739|       |
  740|       |    /* Ownership of 'rec' is now taken by ptrvector so we are not responsible
  741|       |     * for destroying and freeing it any more */
  742|  14.3k|    IGRAPH_FINALLY_CLEAN(2);
  743|       |
  744|       |    /* create the attribute values */
  745|  14.3k|    IGRAPH_CHECK(igraph_attribute_record_init(&rec->record, attr_name, igraph_attr_type));
  ------------------
  |  |  656|  14.3k|    do { \
  |  |  657|  14.3k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  14.3k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  14.3k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14.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|  14.3k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14.3k]
  |  |  ------------------
  ------------------
  746|       |
  747|  18.4k|exit:
  748|  18.4k|    safely_free_optional_string(&attr_name);
  749|  18.4k|    IGRAPH_FINALLY_CLEAN(1);
  750|       |
  751|  18.4k|    *record = rec;
  752|  18.4k|    return IGRAPH_SUCCESS;
  753|  14.3k|}
graphml.c:safely_free_optional_string:
  536|  47.7k|static void safely_free_optional_string(char** str) {
  537|  47.7k|    if (*str != NULL) {
  ------------------
  |  Branch (537:9): [True: 18.5k, False: 29.2k]
  ------------------
  538|  18.5k|        igraph_free(*str);
  539|       |        *str = NULL;
  540|  18.5k|    }
  541|  47.7k|}
graphml.c:safely_convert_xml_attribute_to_string:
  515|  28.8k|static igraph_error_t safely_convert_xml_attribute_to_string(xmlChar** it, char** str) {
  516|       |    /* This is quite convoluted but we need to go safely from xmlChar*-world
  517|       |     * to char*-world */
  518|  28.8k|    xmlChar *xml_str;
  519|  28.8k|    char *c_str;
  520|       |
  521|  28.8k|    xml_str = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|  28.8k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
  522|  28.8k|    IGRAPH_CHECK_OOM(xml_str, "Insufficient memory to duplicate attribute value.");
  ------------------
  |  |  709|  28.8k|    do { \
  |  |  710|  28.8k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  28.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 28.8k]
  |  |  ------------------
  ------------------
  523|  28.8k|    IGRAPH_FINALLY(xmlFree, xml_str);
  ------------------
  |  |  603|  28.8k|    do { \
  |  |  604|  28.8k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  28.8k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  28.8k|         * incorrect destructor function with the pointer */ \
  |  |  607|  28.8k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 28.8k]
  |  |  ------------------
  |  |  608|  28.8k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  28.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 28.8k]
  |  |  ------------------
  ------------------
  524|       |
  525|  28.8k|    c_str = strdup(fromXmlChar(xml_str));
  ------------------
  |  |   47|  28.8k|#define fromXmlChar(a) ((char *)(a)) /* not the most elegant way... */
  ------------------
  526|  28.8k|    IGRAPH_CHECK_OOM(c_str, "Insufficient memory to duplicate attribute value.");
  ------------------
  |  |  709|  28.8k|    do { \
  |  |  710|  28.8k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|  28.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 28.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  28.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 28.8k]
  |  |  ------------------
  ------------------
  527|       |
  528|  28.8k|    *str = c_str;
  529|       |
  530|  28.8k|    xmlFree(xml_str);
  531|  28.8k|    IGRAPH_FINALLY_CLEAN(1);
  532|       |
  533|  28.8k|    return IGRAPH_SUCCESS;
  534|  28.8k|}
graphml.c:igraph_i_report_unhandled_attribute_target:
  108|  2.38k|        const char* file, int line) {
  109|  2.38k|    igraph_warningf("Attribute target '%s' is not handled; ignoring corresponding "
  110|  2.38k|                    "attribute specifications.", file, line, target);
  111|  2.38k|}
graphml.c:igraph_i_graphml_attribute_data_setup:
  758|   344k|) {
  759|   344k|    xmlChar **it;
  760|   344k|    int i;
  761|       |
  762|   344k|    if (!state->successful) {
  ------------------
  |  Branch (762:9): [True: 0, False: 344k]
  ------------------
  763|      0|        return IGRAPH_SUCCESS;
  764|      0|    }
  765|       |
  766|   687k|    for (i = 0, it = (xmlChar**)attrs; i < nb_attrs; i++, it += 5) {
  ------------------
  |  Branch (766:40): [True: 342k, False: 344k]
  ------------------
  767|   342k|        if (XML_ATTR_URI(it) != 0 &&
  ------------------
  |  |  508|   342k|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (767:13): [True: 212, False: 342k]
  ------------------
  768|    212|            !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |   46|    212|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|    212|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
                          !xmlStrEqual(toXmlChar(GRAPHML_NAMESPACE_URI), XML_ATTR_URI(it))) {
  ------------------
  |  |  508|    212|#define XML_ATTR_URI(it) it[2]
  ------------------
  |  Branch (768:13): [True: 194, False: 18]
  ------------------
  769|    194|            continue;
  770|    194|        }
  771|       |
  772|   342k|        if (xmlStrEqual(*it, toXmlChar("key"))) {
  ------------------
  |  |   46|   342k|#define toXmlChar(a)   (BAD_CAST(a))
  |  |  ------------------
  |  |  |  |   34|   342k|#define BAD_CAST (xmlChar *)
  |  |  ------------------
  ------------------
  |  Branch (772:13): [True: 342k, False: 581]
  ------------------
  773|   342k|            if (state->data_key) {
  ------------------
  |  Branch (773:17): [True: 338k, False: 3.38k]
  ------------------
  774|   338k|                xmlFree((void *) state->data_key);
  775|   338k|                state->data_key = NULL;
  776|   338k|            }
  777|   342k|            state->data_key = xmlStrndup(XML_ATTR_VALUE(it));
  ------------------
  |  |  512|   342k|#define XML_ATTR_VALUE(it) it[3], (int)(it[4] - it[3]) /* for use in strnxxx()-style functions that take a char * and a length */
  ------------------
  778|   342k|            IGRAPH_CHECK_OOM(state->data_key, "Insufficient memory to read GraphML file.");
  ------------------
  |  |  709|   342k|    do { \
  |  |  710|   342k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   342k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 342k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   342k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 342k]
  |  |  ------------------
  ------------------
  779|   342k|            igraph_vector_char_clear(&state->data_char);
  780|   342k|            state->data_type = type;
  781|   342k|        } else {
  782|       |            /* ignore */
  783|    581|        }
  784|   342k|    }
  785|       |
  786|   344k|    return IGRAPH_SUCCESS;
  787|   344k|}
graphml.c:igraph_i_graphml_sax_handler_end_element_ns:
 1337|  1.21M|        const xmlChar* uri) {
 1338|  1.21M|    struct igraph_i_graphml_parser_state *state =
 1339|  1.21M|        (struct igraph_i_graphml_parser_state*)state0;
 1340|  1.21M|    igraph_error_t result;
 1341|       |
 1342|  1.21M|    if (!state->successful) {
  ------------------
  |  Branch (1342:9): [True: 6.88k, False: 1.20M]
  ------------------
 1343|  6.88k|        return;
 1344|  6.88k|    }
 1345|       |
 1346|  1.20M|    result = igraph_i_graphml_sax_handler_end_element_ns_inner(
 1347|  1.20M|        state, localname, prefix, uri
 1348|  1.20M|    );
 1349|       |
 1350|  1.20M|    if (result != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (1350:9): [True: 89, False: 1.20M]
  ------------------
 1351|     89|        RETURN_GRAPHML_PARSE_ERROR_WITH_CODE(state, "Cannot parse GraphML file.", result);
  ------------------
  |  |   56|     89|    do { \
  |  |   57|     89|        GRAPHML_PARSE_ERROR_WITH_CODE(state, msg, code); \
  |  |  ------------------
  |  |  |  |   50|     89|    do {  \
  |  |  |  |   51|     89|        if (state->successful) { \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (51:13): [True: 89, False: 0]
  |  |  |  |  ------------------
  |  |  |  |   52|     89|            igraph_i_graphml_sax_handler_error(state, msg); \
  |  |  |  |   53|     89|        } \
  |  |  |  |   54|     89|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (54:14): [Folded, False: 89]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   58|     89|        return; \
  |  |   59|     89|    } while (0)
  |  |  ------------------
  |  |  |  Branch (59:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
 1352|     89|    }
 1353|  1.20M|}
graphml.c:igraph_i_graphml_sax_handler_end_element_ns_inner:
 1278|  1.20M|) {
 1279|  1.20M|    IGRAPH_UNUSED(localname);
  ------------------
  |  |   30|  1.20M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1280|  1.20M|    IGRAPH_UNUSED(prefix);
  ------------------
  |  |   30|  1.20M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1281|  1.20M|    IGRAPH_UNUSED(uri);
  ------------------
  |  |   30|  1.20M|#define IGRAPH_UNUSED(x) (void)(x)
  ------------------
 1282|       |
 1283|  1.20M|    switch (state->st) {
 1284|  6.65k|    case INSIDE_GRAPHML:
  ------------------
  |  Branch (1284:5): [True: 6.65k, False: 1.20M]
  ------------------
 1285|  6.65k|        state->st = FINISH;
 1286|  6.65k|        break;
 1287|       |
 1288|  6.66k|    case INSIDE_GRAPH:
  ------------------
  |  Branch (1288:5): [True: 6.66k, False: 1.20M]
  ------------------
 1289|  6.66k|        state->st = INSIDE_GRAPHML;
 1290|  6.66k|        break;
 1291|       |
 1292|  18.0k|    case INSIDE_KEY:
  ------------------
  |  Branch (1292:5): [True: 18.0k, False: 1.18M]
  ------------------
 1293|  18.0k|        state->current_attr_record = NULL;
 1294|  18.0k|        state->st = INSIDE_GRAPHML;
 1295|  18.0k|        break;
 1296|       |
 1297|  3.68k|    case INSIDE_DEFAULT:
  ------------------
  |  Branch (1297:5): [True: 3.68k, False: 1.20M]
  ------------------
 1298|  3.68k|        IGRAPH_CHECK(igraph_i_graphml_attribute_default_value_finish(state));
  ------------------
  |  |  656|  3.68k|    do { \
  |  |  657|  3.68k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.68k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.68k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 68, False: 3.61k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     68|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     68|    do { \
  |  |  |  |  427|     68|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     68|        return igraph_errno ; \
  |  |  |  |  429|     68|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     68|        } \
  |  |  661|  3.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.61k]
  |  |  ------------------
  ------------------
 1299|  3.61k|        state->st = INSIDE_KEY;
 1300|  3.61k|        break;
 1301|       |
 1302|  35.3k|    case INSIDE_NODE:
  ------------------
  |  Branch (1302:5): [True: 35.3k, False: 1.17M]
  ------------------
 1303|  35.3k|        state->st = INSIDE_GRAPH;
 1304|  35.3k|        break;
 1305|       |
 1306|   702k|    case INSIDE_EDGE:
  ------------------
  |  Branch (1306:5): [True: 702k, False: 504k]
  ------------------
 1307|   702k|        state->st = INSIDE_GRAPH;
 1308|   702k|        break;
 1309|       |
 1310|   344k|    case INSIDE_DATA:
  ------------------
  |  Branch (1310:5): [True: 344k, False: 863k]
  ------------------
 1311|   344k|        IGRAPH_CHECK(igraph_i_graphml_attribute_data_finish(state));
  ------------------
  |  |  656|   344k|    do { \
  |  |  657|   344k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   344k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   344k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 21, False: 344k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     21|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     21|    do { \
  |  |  |  |  427|     21|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     21|        return igraph_errno ; \
  |  |  |  |  429|     21|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     21|        } \
  |  |  661|   344k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 344k]
  |  |  ------------------
  ------------------
 1312|   344k|        IGRAPH_ASSERT(!igraph_vector_int_empty(&state->prev_state_stack));
  ------------------
  |  |  924|   344k|    do { \
  |  |  925|   344k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|   344k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 344k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|   344k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 344k]
  |  |  ------------------
  ------------------
 1313|   344k|        state->st = (igraph_i_graphml_parser_state_index_t) igraph_vector_int_pop_back(&state->prev_state_stack);
 1314|   344k|        break;
 1315|       |
 1316|  89.3k|    case UNKNOWN:
  ------------------
  |  Branch (1316:5): [True: 89.3k, False: 1.11M]
  ------------------
 1317|  89.3k|        state->unknown_depth--;
 1318|  89.3k|        if (!state->unknown_depth) {
  ------------------
  |  Branch (1318:13): [True: 6.33k, False: 83.0k]
  ------------------
 1319|  6.33k|            IGRAPH_ASSERT(!igraph_vector_int_empty(&state->prev_state_stack));
  ------------------
  |  |  924|  6.33k|    do { \
  |  |  925|  6.33k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  6.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  6.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 6.33k]
  |  |  ------------------
  ------------------
 1320|  6.33k|            state->st = (igraph_i_graphml_parser_state_index_t) igraph_vector_int_pop_back(&state->prev_state_stack);
 1321|  6.33k|        }
 1322|  89.3k|        break;
 1323|       |
 1324|  89.3k|    case FINISH:
  ------------------
  |  Branch (1324:5): [True: 642, False: 1.20M]
  ------------------
 1325|    642|        break;
 1326|       |
 1327|      0|    default:
  ------------------
  |  Branch (1327:5): [True: 0, False: 1.20M]
  ------------------
 1328|      0|        IGRAPH_FATALF("Unexpected GraphML reader state %d.", (int) state->st);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1329|  1.20M|    }
 1330|       |
 1331|  1.20M|    return IGRAPH_SUCCESS;
 1332|  1.20M|}
graphml.c:igraph_i_graphml_attribute_default_value_finish:
  952|  3.68k|static igraph_error_t igraph_i_graphml_attribute_default_value_finish(struct igraph_i_graphml_parser_state *state) {
  953|  3.68k|    igraph_i_graphml_attribute_record_t *graphmlrec = state->current_attr_record;
  954|  3.68k|    igraph_attribute_record_t *rec;
  955|  3.68k|    igraph_error_t result = IGRAPH_SUCCESS;
  956|  3.68k|    igraph_real_t default_num;
  957|  3.68k|    igraph_bool_t default_bool;
  958|       |
  959|  3.68k|    IGRAPH_ASSERT(state->current_attr_record != NULL);
  ------------------
  |  |  924|  3.68k|    do { \
  |  |  925|  3.68k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  3.68k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.68k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  3.68k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 3.68k]
  |  |  ------------------
  ------------------
  960|       |
  961|  3.68k|    if (igraph_vector_char_size(&state->data_char) == 0) {
  ------------------
  |  Branch (961:9): [True: 203, False: 3.48k]
  ------------------
  962|    203|        return IGRAPH_SUCCESS;
  963|    203|    }
  964|       |
  965|  3.48k|    rec = &graphmlrec->record;
  966|       |
  967|  3.48k|    switch (rec->type) {
  968|  1.79k|    case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (968:5): [True: 1.79k, False: 1.68k]
  ------------------
  969|       |        /* Add null terminator */
  970|  1.79k|        IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|  1.79k|    do { \
  |  |  657|  1.79k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.79k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.79k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.79k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.79k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.79k]
  |  |  ------------------
  ------------------
  971|  1.79k|        IGRAPH_CHECK(igraph_i_graphml_parse_boolean(VECTOR(state->data_char), &default_bool, false));
  ------------------
  |  |  656|  1.79k|    do { \
  |  |  657|  1.79k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.79k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.79k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 55, False: 1.74k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     55|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     55|    do { \
  |  |  |  |  427|     55|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     55|        return igraph_errno ; \
  |  |  |  |  429|     55|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     55|        } \
  |  |  661|  1.79k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.74k]
  |  |  ------------------
  ------------------
  972|  1.74k|        IGRAPH_CHECK(igraph_attribute_record_set_default_boolean(rec, default_bool));
  ------------------
  |  |  656|  1.74k|    do { \
  |  |  657|  1.74k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.74k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.74k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.74k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.74k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.74k]
  |  |  ------------------
  ------------------
  973|  1.74k|        break;
  974|  1.74k|    case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (974:5): [True: 481, False: 3.00k]
  ------------------
  975|       |        /* Add null terminator */
  976|    481|        IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|    481|    do { \
  |  |  657|    481|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    481|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    481|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 481]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    481|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 481]
  |  |  ------------------
  ------------------
  977|    481|        IGRAPH_CHECK(igraph_i_graphml_parse_numeric(VECTOR(state->data_char), &default_num, IGRAPH_NAN));
  ------------------
  |  |  656|    481|    do { \
  |  |  657|    481|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    481|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    481|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 13, False: 468]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     13|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     13|    do { \
  |  |  |  |  427|     13|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     13|        return igraph_errno ; \
  |  |  |  |  429|     13|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     13|        } \
  |  |  661|    481|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 468]
  |  |  ------------------
  ------------------
  978|    468|        IGRAPH_CHECK(igraph_attribute_record_set_default_numeric(rec, default_num));
  ------------------
  |  |  656|    468|    do { \
  |  |  657|    468|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    468|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    468|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 468]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    468|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 468]
  |  |  ------------------
  ------------------
  979|    468|        break;
  980|    953|    case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (980:5): [True: 953, False: 2.53k]
  ------------------
  981|       |        /* Add null terminator */
  982|    953|        IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|    953|    do { \
  |  |  657|    953|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    953|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    953|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 953]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    953|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 953]
  |  |  ------------------
  ------------------
  983|    953|        IGRAPH_CHECK(igraph_attribute_record_set_default_string(rec, VECTOR(state->data_char)));
  ------------------
  |  |  656|    953|    do { \
  |  |  657|    953|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    953|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    953|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 953]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    953|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 953]
  |  |  ------------------
  ------------------
  984|    953|        break;
  985|    953|    case IGRAPH_ATTRIBUTE_UNSPECIFIED:
  ------------------
  |  Branch (985:5): [True: 254, False: 3.23k]
  ------------------
  986|    254|        break;
  987|      0|    default:
  ------------------
  |  Branch (987:5): [True: 0, False: 3.48k]
  ------------------
  988|      0|        IGRAPH_FATAL("Unexpected attribute type.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  989|  3.48k|    }
  990|       |
  991|  3.41k|    igraph_vector_char_clear(&state->data_char);
  992|       |
  993|  3.41k|    return result;
  994|  3.48k|}
graphml.c:igraph_i_graphml_parse_boolean:
  136|  51.7k|) {
  137|  51.7k|    igraph_int_t value;
  138|  51.7k|    const char* trimmed;
  139|  51.7k|    size_t trimmed_length;
  140|       |
  141|  51.7k|    if (char_data == 0) {
  ------------------
  |  Branch (141:9): [True: 0, False: 51.7k]
  ------------------
  142|      0|        *result = default_value;
  143|      0|        return IGRAPH_SUCCESS;
  144|      0|    }
  145|       |
  146|  51.7k|    igraph_i_trim_whitespace(char_data, strlen(char_data), &trimmed, &trimmed_length);
  147|       |
  148|  51.7k|    if (trimmed_length == 4 && !strncasecmp(trimmed, "true", trimmed_length)) {
  ------------------
  |  Branch (148:9): [True: 482, False: 51.2k]
  |  Branch (148:32): [True: 222, False: 260]
  ------------------
  149|    222|        *result = 1;
  150|    222|        return IGRAPH_SUCCESS;
  151|    222|    }
  152|       |
  153|  51.5k|    if (trimmed_length == 3 && !strncasecmp(trimmed, "yes", trimmed_length)) {
  ------------------
  |  Branch (153:9): [True: 280, False: 51.2k]
  |  Branch (153:32): [True: 66, False: 214]
  ------------------
  154|     66|        *result = 1;
  155|     66|        return IGRAPH_SUCCESS;
  156|     66|    }
  157|       |
  158|  51.4k|    if (trimmed_length == 5 && !strncasecmp(trimmed, "false", trimmed_length)) {
  ------------------
  |  Branch (158:9): [True: 49.9k, False: 1.52k]
  |  Branch (158:32): [True: 49.7k, False: 212]
  ------------------
  159|  49.7k|        *result = 0;
  160|  49.7k|        return IGRAPH_SUCCESS;
  161|  49.7k|    }
  162|       |
  163|  1.73k|    if (trimmed_length == 2 && !strncasecmp(trimmed, "no", trimmed_length)) {
  ------------------
  |  Branch (163:9): [True: 476, False: 1.25k]
  |  Branch (163:32): [True: 194, False: 282]
  ------------------
  164|    194|        *result = 0;
  165|    194|        return IGRAPH_SUCCESS;
  166|    194|    }
  167|       |
  168|  1.54k|    if (trimmed_length > 0) {
  ------------------
  |  Branch (168:9): [True: 1.33k, False: 205]
  ------------------
  169|  1.33k|        if (isdigit((unsigned char) trimmed[0])) {
  ------------------
  |  Branch (169:13): [True: 1.28k, False: 46]
  ------------------
  170|  1.28k|            IGRAPH_CHECK(igraph_i_parse_integer(trimmed, trimmed_length, &value));
  ------------------
  |  |  656|  1.28k|    do { \
  |  |  657|  1.28k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.28k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.28k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 21, False: 1.26k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     21|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     21|    do { \
  |  |  |  |  427|     21|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     21|        return igraph_errno ; \
  |  |  |  |  429|     21|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     21|        } \
  |  |  661|  1.28k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.26k]
  |  |  ------------------
  ------------------
  171|  1.28k|        } else {
  172|     46|            IGRAPH_ERRORF("Cannot parse '%.*s' as Boolean value.", IGRAPH_PARSEERROR,
  ------------------
  |  |  464|     46|    do { \
  |  |  465|     46|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     46|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     46|        return igraph_errno; \
  |  |  468|     46|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  173|     46|                          (int) trimmed_length, trimmed);
  174|     46|        }
  175|  1.33k|    } else {
  176|    205|        *result = default_value;
  177|    205|        return IGRAPH_SUCCESS;
  178|    205|    }
  179|       |
  180|  1.26k|    *result = value != 0;
  181|  1.26k|    return IGRAPH_SUCCESS;
  182|  1.54k|}
graphml.c:igraph_i_graphml_parse_numeric:
  115|  7.01k|) {
  116|  7.01k|    const char* trimmed;
  117|  7.01k|    size_t trimmed_length;
  118|       |
  119|  7.01k|    if (char_data == 0) {
  ------------------
  |  Branch (119:9): [True: 0, False: 7.01k]
  ------------------
  120|      0|        *result = default_value;
  121|      0|        return IGRAPH_SUCCESS;
  122|      0|    }
  123|       |
  124|  7.01k|    igraph_i_trim_whitespace(char_data, strlen(char_data), &trimmed, &trimmed_length);
  125|  7.01k|    if (trimmed_length > 0) {
  ------------------
  |  Branch (125:9): [True: 6.73k, False: 278]
  ------------------
  126|  6.73k|        IGRAPH_CHECK(igraph_i_parse_real(trimmed, trimmed_length, result));
  ------------------
  |  |  656|  6.73k|    do { \
  |  |  657|  6.73k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.73k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.73k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 22, False: 6.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     22|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     22|    do { \
  |  |  |  |  427|     22|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     22|        return igraph_errno ; \
  |  |  |  |  429|     22|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     22|        } \
  |  |  661|  6.73k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.71k]
  |  |  ------------------
  ------------------
  127|  6.73k|    } else {
  128|    278|        *result = default_value;
  129|    278|    }
  130|       |
  131|  6.99k|    return IGRAPH_SUCCESS;
  132|  7.01k|}
graphml.c:igraph_i_graphml_attribute_data_finish:
  849|   344k|static igraph_error_t igraph_i_graphml_attribute_data_finish(struct igraph_i_graphml_parser_state *state) {
  850|   344k|    const char *key = fromXmlChar(state->data_key);
  ------------------
  |  |   47|   344k|#define fromXmlChar(a) ((char *)(a)) /* not the most elegant way... */
  ------------------
  851|   344k|    igraph_attribute_elemtype_t type = state->data_type;
  852|   344k|    igraph_trie_t *trie = NULL;
  853|   344k|    igraph_vector_ptr_t *ptrvector = NULL;
  854|   344k|    igraph_i_graphml_attribute_record_t *graphmlrec;
  855|   344k|    igraph_attribute_record_t *rec;
  856|   344k|    igraph_int_t recid, id = 0;
  857|   344k|    igraph_error_t result = IGRAPH_SUCCESS;
  858|       |
  859|   344k|    switch (type) {
  860|  3.47k|    case IGRAPH_ATTRIBUTE_GRAPH:
  ------------------
  |  Branch (860:5): [True: 3.47k, False: 340k]
  ------------------
  861|  3.47k|        trie = &state->g_attr_ids;
  862|  3.47k|        ptrvector = &state->g_attrs;
  863|  3.47k|        id = 0;
  864|  3.47k|        break;
  865|  58.1k|    case IGRAPH_ATTRIBUTE_VERTEX:
  ------------------
  |  Branch (865:5): [True: 58.1k, False: 285k]
  ------------------
  866|  58.1k|        trie = &state->v_attr_ids;
  867|  58.1k|        ptrvector = &state->v_attrs;
  868|  58.1k|        id = state->act_node;
  869|  58.1k|        break;
  870|   282k|    case IGRAPH_ATTRIBUTE_EDGE:
  ------------------
  |  Branch (870:5): [True: 282k, False: 61.6k]
  ------------------
  871|   282k|        trie = &state->e_attr_ids;
  872|   282k|        ptrvector = &state->e_attrs;
  873|   282k|        id = igraph_vector_int_size(&state->edgelist) / 2 - 1; /* hack */
  874|   282k|        break;
  875|      0|    default:
  ------------------
  |  Branch (875:5): [True: 0, False: 344k]
  ------------------
  876|      0|        IGRAPH_FATAL("Unexpected attribute element type.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  877|   344k|    }
  878|       |
  879|   344k|    if (key == 0) {
  ------------------
  |  Branch (879:9): [True: 364, False: 343k]
  ------------------
  880|       |        /* no key specified, issue a warning */
  881|    364|        IGRAPH_WARNING("Missing attribute key in a <data> tag, ignoring attribute.");
  ------------------
  |  |  797|    364|    do { \
  |  |  798|    364|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|    364|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 364]
  |  |  ------------------
  ------------------
  882|    364|        goto exit;
  883|    364|    }
  884|       |
  885|   343k|    IGRAPH_CHECK(igraph_trie_check(trie, key, &recid));
  ------------------
  |  |  656|   343k|    do { \
  |  |  657|   343k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   343k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   343k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 343k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   343k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 343k]
  |  |  ------------------
  ------------------
  886|   343k|    if (recid < 0) {
  ------------------
  |  Branch (886:9): [True: 1.51k, False: 342k]
  ------------------
  887|       |        /* no such attribute key, issue a warning */
  888|  1.51k|        IGRAPH_WARNINGF(
  ------------------
  |  |  777|  1.51k|    do { \
  |  |  778|  1.51k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  1.51k|                        __VA_ARGS__); \
  |  |  780|  1.51k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 1.51k]
  |  |  ------------------
  ------------------
  889|  1.51k|            "Unknown attribute key '%s' in a <data> tag, ignoring attribute.",
  890|  1.51k|            key
  891|  1.51k|        );
  892|  1.51k|        goto exit;
  893|  1.51k|    }
  894|       |
  895|   342k|    graphmlrec = VECTOR(*ptrvector)[recid];
  ------------------
  |  |   60|   342k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  896|   342k|    rec = &graphmlrec->record;
  897|       |
  898|   342k|    if (id >= igraph_attribute_record_size(rec) && rec->type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (898:9): [True: 341k, False: 861]
  |  Branch (898:52): [True: 341k, False: 220]
  ------------------
  899|   341k|        IGRAPH_CHECK(igraph_i_graphml_attribute_record_expand_if_full(rec, id + 1));
  ------------------
  |  |  656|   341k|    do { \
  |  |  657|   341k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   341k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   341k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 341k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   341k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 341k]
  |  |  ------------------
  ------------------
  900|   341k|        IGRAPH_CHECK(igraph_attribute_record_resize(rec, id + 1));
  ------------------
  |  |  656|   341k|    do { \
  |  |  657|   341k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   341k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   341k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 341k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   341k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 341k]
  |  |  ------------------
  ------------------
  901|   341k|    }
  902|       |
  903|   342k|    switch (rec->type) {
  904|      0|        igraph_vector_bool_t *boolvec;
  905|      0|        igraph_vector_t *vec;
  906|      0|        igraph_strvector_t *strvec;
  907|      0|        const char* strvalue;
  908|       |
  909|  49.9k|    case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (909:5): [True: 49.9k, False: 292k]
  ------------------
  910|       |        /* Add null terminator */
  911|  49.9k|        IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|  49.9k|    do { \
  |  |  657|  49.9k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  49.9k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  49.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 49.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  49.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 49.9k]
  |  |  ------------------
  ------------------
  912|  49.9k|        boolvec = rec->value.as_vector_bool;
  913|  49.9k|        IGRAPH_CHECK(igraph_i_graphml_parse_boolean(
  ------------------
  |  |  656|  49.9k|    do { \
  |  |  657|  49.9k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  49.9k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  49.9k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 12, False: 49.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     12|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     12|    do { \
  |  |  |  |  427|     12|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     12|        return igraph_errno ; \
  |  |  |  |  429|     12|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     12|        } \
  |  |  661|  49.9k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 49.9k]
  |  |  ------------------
  ------------------
  914|  49.9k|            VECTOR(state->data_char), VECTOR(*boolvec) + id, rec->default_value.boolean
  915|  49.9k|        ));
  916|  49.9k|        break;
  917|       |
  918|  49.9k|    case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (918:5): [True: 6.53k, False: 335k]
  ------------------
  919|       |        /* Add null terminator */
  920|  6.53k|        IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|  6.53k|    do { \
  |  |  657|  6.53k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.53k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.53k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.53k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.53k]
  |  |  ------------------
  ------------------
  921|  6.53k|        vec = rec->value.as_vector;
  922|  6.53k|        IGRAPH_CHECK(igraph_i_graphml_parse_numeric(
  ------------------
  |  |  656|  6.53k|    do { \
  |  |  657|  6.53k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.53k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.53k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 9, False: 6.52k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      9|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      9|    do { \
  |  |  |  |  427|      9|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      9|        return igraph_errno ; \
  |  |  |  |  429|      9|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      9|        } \
  |  |  661|  6.53k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.52k]
  |  |  ------------------
  ------------------
  923|  6.53k|            VECTOR(state->data_char), VECTOR(*vec) + id, rec->default_value.numeric
  924|  6.53k|        ));
  925|  6.52k|        break;
  926|       |
  927|   285k|    case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (927:5): [True: 285k, False: 56.7k]
  ------------------
  928|       |        /* Ensure that the vector ends with a null terminator */
  929|   285k|        strvec = rec->value.as_strvector;
  930|   285k|        if (igraph_vector_char_size(&state->data_char) > 0) {
  ------------------
  |  Branch (930:13): [True: 189k, False: 95.7k]
  ------------------
  931|   189k|            IGRAPH_CHECK(igraph_vector_char_push_back(&state->data_char, '\x00'));
  ------------------
  |  |  656|   189k|    do { \
  |  |  657|   189k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   189k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   189k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 189k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   189k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 189k]
  |  |  ------------------
  ------------------
  932|   189k|            strvalue = VECTOR(state->data_char);
  ------------------
  |  |   60|   189k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  933|   189k|        } else {
  934|  95.7k|            strvalue = rec->default_value.string;
  935|  95.7k|        }
  936|   285k|        IGRAPH_CHECK(igraph_strvector_set(strvec, id, strvalue ? strvalue : ""));
  ------------------
  |  |  656|   285k|    do { \
  |  |  657|   570k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  ------------------
  |  |  |  Branch (657:40): [True: 189k, False: 95.7k]
  |  |  ------------------
  |  |  658|   285k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   285k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 285k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   285k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 285k]
  |  |  ------------------
  ------------------
  937|   285k|        break;
  938|       |
  939|   285k|    case IGRAPH_ATTRIBUTE_UNSPECIFIED:
  ------------------
  |  Branch (939:5): [True: 220, False: 341k]
  ------------------
  940|    220|        break;
  941|       |
  942|      0|    default:
  ------------------
  |  Branch (942:5): [True: 0, False: 342k]
  ------------------
  943|      0|        IGRAPH_FATAL("Unexpected attribute type.");
  ------------------
  |  |  895|      0|    do { \
  |  |  896|      0|        igraph_fatal(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  897|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (897:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  944|   342k|    }
  945|       |
  946|   344k|exit:
  947|   344k|    igraph_vector_char_clear(&state->data_char);
  948|       |
  949|   344k|    return result;
  950|   342k|}
graphml.c:igraph_i_graphml_attribute_record_expand_if_full:
  818|   341k|        igraph_attribute_record_t *rec, igraph_int_t size) {
  819|       |
  820|   341k|    switch (rec->type) {
  821|  5.93k|    case IGRAPH_ATTRIBUTE_NUMERIC: {
  ------------------
  |  Branch (821:5): [True: 5.93k, False: 335k]
  ------------------
  822|  5.93k|        const igraph_int_t capacity = igraph_vector_capacity(rec->value.as_vector);
  823|  5.93k|        if (size > capacity) {
  ------------------
  |  Branch (823:13): [True: 813, False: 5.12k]
  ------------------
  824|    813|            IGRAPH_CHECK(igraph_vector_reserve(rec->value.as_vector, igraph_i_graphml_next_capacity(capacity, size)));
  ------------------
  |  |  656|    813|    do { \
  |  |  657|    813|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    813|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    813|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 813]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    813|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 813]
  |  |  ------------------
  ------------------
  825|    813|        }
  826|  5.93k|        break;
  827|  5.93k|    }
  828|  49.7k|    case IGRAPH_ATTRIBUTE_BOOLEAN: {
  ------------------
  |  Branch (828:5): [True: 49.7k, False: 291k]
  ------------------
  829|  49.7k|        const igraph_int_t capacity = igraph_vector_bool_capacity(rec->value.as_vector_bool);
  830|  49.7k|        if (size > capacity) {
  ------------------
  |  Branch (830:13): [True: 2.60k, False: 47.1k]
  ------------------
  831|  2.60k|            IGRAPH_CHECK(igraph_vector_bool_reserve(rec->value.as_vector_bool, igraph_i_graphml_next_capacity(capacity, size)));
  ------------------
  |  |  656|  2.60k|    do { \
  |  |  657|  2.60k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.60k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.60k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.60k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.60k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.60k]
  |  |  ------------------
  ------------------
  832|  2.60k|        }
  833|  49.7k|        break;
  834|  49.7k|    }
  835|   285k|    case IGRAPH_ATTRIBUTE_STRING: {
  ------------------
  |  Branch (835:5): [True: 285k, False: 55.7k]
  ------------------
  836|   285k|        const igraph_int_t capacity = igraph_strvector_capacity(rec->value.as_strvector);
  837|   285k|        if (size > capacity) {
  ------------------
  |  Branch (837:13): [True: 20.0k, False: 265k]
  ------------------
  838|  20.0k|            IGRAPH_CHECK(igraph_strvector_reserve(rec->value.as_strvector, igraph_i_graphml_next_capacity(capacity, size)));
  ------------------
  |  |  656|  20.0k|    do { \
  |  |  657|  20.0k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  20.0k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  20.0k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20.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|  20.0k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 20.0k]
  |  |  ------------------
  ------------------
  839|  20.0k|        }
  840|   285k|        break;
  841|   285k|    }
  842|   285k|    default:
  ------------------
  |  Branch (842:5): [True: 0, False: 341k]
  ------------------
  843|      0|        break;
  844|   341k|    }
  845|       |
  846|   341k|    return IGRAPH_SUCCESS;
  847|   341k|}
graphml.c:igraph_i_graphml_next_capacity:
  810|  23.4k|static igraph_int_t igraph_i_graphml_next_capacity(igraph_int_t capacity, igraph_int_t size) {
  811|  23.4k|    const igraph_int_t doubled = capacity < IGRAPH_INTEGER_MAX / 2 ? 2 * capacity : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  23.4k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
                  const igraph_int_t doubled = capacity < IGRAPH_INTEGER_MAX / 2 ? 2 * capacity : IGRAPH_INTEGER_MAX;
  ------------------
  |  |   74|  23.4k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  |  Branch (811:34): [True: 23.4k, False: 0]
  ------------------
  812|  23.4k|    return size < doubled ? doubled : size;
  ------------------
  |  Branch (812:12): [True: 12.8k, False: 10.6k]
  ------------------
  813|  23.4k|}
graphml.c:igraph_i_graphml_parser_state_finish_parsing:
  400|  6.63k|static igraph_error_t igraph_i_graphml_parser_state_finish_parsing(struct igraph_i_graphml_parser_state *state) {
  401|  6.63k|    igraph_int_t i;
  402|  6.63k|    const char *idstr = "id";
  403|  6.63k|    igraph_bool_t already_has_vertex_id = false, already_has_edge_id = false;
  404|  6.63k|    igraph_attribute_record_list_t vattr, eattr, gattr;
  405|  6.63k|    igraph_attribute_record_t *idrec;
  406|       |
  407|  6.63k|    IGRAPH_ASSERT(state->successful);
  ------------------
  |  |  924|  6.63k|    do { \
  |  |  925|  6.63k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  408|       |
  409|       |    /* check that we have found and parsed the graph the user is interested in */
  410|  6.63k|    IGRAPH_ASSERT(state->index < 0);
  ------------------
  |  |  924|  6.63k|    do { \
  |  |  925|  6.63k|        if (IGRAPH_UNLIKELY(!(condition))) { \
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  926|      0|            igraph_fatal("Assertion failed: " #condition, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  927|      0|        } \
  |  |  928|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (928:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  411|       |
  412|  6.63k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&vattr, 0));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  413|  6.63k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &vattr);
  ------------------
  |  |  603|  6.63k|    do { \
  |  |  604|  6.63k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.63k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.63k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.63k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.63k]
  |  |  ------------------
  |  |  608|  6.63k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  414|  6.63k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&eattr, 0));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  415|  6.63k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &eattr);
  ------------------
  |  |  603|  6.63k|    do { \
  |  |  604|  6.63k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.63k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.63k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.63k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.63k]
  |  |  ------------------
  |  |  608|  6.63k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  416|  6.63k|    IGRAPH_CHECK(igraph_attribute_record_list_init(&gattr, 0));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  417|  6.63k|    IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &gattr);
  ------------------
  |  |  603|  6.63k|    do { \
  |  |  604|  6.63k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.63k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.63k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.63k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.63k]
  |  |  ------------------
  |  |  608|  6.63k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  418|       |
  419|       |    /* Add default attribute values for vertices where needed */
  420|  13.8k|    for (i = 0; i < igraph_vector_ptr_size(&state->v_attrs); i++) {
  ------------------
  |  Branch (420:17): [True: 7.21k, False: 6.63k]
  ------------------
  421|  7.21k|        igraph_i_graphml_attribute_record_t *graphmlrec =
  422|  7.21k|            VECTOR(state->v_attrs)[i];
  ------------------
  |  |   60|  7.21k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  423|  7.21k|        igraph_attribute_record_t *rec = &graphmlrec->record;
  424|       |
  425|       |        /* Check that the name of the vertex attribute is not 'id'.
  426|       |         * If it is then we cannot add the complementary 'id' attribute. */
  427|  7.21k|        if (!strcmp(rec->name, idstr)) {
  ------------------
  |  Branch (427:13): [True: 3.33k, False: 3.87k]
  ------------------
  428|  3.33k|            already_has_vertex_id = 1;
  429|  3.33k|        }
  430|       |
  431|  7.21k|        if (rec->type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (431:13): [True: 7.16k, False: 51]
  ------------------
  432|  7.16k|            IGRAPH_CHECK(igraph_attribute_record_resize(rec, igraph_trie_size(&state->node_trie)));
  ------------------
  |  |  656|  7.16k|    do { \
  |  |  657|  7.16k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.16k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.16k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.16k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.16k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.16k]
  |  |  ------------------
  ------------------
  433|  7.16k|            IGRAPH_CHECK(igraph_attribute_record_list_push_back(&vattr, rec));
  ------------------
  |  |  656|  7.16k|    do { \
  |  |  657|  7.16k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  7.16k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  7.16k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 7.16k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  7.16k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 7.16k]
  |  |  ------------------
  ------------------
  434|  7.16k|            graphmlrec->record_disowned = true;
  435|  7.16k|        }
  436|  7.21k|    }
  437|       |
  438|       |    /* Add vertex ID attribute if needed */
  439|  6.63k|    if (!already_has_vertex_id) {
  ------------------
  |  Branch (439:9): [True: 3.29k, False: 3.33k]
  ------------------
  440|  3.29k|        IGRAPH_CHECK(igraph_attribute_record_list_push_back_new(&vattr, &idrec));
  ------------------
  |  |  656|  3.29k|    do { \
  |  |  657|  3.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.29k]
  |  |  ------------------
  ------------------
  441|  3.29k|        IGRAPH_CHECK(igraph_attribute_record_set_name(idrec, idstr));
  ------------------
  |  |  656|  3.29k|    do { \
  |  |  657|  3.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.29k]
  |  |  ------------------
  ------------------
  442|  3.29k|        IGRAPH_CHECK(igraph_attribute_record_set_type(idrec, IGRAPH_ATTRIBUTE_STRING));
  ------------------
  |  |  656|  3.29k|    do { \
  |  |  657|  3.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.29k]
  |  |  ------------------
  ------------------
  443|  3.29k|        IGRAPH_CHECK(igraph_strvector_update(idrec->value.as_strvector, igraph_i_trie_borrow_keys(&state->node_trie)));
  ------------------
  |  |  656|  3.29k|    do { \
  |  |  657|  3.29k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.29k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.29k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.29k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.29k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.29k]
  |  |  ------------------
  ------------------
  444|  3.33k|    } else {
  445|  3.33k|        IGRAPH_WARNING("Could not add vertex IDs, there is already an 'id' vertex attribute.");
  ------------------
  |  |  797|  3.33k|    do { \
  |  |  798|  3.33k|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  446|  3.33k|    }
  447|       |
  448|       |    /* Add default attribute values for edges where needed */
  449|  11.2k|    for (i = 0; i < igraph_vector_ptr_size(&state->e_attrs); i++) {
  ------------------
  |  Branch (449:17): [True: 4.63k, False: 6.63k]
  ------------------
  450|  4.63k|        igraph_i_graphml_attribute_record_t *graphmlrec =
  451|  4.63k|            VECTOR(state->e_attrs)[i];
  ------------------
  |  |   60|  4.63k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  452|  4.63k|        igraph_attribute_record_t *rec = &graphmlrec->record;
  453|       |
  454|  4.63k|        if (!strcmp(rec->name, idstr)) {
  ------------------
  |  Branch (454:13): [True: 816, False: 3.81k]
  ------------------
  455|    816|            already_has_edge_id = 1;
  456|    816|        }
  457|       |
  458|  4.63k|        if (rec->type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (458:13): [True: 4.47k, False: 155]
  ------------------
  459|  4.47k|            IGRAPH_CHECK(igraph_attribute_record_resize(rec, igraph_vector_int_size(&state->edgelist) / 2));
  ------------------
  |  |  656|  4.47k|    do { \
  |  |  657|  4.47k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  4.47k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  4.47k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  4.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 4.47k]
  |  |  ------------------
  ------------------
  460|  4.47k|            IGRAPH_CHECK(igraph_attribute_record_list_push_back(&eattr, rec));
  ------------------
  |  |  656|  4.47k|    do { \
  |  |  657|  4.47k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  4.47k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  4.47k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 4.47k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  4.47k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 4.47k]
  |  |  ------------------
  ------------------
  461|  4.47k|            graphmlrec->record_disowned = true;
  462|  4.47k|        }
  463|  4.63k|    }
  464|       |
  465|       |    /* Add edge ID attribute if needed */
  466|  6.63k|    if (igraph_strvector_size(&state->edgeids) != 0) {
  ------------------
  |  Branch (466:9): [True: 817, False: 5.81k]
  ------------------
  467|    817|        if (!already_has_edge_id) {
  ------------------
  |  Branch (467:13): [True: 816, False: 1]
  ------------------
  468|    816|            IGRAPH_CHECK(igraph_attribute_record_list_push_back_new(&eattr, &idrec));
  ------------------
  |  |  656|    816|    do { \
  |  |  657|    816|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    816|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    816|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 816]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    816|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 816]
  |  |  ------------------
  ------------------
  469|    816|            IGRAPH_CHECK(igraph_attribute_record_set_name(idrec, idstr));
  ------------------
  |  |  656|    816|    do { \
  |  |  657|    816|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    816|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    816|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 816]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    816|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 816]
  |  |  ------------------
  ------------------
  470|    816|            IGRAPH_CHECK(igraph_attribute_record_set_type(idrec, IGRAPH_ATTRIBUTE_STRING));
  ------------------
  |  |  656|    816|    do { \
  |  |  657|    816|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    816|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    816|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 816]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    816|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 816]
  |  |  ------------------
  ------------------
  471|    816|            IGRAPH_CHECK(igraph_strvector_update(idrec->value.as_strvector, &state->edgeids));
  ------------------
  |  |  656|    816|    do { \
  |  |  657|    816|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    816|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    816|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 816]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    816|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 816]
  |  |  ------------------
  ------------------
  472|    816|            IGRAPH_CHECK(igraph_attribute_record_resize(idrec, igraph_vector_int_size(&state->edgelist) / 2));
  ------------------
  |  |  656|    816|    do { \
  |  |  657|    816|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    816|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    816|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 816]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    816|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 816]
  |  |  ------------------
  ------------------
  473|    816|        } else {
  474|      1|            IGRAPH_WARNING("Could not add edge IDs, there is already an 'id' edge attribute.");
  ------------------
  |  |  797|      1|    do { \
  |  |  798|      1|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
  475|      1|        }
  476|    817|    }
  477|       |
  478|       |    /* Add default graph attribute values where needed */
  479|  8.25k|    for (i = 0; i < igraph_vector_ptr_size(&state->g_attrs); i++) {
  ------------------
  |  Branch (479:17): [True: 1.62k, False: 6.63k]
  ------------------
  480|  1.62k|        igraph_i_graphml_attribute_record_t *graphmlrec =
  481|  1.62k|            VECTOR(state->g_attrs)[i];
  ------------------
  |  |   60|  1.62k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  482|  1.62k|        igraph_attribute_record_t *rec = &graphmlrec->record;
  483|       |
  484|  1.62k|        if (rec->type != IGRAPH_ATTRIBUTE_UNSPECIFIED) {
  ------------------
  |  Branch (484:13): [True: 1.56k, False: 60]
  ------------------
  485|  1.56k|            IGRAPH_CHECK(igraph_attribute_record_resize(rec, 1));
  ------------------
  |  |  656|  1.56k|    do { \
  |  |  657|  1.56k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.56k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.56k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.56k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.56k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.56k]
  |  |  ------------------
  ------------------
  486|  1.56k|            IGRAPH_CHECK(igraph_attribute_record_list_push_back(&gattr, rec));
  ------------------
  |  |  656|  1.56k|    do { \
  |  |  657|  1.56k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.56k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.56k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.56k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.56k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.56k]
  |  |  ------------------
  ------------------
  487|  1.56k|            graphmlrec->record_disowned = true;
  488|  1.56k|        }
  489|  1.62k|    }
  490|       |
  491|  6.63k|    IGRAPH_CHECK(igraph_empty_attrs(state->g, 0, state->edges_directed, &gattr));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  492|  6.63k|    IGRAPH_FINALLY(igraph_destroy, state->g); /* because the next two lines may fail as well */
  ------------------
  |  |  603|  6.63k|    do { \
  |  |  604|  6.63k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  6.63k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  6.63k|         * incorrect destructor function with the pointer */ \
  |  |  607|  6.63k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 6.63k]
  |  |  ------------------
  |  |  608|  6.63k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  493|  6.63k|    IGRAPH_CHECK(igraph_add_vertices(state->g, igraph_trie_size(&state->node_trie), &vattr));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  494|  6.63k|    IGRAPH_CHECK(igraph_add_edges(state->g, &state->edgelist, &eattr));
  ------------------
  |  |  656|  6.63k|    do { \
  |  |  657|  6.63k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.63k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.63k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.63k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.63k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.63k]
  |  |  ------------------
  ------------------
  495|  6.63k|    IGRAPH_FINALLY_CLEAN(1); /* graph construction completed successfully */
  496|       |
  497|  6.63k|    igraph_attribute_record_list_destroy(&vattr);
  498|  6.63k|    igraph_attribute_record_list_destroy(&eattr);
  499|  6.63k|    igraph_attribute_record_list_destroy(&gattr);
  500|  6.63k|    IGRAPH_FINALLY_CLEAN(3);
  501|       |
  502|  6.63k|    return IGRAPH_SUCCESS;
  503|  6.63k|}
graphml.c:igraph_i_xml_escape:
 1428|   635k|static igraph_error_t igraph_i_xml_escape(const char *src, char **dest, const char *what) {
 1429|   635k|    igraph_int_t destlen = 0;
 1430|   635k|    const char *s;
 1431|   635k|    char *d;
 1432|   635k|    unsigned char ch;
 1433|       |
 1434|   228M|    for (s = src; *s; s++, destlen++) {
  ------------------
  |  Branch (1434:19): [True: 228M, False: 635k]
  ------------------
 1435|   228M|        ch = (unsigned char)(*s);
 1436|   228M|        if (ch == '&') {
  ------------------
  |  Branch (1436:13): [True: 1.79k, False: 228M]
  ------------------
 1437|  1.79k|            destlen += 4;
 1438|   228M|        } else if (ch == '<') {
  ------------------
  |  Branch (1438:20): [True: 114k, False: 227M]
  ------------------
 1439|   114k|            destlen += 3;
 1440|   227M|        } else if (ch == '>') {
  ------------------
  |  Branch (1440:20): [True: 8.21M, False: 219M]
  ------------------
 1441|  8.21M|            destlen += 3;
 1442|   219M|        } else if (ch == '"') {
  ------------------
  |  Branch (1442:20): [True: 16.0M, False: 203M]
  ------------------
 1443|  16.0M|            destlen += 5;
 1444|   203M|        } else if (ch == '\'') {
  ------------------
  |  Branch (1444:20): [True: 115M, False: 88.2M]
  ------------------
 1445|   115M|            destlen += 5;
 1446|   115M|        } else if (IS_FORBIDDEN_CONTROL_CHAR(ch)) {
  ------------------
  |  | 1420|  88.2M|#define IS_FORBIDDEN_CONTROL_CHAR(x) ((x) < ' ' && (x) != '\t' && (x) != '\r' && (x) != '\n')
  |  |  ------------------
  |  |  |  Branch (1420:39): [True: 8.03M, False: 80.2M]
  |  |  |  Branch (1420:52): [True: 7.84M, False: 194k]
  |  |  |  Branch (1420:67): [True: 7.83M, False: 4.49k]
  |  |  |  Branch (1420:82): [True: 0, False: 7.83M]
  |  |  ------------------
  ------------------
 1447|      0|            IGRAPH_ERRORF("Forbidden control character 0x%02X found while writing %s to GraphML.",
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
 1448|      0|                          IGRAPH_EINVAL, ch, what);
 1449|      0|        }
 1450|   228M|    }
 1451|   635k|    *dest = IGRAPH_CALLOC(destlen + 1, char);
  ------------------
  |  |   33|   635k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  1.27M|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 635k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 635k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 635k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1452|   635k|    IGRAPH_CHECK_OOM(*dest, "Insufficient memory to write GraphML file.");
  ------------------
  |  |  709|   635k|    do { \
  |  |  710|   635k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|   635k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 635k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   635k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 635k]
  |  |  ------------------
  ------------------
 1453|   228M|    for (s = src, d = *dest; *s; s++, d++) {
  ------------------
  |  Branch (1453:30): [True: 228M, False: 635k]
  ------------------
 1454|   228M|        ch = (unsigned char)(*s);
 1455|   228M|        switch (ch) {
 1456|  1.79k|        case '&':
  ------------------
  |  Branch (1456:9): [True: 1.79k, False: 228M]
  ------------------
 1457|  1.79k|            strcpy(d, "&amp;"); d += 4; break;
 1458|   114k|        case '<':
  ------------------
  |  Branch (1458:9): [True: 114k, False: 227M]
  ------------------
 1459|   114k|            strcpy(d, "&lt;"); d += 3; break;
 1460|  8.21M|        case '>':
  ------------------
  |  Branch (1460:9): [True: 8.21M, False: 219M]
  ------------------
 1461|  8.21M|            strcpy(d, "&gt;"); d += 3; break;
 1462|  16.0M|        case '"':
  ------------------
  |  Branch (1462:9): [True: 16.0M, False: 212M]
  ------------------
 1463|  16.0M|            strcpy(d, "&quot;"); d += 5; break;
 1464|   115M|        case '\'':
  ------------------
  |  Branch (1464:9): [True: 115M, False: 112M]
  ------------------
 1465|   115M|            strcpy(d, "&apos;"); d += 5; break;
 1466|  88.2M|        default:
  ------------------
  |  Branch (1466:9): [True: 88.2M, False: 139M]
  ------------------
 1467|  88.2M|            *d = ch;
 1468|   228M|        }
 1469|   228M|    }
 1470|   635k|    *d = 0;
 1471|   635k|    return IGRAPH_SUCCESS;
 1472|   635k|}

igraph_write_graph_leda:
   66|  3.33k|                                       const char *edge_attr_name) {
   67|  3.33k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
   68|  3.33k|    igraph_int_t no_of_edges = igraph_ecount(graph);
   69|  3.33k|    igraph_eit_t it;
   70|  3.33k|    igraph_int_t i = 0;
   71|  3.33k|    igraph_attribute_type_t vertex_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
   72|  3.33k|    igraph_attribute_type_t edge_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
   73|  3.33k|    igraph_int_t from, to, rev;
   74|       |
   75|  3.33k|    IGRAPH_CHECK(igraph_eit_create(graph, igraph_ess_all(IGRAPH_EDGEORDER_FROM), &it));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   76|  3.33k|    IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
   77|       |
   78|       |    /* Check if we have the vertex attribute */
   79|  3.33k|    if (vertex_attr_name &&
  ------------------
  |  Branch (79:9): [True: 3.33k, False: 0]
  ------------------
   80|  3.33k|        !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX, vertex_attr_name)) {
  ------------------
  |  Branch (80:9): [True: 2.89k, False: 446]
  ------------------
   81|  2.89k|        IGRAPH_WARNINGF("The vertex attribute '%s' does not exist. No vertex values will be written.",
  ------------------
  |  |  777|  2.89k|    do { \
  |  |  778|  2.89k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  2.89k|                        __VA_ARGS__); \
  |  |  780|  2.89k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 2.89k]
  |  |  ------------------
  ------------------
   82|  2.89k|                        vertex_attr_name);
   83|  2.89k|        vertex_attr_name = NULL;
   84|  2.89k|    }
   85|  3.33k|    if (vertex_attr_name) {
  ------------------
  |  Branch (85:9): [True: 446, False: 2.89k]
  ------------------
   86|    446|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &vertex_attr_type,
  ------------------
  |  |  656|    446|    do { \
  |  |  657|    446|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    446|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    446|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 446]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    446|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 446]
  |  |  ------------------
  ------------------
   87|    446|                                                IGRAPH_ATTRIBUTE_VERTEX, vertex_attr_name));
   88|    446|        if (vertex_attr_type != IGRAPH_ATTRIBUTE_NUMERIC &&
  ------------------
  |  Branch (88:13): [True: 425, False: 21]
  ------------------
   89|    425|            vertex_attr_type != IGRAPH_ATTRIBUTE_STRING &&
  ------------------
  |  Branch (89:13): [True: 48, False: 377]
  ------------------
   90|     48|            vertex_attr_type != IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (90:13): [True: 0, False: 48]
  ------------------
   91|      0|            IGRAPH_WARNINGF("The vertex attribute '%s' is not numeric, string or boolean. "
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
   92|      0|                            "No vertex values will be written.",
   93|      0|                            vertex_attr_name);
   94|      0|            vertex_attr_name = NULL; vertex_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
   95|      0|        }
   96|    446|    }
   97|       |
   98|       |    /* Check if we have the edge attribute */
   99|  3.33k|    if (edge_attr_name &&
  ------------------
  |  Branch (99:9): [True: 3.33k, False: 0]
  ------------------
  100|  3.33k|        !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, edge_attr_name)) {
  ------------------
  |  Branch (100:9): [True: 3.14k, False: 195]
  ------------------
  101|  3.14k|        IGRAPH_WARNINGF("The edge attribute '%s' does not exist. No edge values will be written.",
  ------------------
  |  |  777|  3.14k|    do { \
  |  |  778|  3.14k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  3.14k|                        __VA_ARGS__); \
  |  |  780|  3.14k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 3.14k]
  |  |  ------------------
  ------------------
  102|  3.14k|                        edge_attr_name);
  103|  3.14k|        edge_attr_name = NULL;
  104|  3.14k|    }
  105|  3.33k|    if (edge_attr_name) {
  ------------------
  |  Branch (105:9): [True: 195, False: 3.14k]
  ------------------
  106|    195|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &edge_attr_type,
  ------------------
  |  |  656|    195|    do { \
  |  |  657|    195|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    195|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    195|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 195]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    195|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 195]
  |  |  ------------------
  ------------------
  107|    195|                                                IGRAPH_ATTRIBUTE_EDGE, edge_attr_name));
  108|    195|        if (edge_attr_type != IGRAPH_ATTRIBUTE_NUMERIC &&
  ------------------
  |  Branch (108:13): [True: 45, False: 150]
  ------------------
  109|     45|            edge_attr_type != IGRAPH_ATTRIBUTE_STRING &&
  ------------------
  |  Branch (109:13): [True: 1, False: 44]
  ------------------
  110|      1|            edge_attr_type != IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (110:13): [True: 0, False: 1]
  ------------------
  111|      0|            IGRAPH_WARNINGF("The edge attribute '%s' is not numeric, string or boolean. "
  ------------------
  |  |  777|      0|    do { \
  |  |  778|      0|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|      0|                        __VA_ARGS__); \
  |  |  780|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  112|      0|                            "No edge values will be written.",
  113|      0|                            edge_attr_name);
  114|      0|            edge_attr_name = NULL; edge_attr_type = IGRAPH_ATTRIBUTE_UNSPECIFIED;
  115|      0|        }
  116|    195|    }
  117|       |
  118|       |    /* Start writing header */
  119|  3.33k|    CHECK(fprintf(outstream, "LEDA.GRAPH\n"));
  ------------------
  |  |   33|  3.33k|    do { \
  |  |   34|  3.33k|        int ret=(cmd); \
  |  |   35|  3.33k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.33k]
  |  |  ------------------
  |  |   36|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  120|       |
  121|  3.33k|    switch (vertex_attr_type) {
  122|     21|    case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (122:5): [True: 21, False: 3.31k]
  ------------------
  123|     21|        CHECK(fprintf(outstream, "double\n"));
  ------------------
  |  |   33|     21|    do { \
  |  |   34|     21|        int ret=(cmd); \
  |  |   35|     21|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 21]
  |  |  ------------------
  |  |   36|     21|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 21]
  |  |  ------------------
  ------------------
  124|     21|        break;
  125|    377|    case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (125:5): [True: 377, False: 2.96k]
  ------------------
  126|    377|        CHECK(fprintf(outstream, "string\n"));
  ------------------
  |  |   33|    377|    do { \
  |  |   34|    377|        int ret=(cmd); \
  |  |   35|    377|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 377]
  |  |  ------------------
  |  |   36|    377|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 377]
  |  |  ------------------
  ------------------
  127|    377|        break;
  128|    377|    case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (128:5): [True: 48, False: 3.29k]
  ------------------
  129|     48|        CHECK(fprintf(outstream, "bool\n"));
  ------------------
  |  |   33|     48|    do { \
  |  |   34|     48|        int ret=(cmd); \
  |  |   35|     48|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 48]
  |  |  ------------------
  |  |   36|     48|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 48]
  |  |  ------------------
  ------------------
  130|     48|        break;
  131|  2.89k|    default:
  ------------------
  |  Branch (131:5): [True: 2.89k, False: 446]
  ------------------
  132|  2.89k|        CHECK(fprintf(outstream, "void\n"));
  ------------------
  |  |   33|  2.89k|    do { \
  |  |   34|  2.89k|        int ret=(cmd); \
  |  |   35|  2.89k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 2.89k]
  |  |  ------------------
  |  |   36|  2.89k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 2.89k]
  |  |  ------------------
  ------------------
  133|  3.33k|    }
  134|       |
  135|  3.33k|    switch (edge_attr_type) {
  136|    150|    case IGRAPH_ATTRIBUTE_NUMERIC:
  ------------------
  |  Branch (136:5): [True: 150, False: 3.18k]
  ------------------
  137|    150|        CHECK(fprintf(outstream, "double\n"));
  ------------------
  |  |   33|    150|    do { \
  |  |   34|    150|        int ret=(cmd); \
  |  |   35|    150|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 150]
  |  |  ------------------
  |  |   36|    150|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 150]
  |  |  ------------------
  ------------------
  138|    150|        break;
  139|    150|    case IGRAPH_ATTRIBUTE_STRING:
  ------------------
  |  Branch (139:5): [True: 44, False: 3.29k]
  ------------------
  140|     44|        CHECK(fprintf(outstream, "string\n"));
  ------------------
  |  |   33|     44|    do { \
  |  |   34|     44|        int ret=(cmd); \
  |  |   35|     44|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 44]
  |  |  ------------------
  |  |   36|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  141|     44|        break;
  142|     44|    case IGRAPH_ATTRIBUTE_BOOLEAN:
  ------------------
  |  Branch (142:5): [True: 1, False: 3.33k]
  ------------------
  143|      1|        CHECK(fprintf(outstream, "bool\n"));
  ------------------
  |  |   33|      1|    do { \
  |  |   34|      1|        int ret=(cmd); \
  |  |   35|      1|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 1]
  |  |  ------------------
  |  |   36|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 1]
  |  |  ------------------
  ------------------
  144|      1|        break;
  145|  3.14k|    default:
  ------------------
  |  Branch (145:5): [True: 3.14k, False: 195]
  ------------------
  146|  3.14k|        CHECK(fprintf(outstream, "void\n"));
  ------------------
  |  |   33|  3.14k|    do { \
  |  |   34|  3.14k|        int ret=(cmd); \
  |  |   35|  3.14k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.14k]
  |  |  ------------------
  |  |   36|  3.14k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.14k]
  |  |  ------------------
  ------------------
  147|  3.33k|    }
  148|       |
  149|  3.33k|    CHECK(fprintf(outstream, "%d\n", (igraph_is_directed(graph) ? -1 : -2)));
  ------------------
  |  |   33|  3.33k|    do { \
  |  |   34|  6.67k|        int ret=(cmd); \
  |  |  ------------------
  |  |  |  Branch (34:18): [True: 139, False: 3.19k]
  |  |  ------------------
  |  |   35|  3.33k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.33k]
  |  |  ------------------
  |  |   36|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  150|       |
  151|       |    /* Start writing vertices */
  152|  3.33k|    CHECK(fprintf(outstream, "# Vertices\n"));
  ------------------
  |  |   33|  3.33k|    do { \
  |  |   34|  3.33k|        int ret=(cmd); \
  |  |   35|  3.33k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.33k]
  |  |  ------------------
  |  |   36|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  153|  3.33k|    CHECK(fprintf(outstream, "%" IGRAPH_PRId "\n", no_of_nodes));
  ------------------
  |  |   33|  3.33k|    do { \
  |  |   34|  3.33k|        int ret=(cmd); \
  |  |   35|  3.33k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.33k]
  |  |  ------------------
  |  |   36|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  154|       |
  155|  3.33k|    if (vertex_attr_type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (155:9): [True: 21, False: 3.31k]
  ------------------
  156|       |        /* Vertices with numeric attributes */
  157|     21|        igraph_vector_t values;
  158|       |
  159|     21|        IGRAPH_VECTOR_INIT_FINALLY(&values, no_of_nodes);
  ------------------
  |  |  104|     21|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     21|    do { \
  |  |  |  |  657|     21|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     21|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     21|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 21]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     21|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 21]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|     21|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     21|    do { \
  |  |  |  |  604|     21|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     21|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     21|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     21|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 21]
  |  |  |  |  ------------------
  |  |  |  |  608|     21|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     21|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 21]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 21]
  |  |  ------------------
  ------------------
  160|     21|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(
  ------------------
  |  |  656|     21|    do { \
  |  |  657|     21|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     21|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     21|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 21]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     21|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 21]
  |  |  ------------------
  ------------------
  161|     21|                         graph, vertex_attr_name, igraph_vss_all(), &values));
  162|       |
  163|    287|        for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (163:21): [True: 266, False: 21]
  ------------------
  164|    266|            CHECK(fprintf(outstream, "|{"));
  ------------------
  |  |   33|    266|    do { \
  |  |   34|    266|        int ret=(cmd); \
  |  |   35|    266|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 266]
  |  |  ------------------
  |  |   36|    266|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 266]
  |  |  ------------------
  ------------------
  165|    266|            CHECK(igraph_real_fprintf_precise(outstream, VECTOR(values)[i]));
  ------------------
  |  |   33|    266|    do { \
  |  |   34|    266|        int ret=(cmd); \
  |  |   35|    266|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 266]
  |  |  ------------------
  |  |   36|    266|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 266]
  |  |  ------------------
  ------------------
  166|    266|            CHECK(fprintf(outstream, "}|\n"));
  ------------------
  |  |   33|    266|    do { \
  |  |   34|    266|        int ret=(cmd); \
  |  |   35|    266|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 266]
  |  |  ------------------
  |  |   36|    266|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 266]
  |  |  ------------------
  ------------------
  167|    266|        }
  168|       |
  169|     21|        igraph_vector_destroy(&values);
  170|     21|        IGRAPH_FINALLY_CLEAN(1);
  171|  3.31k|    } else if (vertex_attr_type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (171:16): [True: 377, False: 2.94k]
  ------------------
  172|       |        /* Vertices with string attributes */
  173|    377|        igraph_strvector_t values;
  174|       |
  175|    377|        IGRAPH_CHECK(igraph_strvector_init(&values, no_of_nodes));
  ------------------
  |  |  656|    377|    do { \
  |  |  657|    377|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    377|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    377|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 377]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    377|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 377]
  |  |  ------------------
  ------------------
  176|    377|        IGRAPH_FINALLY(igraph_strvector_destroy, &values);
  ------------------
  |  |  603|    377|    do { \
  |  |  604|    377|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    377|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    377|         * incorrect destructor function with the pointer */ \
  |  |  607|    377|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 377]
  |  |  ------------------
  |  |  608|    377|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    377|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 377]
  |  |  ------------------
  ------------------
  177|       |
  178|    377|        IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(
  ------------------
  |  |  656|    377|    do { \
  |  |  657|    377|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    377|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    377|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 377]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    377|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 377]
  |  |  ------------------
  ------------------
  179|    377|                         graph, vertex_attr_name, igraph_vss_all(), &values));
  180|       |
  181|  7.44k|        for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (181:21): [True: 7.10k, False: 349]
  ------------------
  182|  7.10k|            const char *str = igraph_strvector_get(&values, i);
  183|  7.10k|            if (strchr(str, '\n') != 0) {
  ------------------
  |  Branch (183:17): [True: 28, False: 7.07k]
  ------------------
  184|     28|                IGRAPH_ERROR("Vertex attribute values cannot contain newline characters.",
  ------------------
  |  |  426|     28|    do { \
  |  |  427|     28|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     28|        return igraph_errno ; \
  |  |  429|     28|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  185|     28|                             IGRAPH_EINVAL);
  186|     28|            }
  187|  7.07k|            CHECK(fprintf(outstream, "|{%s}|\n", str));
  ------------------
  |  |   33|  7.07k|    do { \
  |  |   34|  7.07k|        int ret=(cmd); \
  |  |   35|  7.07k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 7.07k]
  |  |  ------------------
  |  |   36|  7.07k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 7.07k]
  |  |  ------------------
  ------------------
  188|  7.07k|        }
  189|       |
  190|    349|        igraph_strvector_destroy(&values);
  191|    349|        IGRAPH_FINALLY_CLEAN(1);
  192|  2.94k|    } else if (vertex_attr_type == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (192:16): [True: 48, False: 2.89k]
  ------------------
  193|       |        /* Vertices with boolean attributes */
  194|     48|        igraph_vector_bool_t values;
  195|       |
  196|     48|        IGRAPH_VECTOR_BOOL_INIT_FINALLY(&values, no_of_nodes);
  ------------------
  |  |  109|     48|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     48|    do { \
  |  |  |  |  657|     48|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     48|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     48|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 48]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     48|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|     48|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     48|    do { \
  |  |  |  |  604|     48|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     48|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     48|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     48|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 48]
  |  |  |  |  ------------------
  |  |  |  |  608|     48|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     48|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 48]
  |  |  ------------------
  ------------------
  197|     48|        IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(
  ------------------
  |  |  656|     48|    do { \
  |  |  657|     48|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     48|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     48|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 48]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     48|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 48]
  |  |  ------------------
  ------------------
  198|     48|                         graph, vertex_attr_name, igraph_vss_all(), &values));
  199|       |
  200|  1.92k|        for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (200:21): [True: 1.87k, False: 48]
  ------------------
  201|  1.87k|            CHECK(fprintf(outstream, "|{%s|}\n", VECTOR(values)[i] ? "true" : "false"));
  ------------------
  |  |   33|  1.87k|    do { \
  |  |   34|  3.75k|        int ret=(cmd); \
  |  |  ------------------
  |  |  |  Branch (34:18): [True: 0, False: 1.87k]
  |  |  ------------------
  |  |   35|  1.87k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 1.87k]
  |  |  ------------------
  |  |   36|  1.87k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 1.87k]
  |  |  ------------------
  ------------------
  202|  1.87k|        }
  203|       |
  204|     48|        igraph_vector_bool_destroy(&values);
  205|     48|        IGRAPH_FINALLY_CLEAN(1);
  206|  2.89k|    } else {
  207|       |        /* Vertices with no attributes */
  208|  27.7k|        for (i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (208:21): [True: 24.8k, False: 2.89k]
  ------------------
  209|  24.8k|            CHECK(fprintf(outstream, "|{}|\n"));
  ------------------
  |  |   33|  24.8k|    do { \
  |  |   34|  24.8k|        int ret=(cmd); \
  |  |   35|  24.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 24.8k]
  |  |  ------------------
  |  |   36|  24.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 24.8k]
  |  |  ------------------
  ------------------
  210|  24.8k|        }
  211|  2.89k|    }
  212|       |
  213|  3.31k|    CHECK(fprintf(outstream, "# Edges\n"));
  ------------------
  |  |   33|  3.31k|    do { \
  |  |   34|  3.31k|        int ret=(cmd); \
  |  |   35|  3.31k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.31k]
  |  |  ------------------
  |  |   36|  3.31k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.31k]
  |  |  ------------------
  ------------------
  214|  3.31k|    CHECK(fprintf(outstream, "%" IGRAPH_PRId "\n", no_of_edges));
  ------------------
  |  |   33|  3.31k|    do { \
  |  |   34|  3.31k|        int ret=(cmd); \
  |  |   35|  3.31k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 3.31k]
  |  |  ------------------
  |  |   36|  3.31k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 3.31k]
  |  |  ------------------
  ------------------
  215|       |
  216|  3.31k|    if (edge_attr_type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (216:9): [True: 149, False: 3.16k]
  ------------------
  217|       |        /* Edges with numeric attributes */
  218|    149|        igraph_vector_t values;
  219|    149|        IGRAPH_VECTOR_INIT_FINALLY(&values, no_of_nodes);
  ------------------
  |  |  104|    149|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|    149|    do { \
  |  |  |  |  657|    149|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|    149|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    149|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 149]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    149|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 149]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|    149|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|    149|    do { \
  |  |  |  |  604|    149|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|    149|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|    149|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|    149|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 149]
  |  |  |  |  ------------------
  |  |  |  |  608|    149|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|    149|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 149]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 149]
  |  |  ------------------
  ------------------
  220|    149|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(
  ------------------
  |  |  656|    149|    do { \
  |  |  657|    149|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    149|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    149|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 149]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    149|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 149]
  |  |  ------------------
  ------------------
  221|    149|                         graph, edge_attr_name, igraph_ess_all(IGRAPH_EDGEORDER_ID), &values));
  222|  40.9k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  40.9k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (222:16): [True: 40.8k, False: 149]
  ------------------
  223|  40.8k|            igraph_int_t eid = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  40.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 40.8k]
  |  |  ------------------
  |  |  406|  40.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  40.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  224|  40.8k|            IGRAPH_CHECK(igraph_edge(graph, eid, &from, &to));
  ------------------
  |  |  656|  40.8k|    do { \
  |  |  657|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  225|  40.8k|            IGRAPH_CHECK(igraph_get_eid(graph, &rev, to, from, IGRAPH_DIRECTED, false));
  ------------------
  |  |  656|  40.8k|    do { \
  |  |  657|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  226|  40.8k|            if (rev == IGRAPH_EIT_GET(it)) {
  ------------------
  |  |  405|  40.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 40.8k]
  |  |  ------------------
  |  |  406|  40.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  40.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (226:17): [True: 1.95k, False: 38.8k]
  ------------------
  227|  1.95k|                rev = -1;
  228|  1.95k|            }
  229|  40.8k|            CHECK(fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId " %" IGRAPH_PRId " |{",
  ------------------
  |  |   33|  40.8k|    do { \
  |  |   34|  40.8k|        int ret=(cmd); \
  |  |   35|  40.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 40.8k]
  |  |  ------------------
  |  |   36|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  230|  40.8k|                          from + 1, to + 1,
  231|  40.8k|                          rev + 1));
  232|  40.8k|            CHECK(igraph_real_fprintf_precise(outstream, VECTOR(values)[eid]));
  ------------------
  |  |   33|  40.8k|    do { \
  |  |   34|  40.8k|        int ret=(cmd); \
  |  |   35|  40.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 40.8k]
  |  |  ------------------
  |  |   36|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  233|  40.8k|            CHECK(fprintf(outstream, "}|\n"));
  ------------------
  |  |   33|  40.8k|    do { \
  |  |   34|  40.8k|        int ret=(cmd); \
  |  |   35|  40.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 40.8k]
  |  |  ------------------
  |  |   36|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  234|  40.8k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  40.8k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  235|  40.8k|        }
  236|    149|        igraph_vector_destroy(&values);
  237|    149|        IGRAPH_FINALLY_CLEAN(1);
  238|  3.16k|    } else if (edge_attr_type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (238:16): [True: 44, False: 3.11k]
  ------------------
  239|       |        /* Edges with string attributes */
  240|     44|        igraph_strvector_t values;
  241|     44|        IGRAPH_CHECK(igraph_strvector_init(&values, no_of_nodes));
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  242|     44|        IGRAPH_FINALLY(igraph_strvector_destroy, &values);
  ------------------
  |  |  603|     44|    do { \
  |  |  604|     44|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|     44|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|     44|         * incorrect destructor function with the pointer */ \
  |  |  607|     44|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 44]
  |  |  ------------------
  |  |  608|     44|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  243|     44|        IGRAPH_CHECK(igraph_i_attribute_get_string_edge_attr(
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  244|     44|                         graph, edge_attr_name, igraph_ess_all(IGRAPH_EDGEORDER_ID), &values));
  245|  19.8k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  19.8k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (245:16): [True: 19.8k, False: 43]
  ------------------
  246|  19.8k|            igraph_int_t eid = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  19.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 19.8k]
  |  |  ------------------
  |  |  406|  19.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  19.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  247|  19.8k|            const char *str = igraph_strvector_get(&values, eid);
  248|  19.8k|            IGRAPH_CHECK(igraph_edge(graph, eid, &from, &to));
  ------------------
  |  |  656|  19.8k|    do { \
  |  |  657|  19.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  19.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  19.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 19.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  19.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 19.8k]
  |  |  ------------------
  ------------------
  249|  19.8k|            IGRAPH_CHECK(igraph_get_eid(graph, &rev, to, from, IGRAPH_DIRECTED, false));
  ------------------
  |  |  656|  19.8k|    do { \
  |  |  657|  19.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  19.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  19.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 19.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  19.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 19.8k]
  |  |  ------------------
  ------------------
  250|  19.8k|            if (rev == IGRAPH_EIT_GET(it)) {
  ------------------
  |  |  405|  19.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 19.8k]
  |  |  ------------------
  |  |  406|  19.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  19.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (250:17): [True: 368, False: 19.4k]
  ------------------
  251|    368|                rev = -1;
  252|    368|            }
  253|  19.8k|            if (strchr(str, '\n') != 0) {
  ------------------
  |  Branch (253:17): [True: 1, False: 19.8k]
  ------------------
  254|      1|                IGRAPH_ERROR("Edge attribute values cannot contain newline characters.",
  ------------------
  |  |  426|      1|    do { \
  |  |  427|      1|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|      1|        return igraph_errno ; \
  |  |  429|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  255|      1|                             IGRAPH_EINVAL);
  256|      1|            }
  257|  19.8k|            CHECK(fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId " %" IGRAPH_PRId " |{%s}|\n",
  ------------------
  |  |   33|  19.8k|    do { \
  |  |   34|  19.8k|        int ret=(cmd); \
  |  |   35|  19.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 19.8k]
  |  |  ------------------
  |  |   36|  19.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 19.8k]
  |  |  ------------------
  ------------------
  258|  19.8k|                          from + 1, to + 1,
  259|  19.8k|                          rev + 1, str));
  260|  19.8k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  19.8k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  261|  19.8k|        }
  262|     43|        igraph_strvector_destroy(&values);
  263|     43|        IGRAPH_FINALLY_CLEAN(1);
  264|  3.11k|    } else if (vertex_attr_type == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (264:16): [True: 47, False: 3.07k]
  ------------------
  265|       |        /* Edges with boolean attributes */
  266|     47|        igraph_vector_bool_t values;
  267|       |
  268|     47|        IGRAPH_VECTOR_BOOL_INIT_FINALLY(&values, no_of_edges);
  ------------------
  |  |  109|     47|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     47|    do { \
  |  |  |  |  657|     47|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     47|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     47|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 47]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     47|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 47]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|     47|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     47|    do { \
  |  |  |  |  604|     47|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     47|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     47|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     47|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 47]
  |  |  |  |  ------------------
  |  |  |  |  608|     47|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     47|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 47]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 47]
  |  |  ------------------
  ------------------
  269|     47|        IGRAPH_CHECK(igraph_i_attribute_get_bool_edge_attr(
  ------------------
  |  |  656|     47|    do { \
  |  |  657|     47|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     47|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     47|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 17, False: 30]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     17|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     17|    do { \
  |  |  |  |  427|     17|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     17|        return igraph_errno ; \
  |  |  |  |  429|     17|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     17|        } \
  |  |  661|     47|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 30]
  |  |  ------------------
  ------------------
  270|     47|                         graph, vertex_attr_name, igraph_ess_all(IGRAPH_EDGEORDER_ID), &values));
  271|       |
  272|  31.8k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  31.8k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (272:16): [True: 31.8k, False: 30]
  ------------------
  273|  31.8k|            igraph_int_t eid = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  31.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |  406|  31.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  31.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  274|  31.8k|            IGRAPH_CHECK(igraph_edge(graph, eid, &from, &to));
  ------------------
  |  |  656|  31.8k|    do { \
  |  |  657|  31.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  31.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  31.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  31.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
  275|  31.8k|            IGRAPH_CHECK(igraph_get_eid(graph, &rev, to, from, IGRAPH_DIRECTED, false));
  ------------------
  |  |  656|  31.8k|    do { \
  |  |  657|  31.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  31.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  31.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 31.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  31.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
  276|  31.8k|            if (rev == IGRAPH_EIT_GET(it)) {
  ------------------
  |  |  405|  31.8k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |  406|  31.8k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  31.8k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (276:17): [True: 1.41k, False: 30.4k]
  ------------------
  277|  1.41k|                rev = -1;
  278|  1.41k|            }
  279|  31.8k|            CHECK(fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId " %" IGRAPH_PRId " |{%s}|\n",
  ------------------
  |  |   33|  31.8k|    do { \
  |  |   34|  63.6k|        int ret=(cmd); \
  |  |  ------------------
  |  |  |  Branch (34:18): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |   35|  31.8k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 31.8k]
  |  |  ------------------
  |  |   36|  31.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 31.8k]
  |  |  ------------------
  ------------------
  280|  31.8k|                          from + 1, to + 1,
  281|  31.8k|                          rev + 1,
  282|  31.8k|                          VECTOR(values)[eid] ? "true" : "false"));
  283|  31.8k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  31.8k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  284|  31.8k|        }
  285|       |
  286|     30|        igraph_vector_bool_destroy(&values);
  287|     30|        IGRAPH_FINALLY_CLEAN(1);
  288|  3.07k|    } else {
  289|       |        /* Edges with no attributes */
  290|   254k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|   254k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (290:16): [True: 251k, False: 3.07k]
  ------------------
  291|   251k|            IGRAPH_CHECK(igraph_edge(graph, IGRAPH_EIT_GET(it), &from, &to));
  ------------------
  |  |  656|   251k|    do { \
  |  |  657|   502k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  ------------------
  |  |  |  Branch (657:40): [True: 0, False: 251k]
  |  |  ------------------
  |  |  658|   251k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   251k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 251k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   251k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 251k]
  |  |  ------------------
  ------------------
  292|   251k|            IGRAPH_CHECK(igraph_get_eid(graph, &rev, to, from, IGRAPH_DIRECTED, false));
  ------------------
  |  |  656|   251k|    do { \
  |  |  657|   251k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   251k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   251k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 251k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   251k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 251k]
  |  |  ------------------
  ------------------
  293|   251k|            if (rev == IGRAPH_EIT_GET(it)) {
  ------------------
  |  |  405|   251k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 251k]
  |  |  ------------------
  |  |  406|   251k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|   251k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  |  Branch (293:17): [True: 17.2k, False: 233k]
  ------------------
  294|  17.2k|                rev = -1;
  295|  17.2k|            }
  296|   251k|            CHECK(fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId " %" IGRAPH_PRId " |{}|\n",
  ------------------
  |  |   33|   251k|    do { \
  |  |   34|   251k|        int ret=(cmd); \
  |  |   35|   251k|        if (ret<0) IGRAPH_ERROR("Writing LEDA format failed.", IGRAPH_EFILE); \
  |  |  ------------------
  |  |  |  |  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 (35:13): [True: 0, False: 251k]
  |  |  ------------------
  |  |   36|   251k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (36:14): [Folded, False: 251k]
  |  |  ------------------
  ------------------
  297|   251k|                          from + 1, to + 1,
  298|   251k|                          rev + 1));
  299|   251k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|   251k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  300|   251k|        }
  301|  3.07k|    }
  302|       |
  303|  3.29k|    igraph_eit_destroy(&it);
  304|  3.29k|    IGRAPH_FINALLY_CLEAN(1);
  305|       |
  306|  3.29k|    return IGRAPH_SUCCESS;
  307|  3.31k|}

igraph_read_graph_lgl:
  107|  3.20k|                          igraph_bool_t directed) {
  108|       |
  109|  3.20k|    igraph_vector_int_t edges = IGRAPH_VECTOR_NULL;
  ------------------
  |  |   99|  3.20k|    #define IGRAPH_VECTOR_NULL { 0,0,0 }
  ------------------
  110|  3.20k|    igraph_vector_t ws = IGRAPH_VECTOR_NULL;
  ------------------
  |  |   99|  3.20k|    #define IGRAPH_VECTOR_NULL { 0,0,0 }
  ------------------
  111|  3.20k|    igraph_trie_t trie = IGRAPH_TRIE_NULL;
  ------------------
  |  |   52|  3.20k|        { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   60|  3.20k|#define IGRAPH_STRVECTOR_NULL { 0,0,0 }
  |  |  ------------------
  |  |                       { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   44|  3.20k|#define IGRAPH_VECTOR_PTR_NULL { 0,0,0,0 }
  |  |  ------------------
  |  |                       { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   99|  3.20k|    #define IGRAPH_VECTOR_NULL { 0,0,0 }
  |  |  ------------------
  |  |   53|  3.20k|            0, 0, IGRAPH_STRVECTOR_NULL }
  |  |  ------------------
  |  |  |  |   60|  3.20k|#define IGRAPH_STRVECTOR_NULL { 0,0,0 }
  |  |  ------------------
  ------------------
  112|  3.20k|    igraph_attribute_record_list_t name, weight;
  113|  3.20k|    igraph_attribute_record_list_t *pname = NULL, *pweight = NULL;
  114|  3.20k|    igraph_attribute_record_t *namerec, *weightrec;
  115|  3.20k|    const char *namestr = "name", *weightstr = "weight";
  116|  3.20k|    igraph_i_lgl_parsedata_t context;
  117|       |
  118|  3.20k|    IGRAPH_VECTOR_INIT_FINALLY(&ws, 0);
  ------------------
  |  |  104|  3.20k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.20k|    do { \
  |  |  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.20k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.20k|    do { \
  |  |  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  119|  3.20k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&edges, 0);
  ------------------
  |  |  119|  3.20k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.20k|    do { \
  |  |  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.20k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.20k|    do { \
  |  |  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  120|  3.20k|    IGRAPH_TRIE_INIT_FINALLY(&trie, names);
  ------------------
  |  |   55|  3.20k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.20k|    do { \
  |  |  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  |  |  ------------------
  |  |  |  |  |  |  426|      0|    do { \
  |  |  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  660|      0|        } \
  |  |  |  |  661|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.20k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.20k|    do { \
  |  |  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.20k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  121|       |
  122|  3.20k|    context.has_weights = false;
  123|  3.20k|    context.vector = &edges;
  124|  3.20k|    context.weights = &ws;
  125|  3.20k|    context.trie = &trie;
  126|  3.20k|    context.errmsg[0] = '\0';
  127|  3.20k|    context.igraph_errno = IGRAPH_SUCCESS;
  128|       |
  129|  3.20k|    igraph_lgl_yylex_init_extra(&context, &context.scanner);
  130|  3.20k|    IGRAPH_FINALLY(igraph_lgl_yylex_destroy_wrapper, context.scanner);
  ------------------
  |  |  603|  3.20k|    do { \
  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  ------------------
  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  131|       |
  132|  3.20k|    igraph_lgl_yyset_in(instream, context.scanner);
  133|       |
  134|       |    /* Use ENTER/EXIT to avoid destroying context.scanner before this function returns */
  135|  3.20k|    IGRAPH_FINALLY_ENTER();
  136|  3.20k|    int err = igraph_lgl_yyparse(&context);
  137|  3.20k|    IGRAPH_FINALLY_EXIT();
  138|  3.20k|    switch (err) {
  139|  3.20k|    case 0: /* success */
  ------------------
  |  Branch (139:5): [True: 3.20k, False: 0]
  ------------------
  140|  3.20k|        break;
  141|      0|    case 1: /* parse error */
  ------------------
  |  Branch (141:5): [True: 0, False: 3.20k]
  ------------------
  142|      0|        if (context.errmsg[0] != '\0') {
  ------------------
  |  Branch (142:13): [True: 0, False: 0]
  ------------------
  143|      0|            IGRAPH_ERROR(context.errmsg, IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  144|      0|        } else if (context.igraph_errno != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (144:20): [True: 0, False: 0]
  ------------------
  145|      0|            IGRAPH_ERROR("", context.igraph_errno);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  146|      0|        } else {
  147|      0|            IGRAPH_ERROR("Cannot read LGL file.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  148|      0|        }
  149|      0|        break;
  150|      0|    case 2: /* out of memory */
  ------------------
  |  Branch (150:5): [True: 0, False: 3.20k]
  ------------------
  151|      0|        IGRAPH_ERROR("Cannot read LGL file.", 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]
  |  |  ------------------
  ------------------
  152|      0|        break;
  153|      0|    default: /* must never reach here */
  ------------------
  |  Branch (153:5): [True: 0, False: 3.20k]
  ------------------
  154|       |        /* Hint: This will usually be triggered if an IGRAPH_CHECK() is used in a Bison
  155|       |         * action instead of an IGRAPH_YY_CHECK(), resulting in an igraph errno being
  156|       |         * returned in place of a Bison error code.
  157|       |         * TODO: What if future Bison versions introduce error codes other than 0, 1 and 2?
  158|       |         */
  159|      0|        IGRAPH_FATALF("Parser returned unexpected error code (%d) when reading LGL file.", err);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  160|  3.20k|    }
  161|       |
  162|       |    /* Prepare attributes if needed */
  163|  3.20k|    if (names) {
  ------------------
  |  Branch (163:9): [True: 3.20k, False: 0]
  ------------------
  164|  3.20k|        IGRAPH_CHECK(igraph_attribute_record_list_init(&name, 1));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  165|  3.20k|        IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &name);
  ------------------
  |  |  603|  3.20k|    do { \
  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  ------------------
  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  166|       |
  167|  3.20k|        namerec = igraph_attribute_record_list_get_ptr(&name, 0);
  168|  3.20k|        IGRAPH_CHECK(igraph_attribute_record_set_name(namerec, namestr));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  169|  3.20k|        IGRAPH_CHECK(igraph_attribute_record_set_type(namerec, IGRAPH_ATTRIBUTE_STRING));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  170|  3.20k|        IGRAPH_CHECK(igraph_strvector_update(
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  171|  3.20k|            namerec->value.as_strvector, igraph_i_trie_borrow_keys(context.trie))
  172|  3.20k|        );
  173|       |
  174|  3.20k|        pname = &name;
  175|  3.20k|    }
  176|       |
  177|  3.20k|    if (weights == IGRAPH_ADD_WEIGHTS_YES ||
  ------------------
  |  Branch (177:9): [True: 0, False: 3.20k]
  ------------------
  178|  3.20k|        (weights == IGRAPH_ADD_WEIGHTS_IF_PRESENT && context.has_weights)) {
  ------------------
  |  Branch (178:10): [True: 3.20k, False: 0]
  |  Branch (178:54): [True: 136, False: 3.07k]
  ------------------
  179|    136|        IGRAPH_CHECK(igraph_attribute_record_list_init(&weight, 1));
  ------------------
  |  |  656|    136|    do { \
  |  |  657|    136|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    136|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    136|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 136]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    136|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 136]
  |  |  ------------------
  ------------------
  180|    136|        IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &weight);
  ------------------
  |  |  603|    136|    do { \
  |  |  604|    136|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    136|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    136|         * incorrect destructor function with the pointer */ \
  |  |  607|    136|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 136]
  |  |  ------------------
  |  |  608|    136|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    136|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 136]
  |  |  ------------------
  ------------------
  181|       |
  182|    136|        weightrec = igraph_attribute_record_list_get_ptr(&weight, 0);
  183|    136|        IGRAPH_CHECK(igraph_attribute_record_set_name(weightrec, weightstr));
  ------------------
  |  |  656|    136|    do { \
  |  |  657|    136|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    136|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    136|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 136]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    136|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 136]
  |  |  ------------------
  ------------------
  184|    136|        IGRAPH_CHECK(igraph_attribute_record_set_type(weightrec, IGRAPH_ATTRIBUTE_NUMERIC));
  ------------------
  |  |  656|    136|    do { \
  |  |  657|    136|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    136|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    136|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 136]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    136|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 136]
  |  |  ------------------
  ------------------
  185|    136|        igraph_vector_swap(weightrec->value.as_vector, context.weights);
  186|       |
  187|    136|        pweight = &weight;
  188|    136|    }
  189|       |
  190|       |    /* Create graph */
  191|  3.20k|    IGRAPH_CHECK(igraph_empty(graph, 0, directed));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  192|  3.20k|    IGRAPH_FINALLY(igraph_destroy, graph);
  ------------------
  |  |  603|  3.20k|    do { \
  |  |  604|  3.20k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.20k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.20k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.20k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.20k]
  |  |  ------------------
  |  |  608|  3.20k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  193|  3.20k|    IGRAPH_CHECK(igraph_add_vertices(graph, igraph_trie_size(&trie), pname));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  194|  3.20k|    IGRAPH_CHECK(igraph_add_edges(graph, &edges, pweight));
  ------------------
  |  |  656|  3.20k|    do { \
  |  |  657|  3.20k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.20k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.20k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  3.20k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.20k]
  |  |  ------------------
  ------------------
  195|       |
  196|  3.20k|    if (pweight) {
  ------------------
  |  Branch (196:9): [True: 136, False: 3.07k]
  ------------------
  197|    136|        igraph_attribute_record_list_destroy(pweight);
  198|    136|        IGRAPH_FINALLY_CLEAN(1);
  199|    136|    }
  200|  3.20k|    if (pname) {
  ------------------
  |  Branch (200:9): [True: 3.20k, False: 0]
  ------------------
  201|  3.20k|        igraph_attribute_record_list_destroy(pname);
  202|  3.20k|        IGRAPH_FINALLY_CLEAN(1);
  203|  3.20k|    }
  204|  3.20k|    igraph_trie_destroy(&trie);
  205|  3.20k|    igraph_vector_int_destroy(&edges);
  206|  3.20k|    igraph_vector_destroy(&ws);
  207|  3.20k|    igraph_lgl_yylex_destroy(context.scanner);
  208|  3.20k|    IGRAPH_FINALLY_CLEAN(5);
  209|       |
  210|  3.20k|    return IGRAPH_SUCCESS;
  211|  3.20k|}
igraph_write_graph_lgl:
  292|  3.33k|                           igraph_bool_t isolates) {
  293|  3.33k|    igraph_eit_t it;
  294|  3.33k|    igraph_int_t actvertex = -1;
  295|  3.33k|    igraph_attribute_type_t nametype, weighttype;
  296|  3.33k|    const igraph_int_t vcount = igraph_vcount(graph), ecount = igraph_ecount(graph);
  297|       |
  298|  3.33k|    IGRAPH_CHECK(igraph_eit_create(graph, igraph_ess_all(IGRAPH_EDGEORDER_FROM),
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  299|  3.33k|                                   &it));
  300|  3.33k|    IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  301|       |
  302|       |    /* Check if we have the names attribute */
  303|  3.33k|    if (names && !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX,
  ------------------
  |  Branch (303:9): [True: 3.33k, False: 0]
  |  Branch (303:18): [True: 2.89k, False: 446]
  ------------------
  304|  3.33k|            names)) {
  305|  2.89k|        IGRAPH_WARNINGF("Names attribute '%s' does not exist.", names);
  ------------------
  |  |  777|  2.89k|    do { \
  |  |  778|  2.89k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  2.89k|                        __VA_ARGS__); \
  |  |  780|  2.89k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 2.89k]
  |  |  ------------------
  ------------------
  306|  2.89k|        names = NULL;
  307|  2.89k|    }
  308|  3.33k|    if (names) {
  ------------------
  |  Branch (308:9): [True: 446, False: 2.89k]
  ------------------
  309|    446|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &nametype,
  ------------------
  |  |  656|    446|    do { \
  |  |  657|    446|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    446|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    446|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 446]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    446|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 446]
  |  |  ------------------
  ------------------
  310|    446|                                                IGRAPH_ATTRIBUTE_VERTEX, names));
  311|    446|        if (nametype != IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (311:13): [True: 69, False: 377]
  ------------------
  312|     69|            IGRAPH_WARNINGF("Ignoring names attribute '%s', unknown attribute type.", names);
  ------------------
  |  |  777|     69|    do { \
  |  |  778|     69|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|     69|                        __VA_ARGS__); \
  |  |  780|     69|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 69]
  |  |  ------------------
  ------------------
  313|     69|            names = NULL;
  314|     69|        }
  315|    446|    }
  316|       |
  317|       |    /* Check the weights as well */
  318|  3.33k|    if (weights && !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, weights)) {
  ------------------
  |  Branch (318:9): [True: 3.33k, False: 0]
  |  Branch (318:20): [True: 3.14k, False: 195]
  ------------------
  319|  3.14k|        IGRAPH_WARNINGF("Weights attribute '%s' does not exist.", weights);
  ------------------
  |  |  777|  3.14k|    do { \
  |  |  778|  3.14k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  3.14k|                        __VA_ARGS__); \
  |  |  780|  3.14k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 3.14k]
  |  |  ------------------
  ------------------
  320|  3.14k|        weights = NULL;
  321|  3.14k|    }
  322|  3.33k|    if (weights) {
  ------------------
  |  Branch (322:9): [True: 195, False: 3.14k]
  ------------------
  323|    195|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &weighttype,
  ------------------
  |  |  656|    195|    do { \
  |  |  657|    195|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    195|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    195|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 195]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    195|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 195]
  |  |  ------------------
  ------------------
  324|    195|                                                IGRAPH_ATTRIBUTE_EDGE, weights));
  325|    195|        if (weighttype != IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (325:13): [True: 45, False: 150]
  ------------------
  326|     45|            IGRAPH_WARNINGF("Ignoring weights attribute '%s', unknown attribute type.", weights);
  ------------------
  |  |  777|     45|    do { \
  |  |  778|     45|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|     45|                        __VA_ARGS__); \
  |  |  780|     45|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 45]
  |  |  ------------------
  ------------------
  327|     45|            weights = NULL;
  328|     45|        }
  329|    195|    }
  330|       |
  331|  3.33k|    if (names == NULL && weights == NULL) {
  ------------------
  |  Branch (331:9): [True: 2.96k, False: 377]
  |  Branch (331:26): [True: 2.85k, False: 106]
  ------------------
  332|       |        /* No names, no weights */
  333|   302k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|   302k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (333:16): [True: 299k, False: 2.85k]
  ------------------
  334|   299k|            igraph_int_t from, to;
  335|   299k|            int ret;
  336|       |
  337|   299k|            IGRAPH_CHECK(igraph_edge(graph, IGRAPH_EIT_GET(it), &from, &to));
  ------------------
  |  |  656|   299k|    do { \
  |  |  657|   599k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  ------------------
  |  |  |  Branch (657:40): [True: 0, False: 299k]
  |  |  ------------------
  |  |  658|   299k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   299k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 299k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   299k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 299k]
  |  |  ------------------
  ------------------
  338|   299k|            if (from == actvertex) {
  ------------------
  |  Branch (338:17): [True: 289k, False: 10.5k]
  ------------------
  339|   289k|                ret = fprintf(outstream, "%" IGRAPH_PRId "\n", to);
  340|   289k|            } else {
  341|  10.5k|                actvertex = from;
  342|  10.5k|                ret = fprintf(outstream, "# %" IGRAPH_PRId "\n%" IGRAPH_PRId "\n", from, to);
  343|  10.5k|            }
  344|   299k|            if (ret < 0) {
  ------------------
  |  Branch (344:17): [True: 0, False: 299k]
  ------------------
  345|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  346|      0|            }
  347|   299k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|   299k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  348|   299k|        }
  349|  2.85k|    } else if (weights == NULL) {
  ------------------
  |  Branch (349:16): [True: 333, False: 150]
  ------------------
  350|       |        /* No weights but use names */
  351|    333|        igraph_strvector_t nvec;
  352|    333|        IGRAPH_STRVECTOR_INIT_FINALLY(&nvec, vcount);
  ------------------
  |  |   62|    333|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|    333|    do { \
  |  |  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 333]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    333|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 333]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|    333|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|    333|    do { \
  |  |  |  |  604|    333|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|    333|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|    333|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|    333|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 333]
  |  |  |  |  ------------------
  |  |  |  |  608|    333|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|    333|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 333]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 333]
  |  |  ------------------
  ------------------
  353|    333|        IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, names,
  ------------------
  |  |  656|    333|    do { \
  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 333]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 333]
  |  |  ------------------
  ------------------
  354|    333|                     igraph_vss_all(),
  355|    333|                     &nvec));
  356|    333|        IGRAPH_CHECK(check_names(graph, &nvec, isolates));
  ------------------
  |  |  656|    333|    do { \
  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 122, False: 211]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|    122|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|    122|    do { \
  |  |  |  |  427|    122|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|    122|        return igraph_errno ; \
  |  |  |  |  429|    122|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|    122|        } \
  |  |  661|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 211]
  |  |  ------------------
  ------------------
  357|  5.59k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  5.59k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (357:16): [True: 5.38k, False: 211]
  ------------------
  358|  5.38k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  5.38k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 5.38k]
  |  |  ------------------
  |  |  406|  5.38k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  5.38k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  359|  5.38k|            igraph_int_t from, to;
  360|  5.38k|            int ret = 0;
  361|  5.38k|            const char *str1, *str2;
  362|       |
  363|  5.38k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  5.38k|    do { \
  |  |  657|  5.38k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.38k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.38k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.38k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.38k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.38k]
  |  |  ------------------
  ------------------
  364|  5.38k|            str2 = igraph_strvector_get(&nvec, to);
  365|       |
  366|  5.38k|            if (from == actvertex) {
  ------------------
  |  Branch (366:17): [True: 3.20k, False: 2.18k]
  ------------------
  367|  3.20k|                ret = fprintf(outstream, "%s\n", str2);
  368|  3.20k|            } else {
  369|  2.18k|                actvertex = from;
  370|  2.18k|                str1 = igraph_strvector_get(&nvec, from);
  371|  2.18k|                ret = fprintf(outstream, "# %s\n%s\n", str1, str2);
  372|  2.18k|            }
  373|  5.38k|            if (ret < 0) {
  ------------------
  |  Branch (373:17): [True: 0, False: 5.38k]
  ------------------
  374|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  375|      0|            }
  376|  5.38k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  5.38k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  377|  5.38k|        }
  378|    211|        igraph_strvector_destroy(&nvec);
  379|    211|        IGRAPH_FINALLY_CLEAN(1);
  380|    211|    } else if (names == NULL) {
  ------------------
  |  Branch (380:16): [True: 106, False: 44]
  ------------------
  381|       |        /* No names but weights */
  382|    106|        igraph_vector_t wvec;
  383|    106|        IGRAPH_VECTOR_INIT_FINALLY(&wvec, ecount);
  ------------------
  |  |  104|    106|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|    106|    do { \
  |  |  |  |  657|    106|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|    106|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    106|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 106]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    106|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|    106|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|    106|    do { \
  |  |  |  |  604|    106|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|    106|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|    106|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|    106|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  |  |  608|    106|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|    106|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 106]
  |  |  ------------------
  ------------------
  384|    106|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, weights,
  ------------------
  |  |  656|    106|    do { \
  |  |  657|    106|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    106|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    106|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    106|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 106]
  |  |  ------------------
  ------------------
  385|    106|                     igraph_ess_all(IGRAPH_EDGEORDER_ID),
  386|    106|                     &wvec));
  387|  39.2k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  39.2k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (387:16): [True: 39.1k, False: 106]
  ------------------
  388|  39.1k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  39.1k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 39.1k]
  |  |  ------------------
  |  |  406|  39.1k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  39.1k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  389|  39.1k|            igraph_int_t from, to;
  390|  39.1k|            int ret1, ret2, ret3;
  391|       |
  392|  39.1k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  39.1k|    do { \
  |  |  657|  39.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  39.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  39.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 39.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  39.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 39.1k]
  |  |  ------------------
  ------------------
  393|  39.1k|            if (from == actvertex) {
  ------------------
  |  Branch (393:17): [True: 38.0k, False: 1.08k]
  ------------------
  394|  38.0k|                ret1 = fprintf(outstream, "%" IGRAPH_PRId " ", to);
  395|  38.0k|            } else {
  396|  1.08k|                actvertex = from;
  397|  1.08k|                ret1 = fprintf(outstream, "# %" IGRAPH_PRId "\n%" IGRAPH_PRId " ", from, to);
  398|  1.08k|            }
  399|  39.1k|            ret2 = igraph_real_fprintf_precise(outstream, VECTOR(wvec)[edge]);
  ------------------
  |  |   60|  39.1k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  400|  39.1k|            ret3 = fputc('\n', outstream);
  401|  39.1k|            if (ret1 < 0 || ret2 < 0 || ret3 == EOF) {
  ------------------
  |  Branch (401:17): [True: 0, False: 39.1k]
  |  Branch (401:29): [True: 0, False: 39.1k]
  |  Branch (401:41): [True: 0, False: 39.1k]
  ------------------
  402|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  403|      0|            }
  404|  39.1k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  39.1k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  405|  39.1k|        }
  406|    106|        igraph_vector_destroy(&wvec);
  407|    106|        IGRAPH_FINALLY_CLEAN(1);
  408|    106|    } else {
  409|       |        /* Both names and weights */
  410|     44|        igraph_strvector_t nvec;
  411|     44|        igraph_vector_t wvec;
  412|     44|        IGRAPH_VECTOR_INIT_FINALLY(&wvec, ecount);
  ------------------
  |  |  104|     44|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     44|    do { \
  |  |  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|     44|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     44|    do { \
  |  |  |  |  604|     44|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     44|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     44|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     44|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  |  |  608|     44|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 44]
  |  |  ------------------
  ------------------
  413|     44|        IGRAPH_STRVECTOR_INIT_FINALLY(&nvec, vcount);
  ------------------
  |  |   62|     44|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|     44|    do { \
  |  |  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|     44|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|     44|    do { \
  |  |  |  |  604|     44|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     44|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     44|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     44|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  |  |  608|     44|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 44]
  |  |  ------------------
  ------------------
  414|     44|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, weights,
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  415|     44|                     igraph_ess_all(IGRAPH_EDGEORDER_ID),
  416|     44|                     &wvec));
  417|     44|        IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, names,
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  418|     44|                     igraph_vss_all(),
  419|     44|                     &nvec));
  420|     44|        IGRAPH_CHECK(check_names(graph, &nvec, isolates));
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 9, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      9|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      9|    do { \
  |  |  |  |  427|      9|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      9|        return igraph_errno ; \
  |  |  |  |  429|      9|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      9|        } \
  |  |  661|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 35]
  |  |  ------------------
  ------------------
  421|  1.75k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  1.75k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (421:16): [True: 1.71k, False: 35]
  ------------------
  422|  1.71k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  1.71k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 0, False: 1.71k]
  |  |  ------------------
  |  |  406|  1.71k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|  1.71k|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  423|  1.71k|            igraph_int_t from, to;
  424|  1.71k|            int ret = 0, ret2;
  425|  1.71k|            const char *str1, *str2;
  426|       |
  427|  1.71k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  1.71k|    do { \
  |  |  657|  1.71k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.71k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.71k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.71k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.71k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.71k]
  |  |  ------------------
  ------------------
  428|  1.71k|            str2 = igraph_strvector_get(&nvec, to);
  429|       |
  430|  1.71k|            if (from == actvertex) {
  ------------------
  |  Branch (430:17): [True: 1.54k, False: 174]
  ------------------
  431|  1.54k|                ret = fprintf(outstream, "%s ", str2);
  432|  1.54k|            } else {
  433|    174|                actvertex = from;
  434|    174|                str1 = igraph_strvector_get(&nvec, from);
  435|    174|                ret = fprintf(outstream, "# %s\n%s ", str1, str2);
  436|    174|            }
  437|  1.71k|            if (ret < 0) {
  ------------------
  |  Branch (437:17): [True: 0, False: 1.71k]
  ------------------
  438|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  439|      0|            }
  440|  1.71k|            ret = igraph_real_fprintf_precise(outstream, VECTOR(wvec)[edge]);
  ------------------
  |  |   60|  1.71k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  441|  1.71k|            ret2 = fputc('\n', outstream);
  442|  1.71k|            if (ret < 0 || ret2 == EOF) {
  ------------------
  |  Branch (442:17): [True: 0, False: 1.71k]
  |  Branch (442:28): [True: 0, False: 1.71k]
  ------------------
  443|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  444|      0|            }
  445|  1.71k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  1.71k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  446|  1.71k|        }
  447|     35|        igraph_strvector_destroy(&nvec);
  448|     35|        igraph_vector_destroy(&wvec);
  449|     35|        IGRAPH_FINALLY_CLEAN(2);
  450|     35|    }
  451|       |
  452|  3.20k|    if (isolates) {
  ------------------
  |  Branch (452:9): [True: 0, False: 3.20k]
  ------------------
  453|      0|        igraph_int_t nov = vcount;
  454|      0|        igraph_int_t i;
  455|      0|        int ret = 0;
  456|      0|        igraph_int_t deg;
  457|      0|        igraph_strvector_t nvec;
  458|      0|        const char *str;
  459|       |
  460|      0|        IGRAPH_STRVECTOR_INIT_FINALLY(&nvec, 1);
  ------------------
  |  |   62|      0|    do { IGRAPH_CHECK(igraph_strvector_init(sv, 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]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|      0|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } 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 (63:65): [Folded, False: 0]
  |  |  ------------------
  ------------------
  461|      0|        for (i = 0; i < nov; i++) {
  ------------------
  |  Branch (461:21): [True: 0, False: 0]
  ------------------
  462|      0|            IGRAPH_CHECK(igraph_degree_1(graph, &deg, i, IGRAPH_ALL, IGRAPH_LOOPS));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  463|      0|            if (deg == 0) {
  ------------------
  |  Branch (463:17): [True: 0, False: 0]
  ------------------
  464|      0|                if (names == NULL) {
  ------------------
  |  Branch (464:21): [True: 0, False: 0]
  ------------------
  465|      0|                    ret = fprintf(outstream, "# %" IGRAPH_PRId "\n", i);
  466|      0|                } else {
  467|      0|                    IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, names,
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  468|      0|                                 igraph_vss_1(i), &nvec));
  469|      0|                    str = igraph_strvector_get(&nvec, 0);
  470|      0|                    ret = fprintf(outstream, "# %s\n", str);
  471|      0|                }
  472|      0|            }
  473|      0|            if (ret < 0) {
  ------------------
  |  Branch (473:17): [True: 0, False: 0]
  ------------------
  474|      0|                IGRAPH_ERROR("Writing LGL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  475|      0|            }
  476|      0|        }
  477|      0|        igraph_strvector_destroy(&nvec);
  478|      0|        IGRAPH_FINALLY_CLEAN(1);
  479|      0|    }
  480|       |
  481|  3.20k|    igraph_eit_destroy(&it);
  482|  3.20k|    IGRAPH_FINALLY_CLEAN(1);
  483|  3.20k|    return IGRAPH_SUCCESS;
  484|  3.20k|}
lgl.c:check_names:
  237|    377|                                  igraph_bool_t isolates) {
  238|    377|    const igraph_int_t vcount = igraph_vcount(graph);
  239|       |
  240|  5.70k|    for (igraph_int_t v = 0; v < vcount; v++) {
  ------------------
  |  Branch (240:30): [True: 5.45k, False: 246]
  ------------------
  241|  5.45k|        if (!isolates) {
  ------------------
  |  Branch (241:13): [True: 5.45k, False: 0]
  ------------------
  242|  5.45k|            igraph_int_t deg;
  243|  5.45k|            IGRAPH_CHECK(igraph_degree_1(graph, &deg, v, IGRAPH_ALL, IGRAPH_LOOPS));
  ------------------
  |  |  656|  5.45k|    do { \
  |  |  657|  5.45k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.45k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.45k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 5.45k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.45k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.45k]
  |  |  ------------------
  ------------------
  244|  5.45k|            if (deg == 0) {
  ------------------
  |  Branch (244:17): [True: 18, False: 5.43k]
  ------------------
  245|     18|                continue;
  246|     18|            }
  247|  5.45k|        }
  248|  5.43k|        IGRAPH_CHECK(check_name(igraph_strvector_get(nvec, v)));
  ------------------
  |  |  656|  5.43k|    do { \
  |  |  657|  5.43k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  5.43k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  5.43k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 131, False: 5.30k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|    131|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|    131|    do { \
  |  |  |  |  427|    131|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|    131|        return igraph_errno ; \
  |  |  |  |  429|    131|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|    131|        } \
  |  |  661|  5.43k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 5.30k]
  |  |  ------------------
  ------------------
  249|  5.43k|    }
  250|    246|    return IGRAPH_SUCCESS;
  251|    377|}
lgl.c:check_name:
  214|  5.43k|static igraph_error_t check_name(const char *name) {
  215|  5.43k|    size_t len = 0;
  216|       |
  217|  18.8M|    for (; *name != '\0'; name++, len++) {
  ------------------
  |  Branch (217:12): [True: 18.8M, False: 5.34k]
  ------------------
  218|  18.8M|        if (   *name <= 0x020 /* space or non-printable */
  ------------------
  |  Branch (218:16): [True: 46, False: 18.8M]
  ------------------
  219|  18.8M|            || *name == 0x7f /* del */
  ------------------
  |  Branch (219:16): [True: 2, False: 18.8M]
  ------------------
  220|  18.8M|            || *name == '#') {
  ------------------
  |  Branch (220:16): [True: 49, False: 18.8M]
  ------------------
  221|     97|            IGRAPH_ERRORF("The LGL format does not allow non-printable characters, spaces or '#' in vertex names. "
  ------------------
  |  |  464|     97|    do { \
  |  |  465|     97|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     97|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     97|        return igraph_errno; \
  |  |  468|     97|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  222|     97|                          "Character code 0x%02X found.", IGRAPH_EINVAL,
  223|     97|                           *name);
  224|     97|        }
  225|  18.8M|    }
  226|  5.34k|    if (len == 0) {
  ------------------
  |  Branch (226:9): [True: 34, False: 5.30k]
  ------------------
  227|     34|        IGRAPH_ERROR("The LGL format does not support empty vertex names.", IGRAPH_EINVAL);
  ------------------
  |  |  426|     34|    do { \
  |  |  427|     34|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     34|        return igraph_errno ; \
  |  |  429|     34|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  228|     34|    }
  229|  5.30k|    return IGRAPH_SUCCESS;
  230|  5.34k|}

igraph_read_graph_ncol:
  109|  3.25k|                           igraph_bool_t directed) {
  110|       |
  111|  3.25k|    igraph_vector_int_t edges;
  112|  3.25k|    igraph_vector_t ws;
  113|  3.25k|    igraph_trie_t trie = IGRAPH_TRIE_NULL;
  ------------------
  |  |   52|  3.25k|        { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   60|  3.25k|#define IGRAPH_STRVECTOR_NULL { 0,0,0 }
  |  |  ------------------
  |  |                       { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   44|  3.25k|#define IGRAPH_VECTOR_PTR_NULL { 0,0,0,0 }
  |  |  ------------------
  |  |                       { { IGRAPH_STRVECTOR_NULL, IGRAPH_VECTOR_PTR_NULL, IGRAPH_VECTOR_NULL}, \
  |  |  ------------------
  |  |  |  |   99|  3.25k|    #define IGRAPH_VECTOR_NULL { 0,0,0 }
  |  |  ------------------
  |  |   53|  3.25k|            0, 0, IGRAPH_STRVECTOR_NULL }
  |  |  ------------------
  |  |  |  |   60|  3.25k|#define IGRAPH_STRVECTOR_NULL { 0,0,0 }
  |  |  ------------------
  ------------------
  114|  3.25k|    igraph_int_t no_of_nodes;
  115|  3.25k|    igraph_int_t no_predefined = 0;
  116|  3.25k|    igraph_attribute_record_list_t name, weight;
  117|  3.25k|    igraph_attribute_record_list_t *pname = NULL, *pweight = NULL;
  118|  3.25k|    igraph_attribute_record_t *namerec, *weightrec;
  119|  3.25k|    const char *namestr = "name", *weightstr = "weight";
  120|  3.25k|    igraph_i_ncol_parsedata_t context;
  121|       |
  122|  3.25k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&edges, 0);
  ------------------
  |  |  119|  3.25k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.25k|    do { \
  |  |  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.25k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.25k|    do { \
  |  |  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  123|       |
  124|  3.25k|    IGRAPH_TRIE_INIT_FINALLY(&trie, names);
  ------------------
  |  |   55|  3.25k|    do { IGRAPH_CHECK(igraph_trie_init(tr, sk)); \
  |  |  ------------------
  |  |  |  |  656|  3.25k|    do { \
  |  |  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   56|  3.25k|        IGRAPH_FINALLY(igraph_trie_destroy, tr); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.25k|    do { \
  |  |  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (56:59): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  125|  3.25k|    IGRAPH_VECTOR_INIT_FINALLY(&ws, 0);
  ------------------
  |  |  104|  3.25k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.25k|    do { \
  |  |  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.25k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.25k|    do { \
  |  |  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.25k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  126|       |
  127|       |    /* Add the predefined names, if any */
  128|  3.25k|    if (predefnames != 0) {
  ------------------
  |  Branch (128:9): [True: 0, False: 3.25k]
  ------------------
  129|      0|        igraph_int_t i, id, n;
  130|      0|        const char *key;
  131|      0|        n = no_predefined = igraph_strvector_size(predefnames);
  132|      0|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (132:21): [True: 0, False: 0]
  ------------------
  133|      0|            key = igraph_strvector_get(predefnames, i);
  134|      0|            IGRAPH_CHECK(igraph_trie_get(&trie, key, &id));
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  135|      0|            if (id != i) {
  ------------------
  |  Branch (135:17): [True: 0, False: 0]
  ------------------
  136|      0|                IGRAPH_WARNING("Reading NCOL file, duplicate entry in predefined names.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  137|      0|                no_predefined--;
  138|      0|            }
  139|      0|        }
  140|      0|    }
  141|       |
  142|  3.25k|    context.has_weights = false;
  143|  3.25k|    context.vector = &edges;
  144|  3.25k|    context.weights = &ws;
  145|  3.25k|    context.trie = &trie;
  146|  3.25k|    context.errmsg[0] = '\0';
  147|  3.25k|    context.igraph_errno = IGRAPH_SUCCESS;
  148|       |
  149|  3.25k|    igraph_ncol_yylex_init_extra(&context, &context.scanner);
  150|  3.25k|    IGRAPH_FINALLY(igraph_ncol_yylex_destroy_wrapper, context.scanner);
  ------------------
  |  |  603|  3.25k|    do { \
  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  ------------------
  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  151|       |
  152|  3.25k|    igraph_ncol_yyset_in(instream, context.scanner);
  153|       |
  154|       |    /* Use ENTER/EXIT to avoid destroying context.scanner before this function returns */
  155|  3.25k|    IGRAPH_FINALLY_ENTER();
  156|  3.25k|    int err = igraph_ncol_yyparse(&context);
  157|  3.25k|    IGRAPH_FINALLY_EXIT();
  158|  3.25k|    switch (err) {
  159|  3.25k|    case 0: /* success */
  ------------------
  |  Branch (159:5): [True: 3.25k, False: 0]
  ------------------
  160|  3.25k|        break;
  161|      0|    case 1: /* parse error */
  ------------------
  |  Branch (161:5): [True: 0, False: 3.25k]
  ------------------
  162|      0|        if (context.errmsg[0] != '\0') {
  ------------------
  |  Branch (162:13): [True: 0, False: 0]
  ------------------
  163|      0|            IGRAPH_ERROR(context.errmsg, IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  164|      0|        } else if (context.igraph_errno != IGRAPH_SUCCESS) {
  ------------------
  |  Branch (164:20): [True: 0, False: 0]
  ------------------
  165|      0|            IGRAPH_ERROR("", context.igraph_errno);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  166|      0|        } else {
  167|      0|            IGRAPH_ERROR("Cannot read NCOL file.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  168|      0|        }
  169|      0|        break;
  170|      0|    case 2: /* out of memory */
  ------------------
  |  Branch (170:5): [True: 0, False: 3.25k]
  ------------------
  171|      0|        IGRAPH_ERROR("Cannot read NCOL file.", 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]
  |  |  ------------------
  ------------------
  172|      0|        break;
  173|      0|    default: /* must never reach here */
  ------------------
  |  Branch (173:5): [True: 0, False: 3.25k]
  ------------------
  174|       |        /* Hint: This will usually be triggered if an IGRAPH_CHECK() is used in a Bison
  175|       |         * action instead of an IGRAPH_YY_CHECK(), resulting in an igraph errno being
  176|       |         * returned in place of a Bison error code.
  177|       |         * TODO: What if future Bison versions introduce error codes other than 0, 1 and 2?
  178|       |         */
  179|      0|        IGRAPH_FATALF("Parser returned unexpected error code (%d) when reading NCOL file.", err);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  180|  3.25k|    }
  181|       |
  182|  3.25k|    if (predefnames != 0 &&
  ------------------
  |  Branch (182:9): [True: 0, False: 3.25k]
  ------------------
  183|      0|        igraph_trie_size(&trie) != no_predefined) {
  ------------------
  |  Branch (183:9): [True: 0, False: 0]
  ------------------
  184|      0|        IGRAPH_WARNING("Unknown vertex/vertices found in NCOL file, predefined names extended.");
  ------------------
  |  |  797|      0|    do { \
  |  |  798|      0|        igraph_warning(reason, IGRAPH_FILE_BASENAME, __LINE__); \
  |  |  799|      0|    } while (0)
  |  |  ------------------
  |  |  |  Branch (799:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  185|      0|    }
  186|       |
  187|       |    /* Prepare attributes if needed */
  188|  3.25k|    if (names) {
  ------------------
  |  Branch (188:9): [True: 3.25k, False: 0]
  ------------------
  189|  3.25k|        IGRAPH_CHECK(igraph_attribute_record_list_init(&name, 1));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  190|  3.25k|        IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &name);
  ------------------
  |  |  603|  3.25k|    do { \
  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  ------------------
  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  191|       |
  192|  3.25k|        namerec = igraph_attribute_record_list_get_ptr(&name, 0);
  193|  3.25k|        IGRAPH_CHECK(igraph_attribute_record_set_name(namerec, namestr));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  194|  3.25k|        IGRAPH_CHECK(igraph_attribute_record_set_type(namerec, IGRAPH_ATTRIBUTE_STRING));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  195|  3.25k|        IGRAPH_CHECK(igraph_strvector_update(
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  196|  3.25k|            namerec->value.as_strvector, igraph_i_trie_borrow_keys(context.trie))
  197|  3.25k|        );
  198|       |
  199|  3.25k|        pname = &name;
  200|  3.25k|    }
  201|       |
  202|  3.25k|    if (weights == IGRAPH_ADD_WEIGHTS_YES ||
  ------------------
  |  Branch (202:9): [True: 0, False: 3.25k]
  ------------------
  203|  3.25k|        (weights == IGRAPH_ADD_WEIGHTS_IF_PRESENT && context.has_weights)) {
  ------------------
  |  Branch (203:10): [True: 3.25k, False: 0]
  |  Branch (203:54): [True: 139, False: 3.11k]
  ------------------
  204|    139|        IGRAPH_CHECK(igraph_attribute_record_list_init(&weight, 1));
  ------------------
  |  |  656|    139|    do { \
  |  |  657|    139|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    139|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    139|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 139]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    139|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 139]
  |  |  ------------------
  ------------------
  205|    139|        IGRAPH_FINALLY(igraph_attribute_record_list_destroy, &weight);
  ------------------
  |  |  603|    139|    do { \
  |  |  604|    139|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    139|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    139|         * incorrect destructor function with the pointer */ \
  |  |  607|    139|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 139]
  |  |  ------------------
  |  |  608|    139|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    139|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 139]
  |  |  ------------------
  ------------------
  206|       |
  207|    139|        weightrec = igraph_attribute_record_list_get_ptr(&weight, 0);
  208|    139|        IGRAPH_CHECK(igraph_attribute_record_set_name(weightrec, weightstr));
  ------------------
  |  |  656|    139|    do { \
  |  |  657|    139|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    139|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    139|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 139]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    139|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 139]
  |  |  ------------------
  ------------------
  209|    139|        IGRAPH_CHECK(igraph_attribute_record_set_type(weightrec, IGRAPH_ATTRIBUTE_NUMERIC));
  ------------------
  |  |  656|    139|    do { \
  |  |  657|    139|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    139|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    139|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 139]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    139|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 139]
  |  |  ------------------
  ------------------
  210|    139|        igraph_vector_swap(weightrec->value.as_vector, context.weights);
  211|       |
  212|    139|        pweight = &weight;
  213|    139|    }
  214|       |
  215|  3.25k|    if (igraph_vector_int_empty(&edges)) {
  ------------------
  |  Branch (215:9): [True: 918, False: 2.33k]
  ------------------
  216|    918|        no_of_nodes = 0;
  217|  2.33k|    } else {
  218|  2.33k|        no_of_nodes = igraph_vector_int_max(&edges) + 1;
  219|  2.33k|    }
  220|       |
  221|       |    /* Create graph */
  222|  3.25k|    IGRAPH_CHECK(igraph_empty(graph, 0, directed));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  223|  3.25k|    IGRAPH_FINALLY(igraph_destroy, graph);
  ------------------
  |  |  603|  3.25k|    do { \
  |  |  604|  3.25k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.25k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.25k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.25k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.25k]
  |  |  ------------------
  |  |  608|  3.25k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  224|  3.25k|    IGRAPH_CHECK(igraph_add_vertices(graph, no_of_nodes, pname));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  225|  3.25k|    IGRAPH_CHECK(igraph_add_edges(graph, &edges, pweight));
  ------------------
  |  |  656|  3.25k|    do { \
  |  |  657|  3.25k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.25k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.25k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.25k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.25k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.25k]
  |  |  ------------------
  ------------------
  226|       |
  227|  3.25k|    if (pname) {
  ------------------
  |  Branch (227:9): [True: 3.25k, False: 0]
  ------------------
  228|  3.25k|        igraph_attribute_record_list_destroy(pname);
  229|  3.25k|        IGRAPH_FINALLY_CLEAN(1);
  230|  3.25k|    }
  231|  3.25k|    if (pweight) {
  ------------------
  |  Branch (231:9): [True: 139, False: 3.11k]
  ------------------
  232|    139|        igraph_attribute_record_list_destroy(pweight);
  233|    139|        IGRAPH_FINALLY_CLEAN(1);
  234|    139|    }
  235|  3.25k|    igraph_vector_destroy(&ws);
  236|  3.25k|    igraph_trie_destroy(&trie);
  237|  3.25k|    igraph_vector_int_destroy(&edges);
  238|  3.25k|    igraph_ncol_yylex_destroy(context.scanner);
  239|  3.25k|    IGRAPH_FINALLY_CLEAN(5); /* +1 for 'graph' */
  240|       |
  241|  3.25k|    return IGRAPH_SUCCESS;
  242|  3.25k|}
igraph_write_graph_ncol:
  317|  3.33k|                            const char *names, const char *weights) {
  318|  3.33k|    igraph_eit_t it;
  319|  3.33k|    igraph_attribute_type_t nametype, weighttype;
  320|       |
  321|  3.33k|    IGRAPH_CHECK(igraph_eit_create(graph, igraph_ess_all(IGRAPH_EDGEORDER_ID),
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  322|  3.33k|                                   &it));
  323|  3.33k|    IGRAPH_FINALLY(igraph_eit_destroy, &it);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  324|       |
  325|       |    /* Check if we have the names attribute */
  326|  3.33k|    if (names && !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX,
  ------------------
  |  Branch (326:9): [True: 3.33k, False: 0]
  |  Branch (326:18): [True: 2.89k, False: 446]
  ------------------
  327|  3.33k|            names)) {
  328|  2.89k|        IGRAPH_WARNINGF("Names attribute '%s' does not exist.", names);
  ------------------
  |  |  777|  2.89k|    do { \
  |  |  778|  2.89k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  2.89k|                        __VA_ARGS__); \
  |  |  780|  2.89k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 2.89k]
  |  |  ------------------
  ------------------
  329|  2.89k|        names = NULL;
  330|  2.89k|    }
  331|  3.33k|    if (names) {
  ------------------
  |  Branch (331:9): [True: 446, False: 2.89k]
  ------------------
  332|    446|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &nametype,
  ------------------
  |  |  656|    446|    do { \
  |  |  657|    446|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    446|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    446|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 446]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    446|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 446]
  |  |  ------------------
  ------------------
  333|    446|                                                IGRAPH_ATTRIBUTE_VERTEX, names));
  334|    446|        if (nametype != IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (334:13): [True: 69, False: 377]
  ------------------
  335|     69|            IGRAPH_WARNINGF("Ignoring names attribute '%s', "
  ------------------
  |  |  777|     69|    do { \
  |  |  778|     69|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|     69|                        __VA_ARGS__); \
  |  |  780|     69|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 69]
  |  |  ------------------
  ------------------
  336|     69|                    "attribute type is not a string.", names);
  337|     69|            names = NULL;
  338|     69|        }
  339|    446|    }
  340|       |
  341|       |    /* Check the weights as well */
  342|  3.33k|    if (weights && !igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, weights)) {
  ------------------
  |  Branch (342:9): [True: 3.33k, False: 0]
  |  Branch (342:20): [True: 3.14k, False: 195]
  ------------------
  343|  3.14k|        IGRAPH_WARNINGF("Weights attribute '%s' does not exist.", weights);
  ------------------
  |  |  777|  3.14k|    do { \
  |  |  778|  3.14k|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|  3.14k|                        __VA_ARGS__); \
  |  |  780|  3.14k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 3.14k]
  |  |  ------------------
  ------------------
  344|  3.14k|        weights = NULL;
  345|  3.14k|    }
  346|  3.33k|    if (weights) {
  ------------------
  |  Branch (346:9): [True: 195, False: 3.14k]
  ------------------
  347|    195|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &weighttype,
  ------------------
  |  |  656|    195|    do { \
  |  |  657|    195|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    195|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    195|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 195]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    195|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 195]
  |  |  ------------------
  ------------------
  348|    195|                                                IGRAPH_ATTRIBUTE_EDGE, weights));
  349|    195|        if (weighttype != IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (349:13): [True: 45, False: 150]
  ------------------
  350|     45|            IGRAPH_WARNINGF("Ignoring weights attribute '%s', "
  ------------------
  |  |  777|     45|    do { \
  |  |  778|     45|        igraph_warningf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  779|     45|                        __VA_ARGS__); \
  |  |  780|     45|    } while (0)
  |  |  ------------------
  |  |  |  Branch (780:14): [Folded, False: 45]
  |  |  ------------------
  ------------------
  351|     45|                    "attribute type is not numeric.", weights);
  352|     45|            weights = NULL;
  353|     45|        }
  354|    195|    }
  355|       |
  356|  3.33k|    if (names == NULL && weights == NULL) {
  ------------------
  |  Branch (356:9): [True: 2.96k, False: 377]
  |  Branch (356:26): [True: 2.85k, False: 106]
  ------------------
  357|       |        /* No names, no weights */
  358|   302k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|   302k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (358:16): [True: 299k, False: 2.85k]
  ------------------
  359|   299k|            igraph_int_t from, to;
  360|   299k|            int ret;
  361|       |
  362|   299k|            IGRAPH_CHECK(igraph_edge(graph, IGRAPH_EIT_GET(it), &from, &to));
  ------------------
  |  |  656|   299k|    do { \
  |  |  657|   599k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  ------------------
  |  |  |  Branch (657:40): [True: 299k, False: 0]
  |  |  ------------------
  |  |  658|   299k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   299k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 299k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   299k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 299k]
  |  |  ------------------
  ------------------
  363|   299k|            ret = fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId "\n", from, to);
  364|   299k|            if (ret < 0) {
  ------------------
  |  Branch (364:17): [True: 0, False: 299k]
  ------------------
  365|      0|                IGRAPH_ERROR("Writing NCOL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  366|      0|            }
  367|   299k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|   299k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  368|   299k|        }
  369|  2.85k|    } else if (weights == NULL) {
  ------------------
  |  Branch (369:16): [True: 333, False: 150]
  ------------------
  370|       |        /* No weights, but use names */
  371|    333|        igraph_strvector_t nvec;
  372|    333|        IGRAPH_CHECK(igraph_strvector_init(&nvec, igraph_vcount(graph)));
  ------------------
  |  |  656|    333|    do { \
  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 333]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 333]
  |  |  ------------------
  ------------------
  373|    333|        IGRAPH_FINALLY(igraph_strvector_destroy, &nvec);
  ------------------
  |  |  603|    333|    do { \
  |  |  604|    333|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|    333|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|    333|         * incorrect destructor function with the pointer */ \
  |  |  607|    333|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 333]
  |  |  ------------------
  |  |  608|    333|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 333]
  |  |  ------------------
  ------------------
  374|    333|        IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, names,
  ------------------
  |  |  656|    333|    do { \
  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 333]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 333]
  |  |  ------------------
  ------------------
  375|    333|                     igraph_vss_all(),
  376|    333|                     &nvec));
  377|    333|        IGRAPH_CHECK(check_names(graph, &nvec));
  ------------------
  |  |  656|    333|    do { \
  |  |  657|    333|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    333|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    333|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 79, False: 254]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     79|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     79|    do { \
  |  |  |  |  427|     79|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     79|        return igraph_errno ; \
  |  |  |  |  429|     79|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     79|        } \
  |  |  661|    333|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 254]
  |  |  ------------------
  ------------------
  378|  6.62k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  6.62k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (378:16): [True: 6.37k, False: 254]
  ------------------
  379|  6.37k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  6.37k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 6.37k, False: 0]
  |  |  ------------------
  |  |  406|  6.37k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  380|  6.37k|            igraph_int_t from, to;
  381|  6.37k|            int ret = 0;
  382|  6.37k|            const char *str1, *str2;
  383|       |
  384|  6.37k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  6.37k|    do { \
  |  |  657|  6.37k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.37k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.37k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.37k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.37k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.37k]
  |  |  ------------------
  ------------------
  385|  6.37k|            str1 = igraph_strvector_get(&nvec, from);
  386|  6.37k|            str2 = igraph_strvector_get(&nvec, to);
  387|  6.37k|            ret = fprintf(outstream, "%s %s\n", str1, str2);
  388|  6.37k|            if (ret < 0) {
  ------------------
  |  Branch (388:17): [True: 0, False: 6.37k]
  ------------------
  389|      0|                IGRAPH_ERROR("Writing NCOL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  390|      0|            }
  391|  6.37k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  6.37k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  392|  6.37k|        }
  393|    254|        igraph_strvector_destroy(&nvec);
  394|    254|        IGRAPH_FINALLY_CLEAN(1);
  395|    254|    } else if (names == NULL) {
  ------------------
  |  Branch (395:16): [True: 106, False: 44]
  ------------------
  396|       |        /* No names but weights */
  397|    106|        igraph_vector_t wvec;
  398|    106|        IGRAPH_VECTOR_INIT_FINALLY(&wvec, igraph_ecount(graph));
  ------------------
  |  |  104|    106|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|    106|    do { \
  |  |  |  |  657|    106|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|    106|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    106|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 106]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    106|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|    106|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|    106|    do { \
  |  |  |  |  604|    106|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|    106|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|    106|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|    106|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  |  |  608|    106|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|    106|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 106]
  |  |  ------------------
  ------------------
  399|    106|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, weights,
  ------------------
  |  |  656|    106|    do { \
  |  |  657|    106|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    106|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    106|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 106]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    106|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 106]
  |  |  ------------------
  ------------------
  400|    106|                     igraph_ess_all(IGRAPH_EDGEORDER_ID),
  401|    106|                     &wvec));
  402|  39.2k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  39.2k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (402:16): [True: 39.1k, False: 106]
  ------------------
  403|  39.1k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  39.1k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 39.1k, False: 0]
  |  |  ------------------
  |  |  406|  39.1k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  404|  39.1k|            igraph_int_t from, to;
  405|  39.1k|            int ret1, ret2, ret3;
  406|       |
  407|  39.1k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  39.1k|    do { \
  |  |  657|  39.1k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  39.1k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  39.1k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 39.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  39.1k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 39.1k]
  |  |  ------------------
  ------------------
  408|  39.1k|            ret1 = fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId " ", from, to);
  409|  39.1k|            ret2 = igraph_real_fprintf_precise(outstream, VECTOR(wvec)[edge]);
  ------------------
  |  |   60|  39.1k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  410|  39.1k|            ret3 = fputc('\n', outstream);
  411|  39.1k|            if (ret1 < 0 || ret2 < 0 || ret3 == EOF) {
  ------------------
  |  Branch (411:17): [True: 0, False: 39.1k]
  |  Branch (411:29): [True: 0, False: 39.1k]
  |  Branch (411:41): [True: 0, False: 39.1k]
  ------------------
  412|      0|                IGRAPH_ERROR("Writing NCOL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  413|      0|            }
  414|  39.1k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  39.1k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  415|  39.1k|        }
  416|    106|        igraph_vector_destroy(&wvec);
  417|    106|        IGRAPH_FINALLY_CLEAN(1);
  418|    106|    } else {
  419|       |        /* Both names and weights */
  420|     44|        igraph_strvector_t nvec;
  421|     44|        igraph_vector_t wvec;
  422|     44|        IGRAPH_VECTOR_INIT_FINALLY(&wvec, igraph_ecount(graph));
  ------------------
  |  |  104|     44|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     44|    do { \
  |  |  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|     44|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     44|    do { \
  |  |  |  |  604|     44|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     44|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     44|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     44|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  |  |  608|     44|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     44|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 44]
  |  |  ------------------
  ------------------
  423|     44|        IGRAPH_CHECK(igraph_strvector_init(&nvec, igraph_vcount(graph)));
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  424|     44|        IGRAPH_FINALLY(igraph_strvector_destroy, &nvec);
  ------------------
  |  |  603|     44|    do { \
  |  |  604|     44|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|     44|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|     44|         * incorrect destructor function with the pointer */ \
  |  |  607|     44|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 44]
  |  |  ------------------
  |  |  608|     44|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  425|     44|        IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(graph, weights,
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  426|     44|                     igraph_ess_all(IGRAPH_EDGEORDER_ID),
  427|     44|                     &wvec));
  428|     44|        IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(graph, names,
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 44]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 44]
  |  |  ------------------
  ------------------
  429|     44|                     igraph_vss_all(),
  430|     44|                     &nvec));
  431|     44|        IGRAPH_CHECK(check_names(graph, &nvec));
  ------------------
  |  |  656|     44|    do { \
  |  |  657|     44|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     44|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     44|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 6, False: 38]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      6|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      6|    do { \
  |  |  |  |  427|      6|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      6|        return igraph_errno ; \
  |  |  |  |  429|      6|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      6|        } \
  |  |  661|     44|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 38]
  |  |  ------------------
  ------------------
  432|  1.76k|        while (!IGRAPH_EIT_END(it)) {
  ------------------
  |  |  371|  1.76k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
  |  Branch (432:16): [True: 1.72k, False: 38]
  ------------------
  433|  1.72k|            igraph_int_t edge = IGRAPH_EIT_GET(it);
  ------------------
  |  |  405|  1.72k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 1.72k, False: 0]
  |  |  ------------------
  |  |  406|  1.72k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  434|  1.72k|            igraph_int_t from, to;
  435|  1.72k|            int ret = 0, ret2 = 0;
  436|  1.72k|            const char *str1, *str2;
  437|       |
  438|  1.72k|            IGRAPH_CHECK(igraph_edge(graph, edge, &from, &to));
  ------------------
  |  |  656|  1.72k|    do { \
  |  |  657|  1.72k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  1.72k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  1.72k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 1.72k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  1.72k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 1.72k]
  |  |  ------------------
  ------------------
  439|  1.72k|            str1 = igraph_strvector_get(&nvec, from);
  440|  1.72k|            str2 = igraph_strvector_get(&nvec, to);
  441|  1.72k|            ret = fprintf(outstream, "%s %s ", str1, str2);
  442|  1.72k|            if (ret < 0) {
  ------------------
  |  Branch (442:17): [True: 0, False: 1.72k]
  ------------------
  443|      0|                IGRAPH_ERROR("Writing NCOL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  444|      0|            }
  445|  1.72k|            ret = igraph_real_fprintf_precise(outstream, VECTOR(wvec)[edge]);
  ------------------
  |  |   60|  1.72k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  446|  1.72k|            ret2 = fputc('\n', outstream);
  447|  1.72k|            if (ret < 0 || ret2 == EOF) {
  ------------------
  |  Branch (447:17): [True: 0, False: 1.72k]
  |  Branch (447:28): [True: 0, False: 1.72k]
  ------------------
  448|      0|                IGRAPH_ERROR("Writing NCOL file failed.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  449|      0|            }
  450|  1.72k|            IGRAPH_EIT_NEXT(it);
  ------------------
  |  |  359|  1.72k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  451|  1.72k|        }
  452|     38|        igraph_strvector_destroy(&nvec);
  453|     38|        igraph_vector_destroy(&wvec);
  454|     38|        IGRAPH_FINALLY_CLEAN(2);
  455|     38|    }
  456|       |
  457|  3.25k|    igraph_eit_destroy(&it);
  458|  3.25k|    IGRAPH_FINALLY_CLEAN(1);
  459|  3.25k|    return IGRAPH_SUCCESS;
  460|  3.33k|}
ncol.c:check_names:
  266|    377|static igraph_error_t check_names(const igraph_t *graph, const igraph_strvector_t *nvec) {
  267|    377|    const igraph_int_t vcount = igraph_vcount(graph);
  268|       |
  269|  6.50k|    for (igraph_int_t v = 0; v < vcount; v++) {
  ------------------
  |  Branch (269:30): [True: 6.21k, False: 292]
  ------------------
  270|  6.21k|        igraph_int_t deg;
  271|  6.21k|        IGRAPH_CHECK(igraph_degree_1(graph, &deg, v, IGRAPH_ALL, IGRAPH_LOOPS));
  ------------------
  |  |  656|  6.21k|    do { \
  |  |  657|  6.21k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.21k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.21k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 6.21k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|  6.21k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.21k]
  |  |  ------------------
  ------------------
  272|  6.21k|        if (deg > 0) {
  ------------------
  |  Branch (272:13): [True: 6.19k, False: 18]
  ------------------
  273|  6.19k|            IGRAPH_CHECK(check_name(igraph_strvector_get(nvec, v)));
  ------------------
  |  |  656|  6.19k|    do { \
  |  |  657|  6.19k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  6.19k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  6.19k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 85, False: 6.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|     85|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|     85|    do { \
  |  |  |  |  427|     85|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|     85|        return igraph_errno ; \
  |  |  |  |  429|     85|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|     85|        } \
  |  |  661|  6.19k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 6.11k]
  |  |  ------------------
  ------------------
  274|  6.19k|        }
  275|  6.21k|    }
  276|    292|    return IGRAPH_SUCCESS;
  277|    377|}
ncol.c:check_name:
  245|  6.19k|static igraph_error_t check_name(const char *name) {
  246|  6.19k|    size_t len = 0;
  247|       |
  248|  20.4M|    for (; *name != '\0'; name++, len++) {
  ------------------
  |  Branch (248:12): [True: 20.4M, False: 6.14k]
  ------------------
  249|  20.4M|        if (   *name <= 0x020 /* space or non-printable */
  ------------------
  |  Branch (249:16): [True: 49, False: 20.4M]
  ------------------
  250|  20.4M|            || *name == 0x7f /* del */) {
  ------------------
  |  Branch (250:16): [True: 2, False: 20.4M]
  ------------------
  251|     51|            IGRAPH_ERRORF("The NCOL format does not allow non-printable characters or spaces in vertex names. "
  ------------------
  |  |  464|     51|    do { \
  |  |  465|     51|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     51|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     51|        return igraph_errno; \
  |  |  468|     51|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  252|     51|                          "Character code 0x%02X found.", IGRAPH_EINVAL,
  253|     51|                          *name);
  254|     51|        }
  255|  20.4M|    }
  256|  6.14k|    if (len == 0) {
  ------------------
  |  Branch (256:9): [True: 34, False: 6.11k]
  ------------------
  257|     34|        IGRAPH_ERROR("The NCOL format does not support empty vertex names.", IGRAPH_EINVAL);
  ------------------
  |  |  426|     34|    do { \
  |  |  427|     34|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  428|     34|        return igraph_errno ; \
  |  |  429|     34|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  258|     34|    }
  259|  6.11k|    return IGRAPH_SUCCESS;
  260|  6.14k|}

igraph_write_graph_pajek:
  397|  3.33k|igraph_error_t igraph_write_graph_pajek(const igraph_t *graph, FILE *outstream) {
  398|  3.33k|    igraph_int_t no_of_nodes = igraph_vcount(graph);
  399|       |
  400|  3.33k|    igraph_attribute_type_t vtypes[V_LAST], etypes[E_LAST];
  401|  3.33k|    igraph_bool_t write_vertex_attrs = false;
  402|       |
  403|       |    /* Same order as the #define's */
  404|  3.33k|    const char *vnames[] = { "name", "x", "y", "z", "shape", "xfact", "yfact",
  405|  3.33k|        "labeldist", "labeldegree2", "framewidth",
  406|  3.33k|        "fontsize", "rotation", "radius",
  407|  3.33k|        "diamondratio", "labeldegree",
  408|  3.33k|        "font", "url", "color", "framecolor",
  409|  3.33k|        "labelcolor"
  410|  3.33k|    };
  411|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(vnames) / sizeof(vnames[0]) == V_LAST);
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  412|       |
  413|       |    /* Arrays called xxx[]  are igraph attribute names,
  414|       |     *               xxx2[] are the corresponding Pajek names. */
  415|  3.33k|    const char *vnumnames[] = { "xfact", "yfact", "labeldist",
  416|  3.33k|                                "labeldegree2", "framewidth", "fontsize",
  417|  3.33k|                                "rotation", "radius", "diamondratio",
  418|  3.33k|                                "labeldegree"
  419|  3.33k|                              };
  420|  3.33k|    const char *vnumnames2[] = { "x_fact", "y_fact", "lr", "lphi", "bw",
  421|  3.33k|                                 "fos", "phi", "r", "q", "la"
  422|  3.33k|                               };
  423|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(vnumnames) == sizeof(vnumnames2));
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  424|       |
  425|  3.33k|    const char *vstrnames[] = { "font", "url", "color", "framecolor",
  426|  3.33k|                                "labelcolor"
  427|  3.33k|                              };
  428|  3.33k|    const char *vstrnames2[] = { "font", "url", "ic", "bc", "lc" };
  429|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(vstrnames) == sizeof(vstrnames2));
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  430|       |
  431|       |    /* Same order as the #define's */
  432|  3.33k|    const char *enames[] = { "weight" };
  433|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(enames) / sizeof(enames[0]) == E_LAST);
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  434|       |
  435|  3.33k|    const char *enumnames[] = { "arrowsize", "edgewidth", "hook1", "hook2",
  436|  3.33k|                                "angle1", "angle2", "velocity1", "velocity2",
  437|  3.33k|                                "arrowpos", "labelpos", "labelangle",
  438|  3.33k|                                "labelangle2", "labeldegree", "fontsize"
  439|  3.33k|                              };
  440|  3.33k|    const char *enumnames2[] = { "s", "w", "h1", "h2", "a1", "a2", "k1", "k2",
  441|  3.33k|                                 "ap", "lp", "lr", "lphi", "la", "fos"
  442|  3.33k|                               };
  443|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(enumnames) == sizeof(enumnames2));
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  444|       |
  445|  3.33k|    const char *estrnames[] = { "arrowtype", "linepattern", "label",
  446|  3.33k|                                "labelcolor", "color", "font"
  447|  3.33k|                              };
  448|  3.33k|    const char *estrnames2[] = { "a", "p", "l", "lc", "c", "font" };
  449|  3.33k|    IGRAPH_STATIC_ASSERT(sizeof(estrnames) == sizeof(estrnames2));
  ------------------
  |  |   68|  3.33k|#define IGRAPH_STATIC_ASSERT(condition) ((void)sizeof(char[1 - 2*!(condition)]))
  ------------------
  450|       |
  451|       |    /* Newer Pajek versions support both Unix and Windows-style line endings,
  452|       |     * so we just use Unix style. This will get converted to CRLF on Windows
  453|       |     * when the file is opened in text mode */
  454|  3.33k|    const char *newline = "\n";
  455|       |
  456|  3.33k|    igraph_es_t es;
  457|  3.33k|    igraph_eit_t eit;
  458|       |
  459|  3.33k|    igraph_vector_t numv;
  460|  3.33k|    igraph_strvector_t strv;
  461|       |
  462|  3.33k|    igraph_vector_int_t ex_numa;
  463|  3.33k|    igraph_vector_int_t ex_stra;
  464|  3.33k|    igraph_vector_int_t vx_numa;
  465|  3.33k|    igraph_vector_int_t vx_stra;
  466|       |
  467|  3.33k|    const char *s;
  468|  3.33k|    char *escaped;
  469|       |
  470|  3.33k|    igraph_bool_t bipartite = false;
  471|  3.33k|    igraph_vector_int_t bip_index, bip_index2;
  472|  3.33k|    igraph_vector_bool_t bvec;
  473|  3.33k|    igraph_int_t notop = 0, nobottom = 0;
  474|       |
  475|  3.33k|    IGRAPH_VECTOR_INIT_FINALLY(&numv, 1);
  ------------------
  |  |  104|  3.33k|    do { IGRAPH_CHECK(igraph_vector_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  105|  3.33k|        IGRAPH_FINALLY(igraph_vector_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (105:60): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  476|  3.33k|    IGRAPH_STRVECTOR_INIT_FINALLY(&strv, 1);
  ------------------
  |  |   62|  3.33k|    do { IGRAPH_CHECK(igraph_strvector_init(sv, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |   63|  3.33k|        IGRAPH_FINALLY( igraph_strvector_destroy, sv); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (63:65): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  477|       |
  478|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&ex_numa, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  479|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&ex_stra, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  480|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&vx_numa, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  481|  3.33k|    IGRAPH_VECTOR_INT_INIT_FINALLY(&vx_stra, 0);
  ------------------
  |  |  119|  3.33k|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|  3.33k|    do { \
  |  |  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|  3.33k|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|  3.33k|    do { \
  |  |  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|  3.33k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  482|       |
  483|       |    /* Check if graph is bipartite, i.e. whether it has a Boolean 'type' vertex attribute. */
  484|  3.33k|    if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX, "type")) {
  ------------------
  |  Branch (484:9): [True: 36, False: 3.30k]
  ------------------
  485|     36|        igraph_attribute_type_t type_type;
  486|     36|        IGRAPH_CHECK(igraph_i_attribute_get_type(graph, &type_type, IGRAPH_ATTRIBUTE_VERTEX, "type"));
  ------------------
  |  |  656|     36|    do { \
  |  |  657|     36|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     36|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     36|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 36]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     36|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 36]
  |  |  ------------------
  ------------------
  487|     36|        if (type_type == IGRAPH_ATTRIBUTE_BOOLEAN) {
  ------------------
  |  Branch (487:13): [True: 35, False: 1]
  ------------------
  488|     35|            bipartite = true; write_vertex_attrs = true;
  489|       |            /* Count top and bottom vertices, we go over them twice,
  490|       |            because we want to keep their original order */
  491|     35|            IGRAPH_VECTOR_INT_INIT_FINALLY(&bip_index, no_of_nodes);
  ------------------
  |  |  119|     35|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     35|    do { \
  |  |  |  |  657|     35|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     35|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     35|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 35]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|     35|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     35|    do { \
  |  |  |  |  604|     35|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     35|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     35|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     35|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  |  |  608|     35|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 35]
  |  |  ------------------
  ------------------
  492|     35|            IGRAPH_VECTOR_INT_INIT_FINALLY(&bip_index2, no_of_nodes);
  ------------------
  |  |  119|     35|    do { IGRAPH_CHECK(igraph_vector_int_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     35|    do { \
  |  |  |  |  657|     35|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     35|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     35|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 35]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  120|     35|        IGRAPH_FINALLY(igraph_vector_int_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     35|    do { \
  |  |  |  |  604|     35|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     35|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     35|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     35|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  |  |  608|     35|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (120:64): [Folded, False: 35]
  |  |  ------------------
  ------------------
  493|     35|            IGRAPH_VECTOR_BOOL_INIT_FINALLY(&bvec, 1);
  ------------------
  |  |  109|     35|    do { IGRAPH_CHECK(igraph_vector_bool_init(v, size)); \
  |  |  ------------------
  |  |  |  |  656|     35|    do { \
  |  |  |  |  657|     35|        igraph_error_t igraph_i_ret = (expr); \
  |  |  |  |  658|     35|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|     35|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 35]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (661:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  110|     35|        IGRAPH_FINALLY(igraph_vector_bool_destroy, v); } while (0)
  |  |  ------------------
  |  |  |  |  603|     35|    do { \
  |  |  |  |  604|     35|        /* the following branch makes the compiler check the compatibility of \
  |  |  |  |  605|     35|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  |  |  606|     35|         * incorrect destructor function with the pointer */ \
  |  |  |  |  607|     35|        if (0) { func(ptr); } \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (607:13): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  |  |  608|     35|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  |  |  609|     35|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (609:14): [Folded, False: 35]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (110:65): [Folded, False: 35]
  |  |  ------------------
  ------------------
  494|    614|            for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (494:38): [True: 579, False: 35]
  ------------------
  495|    579|                IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(graph,
  ------------------
  |  |  656|    579|    do { \
  |  |  657|    579|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    579|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    579|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 579]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    579|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 579]
  |  |  ------------------
  ------------------
  496|    579|                             "type", igraph_vss_1(i), &bvec));
  497|    579|                if (VECTOR(bvec)[0]) {
  ------------------
  |  |   60|    579|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (497:21): [True: 0, False: 579]
  ------------------
  498|      0|                    notop++;
  499|    579|                } else {
  500|    579|                    nobottom++;
  501|    579|                }
  502|    579|            }
  503|    614|            for (igraph_int_t i = 0, bptr = 0, tptr = nobottom; i < no_of_nodes; i++) {
  ------------------
  |  Branch (503:65): [True: 579, False: 35]
  ------------------
  504|    579|                IGRAPH_CHECK(igraph_i_attribute_get_bool_vertex_attr(graph,
  ------------------
  |  |  656|    579|    do { \
  |  |  657|    579|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    579|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    579|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 579]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    579|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 579]
  |  |  ------------------
  ------------------
  505|    579|                             "type", igraph_vss_1(i), &bvec));
  506|    579|                if (VECTOR(bvec)[0]) {
  ------------------
  |  |   60|    579|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (506:21): [True: 0, False: 579]
  ------------------
  507|      0|                    VECTOR(bip_index)[tptr] = i;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  508|      0|                    VECTOR(bip_index2)[i] = tptr;
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  509|      0|                    tptr++;
  510|    579|                } else {
  511|    579|                    VECTOR(bip_index)[bptr] = i;
  ------------------
  |  |   60|    579|#define VECTOR(v) ((v).stor_begin)
  ------------------
  512|    579|                    VECTOR(bip_index2)[i] = bptr;
  ------------------
  |  |   60|    579|#define VECTOR(v) ((v).stor_begin)
  ------------------
  513|    579|                    bptr++;
  514|    579|                }
  515|    579|            }
  516|     35|            igraph_vector_bool_destroy(&bvec);
  517|     35|            IGRAPH_FINALLY_CLEAN(1);
  518|     35|        }
  519|     36|    }
  520|       |
  521|       |    /* Write header */
  522|  3.33k|    if (bipartite) {
  ------------------
  |  Branch (522:9): [True: 35, False: 3.30k]
  ------------------
  523|     35|        if (fprintf(outstream, "*Vertices %" IGRAPH_PRId " %" IGRAPH_PRId "%s", no_of_nodes, nobottom,
  ------------------
  |  Branch (523:13): [True: 0, False: 35]
  ------------------
  524|     35|                    newline) < 0) {
  525|      0|            IGRAPH_ERROR("Cannot write pajek file.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  526|      0|        }
  527|  3.30k|    } else {
  528|  3.30k|        if (fprintf(outstream, "*Vertices %" IGRAPH_PRId "%s", no_of_nodes, newline) < 0) {
  ------------------
  |  Branch (528:13): [True: 0, False: 3.30k]
  ------------------
  529|      0|            IGRAPH_ERROR("Cannot write pajek file.", IGRAPH_EFILE);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  530|      0|        }
  531|  3.30k|    }
  532|       |
  533|       |    /* Check the vertex attributes, and determine if we need to write them. */
  534|  3.33k|    memset(vtypes, 0, sizeof(vtypes[0])*V_LAST);
  ------------------
  |  |  263|  3.33k|#define V_LAST             20
  ------------------
  535|  70.0k|    for (igraph_int_t i = 0; i < V_LAST; i++) {
  ------------------
  |  |  263|  70.0k|#define V_LAST             20
  ------------------
  |  Branch (535:30): [True: 66.7k, False: 3.33k]
  ------------------
  536|  66.7k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX, vnames[i])) {
  ------------------
  |  Branch (536:13): [True: 168, False: 66.5k]
  ------------------
  537|    168|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|    168|    do { \
  |  |  657|    168|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    168|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    168|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 168]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    168|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 168]
  |  |  ------------------
  ------------------
  538|    168|                             graph, &vtypes[i], IGRAPH_ATTRIBUTE_VERTEX, vnames[i]));
  539|    168|            write_vertex_attrs = true;
  540|  66.5k|        } else {
  541|  66.5k|            vtypes[i] = (igraph_attribute_type_t) -1;
  542|  66.5k|        }
  543|  66.7k|    }
  544|  36.7k|    for (igraph_int_t i = 0; i < (igraph_int_t) (sizeof(vnumnames) / sizeof(vnumnames[0])); i++) {
  ------------------
  |  Branch (544:30): [True: 33.3k, False: 3.33k]
  ------------------
  545|  33.3k|        igraph_attribute_type_t type;
  546|  33.3k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX, vnumnames[i])) {
  ------------------
  |  Branch (546:13): [True: 20, False: 33.3k]
  ------------------
  547|     20|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|     20|    do { \
  |  |  657|     20|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     20|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     20|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 20]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     20|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 20]
  |  |  ------------------
  ------------------
  548|     20|                             graph, &type, IGRAPH_ATTRIBUTE_VERTEX, vnumnames[i]));
  549|     20|            if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (549:17): [True: 9, False: 11]
  ------------------
  550|      9|                IGRAPH_CHECK(igraph_vector_int_push_back(&vx_numa, i));
  ------------------
  |  |  656|      9|    do { \
  |  |  657|      9|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|      9|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|      9|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 9]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|      9|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 9]
  |  |  ------------------
  ------------------
  551|      9|            }
  552|     20|        }
  553|  33.3k|    }
  554|  20.0k|    for (igraph_int_t i = 0; i < (igraph_int_t) (sizeof(vstrnames) / sizeof(vstrnames[0])); i++) {
  ------------------
  |  Branch (554:30): [True: 16.6k, False: 3.33k]
  ------------------
  555|  16.6k|        igraph_attribute_type_t type;
  556|  16.6k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_VERTEX, vstrnames[i])) {
  ------------------
  |  Branch (556:13): [True: 57, False: 16.6k]
  ------------------
  557|     57|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|     57|    do { \
  |  |  657|     57|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     57|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     57|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 57]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     57|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 57]
  |  |  ------------------
  ------------------
  558|     57|                             graph, &type, IGRAPH_ATTRIBUTE_VERTEX, vstrnames[i]));
  559|     57|            if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (559:17): [True: 50, False: 7]
  ------------------
  560|     50|                IGRAPH_CHECK(igraph_vector_int_push_back(&vx_stra, i));
  ------------------
  |  |  656|     50|    do { \
  |  |  657|     50|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     50|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     50|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 50]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     50|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 50]
  |  |  ------------------
  ------------------
  561|     50|            }
  562|     57|        }
  563|  16.6k|    }
  564|       |
  565|       |    /* Write vertices */
  566|  3.33k|    if (write_vertex_attrs) {
  ------------------
  |  Branch (566:9): [True: 198, False: 3.14k]
  ------------------
  567|  2.48k|        for (igraph_int_t i = 0; i < no_of_nodes; i++) {
  ------------------
  |  Branch (567:34): [True: 2.28k, False: 198]
  ------------------
  568|  2.28k|            igraph_int_t id = bipartite ? VECTOR(bip_index)[i] : i;
  ------------------
  |  |   60|    579|#define VECTOR(v) ((v).stor_begin)
  ------------------
  |  Branch (568:31): [True: 579, False: 1.70k]
  ------------------
  569|       |
  570|       |            /* vertex ID */
  571|  2.28k|            fprintf(outstream, "%" IGRAPH_PRId, i + 1);
  ------------------
  |  |   65|  2.28k|#  define IGRAPH_PRId PRId64
  ------------------
  572|  2.28k|            if (vtypes[V_ID] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |  243|  2.28k|#define V_ID                0
  ------------------
  |  Branch (572:17): [True: 194, False: 2.09k]
  ------------------
  573|    194|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(
  ------------------
  |  |  656|    194|    do { \
  |  |  657|    194|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    194|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    194|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 194]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    194|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 194]
  |  |  ------------------
  ------------------
  574|    194|                                 graph, vnames[V_ID], igraph_vss_1(id), &numv));
  575|    194|                fputs(" \"", outstream);
  576|    194|                igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|    194|#define VECTOR(v) ((v).stor_begin)
  ------------------
  577|    194|                fputc('"', outstream);
  578|  2.09k|            } else if (vtypes[V_ID] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |  243|  2.09k|#define V_ID                0
  ------------------
  |  Branch (578:24): [True: 318, False: 1.77k]
  ------------------
  579|    318|                IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(
  ------------------
  |  |  656|    318|    do { \
  |  |  657|    318|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    318|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    318|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 318]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    318|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 318]
  |  |  ------------------
  ------------------
  580|    318|                                 graph, vnames[V_ID], igraph_vss_1(id), &strv));
  581|    318|                s = igraph_strvector_get(&strv, 0);
  582|    318|                IGRAPH_CHECK(pajek_escape(s, &escaped));
  ------------------
  |  |  656|    318|    do { \
  |  |  657|    318|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    318|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    318|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 318]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    318|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 318]
  |  |  ------------------
  ------------------
  583|    318|                fprintf(outstream, " %s", escaped);
  584|    318|                IGRAPH_FREE(escaped);
  ------------------
  |  |   36|    318|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  585|  1.77k|            } else {
  586|  1.77k|                fprintf(outstream, " \"%" IGRAPH_PRId "\"", id + 1);
  587|  1.77k|            }
  588|       |
  589|       |            /* coordinates */
  590|  2.28k|            if (vtypes[V_X] == IGRAPH_ATTRIBUTE_NUMERIC &&
  ------------------
  |  |  244|  2.28k|#define V_X                 1
  ------------------
  |  Branch (590:17): [True: 74, False: 2.21k]
  ------------------
  591|     74|                vtypes[V_Y] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |  245|     74|#define V_Y                 2
  ------------------
  |  Branch (591:17): [True: 0, False: 74]
  ------------------
  592|      0|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_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]
  |  |  ------------------
  ------------------
  593|      0|                                 graph, vnames[V_X], igraph_vss_1(id), &numv));
  594|      0|                fputc(' ', outstream);
  595|      0|                igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  596|      0|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_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]
  |  |  ------------------
  ------------------
  597|      0|                                 graph, vnames[V_Y], igraph_vss_1(id), &numv));
  598|      0|                fputc(' ', outstream);
  599|      0|                igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  600|      0|                if (vtypes[V_Z] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |  246|      0|#define V_Z                 3
  ------------------
  |  Branch (600:21): [True: 0, False: 0]
  ------------------
  601|      0|                    IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(graph, vnames[V_Z],
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  602|      0|                            igraph_vss_1(id), &numv));
  603|      0|                    fputc(' ', outstream);
  604|      0|                    igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  ------------------
  605|      0|                }
  606|      0|            }
  607|       |
  608|       |            /* shape */
  609|  2.28k|            if (vtypes[V_SHAPE] == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  |  247|  2.28k|#define V_SHAPE             4
  ------------------
  |  Branch (609:17): [True: 194, False: 2.09k]
  ------------------
  610|    194|                IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(
  ------------------
  |  |  656|    194|    do { \
  |  |  657|    194|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    194|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    194|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 194]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    194|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 194]
  |  |  ------------------
  ------------------
  611|    194|                                 graph, vnames[V_SHAPE], igraph_vss_1(id), &strv));
  612|    194|                s = igraph_strvector_get(&strv, 0);
  613|    194|                IGRAPH_CHECK(pajek_escape(s, &escaped));
  ------------------
  |  |  656|    194|    do { \
  |  |  657|    194|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    194|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    194|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 194]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    194|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 194]
  |  |  ------------------
  ------------------
  614|    194|                fprintf(outstream, " %s", escaped);
  615|    194|                IGRAPH_FREE(escaped);
  ------------------
  |  |   36|    194|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  616|    194|            }
  617|       |
  618|       |            /* numeric parameters */
  619|  2.48k|            for (igraph_int_t j = 0; j < igraph_vector_int_size(&vx_numa); j++) {
  ------------------
  |  Branch (619:38): [True: 194, False: 2.28k]
  ------------------
  620|    194|                igraph_int_t idx = VECTOR(vx_numa)[j];
  ------------------
  |  |   60|    194|#define VECTOR(v) ((v).stor_begin)
  ------------------
  621|    194|                IGRAPH_CHECK(igraph_i_attribute_get_numeric_vertex_attr(
  ------------------
  |  |  656|    194|    do { \
  |  |  657|    194|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    194|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    194|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 194]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    194|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 194]
  |  |  ------------------
  ------------------
  622|    194|                                 graph, vnumnames[idx], igraph_vss_1(id), &numv));
  623|    194|                fprintf(outstream, " %s ", vnumnames2[idx]);
  624|    194|                igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|    194|#define VECTOR(v) ((v).stor_begin)
  ------------------
  625|    194|            }
  626|       |
  627|       |            /* string parameters */
  628|  2.84k|            for (igraph_int_t j = 0; j < igraph_vector_int_size(&vx_stra); j++) {
  ------------------
  |  Branch (628:38): [True: 558, False: 2.28k]
  ------------------
  629|    558|                igraph_int_t idx = VECTOR(vx_stra)[j];
  ------------------
  |  |   60|    558|#define VECTOR(v) ((v).stor_begin)
  ------------------
  630|    558|                IGRAPH_CHECK(igraph_i_attribute_get_string_vertex_attr(
  ------------------
  |  |  656|    558|    do { \
  |  |  657|    558|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    558|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    558|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 558]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    558|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 558]
  |  |  ------------------
  ------------------
  631|    558|                                 graph, vstrnames[idx], igraph_vss_1(id), &strv));
  632|    558|                s = igraph_strvector_get(&strv, 0);
  633|    558|                IGRAPH_CHECK(pajek_escape(s, &escaped));
  ------------------
  |  |  656|    558|    do { \
  |  |  657|    558|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    558|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    558|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 558]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    558|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 558]
  |  |  ------------------
  ------------------
  634|    558|                fprintf(outstream, " %s %s", vstrnames2[idx], escaped);
  635|    558|                IGRAPH_FREE(escaped);
  ------------------
  |  |   36|    558|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  636|    558|            }
  637|       |
  638|       |            /* trailing newline */
  639|  2.28k|            fprintf(outstream, "%s", newline);
  640|  2.28k|        }
  641|    198|    }
  642|       |
  643|       |    /* edges header */
  644|  3.33k|    if (igraph_is_directed(graph)) {
  ------------------
  |  Branch (644:9): [True: 139, False: 3.19k]
  ------------------
  645|    139|        fprintf(outstream, "*Arcs%s", newline);
  646|  3.19k|    } else {
  647|  3.19k|        fprintf(outstream, "*Edges%s", newline);
  648|  3.19k|    }
  649|       |
  650|  3.33k|    IGRAPH_CHECK(igraph_es_all(&es, IGRAPH_EDGEORDER_ID));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  651|  3.33k|    IGRAPH_FINALLY(igraph_es_destroy, &es);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  652|  3.33k|    IGRAPH_CHECK(igraph_eit_create(graph, es, &eit));
  ------------------
  |  |  656|  3.33k|    do { \
  |  |  657|  3.33k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  3.33k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  3.33k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 3.33k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  653|  3.33k|    IGRAPH_FINALLY(igraph_eit_destroy, &eit);
  ------------------
  |  |  603|  3.33k|    do { \
  |  |  604|  3.33k|        /* the following branch makes the compiler check the compatibility of \
  |  |  605|  3.33k|         * func and ptr to detect cases when we are accidentally invoking an \
  |  |  606|  3.33k|         * incorrect destructor function with the pointer */ \
  |  |  607|  3.33k|        if (0) { func(ptr); } \
  |  |  ------------------
  |  |  |  Branch (607:13): [Folded, False: 3.33k]
  |  |  ------------------
  |  |  608|  3.33k|        IGRAPH_FINALLY_REAL((igraph_finally_func_t*)(func), (ptr)); \
  |  |  609|  3.33k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (609:14): [Folded, False: 3.33k]
  |  |  ------------------
  ------------------
  654|       |
  655|       |    /* Check edge attributes */
  656|       |    /* TODO: refactor and simplify since only "weight" is relevant */
  657|  6.67k|    for (igraph_int_t i = 0; i < E_LAST; i++) {
  ------------------
  |  |  266|  6.67k|#define E_LAST              1
  ------------------
  |  Branch (657:30): [True: 3.33k, False: 3.33k]
  ------------------
  658|  3.33k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, enames[i])) {
  ------------------
  |  Branch (658:13): [True: 195, False: 3.14k]
  ------------------
  659|    195|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|    195|    do { \
  |  |  657|    195|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    195|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    195|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 195]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    195|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 195]
  |  |  ------------------
  ------------------
  660|    195|                             graph, &etypes[i], IGRAPH_ATTRIBUTE_EDGE, enames[i]));
  661|  3.14k|        } else {
  662|  3.14k|            etypes[i] = (igraph_attribute_type_t) -1;
  663|  3.14k|        }
  664|  3.33k|    }
  665|  50.0k|    for (igraph_int_t i = 0; i < (igraph_int_t) (sizeof(enumnames) / sizeof(enumnames[0])); i++) {
  ------------------
  |  Branch (665:30): [True: 46.7k, False: 3.33k]
  ------------------
  666|  46.7k|        igraph_attribute_type_t type;
  667|  46.7k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, enumnames[i])) {
  ------------------
  |  Branch (667:13): [True: 18, False: 46.7k]
  ------------------
  668|     18|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|     18|    do { \
  |  |  657|     18|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     18|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     18|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 18]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     18|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 18]
  |  |  ------------------
  ------------------
  669|     18|                             graph, &type, IGRAPH_ATTRIBUTE_EDGE, enumnames[i]));
  670|     18|            if (type == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  Branch (670:17): [True: 14, False: 4]
  ------------------
  671|     14|                IGRAPH_CHECK(igraph_vector_int_push_back(&ex_numa, i));
  ------------------
  |  |  656|     14|    do { \
  |  |  657|     14|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     14|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     14|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 14]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     14|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 14]
  |  |  ------------------
  ------------------
  672|     14|            }
  673|     18|        }
  674|  46.7k|    }
  675|  23.3k|    for (igraph_int_t i = 0; i < (igraph_int_t) (sizeof(estrnames) / sizeof(estrnames[0])); i++) {
  ------------------
  |  Branch (675:30): [True: 20.0k, False: 3.33k]
  ------------------
  676|  20.0k|        igraph_attribute_type_t type;
  677|  20.0k|        if (igraph_i_attribute_has_attr(graph, IGRAPH_ATTRIBUTE_EDGE, estrnames[i])) {
  ------------------
  |  Branch (677:13): [True: 115, False: 19.9k]
  ------------------
  678|    115|            IGRAPH_CHECK(igraph_i_attribute_get_type(
  ------------------
  |  |  656|    115|    do { \
  |  |  657|    115|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    115|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    115|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 115]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    115|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 115]
  |  |  ------------------
  ------------------
  679|    115|                             graph, &type, IGRAPH_ATTRIBUTE_EDGE, estrnames[i]));
  680|    115|            if (type == IGRAPH_ATTRIBUTE_STRING) {
  ------------------
  |  Branch (680:17): [True: 78, False: 37]
  ------------------
  681|     78|                IGRAPH_CHECK(igraph_vector_int_push_back(&ex_stra, i));
  ------------------
  |  |  656|     78|    do { \
  |  |  657|     78|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|     78|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|     78|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 78]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|     78|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 78]
  |  |  ------------------
  ------------------
  682|     78|            }
  683|    115|        }
  684|  20.0k|    }
  685|       |
  686|   351k|    for (igraph_int_t i = 0; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit), i++) {
  ------------------
  |  |  371|   351k|#define IGRAPH_EIT_END(eit)   ((eit).pos >= (eit).end)
  ------------------
                  for (igraph_int_t i = 0; !IGRAPH_EIT_END(eit); IGRAPH_EIT_NEXT(eit), i++) {
  ------------------
  |  |  359|   348k|#define IGRAPH_EIT_NEXT(eit) (++((eit).pos))
  ------------------
  |  Branch (686:30): [True: 348k, False: 3.33k]
  ------------------
  687|   348k|        igraph_int_t edge = IGRAPH_EIT_GET(eit);
  ------------------
  |  |  405|   348k|    (igraph_int_t)((((eit).type == IGRAPH_EIT_RANGE) ? (eit).pos : \
  |  |  ------------------
  |  |  |  Branch (405:21): [True: 348k, False: 0]
  |  |  ------------------
  |  |  406|   348k|                        VECTOR(*(eit).vec)[(eit).pos]))
  |  |  ------------------
  |  |  |  |   60|      0|#define VECTOR(v) ((v).stor_begin)
  |  |  ------------------
  ------------------
  688|   348k|        igraph_int_t from, to;
  689|       |
  690|   348k|        IGRAPH_CHECK(igraph_edge(graph, edge, &from,  &to));
  ------------------
  |  |  656|   348k|    do { \
  |  |  657|   348k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|   348k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|   348k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 348k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|   348k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 348k]
  |  |  ------------------
  ------------------
  691|   348k|        if (bipartite) {
  ------------------
  |  Branch (691:13): [True: 533, False: 347k]
  ------------------
  692|    533|            from = VECTOR(bip_index2)[from];
  ------------------
  |  |   60|    533|#define VECTOR(v) ((v).stor_begin)
  ------------------
  693|    533|            to  = VECTOR(bip_index2)[to];
  ------------------
  |  |   60|    533|#define VECTOR(v) ((v).stor_begin)
  ------------------
  694|    533|        }
  695|   348k|        fprintf(outstream, "%" IGRAPH_PRId " %" IGRAPH_PRId , from + 1, to + 1);
  ------------------
  |  |   65|   348k|#  define IGRAPH_PRId PRId64
  ------------------
  696|       |
  697|       |        /* Weights */
  698|   348k|        if (etypes[E_WEIGHT] == IGRAPH_ATTRIBUTE_NUMERIC) {
  ------------------
  |  |  265|   348k|#define E_WEIGHT            0
  ------------------
  |  Branch (698:13): [True: 40.8k, False: 307k]
  ------------------
  699|  40.8k|            IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(
  ------------------
  |  |  656|  40.8k|    do { \
  |  |  657|  40.8k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  40.8k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  40.8k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 40.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  659|      0|            IGRAPH_ERROR("", igraph_i_ret); \
  |  |  ------------------
  |  |  |  |  426|      0|    do { \
  |  |  |  |  427|      0|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  |  |  428|      0|        return igraph_errno ; \
  |  |  |  |  429|      0|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  660|      0|        } \
  |  |  661|  40.8k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 40.8k]
  |  |  ------------------
  ------------------
  700|  40.8k|                             graph, enames[E_WEIGHT], igraph_ess_1(edge), &numv));
  701|  40.8k|            fputc(' ', outstream);
  702|  40.8k|            igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|  40.8k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  703|  40.8k|        }
  704|       |
  705|       |        /* numeric parameters */
  706|   348k|        for (igraph_int_t j = 0; j < igraph_vector_int_size(&ex_numa); j++) {
  ------------------
  |  Branch (706:34): [True: 225, False: 348k]
  ------------------
  707|    225|            igraph_int_t idx = VECTOR(ex_numa)[j];
  ------------------
  |  |   60|    225|#define VECTOR(v) ((v).stor_begin)
  ------------------
  708|    225|            IGRAPH_CHECK(igraph_i_attribute_get_numeric_edge_attr(
  ------------------
  |  |  656|    225|    do { \
  |  |  657|    225|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|    225|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|    225|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 225]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    225|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 225]
  |  |  ------------------
  ------------------
  709|    225|                             graph, enumnames[idx], igraph_ess_1(edge), &numv));
  710|    225|            fprintf(outstream, " %s ", enumnames2[idx]);
  711|    225|            igraph_real_fprintf_precise(outstream, VECTOR(numv)[0]);
  ------------------
  |  |   60|    225|#define VECTOR(v) ((v).stor_begin)
  ------------------
  712|    225|        }
  713|       |
  714|       |        /* string parameters */
  715|   350k|        for (igraph_int_t j = 0; j < igraph_vector_int_size(&ex_stra); j++) {
  ------------------
  |  Branch (715:34): [True: 2.11k, False: 348k]
  ------------------
  716|  2.11k|            igraph_int_t idx = VECTOR(ex_stra)[j];
  ------------------
  |  |   60|  2.11k|#define VECTOR(v) ((v).stor_begin)
  ------------------
  717|  2.11k|            IGRAPH_CHECK(igraph_i_attribute_get_string_edge_attr(
  ------------------
  |  |  656|  2.11k|    do { \
  |  |  657|  2.11k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.11k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.11k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.11k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.11k]
  |  |  ------------------
  ------------------
  718|  2.11k|                             graph, estrnames[idx], igraph_ess_1(edge), &strv));
  719|  2.11k|            s = igraph_strvector_get(&strv, 0);
  720|  2.11k|            IGRAPH_CHECK(pajek_escape(s, &escaped));
  ------------------
  |  |  656|  2.11k|    do { \
  |  |  657|  2.11k|        igraph_error_t igraph_i_ret = (expr); \
  |  |  658|  2.11k|        if (IGRAPH_UNLIKELY(igraph_i_ret != IGRAPH_SUCCESS)) {\
  |  |  ------------------
  |  |  |  |  612|  2.11k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.11k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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.11k|    } while (0)
  |  |  ------------------
  |  |  |  Branch (661:14): [Folded, False: 2.11k]
  |  |  ------------------
  ------------------
  721|  2.11k|            fprintf(outstream, " %s %s", estrnames2[idx], escaped);
  722|  2.11k|            IGRAPH_FREE(escaped);
  ------------------
  |  |   36|  2.11k|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  723|  2.11k|        }
  724|       |
  725|       |        /* trailing newline */
  726|   348k|        fprintf(outstream, "%s", newline);
  727|   348k|    }
  728|       |
  729|  3.33k|    igraph_eit_destroy(&eit);
  730|  3.33k|    igraph_es_destroy(&es);
  731|  3.33k|    IGRAPH_FINALLY_CLEAN(2);
  732|       |
  733|  3.33k|    if (bipartite) {
  ------------------
  |  Branch (733:9): [True: 35, False: 3.30k]
  ------------------
  734|     35|        igraph_vector_int_destroy(&bip_index2);
  735|     35|        igraph_vector_int_destroy(&bip_index);
  736|     35|        IGRAPH_FINALLY_CLEAN(2);
  737|     35|    }
  738|       |
  739|  3.33k|    igraph_vector_int_destroy(&ex_numa);
  740|  3.33k|    igraph_vector_int_destroy(&ex_stra);
  741|  3.33k|    igraph_vector_int_destroy(&vx_numa);
  742|  3.33k|    igraph_vector_int_destroy(&vx_stra);
  743|  3.33k|    igraph_strvector_destroy(&strv);
  744|  3.33k|    igraph_vector_destroy(&numv);
  745|  3.33k|    IGRAPH_FINALLY_CLEAN(6);
  746|  3.33k|    return IGRAPH_SUCCESS;
  747|  3.33k|}
pajek.c:pajek_escape:
  270|  3.18k|static igraph_error_t pajek_escape(const char* src, char** dest) {
  271|  3.18k|    igraph_int_t destlen = 0;
  272|  3.18k|    igraph_bool_t need_escape = false;
  273|       |
  274|       |    /* Determine whether the string contains characters to be escaped */
  275|  3.18k|    const char *s;
  276|  3.18k|    char *d;
  277|  20.4M|    for (s = src; *s; s++, destlen++) {
  ------------------
  |  Branch (277:19): [True: 20.4M, False: 3.18k]
  ------------------
  278|  20.4M|        if (*s == '\n' || *s == '\r') {
  ------------------
  |  Branch (278:13): [True: 567k, False: 19.8M]
  |  Branch (278:27): [True: 198, False: 19.8M]
  ------------------
  279|   567k|            need_escape = true;
  280|   567k|            destlen++;
  281|  19.8M|        } else if (*s == '"') {
  ------------------
  |  Branch (281:20): [True: 3.61M, False: 16.2M]
  ------------------
  282|  3.61M|            need_escape = true;
  283|  3.61M|            destlen += 4;
  284|  16.2M|        } else if (!isalnum((unsigned char) *s)) {
  ------------------
  |  Branch (284:20): [True: 9.84M, False: 6.41M]
  ------------------
  285|  9.84M|            need_escape = true;
  286|  9.84M|        }
  287|  20.4M|    }
  288|       |
  289|  3.18k|    if (!need_escape) {
  ------------------
  |  Branch (289:9): [True: 621, False: 2.56k]
  ------------------
  290|       |        /* At this point, we know that the string does not contain any chars
  291|       |         * that would warrant encoding. Therefore, we simply quote it and
  292|       |         * return the quoted string. This is necessary because Pajek uses some
  293|       |         * reserved words in its format (like 'c' standing for color) and they
  294|       |         * have to be quoted as well.
  295|       |         */
  296|    621|        *dest = IGRAPH_CALLOC(destlen + 3, char);
  ------------------
  |  |   33|    621|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  1.24k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 621, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 621, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 621, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|    621|        CHECK_OOM_WP(*dest);
  ------------------
  |  |   44|    621|#define CHECK_OOM_WP(p) IGRAPH_CHECK_OOM((p), "Not enough memory to write Pajek format.")
  |  |  ------------------
  |  |  |  |  709|    621|    do { \
  |  |  |  |  710|    621|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|    621|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 621]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|    621|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (713:14): [Folded, False: 621]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|       |
  299|    621|        d = *dest;
  300|    621|        strcpy(d + 1, src);
  301|    621|        d[0] = d[destlen + 1] = '"';
  302|    621|        d[destlen + 2] = 0;
  303|    621|        return IGRAPH_SUCCESS;
  304|    621|    }
  305|       |
  306|  2.56k|    *dest = IGRAPH_CALLOC(destlen + 3, char);
  ------------------
  |  |   33|  2.56k|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|  5.12k|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 2.56k, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 2.56k, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 2.56k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  307|  2.56k|    CHECK_OOM_WP(*dest);
  ------------------
  |  |   44|  2.56k|#define CHECK_OOM_WP(p) IGRAPH_CHECK_OOM((p), "Not enough memory to write Pajek format.")
  |  |  ------------------
  |  |  |  |  709|  2.56k|    do { \
  |  |  |  |  710|  2.56k|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  612|  2.56k|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (612:32): [True: 0, False: 2.56k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  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|  2.56k|    } while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (713:14): [Folded, False: 2.56k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  308|       |
  309|  2.56k|    d = *dest;
  310|  2.56k|    *d = '"'; d++;
  311|       |
  312|  20.0M|    for (s = src; *s; s++, d++) {
  ------------------
  |  Branch (312:19): [True: 20.0M, False: 2.56k]
  ------------------
  313|  20.0M|        switch (*s) {
  314|       |        /* Encode quotation marks as &#34;, as they would otherwise signify
  315|       |           the end/beginning of a string. */
  316|  3.61M|        case '"':
  ------------------
  |  Branch (316:9): [True: 3.61M, False: 16.4M]
  ------------------
  317|  3.61M|            strcpy(d, "&#34;"); d += 4; break;
  318|      0|            break;
  319|       |        /* Encode both CR and LF as \n, as neither should apear in a quoted string.
  320|       |           \n is the _only_ escape sequence Pajek understands. */
  321|   567k|        case '\n':
  ------------------
  |  Branch (321:9): [True: 567k, False: 19.4M]
  ------------------
  322|   567k|        case '\r':
  ------------------
  |  Branch (322:9): [True: 198, False: 20.0M]
  ------------------
  323|   567k|            *d = '\\'; d++;
  324|   567k|            *d = 'n';
  325|   567k|            break;
  326|  15.8M|        default:
  ------------------
  |  Branch (326:9): [True: 15.8M, False: 4.18M]
  ------------------
  327|  15.8M|            *d = *s;
  328|  20.0M|        }
  329|  20.0M|    }
  330|  2.56k|    *d = '"'; d++; *d = 0;
  331|       |
  332|  2.56k|    return IGRAPH_SUCCESS;
  333|  2.56k|}

igraph_i_trim_whitespace:
   52|  58.7k|void igraph_i_trim_whitespace(const char *str, size_t str_len, const char **res, size_t *res_len) {
   53|  58.7k|    const char *beg = str, *end = str + str_len;
   54|  60.1k|    while (beg < end && isspace((unsigned char) beg[0]) ) beg++;
  ------------------
  |  Branch (54:12): [True: 59.6k, False: 483]
  |  Branch (54:25): [True: 1.35k, False: 58.3k]
  ------------------
   55|  60.6k|    while (end > beg && isspace((unsigned char) end[-1])) end--;
  ------------------
  |  Branch (55:12): [True: 60.1k, False: 483]
  |  Branch (55:25): [True: 1.85k, False: 58.3k]
  ------------------
   56|  58.7k|    *res = beg;
   57|  58.7k|    *res_len = end - beg;
   58|  58.7k|}
igraph_i_parse_integer:
   71|  1.28k|igraph_error_t igraph_i_parse_integer(const char *str, size_t length, igraph_int_t *value) {
   72|  1.28k|    char buffer[128];
   73|  1.28k|    char *tmp, *end;
   74|  1.28k|    char last_char;
   75|  1.28k|    igraph_bool_t out_of_range, dynamic_alloc;
   76|  1.28k|    long long val;
   77|       |
   78|  1.28k|    if (length == 0) {
  ------------------
  |  Branch (78:9): [True: 0, False: 1.28k]
  ------------------
   79|      0|        IGRAPH_ERROR("Cannot parse integer from empty string.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
   80|      0|    }
   81|       |
   82|  1.28k|    dynamic_alloc = length+1 > sizeof(buffer) / sizeof(buffer[0]);
   83|       |
   84|  1.28k|    if (dynamic_alloc) {
  ------------------
  |  Branch (84:9): [True: 107, False: 1.18k]
  ------------------
   85|    107|        tmp = IGRAPH_CALLOC(length+1, char);
  ------------------
  |  |   33|    107|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|    214|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 107, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 107, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 107, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   86|    107|        IGRAPH_CHECK_OOM(tmp, "Failed to parse integer.");
  ------------------
  |  |  709|    107|    do { \
  |  |  710|    107|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|    107|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 107]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    107|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 107]
  |  |  ------------------
  ------------------
   87|  1.18k|    } else {
   88|  1.18k|        tmp = buffer;
   89|  1.18k|    }
   90|       |
   91|  1.28k|    strncpy(tmp, str, length);
   92|  1.28k|    tmp[length]='\0';
   93|       |
   94|       |    /* To avoid having to choose the appropriate strto?() function based on
   95|       |     * the definition of igraph_int_t, we first use a long long variable
   96|       |     * which should be at least as large as igraph_int_t on any platform. */
   97|  1.28k|    errno = 0;
   98|  1.28k|    val = strtoll(tmp, &end, 10);
   99|  1.28k|    out_of_range = errno == ERANGE;
  100|  1.28k|    *value = (igraph_int_t) val;
  101|  1.28k|    last_char = *end;
  102|  1.28k|    if (*value != val) {
  ------------------
  |  Branch (102:9): [True: 0, False: 1.28k]
  ------------------
  103|      0|        out_of_range = true;
  104|      0|    }
  105|       |
  106|       |    /* Free memory before raising any errors. */
  107|  1.28k|    if (dynamic_alloc) {
  ------------------
  |  Branch (107:9): [True: 107, False: 1.18k]
  ------------------
  108|    107|        IGRAPH_FREE(tmp);
  ------------------
  |  |   36|    107|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  109|    107|    }
  110|       |
  111|  1.28k|    if (out_of_range) {
  ------------------
  |  Branch (111:9): [True: 2, False: 1.28k]
  ------------------
  112|      2|        IGRAPH_ERROR("Failed to parse integer.", val > 0 ? IGRAPH_EOVERFLOW : IGRAPH_EUNDERFLOW);
  ------------------
  |  |  426|      2|    do { \
  |  |  427|      4|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  ------------------
  |  |  |  Branch (427:63): [True: 2, False: 0]
  |  |  ------------------
  |  |  428|      4|        return igraph_errno ; \
  |  |  ------------------
  |  |  |  Branch (428:16): [True: 2, False: 0]
  |  |  ------------------
  |  |  429|      2|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  113|      2|    }
  114|       |
  115|       |    /* Did we parse to the end of the string? */
  116|  1.28k|    if (last_char) {
  ------------------
  |  Branch (116:9): [True: 19, False: 1.26k]
  ------------------
  117|     19|        IGRAPH_ERRORF("Unexpected character '%c' while parsing integer.", IGRAPH_PARSEERROR, last_char);
  ------------------
  |  |  464|     19|    do { \
  |  |  465|     19|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     19|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     19|        return igraph_errno; \
  |  |  468|     19|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  118|     19|    }
  119|       |
  120|  1.26k|    return IGRAPH_SUCCESS;
  121|  1.28k|}
igraph_i_parse_real:
  132|   880k|igraph_error_t igraph_i_parse_real(const char *str, size_t length, igraph_real_t *value) {
  133|   880k|    char buffer[128];
  134|   880k|    char *tmp, *end;
  135|   880k|    char last_char;
  136|   880k|    igraph_bool_t out_of_range, dynamic_alloc;
  137|       |
  138|   880k|    if (length == 0) {
  ------------------
  |  Branch (138:9): [True: 0, False: 880k]
  ------------------
  139|      0|        IGRAPH_ERROR("Cannot parse real number from empty string.", IGRAPH_PARSEERROR);
  ------------------
  |  |  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]
  |  |  ------------------
  ------------------
  140|      0|    }
  141|       |
  142|   880k|    dynamic_alloc = length+1 > sizeof(buffer) / sizeof(buffer[0]);
  143|       |
  144|   880k|    if (dynamic_alloc) {
  ------------------
  |  Branch (144:9): [True: 206, False: 880k]
  ------------------
  145|    206|        tmp = IGRAPH_CALLOC(length+1, char);
  ------------------
  |  |   33|    206|#define IGRAPH_CALLOC(n,t)    IGRAPH_I_ALLOC_CHECK_OVERFLOW(n, t, calloc(sizeof(t) * ((n) > 0 ? (n) : 1), 1))
  |  |  ------------------
  |  |  |  |   31|    412|    (t*) ((0 <= (n) && ((size_t)(n)) <= SIZE_MAX / sizeof(t)) ? (expr) : NULL)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (31:12): [True: 206, False: 0]
  |  |  |  |  |  Branch (31:24): [True: 206, False: 0]
  |  |  |  |  |  Branch (31:66): [True: 206, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|    206|        IGRAPH_CHECK_OOM(tmp, "Failed to parse real number.");
  ------------------
  |  |  709|    206|    do { \
  |  |  710|    206|        if (IGRAPH_UNLIKELY(!ptr)) { \
  |  |  ------------------
  |  |  |  |  612|    206|    #define IGRAPH_UNLIKELY(a) __builtin_expect(!!(a), 0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (612:32): [True: 0, False: 206]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  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|    206|    } while (0)
  |  |  ------------------
  |  |  |  Branch (713:14): [Folded, False: 206]
  |  |  ------------------
  ------------------
  147|   880k|    } else {
  148|   880k|        tmp = buffer;
  149|   880k|    }
  150|       |
  151|   880k|    strncpy(tmp, str, length);
  152|   880k|    tmp[length]='\0';
  153|       |
  154|   880k|    errno = 0;
  155|   880k|    *value = strtod(tmp, &end);
  156|   880k|    out_of_range = errno == ERANGE; /* This does not trigger when reading +-Inf. */
  157|   880k|    last_char = *end;
  158|       |
  159|       |    /* Free memory before raising any errors. */
  160|   880k|    if (dynamic_alloc) {
  ------------------
  |  Branch (160:9): [True: 206, False: 880k]
  ------------------
  161|    206|        IGRAPH_FREE(tmp);
  ------------------
  |  |   36|    206|#define IGRAPH_FREE(p)        (free( (void *)(p) ), (p) = NULL)
  ------------------
  162|    206|    }
  163|       |
  164|   880k|    if (out_of_range) {
  ------------------
  |  Branch (164:9): [True: 1, False: 880k]
  ------------------
  165|      1|        IGRAPH_ERROR("Failed to parse real number.", *value > 0 ? IGRAPH_EOVERFLOW : IGRAPH_EUNDERFLOW);
  ------------------
  |  |  426|      1|    do { \
  |  |  427|      2|        igraph_error (reason, IGRAPH_FILE_BASENAME, __LINE__, igraph_errno) ; \
  |  |  ------------------
  |  |  |  Branch (427:63): [True: 1, False: 0]
  |  |  ------------------
  |  |  428|      2|        return igraph_errno ; \
  |  |  ------------------
  |  |  |  Branch (428:16): [True: 1, False: 0]
  |  |  ------------------
  |  |  429|      1|    } while (0)
  |  |  ------------------
  |  |  |  Branch (429:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  166|      1|    }
  167|       |
  168|       |    /* Did we parse to the end of the string? */
  169|   880k|    if (last_char) {
  ------------------
  |  Branch (169:9): [True: 21, False: 880k]
  ------------------
  170|     21|        IGRAPH_ERRORF("Unexpected character '%c' while parsing real number.", IGRAPH_PARSEERROR, last_char);
  ------------------
  |  |  464|     21|    do { \
  |  |  465|     21|        igraph_errorf(reason, IGRAPH_FILE_BASENAME, __LINE__, \
  |  |  466|     21|                      igraph_errno, __VA_ARGS__) ; \
  |  |  467|     21|        return igraph_errno; \
  |  |  468|     21|    } while (0)
  |  |  ------------------
  |  |  |  Branch (468:14): [Folded, False: 0]
  |  |  ------------------
  ------------------
  171|     21|    }
  172|       |
  173|   880k|    return IGRAPH_SUCCESS;
  174|   880k|}

igraph_i_is_real_representable_as_integer:
  111|   792k|igraph_bool_t igraph_i_is_real_representable_as_integer(igraph_real_t value) {
  112|       |    /* IGRAPH_INTEGER_MAX is one less than a power of 2, and may not be representable as
  113|       |     * a floating point number. Thus we cannot safely check that value <= IGRAPH_INTEGER_MAX,
  114|       |     * as this would convert IGRAPH_INTEGER_MAX to floating point, potentially changing its value.
  115|       |     * Instead, we compute int_max_plus_1 = IGRAPH_INTEGER_MAX + 1, which is exactly representable
  116|       |     * since it is a power of 2, and check that value < int_max_plus_1.
  117|       |     *
  118|       |     * IGRAPH_INTEGER_MIN is a power of 2 (with negative sign), so there is no such issue.
  119|       |     *
  120|       |     * NaNs and infinities are correctly rejected.
  121|       |     */
  122|   792k|    const igraph_real_t int_max_plus_1 = 2.0 * (IGRAPH_INTEGER_MAX / 2 + 1);
  ------------------
  |  |   74|   792k|#  define IGRAPH_INTEGER_MAX INT64_MAX
  ------------------
  123|   792k|    const igraph_real_t int_min = (igraph_real_t) IGRAPH_INTEGER_MIN;
  ------------------
  |  |   75|   792k|#  define IGRAPH_INTEGER_MIN INT64_MIN
  ------------------
  124|   792k|    if (IGRAPH_LIKELY(int_min <= value && value < int_max_plus_1)) {
  ------------------
  |  |  613|  1.58M|    #define IGRAPH_LIKELY(a)   __builtin_expect(!!(a), 1)
  |  |  ------------------
  |  |  |  Branch (613:32): [True: 792k, False: 254]
  |  |  |  Branch (613:52): [True: 792k, False: 196]
  |  |  |  Branch (613:52): [True: 792k, False: 58]
  |  |  ------------------
  ------------------
  125|   792k|        return true;
  126|   792k|    } else {
  127|       |        return false;
  128|    254|    }
  129|   792k|}

