OpenCoverage

numfmt.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/numfmt.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4enum { EXIT_CONVERSION_WARNINGS = 2 };-
5-
6enum-
7{-
8 FROM_OPTION = 0x7f + 1,-
9 FROM_UNIT_OPTION,-
10 TO_OPTION,-
11 TO_UNIT_OPTION,-
12 ROUND_OPTION,-
13 SUFFIX_OPTION,-
14 GROUPING_OPTION,-
15 PADDING_OPTION,-
16 FIELD_OPTION,-
17 DEBUG_OPTION,-
18 DEV_DEBUG_OPTION,-
19 HEADER_OPTION,-
20 FORMAT_OPTION,-
21 INVALID_OPTION-
22};-
23-
24enum scale_type-
25{-
26 scale_none,-
27 scale_auto,-
28 scale_SI,-
29 scale_IEC,-
30 scale_IEC_I-
31};-
32-
33static char const *const scale_from_args[] =-
34{-
35 "none", "auto", "si", "iec", "iec-i", -
36 ((void *)0)-
37-
38};-
39-
40static enum scale_type const scale_from_types[] =-
41{-
42 scale_none, scale_auto, scale_SI, scale_IEC, scale_IEC_I-
43};-
44-
45static char const *const scale_to_args[] =-
46{-
47 "none", "si", "iec", "iec-i", -
48 ((void *)0)-
49-
50};-
51-
52static enum scale_type const scale_to_types[] =-
53{-
54 scale_none, scale_SI, scale_IEC, scale_IEC_I-
55};-
56-
57-
58enum round_type-
59{-
60 round_ceiling,-
61 round_floor,-
62 round_from_zero,-
63 round_to_zero,-
64 round_nearest,-
65};-
66-
67static char const *const round_args[] =-
68{-
69 "up", "down", "from-zero", "towards-zero", "nearest", -
70 ((void *)0)-
71-
72};-
73-
74static enum round_type const round_types[] =-
75{-
76 round_ceiling, round_floor, round_from_zero, round_to_zero, round_nearest-
77};-
78-
79-
80enum inval_type-
81{-
82 inval_abort,-
83 inval_fail,-
84 inval_warn,-
85 inval_ignore-
86};-
87-
88static char const *const inval_args[] =-
89{-
90 "abort", "fail", "warn", "ignore", -
91 ((void *)0)-
92-
93};-
94-
95static enum inval_type const inval_types[] =-
96{-
97 inval_abort, inval_fail, inval_warn, inval_ignore-
98};-
99-
100static struct option const longopts[] =-
101{-
102 {"from", -
103 1-
104 , -
105 ((void *)0)-
106 , FROM_OPTION},-
107 {"from-unit", -
108 1-
109 , -
110 ((void *)0)-
111 , FROM_UNIT_OPTION},-
112 {"to", -
113 1-
114 , -
115 ((void *)0)-
116 , TO_OPTION},-
117 {"to-unit", -
118 1-
119 , -
120 ((void *)0)-
121 , TO_UNIT_OPTION},-
122 {"round", -
123 1-
124 , -
125 ((void *)0)-
126 , ROUND_OPTION},-
127 {"padding", -
128 1-
129 , -
130 ((void *)0)-
131 , PADDING_OPTION},-
132 {"suffix", -
133 1-
134 , -
135 ((void *)0)-
136 , SUFFIX_OPTION},-
137 {"grouping", -
138 0-
139 , -
140 ((void *)0)-
141 , GROUPING_OPTION},-
142 {"delimiter", -
143 1-
144 , -
145 ((void *)0)-
146 , 'd'},-
147 {"field", -
148 1-
149 , -
150 ((void *)0)-
151 , FIELD_OPTION},-
152 {"debug", -
153 0-
154 , -
155 ((void *)0)-
156 , DEBUG_OPTION},-
157 {"-debug", -
158 0-
159 , -
160 ((void *)0)-
161 , DEV_DEBUG_OPTION},-
162 {"header", -
163 2-
164 , -
165 ((void *)0)-
166 , HEADER_OPTION},-
167 {"format", -
168 1-
169 , -
170 ((void *)0)-
171 , FORMAT_OPTION},-
172 {"invalid", -
173 1-
174 , -
175 ((void *)0)-
176 , INVALID_OPTION},-
177 {"zero-terminated", -
178 0-
179 , -
180 ((void *)0)-
181 , 'z'},-
182 {"help", -
183 0-
184 , -
185 ((void *)0)-
186 , GETOPT_HELP_CHAR},-
187 {"version", -
188 0-
189 , -
190 ((void *)0)-
191 , GETOPT_VERSION_CHAR},-
192 {-
193 ((void *)0)-
194 , 0, -
195 ((void *)0)-
196 , 0}-
197};-
198-
199-
200enum { DELIMITER_DEFAULT = 0x7f + 1 };-
201-
202-
203-
204enum { MAX_UNSCALED_DIGITS = 18 };-
205-
206-
207-
208-
209-
210enum { MAX_ACCEPTABLE_DIGITS = 27 };-
211-
212static enum scale_type scale_from = scale_none;-
213static enum scale_type scale_to = scale_none;-
214static enum round_type round_style = round_from_zero;-
215static enum inval_type inval_style = inval_abort;-
216static const char *suffix = -
217 ((void *)0)-
218 ;-
219static uintmax_t from_unit_size = 1;-
220static uintmax_t to_unit_size = 1;-
221static int grouping = 0;-
222static char *padding_buffer = -
223 ((void *)0)-
224 ;-
225static size_t padding_buffer_size = 0;-
226static long int padding_width = 0;-
227static long int zero_padding_width = 0;-
228static long int user_precision = -1;-
229static const char *format_str = -
230 ((void *)0)-
231 ;-
232static char *format_str_prefix = -
233 ((void *)0)-
234 ;-
235static char *format_str_suffix = -
236 ((void *)0)-
237 ;-
238-
239-
240static int conv_exit_code = EXIT_CONVERSION_WARNINGS;-
241-
242-
243-
244static int auto_padding = 0;-
245static mbs_align_t padding_alignment = MBS_ALIGN_RIGHT;-
246-
247-
248static int delimiter = DELIMITER_DEFAULT;-
249-
250-
251static unsigned char line_delim = '\n';-
252-
253-
254static uintmax_t header = 0;-
255-
256-
257-
258static -
259 _Bool -
260 debug;-
261-
262-
263static const char *decimal_point;-
264static int decimal_point_length;-
265-
266-
267static -
268 _Bool -
269 dev_debug = -
270 0-
271 ;-
272-
273-
274static inline int-
275default_scale_base (enum scale_type scale)-
276{-
277 switch (scale)-
278 {-
279 case
executed 87 times by 1 test: case scale_IEC:
Executed by:
  • numfmt
scale_IEC:
executed 87 times by 1 test: case scale_IEC:
Executed by:
  • numfmt
87
280 case
executed 22 times by 1 test: case scale_IEC_I:
Executed by:
  • numfmt
scale_IEC_I:
executed 22 times by 1 test: case scale_IEC_I:
Executed by:
  • numfmt
22
281 return
executed 109 times by 1 test: return 1024;
Executed by:
  • numfmt
1024;
executed 109 times by 1 test: return 1024;
Executed by:
  • numfmt
109
282-
283 case
executed 351 times by 1 test: case scale_none:
Executed by:
  • numfmt
scale_none:
executed 351 times by 1 test: case scale_none:
Executed by:
  • numfmt
351
284 case
executed 30 times by 1 test: case scale_auto:
Executed by:
  • numfmt
scale_auto:
executed 30 times by 1 test: case scale_auto:
Executed by:
  • numfmt
30
285 case
executed 326 times by 1 test: case scale_SI:
Executed by:
  • numfmt
scale_SI:
executed 326 times by 1 test: case scale_SI:
Executed by:
  • numfmt
326
286 default
never executed: default:
:
never executed: default:
0
287 return
executed 707 times by 1 test: return 1000;
Executed by:
  • numfmt
1000;
executed 707 times by 1 test: return 1000;
Executed by:
  • numfmt
707
288 }-
289}-
290-
291static inline int-
292valid_suffix (const char suf)-
293{-
294 static const char *valid_suffixes = "KMGTPEZY";-
295 return
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
(
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
296 (__extension__ (__builtin_constant_p (
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
297 suf
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
298 ) && !__builtin_constant_p (
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
299 valid_suffixes
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
300 ) && (
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
301 suf
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
302 ) == '\0' ? (char *) __rawmemchr (
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
303 valid_suffixes
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
304 ,
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
305 suf
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
306 ) : __builtin_strchr (
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
307 valid_suffixes
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
308 ,
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
309 suf
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
310 )))
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
311 !=
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
312 ((void *)0)
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
313 );
executed 180 times by 1 test: return ( (__extension__ (__builtin_constant_p ( suf ) && !__builtin_constant_p ( valid_suffixes ) && ( suf ) == '\0' ? (char *) __rawmemchr ( valid_suffixes , suf ) : __builtin_strchr ( valid_suffixes , suf ))) != ((void *)0) );
Executed by:
  • numfmt
180
314}-
315-
316static inline int-
317suffix_power (const char suf)-
318{-
319 switch (suf)-
320 {-
321 case
executed 22 times by 1 test: case 'K':
Executed by:
  • numfmt
'K':
executed 22 times by 1 test: case 'K':
Executed by:
  • numfmt
22
322 return
executed 22 times by 1 test: return 1;
Executed by:
  • numfmt
1;
executed 22 times by 1 test: return 1;
Executed by:
  • numfmt
22
323-
324 case
executed 35 times by 1 test: case 'M':
Executed by:
  • numfmt
'M':
executed 35 times by 1 test: case 'M':
Executed by:
  • numfmt
35
325 return
executed 35 times by 1 test: return 2;
Executed by:
  • numfmt
2;
executed 35 times by 1 test: return 2;
Executed by:
  • numfmt
35
326-
327 case
executed 12 times by 1 test: case 'G':
Executed by:
  • numfmt
'G':
executed 12 times by 1 test: case 'G':
Executed by:
  • numfmt
12
328 return
executed 12 times by 1 test: return 3;
Executed by:
  • numfmt
3;
executed 12 times by 1 test: return 3;
Executed by:
  • numfmt
12
329-
330 case
executed 8 times by 1 test: case 'T':
Executed by:
  • numfmt
'T':
executed 8 times by 1 test: case 'T':
Executed by:
  • numfmt
8
331 return
executed 8 times by 1 test: return 4;
Executed by:
  • numfmt
4;
executed 8 times by 1 test: return 4;
Executed by:
  • numfmt
8
332-
333 case
executed 10 times by 1 test: case 'P':
Executed by:
  • numfmt
'P':
executed 10 times by 1 test: case 'P':
Executed by:
  • numfmt
10
334 return
executed 10 times by 1 test: return 5;
Executed by:
  • numfmt
5;
executed 10 times by 1 test: return 5;
Executed by:
  • numfmt
10
335-
336 case
executed 9 times by 1 test: case 'E':
Executed by:
  • numfmt
'E':
executed 9 times by 1 test: case 'E':
Executed by:
  • numfmt
9
337 return
executed 9 times by 1 test: return 6;
Executed by:
  • numfmt
6;
executed 9 times by 1 test: return 6;
Executed by:
  • numfmt
9
338-
339 case
executed 10 times by 1 test: case 'Z':
Executed by:
  • numfmt
'Z':
executed 10 times by 1 test: case 'Z':
Executed by:
  • numfmt
10
340 return
executed 10 times by 1 test: return 7;
Executed by:
  • numfmt
7;
executed 10 times by 1 test: return 7;
Executed by:
  • numfmt
10
341-
342 case
executed 16 times by 1 test: case 'Y':
Executed by:
  • numfmt
'Y':
executed 16 times by 1 test: case 'Y':
Executed by:
  • numfmt
16
343 return
executed 16 times by 1 test: return 8;
Executed by:
  • numfmt
8;
executed 16 times by 1 test: return 8;
Executed by:
  • numfmt
16
344-
345 default
never executed: default:
:
never executed: default:
0
346 return
never executed: return 0;
0;
never executed: return 0;
0
347 }-
348}-
349-
350static inline const char *-
351suffix_power_char (unsigned int power)-
352{-
353 switch (power)-
354 {-
355 case
executed 14 times by 1 test: case 0:
Executed by:
  • numfmt
0:
executed 14 times by 1 test: case 0:
Executed by:
  • numfmt
14
356 return
executed 14 times by 1 test: return "";
Executed by:
  • numfmt
"";
executed 14 times by 1 test: return "";
Executed by:
  • numfmt
14
357-
358 case
executed 173 times by 1 test: case 1:
Executed by:
  • numfmt
1:
executed 173 times by 1 test: case 1:
Executed by:
  • numfmt
173
359 return
executed 173 times by 1 test: return "K";
Executed by:
  • numfmt
"K";
executed 173 times by 1 test: return "K";
Executed by:
  • numfmt
173
360-
361 case
executed 26 times by 1 test: case 2:
Executed by:
  • numfmt
2:
executed 26 times by 1 test: case 2:
Executed by:
  • numfmt
26
362 return
executed 26 times by 1 test: return "M";
Executed by:
  • numfmt
"M";
executed 26 times by 1 test: return "M";
Executed by:
  • numfmt
26
363-
364 case
executed 15 times by 1 test: case 3:
Executed by:
  • numfmt
3:
executed 15 times by 1 test: case 3:
Executed by:
  • numfmt
15
365 return
executed 15 times by 1 test: return "G";
Executed by:
  • numfmt
"G";
executed 15 times by 1 test: return "G";
Executed by:
  • numfmt
15
366-
367 case
executed 9 times by 1 test: case 4:
Executed by:
  • numfmt
4:
executed 9 times by 1 test: case 4:
Executed by:
  • numfmt
9
368 return
executed 9 times by 1 test: return "T";
Executed by:
  • numfmt
"T";
executed 9 times by 1 test: return "T";
Executed by:
  • numfmt
9
369-
370 case
executed 8 times by 1 test: case 5:
Executed by:
  • numfmt
5:
executed 8 times by 1 test: case 5:
Executed by:
  • numfmt
8
371 return
executed 8 times by 1 test: return "P";
Executed by:
  • numfmt
"P";
executed 8 times by 1 test: return "P";
Executed by:
  • numfmt
8
372-
373 case
executed 11 times by 1 test: case 6:
Executed by:
  • numfmt
6:
executed 11 times by 1 test: case 6:
Executed by:
  • numfmt
11
374 return
executed 11 times by 1 test: return "E";
Executed by:
  • numfmt
"E";
executed 11 times by 1 test: return "E";
Executed by:
  • numfmt
11
375-
376 case
executed 10 times by 1 test: case 7:
Executed by:
  • numfmt
7:
executed 10 times by 1 test: case 7:
Executed by:
  • numfmt
10
377 return
executed 10 times by 1 test: return "Z";
Executed by:
  • numfmt
"Z";
executed 10 times by 1 test: return "Z";
Executed by:
  • numfmt
10
378-
379 case
executed 15 times by 1 test: case 8:
Executed by:
  • numfmt
8:
executed 15 times by 1 test: case 8:
Executed by:
  • numfmt
15
380 return
executed 15 times by 1 test: return "Y";
Executed by:
  • numfmt
"Y";
executed 15 times by 1 test: return "Y";
Executed by:
  • numfmt
15
381-
382 default
never executed: default:
:
never executed: default:
0
383 return
never executed: return "(error)";
"(error)";
never executed: return "(error)";
0
384 }-
385}-
386-
387-
388static long double-
389powerld (long double base, unsigned int x)-
390{-
391 long double result = base;-
392 if (x == 0
x == 0Description
TRUEevaluated 662 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 725 times by 1 test
Evaluated by:
  • numfmt
)
662-725
393 return
executed 662 times by 1 test: return 1;
Executed by:
  • numfmt
1;
executed 662 times by 1 test: return 1;
Executed by:
  • numfmt
662
394-
395-
396-
397-
398 while (--
--xDescription
TRUEevaluated 602 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 725 times by 1 test
Evaluated by:
  • numfmt
x
--xDescription
TRUEevaluated 602 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 725 times by 1 test
Evaluated by:
  • numfmt
)
602-725
399 result *= base;
executed 602 times by 1 test: result *= base;
Executed by:
  • numfmt
602
400 return
executed 725 times by 1 test: return result;
Executed by:
  • numfmt
result;
executed 725 times by 1 test: return result;
Executed by:
  • numfmt
725
401}-
402-
403-
404static inline long double-
405absld (long double val)-
406{-
407 return
executed 4894 times by 1 test: return val < 0 ? -val : val;
Executed by:
  • numfmt
val < 0 ? -val : val;
executed 4894 times by 1 test: return val < 0 ? -val : val;
Executed by:
  • numfmt
4894
408}-
409-
410-
411-
412-
413-
414static long double-
415expld (long double val, unsigned int base, unsigned int *x)-
416{-
417 unsigned int power = 0;-
418-
419 if (val >= -1.18973149535723176502e+4932L
val >= -1.1897...3176502e+4932LDescription
TRUEevaluated 731 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
&& val <= 1.18973149535723176502e+4932L
val <= 1.18973...3176502e+4932LDescription
TRUEevaluated 731 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-731
420 {-
421 while (absld (val) >= base
absld (val) >= baseDescription
TRUEevaluated 3325 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 731 times by 1 test
Evaluated by:
  • numfmt
)
731-3325
422 {-
423 ++power;-
424 val /= base;-
425 }
executed 3325 times by 1 test: end of block
Executed by:
  • numfmt
3325
426 }
executed 731 times by 1 test: end of block
Executed by:
  • numfmt
731
427 if (x
xDescription
TRUEevaluated 731 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-731
428 *
executed 731 times by 1 test: *x = power;
Executed by:
  • numfmt
x = power;
executed 731 times by 1 test: *x = power;
Executed by:
  • numfmt
731
429 return
executed 731 times by 1 test: return val;
Executed by:
  • numfmt
val;
executed 731 times by 1 test: return val;
Executed by:
  • numfmt
731
430}-
431-
432-
433-
434static inline intmax_t-
435simple_round_ceiling (long double val)-
436{-
437 intmax_t intval = val;-
438 if (intval < val
intval < valDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 335 times by 1 test
Evaluated by:
  • numfmt
)
72-335
439 intval++;
executed 72 times by 1 test: intval++;
Executed by:
  • numfmt
72
440 return
executed 407 times by 1 test: return intval;
Executed by:
  • numfmt
intval;
executed 407 times by 1 test: return intval;
Executed by:
  • numfmt
407
441}-
442-
443-
444-
445static inline intmax_t-
446simple_round_floor (long double val)-
447{-
448 return
executed 34 times by 1 test: return -simple_round_ceiling (-val);
Executed by:
  • numfmt
-simple_round_ceiling (-val);
executed 34 times by 1 test: return -simple_round_ceiling (-val);
Executed by:
  • numfmt
34
449}-
450-
451-
452-
453static inline intmax_t-
454simple_round_from_zero (long double val)-
455{-
456 return
executed 369 times by 1 test: return val < 0 ? simple_round_floor (val) : simple_round_ceiling (val);
Executed by:
  • numfmt
val < 0 ? simple_round_floor (val) : simple_round_ceiling (val);
executed 369 times by 1 test: return val < 0 ? simple_round_floor (val) : simple_round_ceiling (val);
Executed by:
  • numfmt
369
457}-
458-
459-
460-
461static inline intmax_t-
462simple_round_to_zero (long double val)-
463{-
464 return
executed 10 times by 1 test: return val;
Executed by:
  • numfmt
val;
executed 10 times by 1 test: return val;
Executed by:
  • numfmt
10
465}-
466-
467-
468-
469static inline intmax_t-
470simple_round_nearest (long double val)-
471{-
472 return
executed 19 times by 1 test: return val < 0 ? val - 0.5 : val + 0.5;
Executed by:
  • numfmt
val < 0 ? val - 0.5 : val + 0.5;
executed 19 times by 1 test: return val < 0 ? val - 0.5 : val + 0.5;
Executed by:
  • numfmt
19
473}-
474-
475static inline long double __attribute__ ((__const__))-
476simple_round (long double val, enum round_type t)-
477{-
478 intmax_t rval;-
479 intmax_t intmax_mul = val / -
480 (9223372036854775807L)-
481 ;-
482 val -= (long double) -
483 (9223372036854775807L) -
484 * intmax_mul;-
485-
486 switch (t)-
487 {-
488 case
executed 14 times by 1 test: case round_ceiling:
Executed by:
  • numfmt
round_ceiling:
executed 14 times by 1 test: case round_ceiling:
Executed by:
  • numfmt
14
489 rval = simple_round_ceiling (val);-
490 break;
executed 14 times by 1 test: break;
Executed by:
  • numfmt
14
491-
492 case
executed 24 times by 1 test: case round_floor:
Executed by:
  • numfmt
round_floor:
executed 24 times by 1 test: case round_floor:
Executed by:
  • numfmt
24
493 rval = simple_round_floor (val);-
494 break;
executed 24 times by 1 test: break;
Executed by:
  • numfmt
24
495-
496 case
executed 369 times by 1 test: case round_from_zero:
Executed by:
  • numfmt
round_from_zero:
executed 369 times by 1 test: case round_from_zero:
Executed by:
  • numfmt
369
497 rval = simple_round_from_zero (val);-
498 break;
executed 369 times by 1 test: break;
Executed by:
  • numfmt
369
499-
500 case
executed 10 times by 1 test: case round_to_zero:
Executed by:
  • numfmt
round_to_zero:
executed 10 times by 1 test: case round_to_zero:
Executed by:
  • numfmt
10
501 rval = simple_round_to_zero (val);-
502 break;
executed 10 times by 1 test: break;
Executed by:
  • numfmt
10
503-
504 case
executed 19 times by 1 test: case round_nearest:
Executed by:
  • numfmt
round_nearest:
executed 19 times by 1 test: case round_nearest:
Executed by:
  • numfmt
19
505 rval = simple_round_nearest (val);-
506 break;
executed 19 times by 1 test: break;
Executed by:
  • numfmt
19
507-
508 default
never executed: default:
:
never executed: default:
0
509-
510 return
never executed: return 0;
0;
never executed: return 0;
0
511 }-
512-
513 return
executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval;
Executed by:
  • numfmt
(long double)
executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval;
Executed by:
  • numfmt
436
514 (9223372036854775807L)
executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval;
Executed by:
  • numfmt
436
515 * intmax_mul + rval;
executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval;
Executed by:
  • numfmt
436
516}-
517-
518enum simple_strtod_error-
519{-
520 SSE_OK = 0,-
521 SSE_OK_PRECISION_LOSS,-
522 SSE_OVERFLOW,-
523 SSE_INVALID_NUMBER,-
524-
525-
526 SSE_VALID_BUT_FORBIDDEN_SUFFIX,-
527 SSE_INVALID_SUFFIX,-
528 SSE_MISSING_I_SUFFIX-
529};-
530static enum simple_strtod_error-
531simple_strtod_int (const char *input_str,-
532 char **endptr, long double *value, -
533 _Bool -
534 *negative)-
535{-
536 enum simple_strtod_error e = SSE_OK;-
537-
538 long double val = 0;-
539 unsigned int digits = 0;-
540 -
541 _Bool -
542 found_digit = -
543 0-
544 ;-
545-
546 if (*
*input_str == '-'Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 570 times by 1 test
Evaluated by:
  • numfmt
input_str == '-'
*input_str == '-'Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 570 times by 1 test
Evaluated by:
  • numfmt
)
33-570
547 {-
548 input_str++;-
549 *negative = -
550 1-
551 ;-
552 }
executed 33 times by 1 test: end of block
Executed by:
  • numfmt
33
553 else-
554 *
executed 570 times by 1 test: *negative = 0 ;
Executed by:
  • numfmt
negative =
executed 570 times by 1 test: *negative = 0 ;
Executed by:
  • numfmt
570
555 0
executed 570 times by 1 test: *negative = 0 ;
Executed by:
  • numfmt
570
556 ;
executed 570 times by 1 test: *negative = 0 ;
Executed by:
  • numfmt
570
557-
558 *endptr = (char *) input_str;-
559 while (*
*endptrDescription
TRUEevaluated 2944 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
endptr
*endptrDescription
TRUEevaluated 2944 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
&& c_isdigit (**endptr)
c_isdigit (**endptr)Description
TRUEevaluated 2345 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 599 times by 1 test
Evaluated by:
  • numfmt
)
0-2944
560 {-
561 int digit = (**endptr) - '0';-
562-
563 found_digit = -
564 1-
565 ;-
566-
567 if (val
valDescription
TRUEevaluated 1675 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 670 times by 1 test
Evaluated by:
  • numfmt
|| digit
digitDescription
TRUEevaluated 534 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 136 times by 1 test
Evaluated by:
  • numfmt
)
136-1675
568 digits++;
executed 2209 times by 1 test: digits++;
Executed by:
  • numfmt
2209
569-
570 if (digits > MAX_UNSCALED_DIGITS
digits > MAX_UNSCALED_DIGITSDescription
TRUEevaluated 97 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2248 times by 1 test
Evaluated by:
  • numfmt
)
97-2248
571 e = SSE_OK_PRECISION_LOSS;
executed 97 times by 1 test: e = SSE_OK_PRECISION_LOSS;
Executed by:
  • numfmt
97
572-
573 if (digits > MAX_ACCEPTABLE_DIGITS
digits > MAX_ACCEPTABLE_DIGITSDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2341 times by 1 test
Evaluated by:
  • numfmt
)
4-2341
574 return
executed 4 times by 1 test: return SSE_OVERFLOW;
Executed by:
  • numfmt
SSE_OVERFLOW;
executed 4 times by 1 test: return SSE_OVERFLOW;
Executed by:
  • numfmt
4
575-
576 val *= 10;-
577 val += digit;-
578-
579 ++(*endptr);-
580 }
executed 2341 times by 1 test: end of block
Executed by:
  • numfmt
2341
581 if (! found_digit
! found_digitDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 579 times by 1 test
Evaluated by:
  • numfmt
20-579
582 && ! (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
583 (__extension__ (__builtin_constant_p (
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-20
584 decimal_point_length
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-20
585 )
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
&& ((__builtin_constant_p (
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-20
586 *endptr
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
587 )
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
588 *endptr
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
589 ) < ((size_t) (
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
590 decimal_point_length
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
591 ))
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
592 decimal_point
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
593 )
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
594 decimal_point
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
595 ) < ((size_t) (
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
596 decimal_point_length
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
597 ))
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
598 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
599 ) && __builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
600 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
601 ) && (__s1_len = __builtin_strlen (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
602 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
603 ), __s2_len = __builtin_strlen (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
604 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
605 ), (!((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
606 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
607 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
608 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
609 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
610 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
611 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
612 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
613 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
614 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
615 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
616 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
617 ) : (__builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
618 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
619 ) && ((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
620 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
621 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
622 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
623 ) == 1) && (__s1_len = __builtin_strlen (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
624 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
625 ), __s1_len < 4) ? (__builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
626 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
627 ) && ((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
628 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
629 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
630 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
631 ) == 1) ? __builtin_strcmp (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
632 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
633 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
634 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
635 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
636 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
637 ); int __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
638 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
639 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
640 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
641 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
642 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
643 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
644 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
0-17
645 ))[3] - __s2[3]);
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
646 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
647 ) && ((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
648 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
649 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
650 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
651 ) == 1) && (__s2_len = __builtin_strlen (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
652 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
653 ), __s2_len < 4) ? (__builtin_constant_p (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
654 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
655 ) && ((size_t)(const void *)((
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
656 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
657 ) + 1) - (size_t)(const void *)(
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
658 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
659 ) == 1) ? __builtin_strcmp (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
660 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
661 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
662 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
663 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
664 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
665 ); int __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
666 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
667 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
668 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
669 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
670 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
671 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
672 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
0-17
673 ))[3] - __s2[3]);
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
0-17
674 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
675 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
676 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
677 )))); }) : strncmp (
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
678 *endptr
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
679 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
680 decimal_point
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
681 ,
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
682 decimal_point_length
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
683 )))
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-17
684 == 0)
! ( (__extensi...ngth ))) == 0)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
)
3-17
685 return
executed 17 times by 1 test: return SSE_INVALID_NUMBER;
Executed by:
  • numfmt
