Item "--intermediate-format"
.PD
Output gcov file in an easy-to-parse intermediate text format that can
be used by \fBlcov\fR or other tools. The output is a single
\&\fI.gcov\fR file per \fI.gcda\fR file. No source code is required.
.Sp
The format of the intermediate \fI.gcov\fR file is plain text with
one entry per line
.Sp
.Vb 5
\&        version:<gcc_version>
\&        file:<source_file_name>
\&        function:<start_line_number>,<end_line_number>,<execution_count>,<function_name>
\&        lcount:<line number>,<execution_count>,<has_unexecuted_block>
\&        branch:<line_number>,<branch_coverage_type>
\&        
\&        Where the <branch_coverage_type> is
\&           notexec (Branch not executed)
\&           taken (Branch executed and taken)
\&           nottaken (Branch executed, but not taken)
.Ve
.Sp
There can be multiple \fIfile\fR entries in an intermediate gcov
file. All entries following a \fIfile\fR pertain to that source file
until the next \fIfile\fR entry.  If there are multiple functions that
start on a single line, then corresponding lcount is repeated multiple
times.
.Sp
Here is a sample when \fB\-i\fR is used in conjunction with \fB\-b\fR option:
.Sp
.Vb 10
\&        version: 8.1.0 20180103
\&        file:tmp.cpp
\&        function:7,7,0,_ZN3FooIcEC2Ev
\&        function:7,7,1,_ZN3FooIiEC2Ev
\&        function:8,8,0,_ZN3FooIcE3incEv
\&        function:8,8,2,_ZN3FooIiE3incEv
\&        function:18,37,1,main
\&        lcount:7,0,1
\&        lcount:7,1,0
\&        lcount:8,0,1
\&        lcount:8,2,0
\&        lcount:18,1,0
\&        lcount:21,1,0
\&        branch:21,taken
\&        branch:21,nottaken
\&        lcount:23,1,0
\&        branch:23,taken
\&        branch:23,nottaken
\&        lcount:24,1,0
\&        branch:24,taken
\&        branch:24,nottaken
\&        lcount:25,1,0
\&        lcount:27,11,0
\&        branch:27,taken
\&        branch:27,taken
\&        lcount:28,10,0
\&        lcount:30,1,1
\&        branch:30,nottaken
\&        branch:30,taken
\&        lcount:32,1,0
\&        branch:32,nottaken
\&        branch:32,taken
\&        lcount:33,0,1
\&        branch:33,notexec
\&        branch:33,notexec
\&        lcount:35,1,0
\&        branch:35,taken
\&        branch:35,nottaken
\&        lcount:36,1,0
.Ve
.IP "\fB\-j\fR" 4
.IX Item "-j"
.PD 0
.IP "\fB\-\-human\-readable\fR" 4
.IX Item "--human-readable"
.PD
Write counts in human readable format (like 24k).
.IP "\fB\-k\fR" 4
.IX Item "-k"
.PD 0
.IP "\fB\-\-use\-colors\fR" 4
.IX Item "--use-colors"
.PD
Use colors for lines of code that have zero coverage.  We use red color for
non-exceptional lines and cyan for exceptional.  Same colors are used for
basic blocks with \fB\-a\fR option.
.IP "\fB\-l\fR" 4
.IX Item "-l"
.PD 0
.IP "\fB\-\-long\-file\-names\fR" 4
.IX Item "--long-file-names"
.PD
Create long file names for included source files.  For example, if the
header file \fIx.h\fR contains code, and was included in the file
\&\fIa.c\fR, then running \fBgcov\fR on the file \fIa.c\fR will
produce an output file called \fIa.c##x.h.gcov\f