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

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

Symbol file(s) used   : MON.sym (Tue Apr 11 13:56:19 2017)
Data file(s) used     : MON.dat (Tue Apr 11 13:56:36 2017)
Listing produced at   : Tue Apr 11 14:02:43 2017
Coverage view         : Reduced to function coverage
 
MONITORED SOURCE FILE : F:\ctcwork\v82\doc\examples\prime.c
INSTRUMENTATION MODE  : multicondition
 HITS/TRUE      FALSE    LINE DESCRIPTION
=============================================================================
         1                  8 FUNCTION main()
***TER 100 % (  1/  1) of FILE F:\ctcwork\v82\doc\examples\prime.c
       100 % (  6/  6) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v82\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\v82\doc\examples\io.c
        86 % (  6/  7) statement
-----------------------------------------------------------------------------
 
MONITORED SOURCE FILE : F:\ctcwork\v82\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\v82\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.