SSE_INVALID_NUMBER;
executed 17 times by 1 test: return SSE_INVALID_NUMBER;
Executed by:
  • numfmt
17
686 if (*
*negativeDescription
TRUEevaluated 33 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 549 times by 1 test
Evaluated by:
  • numfmt
negative
*negativeDescription
TRUEevaluated 33 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 549 times by 1 test
Evaluated by:
  • numfmt
)
33-549
687 val = -val;
executed 33 times by 1 test: val = -val;
Executed by:
  • numfmt
33
688-
689 if (value
valueDescription
TRUEevaluated 582 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-582
690 *
executed 582 times by 1 test: *value = val;
Executed by:
  • numfmt
value = val;
executed 582 times by 1 test: *value = val;
Executed by:
  • numfmt
582
691-
692 return
executed 582 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 582 times by 1 test: return e;
Executed by:
  • numfmt
582
693}-
694static enum simple_strtod_error-
695simple_strtod_float (const char *input_str,-
696 char **endptr,-
697 long double *value,-
698 size_t *precision)-
699{-
700 -
701 _Bool -
702 negative;-
703 enum simple_strtod_error e = SSE_OK;-
704-
705 if (precision
precisionDescription
TRUEevaluated 535 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-535
706 *
executed 535 times by 1 test: *precision = 0;
Executed by:
  • numfmt
precision = 0;
executed 535 times by 1 test: *precision = 0;
Executed by:
  • numfmt
535
707-
708-
709 e = simple_strtod_int (input_str, endptr, value, &negative);-
710 if (e != SSE_OK
e != SSE_OKDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 503 times by 1 test
Evaluated by:
  • numfmt
&& e != SSE_OK_PRECISION_LOSS
e != SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
)
16-503
711 return
executed 16 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 16 times by 1 test: return e;
Executed by:
  • numfmt
16
712-
713-
714 if ((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
715 (__extension__ (__builtin_constant_p (
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 519 times by 1 test
Evaluated by:
  • numfmt
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-519
716 decimal_point_length
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 519 times by 1 test
Evaluated by:
  • numfmt
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-519
717 )
__builtin_cons...point_length )Description
TRUEnever evaluated
FALSEevaluated 519 times by 1 test
Evaluated by:
  • numfmt
&& ((__builtin_constant_p (
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-519
718 *endptr
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
719 )
__builtin_cons..._p ( *endptr )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
720 *endptr
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
721 ) < ((size_t) (
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
722 decimal_point_length
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
723 ))
strlen ( *endp...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
724 decimal_point
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
725 )
__builtin_cons...ecimal_point )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
726 decimal_point
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
727 ) < ((size_t) (
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
728 decimal_point_length
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
729 ))
strlen ( decim...oint_length ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
730 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
731 ) && __builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
732 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
733 ) && (__s1_len = __builtin_strlen (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
734 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
735 ), __s2_len = __builtin_strlen (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
736 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
737 ), (!((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
738 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
739 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
740 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
741 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
742 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
743 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
744 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
745 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
746 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
747 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
748 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
749 ) : (__builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
750 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
751 ) && ((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
752 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
753 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
754 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
755 ) == 1) && (__s1_len = __builtin_strlen (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
756 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
757 ), __s1_len < 4) ? (__builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
758 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
759 ) && ((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
760 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
761 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
762 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
763 ) == 1) ? __builtin_strcmp (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
764 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
765 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
766 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
767 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
768 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
769 ); int __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
770 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
771 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
772 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
773 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
774 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
775 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
776 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
0-451
777 ))[3] - __s2[3]);
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
778 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
779 ) && ((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
780 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
781 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
782 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
783 ) == 1) && (__s2_len = __builtin_strlen (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
784 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
785 ), __s2_len < 4) ? (__builtin_constant_p (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
786 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
787 ) && ((size_t)(const void *)((
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
788 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
789 ) + 1) - (size_t)(const void *)(
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
790 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
791 ) == 1) ? __builtin_strcmp (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
792 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
793 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
794 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
795 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
796 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
797 ); int __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
798 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
799 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
800 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
801 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
802 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
803 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
804 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
0-451
805 ))[3] - __s2[3]);
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
0-451
806 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
807 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
808 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
809 )))); }) : strncmp (
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
810 *endptr
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
811 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
812 decimal_point
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
813 ,
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
814 decimal_point_length
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
815 )))
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
68-451
816 == 0)
( (__extension...ngth ))) == 0)Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 451 times by 1 test
Evaluated by:
  • numfmt
)
68-451
817 {-
818 char *ptr2;-
819 long double val_frac = 0;-
820 -
821 _Bool -
822 neg_frac;-
823-
824 (*endptr) += decimal_point_length;-
825 enum simple_strtod_error e2 =-
826 simple_strtod_int (*endptr, &ptr2, &val_frac, &neg_frac);-
827 if (e2 != SSE_OK
e2 != SSE_OKDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 62 times by 1 test
Evaluated by:
  • numfmt
&& e2 != SSE_OK_PRECISION_LOSS
e2 != SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-62
828 return
executed 5 times by 1 test: return e2;
Executed by:
  • numfmt
e2;
executed 5 times by 1 test: return e2;
Executed by:
  • numfmt
5
829 if (e2 == SSE_OK_PRECISION_LOSS
e2 == SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 62 times by 1 test
Evaluated by:
  • numfmt
)
1-62
830 e = e2;
executed 1 time by 1 test: e = e2;
Executed by:
  • numfmt
1
831 if (neg_frac
neg_fracDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 62 times by 1 test
Evaluated by:
  • numfmt
)
1-62
832 return
executed 1 time by 1 test: return SSE_INVALID_NUMBER;
Executed by:
  • numfmt
SSE_INVALID_NUMBER;
executed 1 time by 1 test: return SSE_INVALID_NUMBER;
Executed by:
  • numfmt
1
833-
834-
835 size_t exponent = ptr2 - *endptr;-
836-
837 val_frac = ((long double) val_frac) / powerld (10, exponent);-
838-
839-
840-
841 if (value
valueDescription
TRUEevaluated 62 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-62
842 {-
843 if (negative
negativeDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 41 times by 1 test
Evaluated by:
  • numfmt
)
21-41
844 *
executed 21 times by 1 test: *value -= val_frac;
Executed by:
  • numfmt
value -= val_frac;
executed 21 times by 1 test: *value -= val_frac;
Executed by:
  • numfmt
21
845 else-
846 *
executed 41 times by 1 test: *value += val_frac;
Executed by:
  • numfmt
value += val_frac;
executed 41 times by 1 test: *value += val_frac;
Executed by:
  • numfmt
41
847 }-
848-
849 if (precision
precisionDescription
TRUEevaluated 62 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-62
850 *
executed 62 times by 1 test: *precision = exponent;
Executed by:
  • numfmt
precision = exponent;
executed 62 times by 1 test: *precision = exponent;
Executed by:
  • numfmt
62
851-
852 *endptr = ptr2;-
853 }
executed 62 times by 1 test: end of block
Executed by:
  • numfmt
62
854 return
executed 513 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 513 times by 1 test: return e;
Executed by:
  • numfmt
513
855}-
856static enum simple_strtod_error-
857simple_strtod_human (const char *input_str,-
858 char **endptr, long double *value, size_t *precision,-
859 enum scale_type allowed_scaling)-
860{-
861 int power = 0;-
862-
863 int scale_base = default_scale_base (allowed_scaling);-
864-
865 do { if (dev_debug
dev_debugDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 524 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 11 times by 1 test: fprintf ( stderr , "simple_strtod_human:\n input string: %s\n" " locale decimal-point: %s\n" " MAX_UNSCALED_DIGITS: %d\n", quote_n (0, input_str), quote_n (1, decimal_point), MAX_UNSCALED_DIGITS);
Executed by:
  • numfmt
11-524
866 stderr
executed 11 times by 1 test: fprintf ( stderr , "simple_strtod_human:\n input string: %s\n" " locale decimal-point: %s\n" " MAX_UNSCALED_DIGITS: %d\n", quote_n (0, input_str), quote_n (1, decimal_point), MAX_UNSCALED_DIGITS);
Executed by:
  • numfmt
11
867 , "simple_strtod_human:\n input string: %s\n" " locale decimal-point: %s\n" " MAX_UNSCALED_DIGITS: %d\n", quote_n (0, input_str), quote_n (1, decimal_point), MAX_UNSCALED_DIGITS);
executed 11 times by 1 test: fprintf ( stderr , "simple_strtod_human:\n input string: %s\n" " locale decimal-point: %s\n" " MAX_UNSCALED_DIGITS: %d\n", quote_n (0, input_str), quote_n (1, decimal_point), MAX_UNSCALED_DIGITS);
Executed by:
  • numfmt
} while (0)
11
868-
869-
870-
871-
872 ;-
873-
874 enum simple_strtod_error e =-
875 simple_strtod_float (input_str, endptr, value, precision);-
876 if (e != SSE_OK
e != SSE_OKDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 496 times by 1 test
Evaluated by:
  • numfmt
&& e != SSE_OK_PRECISION_LOSS
e != SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
17-496
877 return
executed 22 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 22 times by 1 test: return e;
Executed by:
  • numfmt
22
878-
879 do { if (dev_debug
dev_debugDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 502 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 11 times by 1 test: fprintf ( stderr , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision);
Executed by:
  • numfmt
11-502
880 stderr
executed 11 times by 1 test: fprintf ( stderr , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision);
Executed by:
  • numfmt
11
881 , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision);
executed 11 times by 1 test: fprintf ( stderr , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision);
Executed by:
  • numfmt
} while (0)
11
882 ;-
883-
884 if (**
**endptr != '\0'Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 333 times by 1 test
Evaluated by:
  • numfmt
endptr != '\0'
**endptr != '\0'Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 333 times by 1 test
Evaluated by:
  • numfmt
)
180-333
885 {-
886-
887-
888-
889 while (-
890 ((*
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
2-180
891 to_uchar (**endptr)
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
2-180
892 ))] & (unsigned short int) _ISblank)
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
2-180
893 )-
894 (*
executed 2 times by 1 test: (*endptr)++;
Executed by:
  • numfmt
endptr)++;
executed 2 times by 1 test: (*endptr)++;
Executed by:
  • numfmt
2
895-
896 if (!valid_suffix (**endptr)
!valid_suffix (**endptr)Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 126 times by 1 test
Evaluated by:
  • numfmt
)
54-126
897 return
executed 54 times by 1 test: return SSE_INVALID_SUFFIX;
Executed by:
  • numfmt
SSE_INVALID_SUFFIX;
executed 54 times by 1 test: return SSE_INVALID_SUFFIX;
Executed by:
  • numfmt
54
898-
899 if (allowed_scaling == scale_none
allowed_scaling == scale_noneDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 122 times by 1 test
Evaluated by:
  • numfmt
)
4-122
900 return
executed 4 times by 1 test: return SSE_VALID_BUT_FORBIDDEN_SUFFIX;
Executed by:
  • numfmt
SSE_VALID_BUT_FORBIDDEN_SUFFIX;
executed 4 times by 1 test: return SSE_VALID_BUT_FORBIDDEN_SUFFIX;
Executed by:
  • numfmt
4
901-
902 power = suffix_power (**endptr);-
903 (*endptr)++;-
904-
905 if (allowed_scaling == scale_auto
allowed_scaling == scale_autoDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 97 times by 1 test
Evaluated by:
  • numfmt
&& **
**endptr == 'i'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
endptr == 'i'
**endptr == 'i'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
)
12-97
906 {-
907-
908-
909 scale_base = 1024;-
910 (*endptr)++;-
911 do { if (dev_debug
dev_debugDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 1 time by 1 test: fprintf ( stderr , " Auto-scaling, found 'i', switching to base %d\n", scale_base);
Executed by:
  • numfmt
1-12
912 stderr
executed 1 time by 1 test: fprintf ( stderr , " Auto-scaling, found 'i', switching to base %d\n", scale_base);
Executed by:
  • numfmt
1
913 , " Auto-scaling, found 'i', switching to base %d\n", scale_base);
executed 1 time by 1 test: fprintf ( stderr , " Auto-scaling, found 'i', switching to base %d\n", scale_base);
Executed by:
  • numfmt
} while (0)
1
914 ;-
915 }
executed 13 times by 1 test: end of block
Executed by:
  • numfmt
13
916-
917 *precision = 0;-
918 }
executed 122 times by 1 test: end of block
Executed by:
  • numfmt
122
919-
920 if (allowed_scaling == scale_IEC_I
allowed_scaling == scale_IEC_IDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 444 times by 1 test
Evaluated by:
  • numfmt
)
11-444
921 {-
922 if (**
**endptr == 'i'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
endptr == 'i'
**endptr == 'i'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
)
2-9
923 (*
executed 9 times by 1 test: (*endptr)++;
Executed by:
  • numfmt
endptr)++;
executed 9 times by 1 test: (*endptr)++;
Executed by:
  • numfmt
9
924 else-
925 return
executed 2 times by 1 test: return SSE_MISSING_I_SUFFIX;
Executed by:
  • numfmt
SSE_MISSING_I_SUFFIX;
executed 2 times by 1 test: return SSE_MISSING_I_SUFFIX;
Executed by:
  • numfmt
2
926 }-
927-
928 long double multiplier = powerld (scale_base, power);-
929-
930 do { if (dev_debug
dev_debugDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 442 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 11 times by 1 test: fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier);
Executed by:
  • numfmt
11-442
931 stderr
executed 11 times by 1 test: fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier);
Executed by:
  • numfmt
11
932 , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier);
executed 11 times by 1 test: fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier);
Executed by:
  • numfmt
} while (0);
11
933-
934-
935 (*value) = (*value) * multiplier;-
936-
937 do { if (dev_debug
dev_debugDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 442 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 11 times by 1 test: fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value);
Executed by:
  • numfmt
11-442
938 stderr
executed 11 times by 1 test: fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value);
Executed by:
  • numfmt
