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

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


Source file:F:\ctcwork\v82\doc\examples\prime.c
Instrumentation mode:multiconditionReduced to:MC/DC coverage
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
3112    while((prime_candidate = io_ask()) > 0)
13    {
2114        if (is_prime(prime_candidate))
15            io_report(prime_candidate, "IS a prime.");
16        else
17            io_report(prime_candidate, "IS NOT a prime.");
18    }
119    return 0;
20}
***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