CTC++ Coverage Report- Execution Profile#4/4

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


Source file:prime.c
Instrumentation mode:multicondition+inclusive_timing
TER:100 % (6/6) structural,100 % (6/6) statement

Hits/TrueFalseLineSource
1/* File prime.c ---------------------------------------------- */
2/* This example demonstrates some elementary CTC++ properties. */
3/* Not meant to be any good solution to the 'prime' problem.   */
4
5#include "io.h"
6#include "calc.h"
7
Top
18int main(void)
9{
10    unsigned prime_candidate;
11
12#pragma CTC ANNOTATION Following #if 0 must be grey
13
14#if 0
15    exit(1);
16#endif
17  
18
9119    while((prime_candidate = io_ask()) > 0)
20    {
4521        if (is_prime(prime_candidate))
22            io_report(prime_candidate, "IS a prime.");
23        else
24            io_report(prime_candidate, "IS NOT a prime.");
25    }
126    return  5 && 6;
27}
***TER100 % (6/6) of FILE prime.c
100 % (6/6) statement

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index