11
939 , " returning value: %Lf (%LG)\n", *value, *value);
executed 11 times by 1 test: fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value);
Executed by:
  • numfmt
} while (0);
11
940-
941 return
executed 453 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 453 times by 1 test: return e;
Executed by:
  • numfmt
453
942}-
943-
944-
945static void-
946simple_strtod_fatal (enum simple_strtod_error err, char const *input_str)-
947{-
948 char const *msgid = -
949 ((void *)0)-
950 ;-
951-
952 switch (err)-
953 {-
954 case
never executed: case SSE_OK_PRECISION_LOSS:
SSE_OK_PRECISION_LOSS:
never executed: case SSE_OK_PRECISION_LOSS:
0
955 case
never executed: case SSE_OK:
SSE_OK:
never executed: case SSE_OK:
0
956-
957 abort ();
never executed: abort ();
0
958-
959 case
executed 4 times by 1 test: case SSE_OVERFLOW:
Executed by:
  • numfmt
code before this statement never executed: case SSE_OVERFLOW:
executed 4 times by 1 test: case SSE_OVERFLOW:
Executed by:
  • numfmt
SSE_OVERFLOW:
code before this statement never executed: case SSE_OVERFLOW:
executed 4 times by 1 test: case SSE_OVERFLOW:
Executed by:
  • numfmt
0-4
960 msgid = "value too large to be converted: %s";-
961 break;
executed 4 times by 1 test: break;
Executed by:
  • numfmt
4
962-
963 case
executed 18 times by 1 test: case SSE_INVALID_NUMBER:
Executed by:
  • numfmt
SSE_INVALID_NUMBER:
executed 18 times by 1 test: case SSE_INVALID_NUMBER:
Executed by:
  • numfmt
18
964 msgid = "invalid number: %s";-
965 break;
executed 18 times by 1 test: break;
Executed by:
  • numfmt
18
966-
967 case
executed 4 times by 1 test: case SSE_VALID_BUT_FORBIDDEN_SUFFIX:
Executed by:
  • numfmt
SSE_VALID_BUT_FORBIDDEN_SUFFIX:
executed 4 times by 1 test: case SSE_VALID_BUT_FORBIDDEN_SUFFIX:
Executed by:
  • numfmt
4
968 msgid = "rejecting suffix in input: %s (consider using --from)";-
969 break;
executed 4 times by 1 test: break;
Executed by:
  • numfmt
4
970-
971 case
executed 54 times by 1 test: case SSE_INVALID_SUFFIX:
Executed by:
  • numfmt
SSE_INVALID_SUFFIX:
executed 54 times by 1 test: case SSE_INVALID_SUFFIX:
Executed by:
  • numfmt
54
972 msgid = "invalid suffix in input: %s";-
973 break;
executed 54 times by 1 test: break;
Executed by:
  • numfmt
54
974-
975 case
executed 2 times by 1 test: case SSE_MISSING_I_SUFFIX:
Executed by:
  • numfmt
SSE_MISSING_I_SUFFIX:
executed 2 times by 1 test: case SSE_MISSING_I_SUFFIX:
Executed by:
  • numfmt
2
976 msgid = "missing 'i' suffix in input: %s (e.g Ki/Mi/Gi)";-
977 break;
executed 2 times by 1 test: break;
Executed by:
  • numfmt
2
978-
979 }-
980-
981 if (inval_style != inval_ignore
inval_style != inval_ignoreDescription
TRUEevaluated 80 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
)
2-80
982 error (conv_exit_code, 0,
executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str));
Executed by:
  • numfmt
