typedef struct arc_info
{
- /* source and destination blocks. */
+ /* source and destination blocks. */
struct block_info *src;
struct block_info *dst;
arc_t *succ;
arc_t *pred;
- /* Number of unprocessed exit and entry arcs. */
+ /* Number of unprocessed exit and entry arcs. */
gcov_type num_succ;
gcov_type num_pred;
- /* Block execution count. */
+ /* Block execution count. */
gcov_type count;
unsigned count_valid : 1;
unsigned valid_chain : 1;
unsigned *encoding;
unsigned num_encodings;
- /* Temporary chain for solving graph. */
+ /* Temporary chain for solving graph. */
struct block_info *chain;
} block_t;
{
gcov_type count; /* execution count */
arc_t *branches; /* branches from blocks that end on this
- line. */
+ line. */
unsigned exists : 1;
} line_t;
char *name;
unsigned index;
- /* Array of line information. */
+ /* Array of line information. */
line_t *lines;
unsigned num_lines;
static source_t *sources;
-/* Modification time of graph file. */
+/* Modification time of graph file. */
static time_t bbg_file_time;
static int flag_preserve_paths = 0;
/* Output the number of times a branch was taken as opposed to the percentage
- of times it was taken. */
+ of times it was taken. */
static int flag_counts = 0;
unsigned ix;
arc_t *arc;
gcov_type *count_ptr = fn->counts;
- block_t *valid_blocks = NULL; /* valid, but unpropagated blocks. */
- block_t *invalid_blocks = NULL; /* invalid, but inferable blocks. */
+ block_t *valid_blocks = NULL; /* valid, but unpropagated blocks. */
+ block_t *invalid_blocks = NULL; /* invalid, but inferable blocks. */
if (fn->num_blocks < 2)
fnotice (stderr, "%s:`%s' lacks entry and/or exit blocks\n",
/* Sort the successor arcs into ascending dst order. profile.c
normally produces arcs in the right order, but sometimes with
one or two out of order. We're not using a particularly
- smart sort. */
+ smart sort. */
if (out_of_order)
{
arc_t *start = fn->blocks[ix].succ;
line_t *line = NULL; /* this is propagated from one iteration to the
next. */
- /* Scan each basic block. */
+ /* Scan each basic block. */
for (ix = 0; ix != fn->num_blocks; ix++)
{
const block_t *block = &fn->blocks[ix];
fnotice (stderr, "%s:no lines for `%s'\n", bbg_file_name, fn->name);
}
-/* Accumulate the line counts of a file. */
+/* Accumulate the line counts of a file. */
static void
accumulate_line_counts (src)
{
arc_t *arc, *arc_p, *arc_n;
- /* Total and reverse the branch information. */
+ /* Total and reverse the branch information. */
for (arc = line->branches, arc_p = NULL; arc; arc_p = arc, arc = arc_n)
{
arc_n = arc->line_next;