GCC Code Coverage Report


Directory: ./
File: numerics/predicates/orient2d.h
Date: 2026-09-27 03:24:14
Exec Total Coverage
Lines: 28 29 96.6%
Functions: 1 1 100.0%
Branches: 15 16 93.8%

Line Branch Exec Source
1 /* Automatically generated code, do not edit */
2 /* Generated from source file: orient2d.pck */
3
4 19284363 inline int orient_2d_filter( const double* p0, const double* p1, const double* p2) {
5 double a11;
6 19284363 a11 = (p1[0] - p0[0]);
7 double a12;
8 19284363 a12 = (p1[1] - p0[1]);
9 double a21;
10 19284363 a21 = (p2[0] - p0[0]);
11 double a22;
12 19284363 a22 = (p2[1] - p0[1]);
13 double Delta;
14 19284363 Delta = ((a11 * a22) - (a12 * a21));
15 int int_tmp_result;
16 double eps;
17 19284363 double max1 = fabs(a11);
18
2/2
✓ Branch 0 taken 10653698 times.
✓ Branch 1 taken 8630665 times.
19284363 if( (max1 < fabs(a12)) )
19 {
20 10653698 max1 = fabs(a12);
21 }
22 19284363 double max2 = fabs(a21);
23
2/2
✓ Branch 0 taken 10476507 times.
✓ Branch 1 taken 8807856 times.
19284363 if( (max2 < fabs(a22)) )
24 {
25 10476507 max2 = fabs(a22);
26 }
27 double lower_bound_1;
28 double upper_bound_1;
29 19284363 lower_bound_1 = max1;
30 19284363 upper_bound_1 = max1;
31
2/2
✓ Branch 0 taken 9694231 times.
✓ Branch 1 taken 9590132 times.
19284363 if( (max2 < lower_bound_1) )
32 {
33 9694231 lower_bound_1 = max2;
34 }
35 else
36 {
37
2/2
✓ Branch 0 taken 8892990 times.
✓ Branch 1 taken 697142 times.
9590132 if( (max2 > upper_bound_1) )
38 {
39 8892990 upper_bound_1 = max2;
40 }
41 }
42
2/2
✓ Branch 0 taken 712262 times.
✓ Branch 1 taken 18572101 times.
19284363 if( (lower_bound_1 < 5.00368081960964635413e-147) )
43 {
44 712262 return FPG_UNCERTAIN_VALUE;
45 }
46 else
47 {
48
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 18572101 times.
18572101 if( (upper_bound_1 > 1.67597599124282407923e+153) )
49 {
50 ✗ return FPG_UNCERTAIN_VALUE;
51 }
52 18572101 eps = (8.88720573725927976811e-16 * (max1 * max2));
53
2/2
✓ Branch 0 taken 9399400 times.
✓ Branch 1 taken 9172701 times.
18572101 if( (Delta > eps) )
54 {
55 9399400 int_tmp_result = 1;
56 }
57 else
58 {
59
2/2
✓ Branch 0 taken 8699771 times.
✓ Branch 1 taken 472930 times.
9172701 if( (Delta < -eps) )
60 {
61 8699771 int_tmp_result = -1;
62 }
63 else
64 {
65 472930 return FPG_UNCERTAIN_VALUE;
66 }
67 }
68 }
69 18099171 return int_tmp_result;
70 }
71