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

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

Symbol file(s) used   : MON.sym (Fri May 04 09:56:54 2018)
Data file(s) used     : MON.dat (Fri May 04 09:57:15 2018)
Listing produced at   : Fri May 04 10:01:12 2018
Coverage view         : Reduced to function coverage
 
MONITORED SOURCE FILE : F:\ctcwork\v90\doc\examples\prime.c
INSTRUMENTATION MODE  : multicondition
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         1                  8 FUNCTION main()
***TER 100 % (  1/  1) of FILE F:\ctcwork\v90\doc\examples\prime.c
       100 % (  6/  6) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v90\doc\examples\io.c
INSTRUMENTATION MODE  : multicondition
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         4                  5 FUNCTION io_ask()
         3                 18 FUNCTION io_report()
***TER 100 % (  2/  2) of FILE F:\ctcwork\v90\doc\examples\io.c
        86 % (  6/  7) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v90\doc\examples\calc.c
INSTRUMENTATION MODE  : multicondition
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         3                  4 FUNCTION is_prime()
***TER 100 % (  1/  1) of FILE F:\ctcwork\v90\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.