Example of CTC++ Execution Profile Listing / Function Coverage View

*****************************************************************************
*           CTC++, Test Coverage Analyzer for C/C++, Version 8.1            *
*                                                                           *
*                         EXECUTION PROFILE LISTING                         *
*                                                                           *
*                    Copyright (c) 1993-2013 Testwell Oy                    *
*             Copyright (c) 2013-2016 Verifysoft Technology GmbH            *
*****************************************************************************

Symbol file(s) used   : MON.sym (Wed Nov 23 16:26:25 2016)
Data file(s) used     : MON.dat (Wed Nov 23 16:27:03 2016)
Listing produced at   : Thu Dec 01 14:07:12 2016
Coverage view         : Reduced to function coverage
 
MONITORED SOURCE FILE : F:\ctcwork\v81\doc\examples\prime.c
INSTRUMENTATION MODE  : multicondition+inclusive_timing
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         1                  8 FUNCTION main()
***TER 100 % (  1/  1) of FILE F:\ctcwork\v81\doc\examples\prime.c
       100 % (  6/  6) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v81\doc\examples\io.c
INSTRUMENTATION MODE  : multicondition+inclusive_timing
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         4                  5 FUNCTION io_ask()
         3                 18 FUNCTION io_report()
***TER 100 % (  2/  2) of FILE F:\ctcwork\v81\doc\examples\io.c
        86 % (  6/  7) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v81\doc\examples\calc.c
INSTRUMENTATION MODE  : multicondition+inclusive_timing
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         3                  4 FUNCTION is_prime()
***TER 100 % (  1/  1) of FILE F:\ctcwork\v81\doc\examples\calc.c
        82 % (  9/ 11) statement
-----------------------------------------------------------------------------
 
SUMMARY
=======
Source files       : 3
Headers extracted  : 0
Functions          : 4
Source lines       : 59
TER                : 100 % (4/4) function
TER                : 88 % (21/24) statement

This Execution Profile Listing has been generated by ctcpost -ff option (force function coverage view). I.e. even if the files had been instrumented for decision or multicondition coverage and such instrumented code was executed, in this view it is shown only how many times each function was called. Of course the code could have been straight away been instrumented for function coverage.

In this report it was possible to produce the statement coverage information, because the underlying code anyway was instrumented for decision coverage or multicondition coverage and the program flow could be analyzed. If the code had been instrumented only for function coverage, statement coverage information could not be obtained.