80
983 dcgettext (((void *)0),
executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str));
Executed by:
  • numfmt
80
984 msgid
executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str));
Executed by:
  • numfmt
80
985 , 5)
executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str));
Executed by:
  • numfmt
80
986 , quote (input_str));
executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str));
Executed by:
  • numfmt
80
987}
executed 15 times by 1 test: end of block
Executed by:
  • numfmt
15
988-
989-
990static void-
991double_to_human (long double val, int precision,-
992 char *buf, size_t buf_size,-
993 enum scale_type scale, int group, enum round_type round)-
994{-
995 int num_size;-
996 char fmt[64];-
997 _Static_assert (sizeof (fmt) > (((((((sizeof (zero_padding_width) * 8) - (! ((__typeof__ (zero_padding_width)) 0 < (__typeof__ (zero_padding_width)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (zero_padding_width)) 0 < (__typeof__ (zero_padding_width)) -1))) + 1) + ((((((sizeof (precision) * 8) - (! ((__typeof__ (precision)) 0 < (__typeof__ (precision)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (precision)) 0 < (__typeof__ (precision)) -1))) + 1) + 10 ), "verify (" "sizeof (fmt) > (INT_BUFSIZE_BOUND (zero_padding_width) + INT_BUFSIZE_BOUND (precision) + 10 )" ")")-
998-
999 ;-
1000-
1001 char *pfmt = fmt;-
1002 *pfmt++ = '%';-
1003-
1004 if (group
groupDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 428 times by 1 test
Evaluated by:
  • numfmt
)
8-428
1005 *
executed 8 times by 1 test: *pfmt++ = '\'';
Executed by:
  • numfmt
pfmt++ = '\'';
executed 8 times by 1 test: *pfmt++ = '\'';
Executed by:
  • numfmt
8
1006-
1007 if (zero_padding_width
zero_padding_widthDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 432 times by 1 test
Evaluated by:
  • numfmt
)
4-432
1008 pfmt += snprintf (pfmt, sizeof (fmt) - 2, "0%ld", zero_padding_width);
executed 4 times by 1 test: pfmt += snprintf (pfmt, sizeof (fmt) - 2, "0%ld", zero_padding_width);
Executed by:
  • numfmt
4
1009-
1010 do { if (dev_debug
dev_debugDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 425 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 11 times by 1 test: fprintf ( stderr , "double_to_human:\n");
Executed by:
  • numfmt
11-425
1011 stderr
executed 11 times by 1 test: fprintf ( stderr , "double_to_human:\n");
Executed by:
  • numfmt
11
1012 , "double_to_human:\n");
executed 11 times by 1 test: fprintf ( stderr , "double_to_human:\n");
Executed by:
  • numfmt
} while (0);
11
1013-
1014 if (scale == scale_none
scale == scale_noneDescription
TRUEevaluated 155 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 281 times by 1 test
Evaluated by:
  • numfmt
)
155-281
1015 {-
1016 val *= powerld (10, precision);-
1017 val = simple_round (val, round);-
1018 val /= powerld (10, precision);-
1019-
1020 do { if (dev_debug
dev_debugDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 146 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 9 times by 1 test: fprintf ( stderr , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val);
Executed by:
  • numfmt
9-146
1021 stderr
executed 9 times by 1 test: fprintf ( stderr , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val);
Executed by:
  • numfmt
9
1022 , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val);
executed 9 times by 1 test: fprintf ( stderr , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val);
Executed by:
  • numfmt
} while (0)
9
1023-
1024 ;-
1025-
1026 stpcpy (pfmt, ".*Lf");-
1027-
1028 num_size = snprintf (buf, buf_size, fmt, precision, val);-
1029 if (num_size < 0
num_size < 0Description
TRUEnever evaluated
FALSEevaluated 155 times by 1 test
Evaluated by:
  • numfmt
|| num_size >= (int) buf_size
num_size >= (int) buf_sizeDescription
TRUEnever evaluated
FALSEevaluated 155 times by 1 test
Evaluated by:
  • numfmt
)
0-155
1030 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1031 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1032 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1033 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1034 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1035 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1036 "failed to prepare value '%Lf' for printing"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1037 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1038 , val), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1039 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1040 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1041 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1042 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1043 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1044 "failed to prepare value '%Lf' for printing"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1045 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1046 , val), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1047 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1048 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1049 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1050 return;
executed 155 times by 1 test: return;
Executed by:
  • numfmt
155
1051 }-
1052-
1053-
1054 double scale_base = default_scale_base (scale);-
1055-
1056-
1057 unsigned int power = 0;-
1058 val = expld (val, scale_base, &power);-
1059 do { if (dev_debug
dev_debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 279 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 2 times by 1 test: fprintf ( stderr , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
2-279
1060 stderr
executed 2 times by 1 test: fprintf ( stderr , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
2
1061 , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power);
executed 2 times by 1 test: fprintf ( stderr , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
} while (0);
2
1062-
1063-
1064 unsigned int power_adjust = 0;-
1065 if (user_precision != -1
user_precision != -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 279 times by 1 test
Evaluated by:
  • numfmt
)
2-279
1066 power_adjust =
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1067 (((
(( power * 3 )...r_precision ))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
0-2
1068 power * 3
(( power * 3 )...r_precision ))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
0-2
1069 )<(
(( power * 3 )...r_precision ))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
0-2
1070 user_precision
(( power * 3 )...r_precision ))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
0-2
1071 ))
(( power * 3 )...r_precision ))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
?(
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
0-2
1072 power * 3
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1073 ):(
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1074 user_precision
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1075 ))
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1076 ;
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ;
Executed by:
  • numfmt
2
1077 else if (absld (val) < 10
absld (val) < 10Description
TRUEevaluated 221 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 58 times by 1 test
Evaluated by:
  • numfmt
)
58-221
1078 {-
1079-
1080-
1081 power_adjust = 1;-
1082 }
executed 221 times by 1 test: end of block
Executed by:
  • numfmt
221
1083-
1084 val *= powerld (10, power_adjust);-
1085 val = simple_round (val, round);-
1086 val /= powerld (10, power_adjust);-
1087-
1088-
1089-
1090-
1091 if (absld (val) >= scale_base
absld (val) >= scale_baseDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 280 times by 1 test
Evaluated by:
  • numfmt
)
1-280
1092 {-
1093 val /= scale_base;-
1094 power++;-
1095 }
executed 1 time by 1 test: end of block
Executed by:
  • numfmt
1
1096-
1097-
1098-
1099 int show_decimal_point = (
(val != 0)Description
TRUEevaluated 278 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
val != 0)
(val != 0)Description
TRUEevaluated 278 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
&& (
(absld (val) < 10)Description
TRUEevaluated 218 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 60 times by 1 test
Evaluated by:
  • numfmt
absld (val) < 10)
(absld (val) < 10)Description
TRUEevaluated 218 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 60 times by 1 test
Evaluated by:
  • numfmt
&& (
(power > 0)Description
TRUEevaluated 217 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
power > 0)
(power > 0)Description
TRUEevaluated 217 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
;
1-278
1100-
1101-
1102 do { if (dev_debug
dev_debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 279 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 2 times by 1 test: fprintf ( stderr , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
2-279
1103 stderr
executed 2 times by 1 test: fprintf ( stderr , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
2
1104 , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power);
executed 2 times by 1 test: fprintf ( stderr , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power);
Executed by:
  • numfmt
} while (0);
2
1105-
1106 stpcpy (pfmt, ".*Lf%s");-
1107-
1108 int prec = user_precision == -1
user_precision == -1Description
TRUEevaluated 279 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
? show_decimal_point : user_precision;
2-279
1109-
1110-
1111 num_size = snprintf (buf, buf_size - 1, fmt, prec, val,-
1112 suffix_power_char (power));-
1113 if (num_size < 0
num_size < 0Description
TRUEnever evaluated
FALSEevaluated 281 times by 1 test
Evaluated by:
  • numfmt
|| num_size >= (int) buf_size - 1
num_size >= (int) buf_size - 1Description
TRUEnever evaluated
FALSEevaluated 281 times by 1 test
Evaluated by:
  • numfmt
)
0-281
1114 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1115 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1116 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1117 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1118 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1119 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1120 "failed to prepare value '%Lf' for printing"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1121 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1122 , val), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1123 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1124 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1125 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1126 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1127 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1128 "failed to prepare value '%Lf' for printing"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1129 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1130 , val), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1131 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1132 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1133 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"failed to prepare value '%Lf' for printing\", 5), val), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "failed to prepare value '%Lf' for printing" , 5) , val), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1134-
1135 if (scale == scale_IEC_I
scale == scale_IEC_IDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 270 times by 1 test
Evaluated by:
  • numfmt
&& power > 0
power > 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-270
1136 strncat (buf, "i", buf_size - num_size - 1);
executed 10 times by 1 test: strncat (buf, "i", buf_size - num_size - 1);
Executed by:
  • numfmt
10
1137-
1138 do { if (dev_debug
dev_debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 279 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 2 times by 1 test: fprintf ( stderr , " returning value: %s\n", quote (buf));
Executed by:
  • numfmt
2-279
1139 stderr
executed 2 times by 1 test: fprintf ( stderr , " returning value: %s\n", quote (buf));
Executed by:
  • numfmt
2
1140 , " returning value: %s\n", quote (buf));
executed 2 times by 1 test: fprintf ( stderr , " returning value: %s\n", quote (buf));
Executed by:
  • numfmt
} while (0);
2
1141-
1142 return;
executed 281 times by 1 test: return;
Executed by:
  • numfmt
281
1143}-
1144-
1145-
1146-
1147-
1148-
1149static uintmax_t-
1150unit_to_umax (const char *n_string)-
1151{-
1152 strtol_error s_err;-
1153 const char *c_string = n_string;-
1154 char *t_string = -
1155 ((void *)0)-
1156 ;-
1157 size_t n_len = strlen (n_string);-
1158 char *end = -
1159 ((void *)0)-
1160 ;-
1161 uintmax_t n;-
1162 const char *suffixes = "KMGTPEZY";-
1163-
1164-
1165 if (n_len
n_lenDescription
TRUEevaluated 45 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
&& ! c_isdigit (n_string[n_len - 1])
! c_isdigit (n...ng[n_len - 1])Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 35 times by 1 test
Evaluated by:
  • numfmt
)
0-45
1166 {-
1167 t_string = xmalloc (n_len + 2);-
1168 end = t_string + n_len - 1;-
1169 memcpy (t_string, n_string, n_len);-
1170-
1171 if (*
*end == 'i'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
end == 'i'
*end == 'i'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
&& 2 <= n_len
2 <= n_lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&& ! c_isdigit (*(end - 1))
! c_isdigit (*(end - 1))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-7
1172 *
executed 1 time by 1 test: *end = '\0';
Executed by:
  • numfmt
end = '\0';
executed 1 time by 1 test: *end = '\0';
Executed by:
  • numfmt
1
1173 else-
1174 {-
1175 *++end = 'B';-
1176 *++end = '\0';-
1177 suffixes = "KMGTPEZY0";-
1178 }
executed 9 times by 1 test: end of block
Executed by:
  • numfmt
9
1179-
1180 c_string = t_string;-
1181 }
executed 10 times by 1 test: end of block
Executed by:
  • numfmt
10
1182-
1183 s_err = xstrtoumax (c_string, &end, 10, &n, suffixes);-
1184-
1185 if (s_err != LONGINT_OK
s_err != LONGINT_OKDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
|| *
*endDescription
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
end
*endDescription
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
|| n == 0
n == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 36 times by 1 test
Evaluated by:
  • numfmt
)
0-38
1186 {-
1187 free (t_string);-
1188 ((!!sizeof (struct { _Static_assert (-
1189 1-
1190 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid unit size: %s\", 5), quote (n_string)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1191 1-
1192 , 0, -
1193 dcgettext (((void *)0), -
1194 "invalid unit size: %s"-
1195 , 5)-
1196 , quote (n_string)), ((-
1197 0-
1198 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1199 1-
1200 , 0, -
1201 dcgettext (((void *)0), -
1202 "invalid unit size: %s"-
1203 , 5)-
1204 , quote (n_string)), ((-
1205 0-
1206 ) ? (void) 0 : __builtin_unreachable ()))));-
1207 }
never executed: end of block
0
1208-
1209 free (t_string);-
1210-
1211 return
executed 36 times by 1 test: return n;
Executed by:
  • numfmt
n;
executed 36 times by 1 test: return n;
Executed by:
  • numfmt
36
1212}-
1213-
1214-
1215static void-
1216setup_padding_buffer (size_t min_size)-
1217{-
1218 if (padding_buffer_size > min_size
padding_buffer_size > min_sizeDescription
TRUEevaluated 132 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 790 times by 1 test
Evaluated by:
  • numfmt
)
132-790
1219 return;
executed 132 times by 1 test: return;
Executed by:
  • numfmt
132
1220-
1221 padding_buffer_size = min_size + 1;-
1222 padding_buffer = xrealloc (padding_buffer, padding_buffer_size);-
1223}
executed 790 times by 1 test: end of block
Executed by:
  • numfmt
790
1224-
1225void-
1226usage (int status)-
1227{-
1228 if (status !=
status != 0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
10-17
1229 0
status != 0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
10-17
1230 )-
1231 do { fprintf (-
1232 stderr-
1233 , -
1234 dcgettext (((void *)0), -
1235 "Try '%s --help' for more information.\n"-
1236 , 5)-
1237 , program_name); }
executed 17 times by 1 test: end of block
Executed by:
  • numfmt
while (0);
17
1238 else-
1239 {-
1240 printf (-
1241 dcgettext (((void *)0), -
1242 "Usage: %s [OPTION]... [NUMBER]...\n"-
1243 , 5)-
1244-
1245 -
1246 , program_name);-
1247 fputs_unlocked (-
1248 dcgettext (((void *)0), -
1249 "Reformat NUMBER(s), or the numbers from standard input if none are specified.\n"-
1250 , 5)-
1251 ,-
1252 stdout-
1253 )-
1254-
1255 ;-
1256 emit_mandatory_arg_note ();-
1257 fputs_unlocked (-
1258 dcgettext (((void *)0), -
1259 " --debug print warnings about invalid input\n"-
1260 , 5)-
1261 ,-
1262 stdout-
1263 )-
1264-
1265 ;-
1266 fputs_unlocked (-
1267 dcgettext (((void *)0), -
1268 " -d, --delimiter=X use X instead of whitespace for field delimiter\n"-
1269 , 5)-
1270 ,-
1271 stdout-
1272 )-
1273-
1274 ;-
1275 fputs_unlocked (-
1276 dcgettext (((void *)0), -
1277 " --field=FIELDS replace the numbers in these input fields (default=1)\n see FIELDS below\n"-
1278 , 5)-
1279 ,-
1280 stdout-
1281 )-
1282-
1283-
1284 ;-
1285 fputs_unlocked (-
1286 dcgettext (((void *)0), -
1287 " --format=FORMAT use printf style floating-point FORMAT;\n see FORMAT below for details\n"-
1288 , 5)-
1289 ,-
1290 stdout-
1291 )-
1292-
1293-
1294 ;-
1295 fputs_unlocked (-
1296 dcgettext (((void *)0), -
1297 " --from=UNIT auto-scale input numbers to UNITs; default is 'none';\n see UNIT below\n"-
1298 , 5)-
1299 ,-
1300 stdout-
1301 )-
1302-
1303-
1304 ;-
1305 fputs_unlocked (-
1306 dcgettext (((void *)0), -
1307 " --from-unit=N specify the input unit size (instead of the default 1)\n"-
1308 , 5)-
1309 ,-
1310 stdout-
1311 )-
1312-
1313 ;-
1314 fputs_unlocked (-
1315 dcgettext (((void *)0), -
1316 " --grouping use locale-defined grouping of digits, e.g. 1,000,000\n (which means it has no effect in the C/POSIX locale)\n"-
1317 , 5)-
1318 ,-
1319 stdout-
1320 )-
1321-
1322-
1323 ;-
1324 fputs_unlocked (-
1325 dcgettext (((void *)0), -
1326 " --header[=N] print (without converting) the first N header lines;\n N defaults to 1 if not specified\n"-
1327 , 5)-
1328 ,-
1329 stdout-
1330 )-
1331-
1332-
1333 ;-
1334 fputs_unlocked (-
1335 dcgettext (((void *)0), -
1336 " --invalid=MODE failure mode for invalid numbers: MODE can be:\n abort (default), fail, warn, ignore\n"-
1337 , 5)-
1338 ,-
1339 stdout-
1340 )-
1341-
1342-
1343 ;-
1344 fputs_unlocked (-
1345 dcgettext (((void *)0), -
1346 " --padding=N pad the output to N characters; positive N will\n right-align; negative N will left-align;\n padding is ignored if the output is wider than N;\n the default is to automatically pad if a whitespace\n is found\n"-
1347 , 5)-
1348 ,-
1349 stdout-
1350 )-
1351-
1352-
1353-
1354-
1355-
1356 ;-
1357 fputs_unlocked (-
1358 dcgettext (((void *)0), -
1359 " --round=METHOD use METHOD for rounding when scaling; METHOD can be:\n up, down, from-zero (default), towards-zero, nearest\n"-
1360 , 5)-
1361 ,-
1362 stdout-
1363 )-
1364-
1365-
1366 ;-
1367 fputs_unlocked (-
1368 dcgettext (((void *)0), -
1369 " --suffix=SUFFIX add SUFFIX to output numbers, and accept optional\n SUFFIX in input numbers\n"-
1370 , 5)-
1371 ,-
1372 stdout-
1373 )-
1374-
1375-
1376 ;-
1377 fputs_unlocked (-
1378 dcgettext (((void *)0), -
1379 " --to=UNIT auto-scale output numbers to UNITs; see UNIT below\n"-
1380 , 5)-
1381 ,-
1382 stdout-
1383 )-
1384-
1385 ;-
1386 fputs_unlocked (-
1387 dcgettext (((void *)0), -
1388 " --to-unit=N the output unit size (instead of the default 1)\n"-
1389 , 5)-
1390 ,-
1391 stdout-
1392 )-
1393-
1394 ;-
1395 fputs_unlocked (-
1396 dcgettext (((void *)0), -
1397 " -z, --zero-terminated line delimiter is NUL, not newline\n"-
1398 , 5)-
1399 ,-
1400 stdout-
1401 )-
1402-
1403 ;-
1404 fputs_unlocked (-
1405 dcgettext (((void *)0), -
1406 " --help display this help and exit\n"-
1407 , 5)-
1408 ,-
1409 stdout-
1410 );-
1411 fputs_unlocked (-
1412 dcgettext (((void *)0), -
1413 " --version output version information and exit\n"-
1414 , 5)-
1415 ,-
1416 stdout-
1417 );-
1418-
1419 fputs_unlocked (-
1420 dcgettext (((void *)0), -
1421 "\nUNIT options:\n"-
1422 , 5)-
1423 ,-
1424 stdout-
1425 )-
1426-
1427 ;-
1428 fputs_unlocked (-
1429 dcgettext (((void *)0), -
1430 " none no auto-scaling is done; suffixes will trigger an error\n"-
1431 , 5)-
1432 ,-
1433 stdout-
1434 )-
1435-
1436 ;-
1437 fputs_unlocked (-
1438 dcgettext (((void *)0), -
1439 " auto accept optional single/two letter suffix:\n 1K = 1000,\n 1Ki = 1024,\n 1M = 1000000,\n 1Mi = 1048576,\n"-
1440 , 5)-
1441 ,-
1442 stdout-
1443 )-
1444-
1445-
1446-
1447-
1448 ;-
1449 fputs_unlocked (-
1450 dcgettext (((void *)0), -
1451 " si accept optional single letter suffix:\n 1K = 1000,\n 1M = 1000000,\n ...\n"-
1452 , 5)-
1453 ,-
1454 stdout-
1455 )-
1456-
1457-
1458-
1459 ;-
1460 fputs_unlocked (-
1461 dcgettext (((void *)0), -
1462 " iec accept optional single letter suffix:\n 1K = 1024,\n 1M = 1048576,\n ...\n"-
1463 , 5)-
1464 ,-
1465 stdout-
1466 )-
1467-
1468-
1469-
1470 ;-
1471 fputs_unlocked (-
1472 dcgettext (((void *)0), -
1473 " iec-i accept optional two-letter suffix:\n 1Ki = 1024,\n 1Mi = 1048576,\n ...\n"-
1474 , 5)-
1475 ,-
1476 stdout-
1477 )-
1478-
1479-
1480-
1481 ;-
1482-
1483 fputs_unlocked (-
1484 dcgettext (((void *)0), -
1485 "\nFIELDS supports cut(1) style field ranges:\n N N'th field, counted from 1\n N- from N'th field, to end of line\n N-M from N'th to M'th field (inclusive)\n -M from first to M'th field (inclusive)\n - all fields\nMultiple fields/ranges can be separated with commas\n"-
1486 , 5)-
1487 ,-
1488 stdout-
1489 )-
1490-
1491-
1492-
1493-
1494-
1495-
1496-
1497 ;-
1498-
1499 fputs_unlocked (-
1500 dcgettext (((void *)0), -
1501 "\nFORMAT must be suitable for printing one floating-point argument '%f'.\nOptional quote (%'f) will enable --grouping (if supported by current locale).\nOptional width value (%10f) will pad output. Optional zero (%010f) width\nwill zero pad the number. Optional negative values (%-10f) will left align.\nOptional precision (%.1f) will override the input determined precision.\n"-
1502 , 5)-
1503 ,-
1504 stdout-
1505 )-
1506-
1507-
1508-
1509-
1510-
1511 ;-
1512-
1513 printf (-
1514 dcgettext (((void *)0), -
1515 "\nExit status is 0 if all input numbers were successfully converted.\nBy default, %s will stop at the first conversion error with exit status 2.\nWith --invalid='fail' a warning is printed f