Home | History | Annotate | Download | only in test

Lines Matching refs:Function

53 /* This bizarro function is from gcov-io.h in gcc source tree */
186 /* In gcc33 .bbg files, there's a function name of the form:
203 die ("no room for -1 before function name\n");
208 die ("value before function name is not -1\n");
211 die ("no length found for function name\n");
217 die ("Function name length points past end of file\n");
229 die ("-1 at end of function name not found\n");
234 die ("no checksum found at end of function name\n");
287 printf ("Function %s\n", _dbus_string_get_const_data (&f));
332 /* In gcc33 .bbg files, there's a function name of the form:
334 * after that header on each function description, it's
347 die ("could not read function name\n");
349 printf ("Function name is \"%s\" checksum %d\n",
369 printf ("Function has %ld blocks and %ld arcs\n",
493 * - then for each function (number of functions given above):
496 * . 4 byte number of arcs in function
533 die ("no function count in .da file\n");
561 die ("could not read function name\n");
564 die ("no arc count for function\n");
569 printf (" %d arcs in function %d %s checksum %d\n",
601 printf ("%d total function sections in %d total .da file sections\n",
609 typedef struct Function Function;
639 struct Function
675 function_add_arc (Function *function,
689 arc->succ_next = function->block_graph[source].succ;
690 function->block_graph[source].succ = arc;
691 function->block_graph[source].succ_count += 1;
693 arc->pred_next = function->block_graph[target].pred;
694 function->block_graph[target].pred = arc;
695 function->block_graph[target].pred_count += 1;
725 function_reverse_succ_arcs (Function *func)
759 Function *func;
768 /* In gcc33 .bbg files, there's a function name of the form:
770 * after that header on each function description, it's
778 die ("could not read function name\n");
797 func = dbus_new0 (Function, 1);
887 Function *current_func;
908 die ("no function count in .da file\n");
940 die ("could not read function name\n");
954 die ("no arc count for function\n");
960 * arc in the function and increment its count
970 /* Find the next arc in the function that isn't on tree */
979 die ("too many blocks in function\n");
1029 Function *current_func;
1114 function_solve_graph (Function *func)
1124 printf ("Solving function graph\n");
1244 fprintf (stderr, "WARNING: Block graph solved incorrectly for function %s\n",
1264 Function *func = link->data;
1384 Function *func;
1392 * mysteriously comes *after* the first function in the
1457 fprintf (stderr, "Function %s\n", _dbus_string_get_const_data (&f));
1466 fprintf (stderr, "No function object for function %s\n",
1483 fprintf (stderr, "got function name \"%s\" (%d) from .bbg file, but \"%s\" (%d) from .bb file\n",
1529 fprintf (stderr, "Line number for block %d but function only has %d blocks\n",
1535 fprintf (stderr, "Line %ld given outside of any function\n",
1726 Function *func = link->data;
1820 Function *func = link->data;
2006 Function *func = link->data;
2111 Function *func = link->data;
2241 Function *func = link->data;
2259 Function *func = link->data;
2278 #define TEST_FRACTION(function) ((function)->n_nontest_blocks_executed / (double) (function)->n_nontest_blocks)
2282 #define POORLY_TESTED(function) (!(function)->unused && \
2283 (function)->n_nontest_blocks > 0 && \
2284 TEST_FRACTION (function) < AVERAGE_COVERAGE)
2290 Function *func = link->data;
2307 Function *func = link->data;
2323 Function *af = *(Function**) a;
2324 Function *bf = *(Function**) b;
2337 Function **funcs;
2345 Function *func = link->data;
2359 funcs = dbus_new (Function*, n_found);
2367 Function *func = link->data;
2381 qsort (funcs, n_found, sizeof (Function*),
2390 Function *func = funcs[i];