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

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


Source file:calc.c
Instrumentation mode:multicondition+inclusive_timing
TER:82 % (14/17) structural,92 % (11/12) statement

Hits/TrueFalseLineSource
#include"foo.h"
1/* File calc.c ----------------------------------------------- */
2#include "foo.h"
3#include "calc.h"
4/* Tell if the argument is a prime (ret 1) or not (ret 0) */
Top
95int is_prime(unsigned val)
6{
7    unsigned divisor;
8#pragma CTC ANNOTATION header files als echte Dateien von ctcpost
9    foo();
2710    if (val == 1 || val == 2 || val == 3)
110    1: T || _ || _
010    2: F || T || _
110    3: F || F || T
710    4: F || F || F
211        return 1;
5212    if (val % 2 == 0)
513        return 0;
58214    for (divisor = 3; divisor < val / 2; divisor += 2)
15    {
05816        if (val % divisor == 0)
017            return 0;
18    }
219    return 1;
20}
***TER82 % (14/17) of FILE calc.c
92 % (11/12) statement

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