OpenCoverage

strnumcmp-in.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gl/lib/strnumcmp-in.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static inline int __attribute__ ((__pure__))-
4fraccompare (char const *a, char const *b, char decimal_point)-
5{-
6 if (*
*a == decimal_pointDescription
TRUEevaluated 354219 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 10 times by 1 test
Evaluated by:
  • sort
a == decimal_point
*a == decimal_pointDescription
TRUEevaluated 354219 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 10 times by 1 test
Evaluated by:
  • sort
&& *
*b == decimal_pointDescription
TRUEevaluated 354201 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 18 times by 1 test
Evaluated by:
  • sort
b == decimal_point
*b == decimal_pointDescription
TRUEevaluated 354201 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 18 times by 1 test
Evaluated by:
  • sort
)
10-354219
7 {-
8 while (*++
*++a == *++bDescription
TRUEevaluated 315868 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 354201 times by 1 test
Evaluated by:
  • sort
a == *++b
*++a == *++bDescription
TRUEevaluated 315868 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 354201 times by 1 test
Evaluated by:
  • sort
)
315868-354201
9 if (! ((unsigned int) (*a) - '0' <= 9)
! ((unsigned i...a) - '0' <= 9)Description
TRUEnever evaluated
FALSEevaluated 315868 times by 1 test
Evaluated by:
  • sort
)
0-315868
10 return
never executed: return 0;
0;
never executed: return 0;
0
11 if (((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 354176 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 25 times by 1 test
Evaluated by:
  • sort
unsigned int) (*a) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 354176 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 25 times by 1 test
Evaluated by:
  • sort
&& ((
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 354162 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 14 times by 1 test
Evaluated by:
  • sort
unsigned int) (*b) - '0' <= 9)
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 354162 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 14 times by 1 test
Evaluated by:
  • sort
)
14-354176
12 return
executed 354162 times by 1 test: return *a - *b;
Executed by:
  • sort
*a - *b;
executed 354162 times by 1 test: return *a - *b;
Executed by:
  • sort
354162
13 if (((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 25 times by 1 test
Evaluated by:
  • sort
unsigned int) (*a) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 25 times by 1 test
Evaluated by:
  • sort
)
14-25
14 goto
executed 14 times by 1 test: goto a_trailing_nonzero;
Executed by:
  • sort
a_trailing_nonzero;
executed 14 times by 1 test: goto a_trailing_nonzero;
Executed by:
  • sort
14
15 if (((
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 12 times by 1 test
Evaluated by:
  • sort
unsigned int) (*b) - '0' <= 9)
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 12 times by 1 test
Evaluated by:
  • sort
)
12-13
16 goto
executed 13 times by 1 test: goto b_trailing_nonzero;
Executed by:
  • sort
b_trailing_nonzero;
executed 13 times by 1 test: goto b_trailing_nonzero;
Executed by:
  • sort
13
17 return
executed 12 times by 1 test: return 0;
Executed by:
  • sort
0;
executed 12 times by 1 test: return 0;
Executed by:
  • sort
12
18 }-
19 else if (*
*a++ == decimal_pointDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 10 times by 1 test
Evaluated by:
  • sort
a++ == decimal_point
*a++ == decimal_pointDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 10 times by 1 test
Evaluated by:
  • sort
)
10-18
20 {-
21 a_trailing_nonzero:-
22 while (*
*a == '0'Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 32 times by 1 test
Evaluated by:
  • sort
a == '0'
*a == '0'Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 32 times by 1 test
Evaluated by:
  • sort
)
18-32
23 a++;
executed 18 times by 1 test: a++;
Executed by:
  • sort
18
24 return
executed 32 times by 1 test: return ((unsigned int) (*a) - '0' <= 9);
Executed by:
  • sort
((unsigned int) (*a) - '0' <= 9);
executed 32 times by 1 test: return ((unsigned int) (*a) - '0' <= 9);
Executed by:
  • sort
32
25 }-
26 else if (*
*b++ == decimal_pointDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • sort
FALSEnever evaluated
b++ == decimal_point
*b++ == decimal_pointDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • sort
FALSEnever evaluated
)
0-10
27 {-
28 b_trailing_nonzero:-
29 while (*
*b == '0'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 23 times by 1 test
Evaluated by:
  • sort
b == '0'
*b == '0'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 23 times by 1 test
Evaluated by:
  • sort
)
14-23
30 b++;
executed 14 times by 1 test: b++;
Executed by:
  • sort
14
31 return
executed 23 times by 1 test: return - ((unsigned int) (*b) - '0' <= 9);
Executed by:
  • sort
- ((unsigned int) (*b) - '0' <= 9);
executed 23 times by 1 test: return - ((unsigned int) (*b) - '0' <= 9);
Executed by:
  • sort
23
32 }-
33 return
never executed: return 0;
0;
never executed: return 0;
0
34}-
35static inline int __attribute__ ((__pure__))-
36numcompare (char const *a, char const *b,-
37 int decimal_point, int thousands_sep)-
38{-
39 unsigned char tmpa = *a;-
40 unsigned char tmpb = *b;-
41 int tmp;-
42 size_t log_a;-
43 size_t log_b;-
44-
45 if (tmpa == '-'
tmpa == '-'Description
TRUEevaluated 259010 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 297842 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
259010-297842
46 {-
47 do-
48 tmpa = *++a;
executed 285926 times by 3 tests: tmpa = *++a;
Executed by:
  • expr
  • sort
  • test
285926
49 while (tmpa == '0'
tmpa == '0'Description
TRUEevaluated 26916 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 259010 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
|| tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 259010 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
);
0-259010
50 if (tmpb != '-'
tmpb != '-'Description
TRUEevaluated 16413 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 242597 times by 2 tests
Evaluated by:
  • sort
  • test
)
16413-242597
51 {-
52 if (tmpa == decimal_point
tmpa == decimal_pointDescription
TRUEevaluated 4477 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 11936 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
4477-11936
53 do-
54 tmpa = *++a;
executed 5366 times by 1 test: tmpa = *++a;
Executed by:
  • sort
5366
55 while (tmpa == '0'
tmpa == '0'Description
TRUEevaluated 889 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4477 times by 1 test
Evaluated by:
  • sort
);
889-4477
56 if (((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 16409 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 4 times by 1 test
Evaluated by:
  • sort
unsigned int) (tmpa) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 16409 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 4 times by 1 test
Evaluated by:
  • sort
)
4-16409
57 return
executed 16409 times by 3 tests: return -1;
Executed by:
  • expr
  • sort
  • test
-1;
executed 16409 times by 3 tests: return -1;
Executed by:
  • expr
  • sort
  • test
16409
58 while (tmpb == '0'
tmpb == '0'Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • sort
|| tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • sort
)
0-4
59 tmpb = *++b;
never executed: tmpb = *++b;
0
60 if (tmpb == decimal_point
tmpb == decimal_pointDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • sort
)
0-4
61 do-
62 tmpb = *++b;
never executed: tmpb = *++b;
0
63 while (tmpb == '0'
tmpb == '0'Description
TRUEnever evaluated
FALSEnever evaluated
);
0
64 return
executed 4 times by 1 test: return - ((unsigned int) (tmpb) - '0' <= 9);
Executed by:
  • sort
- ((unsigned int) (tmpb) - '0' <= 9);
executed 4 times by 1 test: return - ((unsigned int) (tmpb) - '0' <= 9);
Executed by:
  • sort
4
65 }-
66 do-
67 tmpb = *++b;
executed 264666 times by 2 tests: tmpb = *++b;
Executed by:
  • sort
  • test
264666
68 while (tmpb == '0'
tmpb == '0'Description
TRUEevaluated 22069 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 242597 times by 2 tests
Evaluated by:
  • sort
  • test
|| tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 242597 times by 2 tests
Evaluated by:
  • sort
  • test
);
0-242597
69-
70 while (tmpa == tmpb
tmpa == tmpbDescription
TRUEevaluated 336920 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 65541 times by 2 tests
Evaluated by:
  • sort
  • test
&& ((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 159864 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 177056 times by 1 test
Evaluated by:
  • sort
unsigned int) (tmpa) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 159864 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 177056 times by 1 test
Evaluated by:
  • sort
)
65541-336920
71 {-
72 do-
73 tmpa = *++a;
executed 159864 times by 1 test: tmpa = *++a;
Executed by:
  • sort
159864
74 while (tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 159864 times by 1 test
Evaluated by:
  • sort
);
0-159864
75 do-
76 tmpb = *++b;
executed 159864 times by 1 test: tmpb = *++b;
Executed by:
  • sort
159864
77 while (tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 159864 times by 1 test
Evaluated by:
  • sort
);
0-159864
78 }
executed 159864 times by 1 test: end of block
Executed by:
  • sort
159864
79-
80 if ((tmpa == decimal_point
tmpa == decimal_pointDescription
TRUEevaluated 181871 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 60726 times by 2 tests
Evaluated by:
  • sort
  • test
&& !((unsigned int) (tmpb) - '0' <= 9)
!((unsigned in...b) - '0' <= 9)Description
TRUEevaluated 177058 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4813 times by 1 test
Evaluated by:
  • sort
)
4813-181871
81 || (tmpb == decimal_point
tmpb == decimal_pointDescription
TRUEevaluated 4452 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 61087 times by 2 tests
Evaluated by:
  • sort
  • test
&& !((unsigned int) (tmpa) - '0' <= 9)
!((unsigned in...a) - '0' <= 9)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4446 times by 1 test
Evaluated by:
  • sort
))
6-61087
82 return
executed 177064 times by 1 test: return fraccompare (b, a, decimal_point);
Executed by:
  • sort
fraccompare (b, a, decimal_point);
executed 177064 times by 1 test: return fraccompare (b, a, decimal_point);
Executed by:
  • sort
177064
83-
84 tmp = tmpb - tmpa;-
85-
86 for (log_a = 0; ((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 63542 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 65533 times by 2 tests
Evaluated by:
  • sort
  • test
unsigned int) (tmpa) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 63542 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 65533 times by 2 tests
Evaluated by:
  • sort
  • test
; ++log_a)
63542-65533
87 do-
88 tmpa = *++a;
executed 63542 times by 2 tests: tmpa = *++a;
Executed by:
  • sort
  • test
63542
89 while (tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 63542 times by 2 tests
Evaluated by:
  • sort
  • test
);
0-63542
90-
91 for (log_b = 0; ((
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 64296 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 65533 times by 2 tests
Evaluated by:
  • sort
  • test
unsigned int) (tmpb) - '0' <= 9)
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 64296 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 65533 times by 2 tests
Evaluated by:
  • sort
  • test
; ++log_b)
64296-65533
92 do-
93 tmpb = *++b;
executed 64296 times by 2 tests: tmpb = *++b;
Executed by:
  • sort
  • test
64296
94 while (tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 64296 times by 2 tests
Evaluated by:
  • sort
  • test
);
0-64296
95-
96 if (log_a != log_b
log_a != log_bDescription
TRUEevaluated 9515 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 56018 times by 2 tests
Evaluated by:
  • sort
  • test
)
9515-56018
97 return
executed 9515 times by 1 test: return log_a < log_b ? 1 : -1;
Executed by:
  • sort
log_a < log_b ? 1 : -1;
executed 9515 times by 1 test: return log_a < log_b ? 1 : -1;
Executed by:
  • sort
9515
98-
99 if (!log_a
!log_aDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 56016 times by 2 tests
Evaluated by:
  • sort
  • test
)
2-56016
100 return
executed 2 times by 1 test: return 0;
Executed by:
  • sort
0;
executed 2 times by 1 test: return 0;
Executed by:
  • sort
2
101-
102 return
executed 56016 times by 2 tests: return tmp;
Executed by:
  • sort
  • test
tmp;
executed 56016 times by 2 tests: return tmp;
Executed by:
  • sort
  • test
56016
103 }-
104 else if (tmpb == '-'
tmpb == '-'Description
TRUEevaluated 21127 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 276715 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
21127-276715
105 {-
106 do-
107 tmpb = *++b;
executed 26080 times by 2 tests: tmpb = *++b;
Executed by:
  • sort
  • test
26080
108 while (tmpb == '0'
tmpb == '0'Description
TRUEevaluated 4953 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 21127 times by 2 tests
Evaluated by:
  • sort
  • test
|| tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 21127 times by 2 tests
Evaluated by:
  • sort
  • test
);
0-21127
109 if (tmpb == decimal_point
tmpb == decimal_pointDescription
TRUEevaluated 4952 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 16175 times by 2 tests
Evaluated by:
  • sort
  • test
)
4952-16175
110 do-
111 tmpb = *++b;
executed 5840 times by 1 test: tmpb = *++b;
Executed by:
  • sort
5840
112 while (tmpb == '0'
tmpb == '0'Description
TRUEevaluated 888 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4952 times by 1 test
Evaluated by:
  • sort
);
888-4952
113 if (((
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 21122 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • sort
unsigned int) (tmpb) - '0' <= 9)
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 21122 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • sort
)
5-21122
114 return
executed 21122 times by 2 tests: return 1;
Executed by:
  • sort
  • test
1;
executed 21122 times by 2 tests: return 1;
Executed by:
  • sort
  • test
21122
115 while (tmpa == '0'
tmpa == '0'Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • sort
|| tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • sort
)
0-5
116 tmpa = *++a;
never executed: tmpa = *++a;
0
117 if (tmpa == decimal_point
tmpa == decimal_pointDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • sort
)
0-5
118 do-
119 tmpa = *++a;
never executed: tmpa = *++a;
0
120 while (tmpa == '0'
tmpa == '0'Description
TRUEnever evaluated
FALSEnever evaluated
);
0
121 return
executed 5 times by 1 test: return ((unsigned int) (tmpa) - '0' <= 9);
Executed by:
  • sort
((unsigned int) (tmpa) - '0' <= 9);
executed 5 times by 1 test: return ((unsigned int) (tmpa) - '0' <= 9);
Executed by:
  • sort
5
122 }-
123 else-
124 {-
125 while (tmpa == '0'
tmpa == '0'Description
TRUEevaluated 22692 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 276715 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
|| tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 276715 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
0-276715
126 tmpa = *++a;
executed 22692 times by 2 tests: tmpa = *++a;
Executed by:
  • sort
  • test
22692
127 while (tmpb == '0'
tmpb == '0'Description
TRUEevaluated 23382 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 276715 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
|| tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 276715 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
0-276715
128 tmpb = *++b;
executed 23382 times by 2 tests: tmpb = *++b;
Executed by:
  • sort
  • test
23382
129-
130 while (tmpa == tmpb
tmpa == tmpbDescription
TRUEevaluated 406877 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 85382 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
&& ((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 215544 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 191333 times by 2 tests
Evaluated by:
  • sort
  • test
unsigned int) (tmpa) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 215544 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 191333 times by 2 tests
Evaluated by:
  • sort
  • test
)
85382-406877
131 {-
132 do-
133 tmpa = *++a;
executed 215544 times by 3 tests: tmpa = *++a;
Executed by:
  • expr
  • sort
  • test
215544
134 while (tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 215544 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
);
0-215544
135 do-
136 tmpb = *++b;
executed 215544 times by 3 tests: tmpb = *++b;
Executed by:
  • expr
  • sort
  • test
215544
137 while (tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 215544 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
);
0-215544
138 }
executed 215544 times by 3 tests: end of block
Executed by:
  • expr
  • sort
  • test
215544
139-
140 if ((tmpa == decimal_point
tmpa == decimal_pointDescription
TRUEevaluated 181632 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 95083 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
&& !((unsigned int) (tmpb) - '0' <= 9)
!((unsigned in...b) - '0' <= 9)Description
TRUEevaluated 177157 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4475 times by 1 test
Evaluated by:
  • sort
)
4475-181632
141 || (tmpb == decimal_point
tmpb == decimal_pointDescription
TRUEevaluated 4745 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 94813 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
&& !((unsigned int) (tmpa) - '0' <= 9)
!((unsigned in...a) - '0' <= 9)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • sort
FALSEevaluated 4737 times by 1 test
Evaluated by:
  • sort
))
8-94813
142 return
executed 177165 times by 1 test: return fraccompare (a, b, decimal_point);
Executed by:
  • sort
fraccompare (a, b, decimal_point);
executed 177165 times by 1 test: return fraccompare (a, b, decimal_point);
Executed by:
  • sort
177165
143-
144 tmp = tmpa - tmpb;-
145-
146 for (log_a = 0; ((
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 88283 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 99550 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
unsigned int) (tmpa) - '0' <= 9)
((unsigned int...a) - '0' <= 9)Description
TRUEevaluated 88283 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 99550 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
; ++log_a)
88283-99550
147 do-
148 tmpa = *++a;
executed 88283 times by 3 tests: tmpa = *++a;
Executed by:
  • expr
  • sort
  • test
88283
149 while (tmpa == thousands_sep
tmpa == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 88283 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
);
0-88283
150-
151 for (log_b = 0; ((
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 88223 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 99550 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
unsigned int) (tmpb) - '0' <= 9)
((unsigned int...b) - '0' <= 9)Description
TRUEevaluated 88223 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 99550 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
; ++log_b)
88223-99550
152 do-
153 tmpb = *++b;
executed 88223 times by 3 tests: tmpb = *++b;
Executed by:
  • expr
  • sort
  • test
88223
154 while (tmpb == thousands_sep
tmpb == thousands_sepDescription
TRUEnever evaluated
FALSEevaluated 88223 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
);
0-88223
155-
156 if (log_a != log_b
log_a != log_bDescription
TRUEevaluated 11162 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
FALSEevaluated 88388 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
11162-88388
157 return
executed 11162 times by 3 tests: return log_a < log_b ? -1 : 1;
Executed by:
  • expr
  • sort
  • test
log_a < log_b ? -1 : 1;
executed 11162 times by 3 tests: return log_a < log_b ? -1 : 1;
Executed by:
  • expr
  • sort
  • test
11162
158-
159 if (!log_a
!log_aDescription
TRUEevaluated 14188 times by 2 tests
Evaluated by:
  • sort
  • test
FALSEevaluated 74200 times by 3 tests
Evaluated by:
  • expr
  • sort
  • test
)
14188-74200
160 return
executed 14188 times by 2 tests: return 0;
Executed by:
  • sort
  • test
0;
executed 14188 times by 2 tests: return 0;
Executed by:
  • sort
  • test
14188
161-
162 return
executed 74200 times by 3 tests: return tmp;
Executed by:
  • expr
  • sort
  • test
tmp;
executed 74200 times by 3 tests: return tmp;
Executed by:
  • expr
  • sort
  • test
74200
163 }-
164}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2