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 for each conversion error\nand the exit status is 2. With --invalid='warn' each conversion error is\ndiagnosed, but the exit status is 0. With --invalid='ignore' conversion\nerrors are not diagnosed and the exit status is 0.\n"-
1516 , 5)-
1517-
1518-
1519-
1520-
1521-
1522-
1523 -
1524 , program_name);-
1525-
1526 printf (-
1527 dcgettext (((void *)0), -
1528 "\nExamples:\n $ %s --to=si 1000\n -> \"1.0K\"\n $ %s --to=iec 2048\n -> \"2.0K\"\n $ %s --to=iec-i 4096\n -> \"4.0Ki\"\n $ echo 1K | %s --from=si\n -> \"1000\"\n $ echo 1K | %s --from=iec\n -> \"1024\"\n $ df -B1 | %s --header --field 2-4 --to=si\n $ ls -l | %s --header --field 5 --to=iec\n $ ls -lh | %s --header --field 5 --from=iec --padding=10\n $ ls -lh | %s --header --field 5 --from=iec --format %%10f\n"-
1529 , 5)-
1530 ,-
1531 -
1532 program_name, program_name, program_name,-
1533 program_name, program_name, program_name,-
1534 program_name, program_name, program_name);-
1535 emit_ancillary_info ("numfmt");-
1536 }
executed 10 times by 1 test: end of block
Executed by:
  • numfmt
10
1537 exit (status);
executed 27 times by 1 test: exit (status);
Executed by:
  • numfmt
27
1538}-
1539static void-
1540parse_format_string (char const *fmt)-
1541{-
1542 size_t i;-
1543 size_t prefix_len = 0;-
1544 size_t suffix_pos;-
1545 long int pad = 0;-
1546 char *endptr = -
1547 ((void *)0)-
1548 ;-
1549 -
1550 _Bool -
1551 zero_padding = -
1552 0-
1553 ;-
1554-
1555 for (i = 0; !(fmt[i] == '%'
fmt[i] == '%'Description
TRUEevaluated 39 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 33 times by 1 test
Evaluated by:
  • numfmt
&& fmt[i + 1] != '%'
fmt[i + 1] != '%'Description
TRUEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
); i += (fmt[i] == '%') + 1)
1-39
1556 {-
1557 if (!fmt[i]
!fmt[i]Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 32 times by 1 test
Evaluated by:
  • numfmt
)
2-32
1558 ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1559 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1560 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1561 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1562 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1563 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1564 "format %s has no %% directive"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1565 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1566 , quote (fmt)), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1567 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1568 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1569 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1570 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1571 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1572 "format %s has no %% directive"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1573 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1574 , quote (fmt)), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1575 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1576 ) ? (void) 0 : __builtin_unreachable ()))))
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1577 ;
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has no %% directive\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has no %% directive" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1578 prefix_len++;-
1579 }
executed 32 times by 1 test: end of block
Executed by:
  • numfmt
32
1580-
1581 i++;-
1582 while (-
1583 1-
1584 )-
1585 {-
1586 size_t skip = -
1587 __builtin_strspn (-
1588 fmt + i-
1589 , -
1590 " "-
1591 )-
1592 ;-
1593 i += skip;-
1594 if (fmt[i] == '\''
fmt[i] == '\''Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 45 times by 1 test
Evaluated by:
  • numfmt
)
6-45
1595 {-
1596 grouping = 1;-
1597 i++;-
1598 }
executed 6 times by 1 test: end of block
Executed by:
  • numfmt
6
1599 else if (fmt[i] == '0'
fmt[i] == '0'Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 41 times by 1 test
Evaluated by:
  • numfmt
)
4-41
1600 {-
1601 zero_padding = -
1602 1-
1603 ;-
1604 i++;-
1605 }
executed 4 times by 1 test: end of block
Executed by:
  • numfmt
4
1606 else if (! skip
! skipDescription
TRUEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
)
3-38
1607 break;
executed 38 times by 1 test: break;
Executed by:
  • numfmt
38
1608 }
executed 13 times by 1 test: end of block
Executed by:
  • numfmt
13
1609-
1610 -
1611 (*__errno_location ()) -
1612 = 0;-
1613 pad = strtol (fmt + i, &endptr, 10);-
1614 if (-
1615 (*
(*__errno_location ()) == 34Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 37 times by 1 test
Evaluated by:
  • numfmt
__errno_location ())
(*__errno_location ()) == 34Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 37 times by 1 test
Evaluated by:
  • numfmt
1-37
1616 ==
(*__errno_location ()) == 34Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 37 times by 1 test
Evaluated by:
  • numfmt
1-37
1617 34
(*__errno_location ()) == 34Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 37 times by 1 test
Evaluated by:
  • numfmt
1-37
1618 )-
1619 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1620 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1621 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1622 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1623 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1624 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1625 "invalid format %s (width overflow)"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1626 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1627 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1628 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1629 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1630 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1631 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1632 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1633 "invalid format %s (width overflow)"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1634 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1635 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1636 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1637 ) ? (void) 0 : __builtin_unreachable ()))))
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1638 ;
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s (width overflow)\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s (width overflow)" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1639-
1640 if (endptr != (fmt + i)
endptr != (fmt + i)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
&& pad != 0
pad != 0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-20
1641 {-
1642 if (debug
debugDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
&& padding_width
padding_widthDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&& !(zero_padding
zero_paddingDescription
TRUEnever evaluated
FALSEnever evaluated
&& pad > 0
pad > 0Description
TRUEnever evaluated
FALSEnever evaluated
))
0-16
1643 error (0, 0,
never executed: error (0, 0, dcgettext (((void *)0), "--format padding overriding --padding" , 5) );
0
1644 dcgettext (((void *)0),
never executed: error (0, 0, dcgettext (((void *)0), "--format padding overriding --padding" , 5) );
0
1645 "--format padding overriding --padding"
never executed: error (0, 0, dcgettext (((void *)0), "--format padding overriding --padding" , 5) );
0
1646 , 5)
never executed: error (0, 0, dcgettext (((void *)0), "--format padding overriding --padding" , 5) );
0
1647 );
never executed: error (0, 0, dcgettext (((void *)0), "--format padding overriding --padding" , 5) );
0
1648-
1649 if (pad < 0
pad < 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
)
6-11
1650 {-
1651 padding_alignment = MBS_ALIGN_LEFT;-
1652 padding_width = -pad;-
1653 }
executed 6 times by 1 test: end of block
Executed by:
  • numfmt
6
1654 else-
1655 {-
1656 if (zero_padding
zero_paddingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
)
4-7
1657 zero_padding_width = pad;
executed 4 times by 1 test: zero_padding_width = pad;
Executed by:
  • numfmt
4
1658 else-
1659 padding_width = pad;
executed 7 times by 1 test: padding_width = pad;
Executed by:
  • numfmt
7
1660 }-
1661-
1662 }-
1663 i = endptr - fmt;-
1664-
1665 if (fmt[i] == '\0'
fmt[i] == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 36 times by 1 test
Evaluated by:
  • numfmt
)
1-36
1666 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1667 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1668 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1669 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1670 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1671 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1672 "format %s ends in %%"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1673 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1674 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1675 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1676 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1677 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1678 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1679 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1680 "format %s ends in %%"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1681 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1682 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1683 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1684 ) ? (void) 0 : __builtin_unreachable ()))));
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s ends in %%\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s ends in %%" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
1685-
1686 if (fmt[i] == '.'
fmt[i] == '.'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 27 times by 1 test
Evaluated by:
  • numfmt
)
9-27
1687 {-
1688 i++;-
1689 -
1690 (*__errno_location ()) -
1691 = 0;-
1692 user_precision = strtol (fmt + i, &endptr, 10);-
1693 if (-
1694 (*
(*__errno_location ()) == 34Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
__errno_location ())
(*__errno_location ()) == 34Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
0-9
1695 ==
(*__errno_location ()) == 34Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
0-9
1696 34
(*__errno_location ()) == 34Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
0-9
1697 || user_precision < 0
user_precision < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
||
1-8
1698 (
(1844674407370...user_precisionDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
18446744073709551615UL)
(1844674407370...user_precisionDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
0-8
1699 < user_precision
(1844674407370...user_precisionDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
0-8
1700 || -
1701 ((*
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
1-7
1702 fmt[i]
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
1-7
1703 ))] & (unsigned short int) _ISblank)
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 7 times by 1 test
Evaluated by:
  • numfmt
1-7
1704 || fmt[i] == '+'
fmt[i] == '+'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
)
1-6
1705 {-
1706-
1707-
1708-
1709-
1710-
1711 ((!!sizeof (struct { _Static_assert (-
1712 1-
1713 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid precision in format %s\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1714 1-
1715 , 0, -
1716 dcgettext (((void *)0), -
1717 "invalid precision in format %s"-
1718 , 5)-
1719 , quote (fmt)), ((-
1720 0-
1721 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1722 1-
1723 , 0, -
1724 dcgettext (((void *)0), -
1725 "invalid precision in format %s"-
1726 , 5)-
1727 , quote (fmt)), ((-
1728 0-
1729 ) ? (void) 0 : __builtin_unreachable ()))))-
1730 ;-
1731 }
never executed: end of block
0
1732 i = endptr - fmt;-
1733 }
executed 6 times by 1 test: end of block
Executed by:
  • numfmt
6
1734-
1735 if (fmt[i] != 'f'
fmt[i] != 'f'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
)
2-31
1736 ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1737 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1738 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1739 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1740 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1741 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1742 "invalid format %s," " directive must be %%[0]['][-][N][.][N]f"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1743 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1744 , quote (fmt)), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1745 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1746 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1747 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1748 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1749 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1750 "invalid format %s," " directive must be %%[0]['][-][N][.][N]f"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1751 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1752 , quote (fmt)), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1753 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1754 ) ? (void) 0 : __builtin_unreachable ()))))
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
17552
1756 ;
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid format %s,\" \" directive must be %%[0]['][-][N][.][N]f\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d....][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid format %s," " directive must be %%[0]['][-][N][.][N]f" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
2
1757 i++;-
1758 suffix_pos = i;-
1759-
1760 for (; fmt[i] != '\0'
fmt[i] != '\0'Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 30 times by 1 test
Evaluated by:
  • numfmt
; i += (fmt[i] == '%') + 1)
24-30
1761 if (fmt[i] == '%'
fmt[i] == '%'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
&& fmt[i + 1] != '%'
fmt[i + 1] != '%'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-22
1762 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1763 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1764 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1765 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1766 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1767 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1768 "format %s has too many %% directives"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1769 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1770 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1771 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1772 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1773 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1774 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1775 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1776 "format %s has too many %% directives"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1777 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1778 , quote (fmt)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1779 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1780 ) ? (void) 0 : __builtin_unreachable ()))))
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1781 ;
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"format %s has too many %% directives\", 5), quote (fmt)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "format %s has too many %% directives" , 5) , quote (fmt)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
1
1782-
1783 if (prefix_len
prefix_lenDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 19 times by 1 test
Evaluated by:
  • numfmt
)
11-19
1784 format_str_prefix = xstrndup (fmt, prefix_len);
executed 11 times by 1 test: format_str_prefix = xstrndup (fmt, prefix_len);
Executed by:
  • numfmt
11
1785 if (fmt[suffix_pos] != '\0'
fmt[suffix_pos] != '\0'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 19 times by 1 test
Evaluated by:
  • numfmt
)
11-19
1786 format_str_suffix = xstrdup (fmt + suffix_pos);
executed 11 times by 1 test: format_str_suffix = xstrdup (fmt + suffix_pos);
Executed by:
  • numfmt
11
1787-
1788 do { if (dev_debug
dev_debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 28 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 2 times by 1 test: fprintf ( stderr , "format String:\n input: %s\n grouping: %s\n" " padding width: %ld\n alignment: %s\n" " prefix: %s\n suffix: %s\n", quote_n (0, fmt), (grouping) ? "yes" : "no", padding_width, (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", quote_n (1, format_str_prefix ? format_str_prefix : ""), quote_n (2, format_str_suffix ? format_str_suffix : ""));
Executed by:
  • numfmt
2-28
1789 stderr
executed 2 times by 1 test: fprintf ( stderr , "format String:\n input: %s\n grouping: %s\n" " padding width: %ld\n alignment: %s\n" " prefix: %s\n suffix: %s\n", quote_n (0, fmt), (grouping) ? "yes" : "no", padding_width, (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", quote_n (1, format_str_prefix ? format_str_prefix : ""), quote_n (2, format_str_suffix ? format_str_suffix : ""));
Executed by:
  • numfmt
2
1790 , "format String:\n input: %s\n grouping: %s\n" " padding width: %ld\n alignment: %s\n" " prefix: %s\n suffix: %s\n", quote_n (0, fmt), (grouping) ? "yes" : "no", padding_width, (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", quote_n (1, format_str_prefix ? format_str_prefix : ""), quote_n (2, format_str_suffix ? format_str_suffix : ""));
executed 2 times by 1 test: fprintf ( stderr , "format String:\n input: %s\n grouping: %s\n" " padding width: %ld\n alignment: %s\n" " prefix: %s\n suffix: %s\n", quote_n (0, fmt), (grouping) ? "yes" : "no", padding_width, (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", quote_n (1, format_str_prefix ? format_str_prefix : ""), quote_n (2, format_str_suffix ? format_str_suffix : ""));
Executed by:
  • numfmt
} while (0)
2
1791-
1792-
1793-
1794-
1795-
1796-
1797 ;-
1798}
executed 30 times by 1 test: end of block
Executed by:
  • numfmt
30
1799static enum simple_strtod_error-
1800parse_human_number (const char *str, long double *value,-
1801 size_t *precision)-
1802{-
1803 char *ptr = -
1804 ((void *)0)-
1805 ;-
1806-
1807 enum simple_strtod_error e =-
1808 simple_strtod_human (str, &ptr, value, precision, scale_from);-
1809 if (e != SSE_OK
e != SSE_OKDescription
TRUEevaluated 99 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 436 times by 1 test
Evaluated by:
  • numfmt
&& e != SSE_OK_PRECISION_LOSS
e != SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 82 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
17-436
1810 {-
1811 simple_strtod_fatal (e, str);-
1812 return
executed 15 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 15 times by 1 test: return e;
Executed by:
  • numfmt
15
1813 }-
1814-
1815 if (ptr
ptrDescription
TRUEevaluated 453 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
&& *
*ptr != '\0'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 450 times by 1 test
Evaluated by:
  • numfmt
ptr != '\0'
*ptr != '\0'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 450 times by 1 test
Evaluated by:
  • numfmt
)
0-453
1816 {-
1817 if (inval_style != inval_ignore
inval_style != inval_ignoreDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-3
1818 error (conv_exit_code, 0,
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1819 dcgettext (((void *)0),
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1820 "invalid suffix in input %s: %s"
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1821 , 5)
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1822 ,
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1823 quote_n (0, str), quote_n (1, ptr));
executed 3 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "invalid suffix in input %s: %s" , 5) , quote_n (0, str), quote_n (1, ptr));
Executed by:
  • numfmt
3
1824 e = SSE_INVALID_SUFFIX;-
1825 }
executed 1 time by 1 test: end of block
Executed by:
  • numfmt
1
1826 return
executed 451 times by 1 test: return e;
Executed by:
  • numfmt
e;
executed 451 times by 1 test: return e;
Executed by:
  • numfmt
451
1827}-
1828-
1829-
1830-
1831-
1832static int-
1833prepare_padded_number (const long double val, size_t precision)-
1834{-
1835-
1836 char buf[128];-
1837-
1838 size_t precision_used = user_precision == -1
user_precision == -1Description
TRUEevaluated 444 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
? precision : user_precision;
6-444
1839-
1840-
1841 unsigned int x;-
1842 expld (val, 10, &x);-
1843-
1844 if (scale_to == scale_none
scale_to == scale_noneDescription
TRUEevaluated 167 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 283 times by 1 test
Evaluated by:
  • numfmt
167-283
1845 && x + precision_used > MAX_UNSCALED_DIGITS
x + precision_...NSCALED_DIGITSDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 155 times by 1 test
Evaluated by:
  • numfmt
)
12-155
1846 {-
1847 if (inval_style != inval_ignore
inval_style != inval_ignoreDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-12
1848 {-
1849 if (precision_used
precision_usedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
)
1-11
1850 error (conv_exit_code, 0,
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1851
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1852 dcgettext (((void *)0),
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1853 "value/precision too large to be printed: '%Lg/%"
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1854 "l" "u"
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1855 "'" " (consider using --to)"
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1856 , 5)
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1857
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1858 , val, (uintmax_t)precision_used);
executed 1 time by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value/precision too large to be printed: '%Lg/%" "l" "u" "'" " (consider using --to)" , 5) , val, (uintmax_t)precision_used);
Executed by:
  • numfmt
1
1859 else-
1860 error (conv_exit_code, 0,
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1861
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1862 dcgettext (((void *)0),
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1863 "value too large to be printed: '%Lg'" " (consider using --to)"
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1864 , 5)
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1865
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1866 , val);
executed 11 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (consider using --to)" , 5) , val);
Executed by:
  • numfmt
11
1867 }-
1868 return
executed 1 time by 1 test: return 0;
Executed by:
  • numfmt
0;
executed 1 time by 1 test: return 0;
Executed by:
  • numfmt
1
1869 }-
1870-
1871 if (x > MAX_ACCEPTABLE_DIGITS - 1
x > MAX_ACCEPTABLE_DIGITS - 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 436 times by 1 test
Evaluated by:
  • numfmt
)
2-436
1872 {-
1873 if (inval_style != inval_ignore
inval_style != inval_ignoreDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-2
1874 error (conv_exit_code, 0,
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1875 dcgettext (((void *)0),
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1876 "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)"
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1877 , 5)
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1878
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1879 , val);
executed 2 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), "value too large to be printed: '%Lg'" " (cannot handle values > 999Y)" , 5) , val);
Executed by:
  • numfmt
2
1880 return
never executed: return 0;
0;
never executed: return 0;
0
1881 }-
1882-
1883 double_to_human (val, precision_used, buf, sizeof (buf),-
1884 scale_to, grouping, round_style);-
1885 if (suffix
suffixDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 414 times by 1 test
Evaluated by:
  • numfmt
)
22-414
1886 strncat (buf, suffix, sizeof (buf) - strlen (buf) -1);
executed 22 times by 1 test: strncat (buf, suffix, sizeof (buf) - strlen (buf) -1);
Executed by:
  • numfmt
22
1887-
1888 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 , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf));
Executed by:
  • numfmt
11-425
1889 stderr
executed 11 times by 1 test: fprintf ( stderr , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf));
Executed by:
  • numfmt
11
1890 , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf));
executed 11 times by 1 test: fprintf ( stderr , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf));
Executed by:
  • numfmt
} while (0)
11
1891 ;-
1892-
1893 if (padding_width
padding_widthDescription
TRUEevaluated 105 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 331 times by 1 test
Evaluated by:
  • numfmt
&& strlen (buf) < padding_width
strlen (buf) < padding_widthDescription
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 74 times by 1 test
Evaluated by:
  • numfmt
)
31-331
1894 {-
1895 size_t w = padding_width;-
1896 mbsalign (buf, padding_buffer, padding_buffer_size, &w,-
1897 padding_alignment, MBA_UNIBYTE_ONLY);-
1898-
1899 do { if (dev_debug
dev_debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 29 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 2 times by 1 test: fprintf ( stderr , " After padding: %s\n", quote (padding_buffer));
Executed by:
  • numfmt
2-29
1900 stderr
executed 2 times by 1 test: fprintf ( stderr , " After padding: %s\n", quote (padding_buffer));
Executed by:
  • numfmt
2
1901 , " After padding: %s\n", quote (padding_buffer));
executed 2 times by 1 test: fprintf ( stderr , " After padding: %s\n", quote (padding_buffer));
Executed by:
  • numfmt
} while (0);
2
1902 }
executed 31 times by 1 test: end of block
Executed by:
  • numfmt
31
1903 else-
1904 {-
1905 setup_padding_buffer (strlen (buf) + 1);-
1906 strcpy (padding_buffer, buf);-
1907 }
executed 405 times by 1 test: end of block
Executed by:
  • numfmt
405
1908-
1909 return
executed 436 times by 1 test: return 1;
Executed by:
  • numfmt
1;
executed 436 times by 1 test: return 1;
Executed by:
  • numfmt
436
1910}-
1911-
1912static void-
1913print_padded_number (void)-
1914{-
1915 if (format_str_prefix
format_str_prefixDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 425 times by 1 test
Evaluated by:
  • numfmt
)
11-425
1916 fputs_unlocked (format_str_prefix,
executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout );
Executed by:
  • numfmt
11
1917 stdout
executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout );
Executed by:
  • numfmt
11
1918 );
executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout );
Executed by:
  • numfmt
11
1919-
1920 fputs_unlocked (padding_buffer,-
1921 stdout-
1922 );-
1923-
1924 if (format_str_suffix
format_str_suffixDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 425 times by 1 test
Evaluated by:
  • numfmt
)
11-425
1925 fputs_unlocked (format_str_suffix,
executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout );
Executed by:
  • numfmt
11
1926 stdout
executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout );
Executed by:
  • numfmt
11
1927 );
executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout );
Executed by:
  • numfmt
11
1928}
executed 436 times by 1 test: end of block
Executed by:
  • numfmt
436
1929-
1930-
1931-
1932static int-
1933process_suffixed_number (char *text, long double *result,-
1934 size_t *precision, long int field)-
1935{-
1936 if (suffix
suffixDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 510 times by 1 test
Evaluated by:
  • numfmt
&& strlen (text) > strlen (suffix)
strlen (text) ...trlen (suffix)Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
)
4-510
1937 {-
1938 char *possible_suffix = text + strlen (text) - strlen (suffix);-
1939-
1940 if ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1941 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1942 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1943 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1944 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1945 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1946 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1947 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1948 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1949 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1950 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1951 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1952 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1953 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1954 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1955 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1956 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1957 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1958 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1959 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1960 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1961 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1962 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1963 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1964 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1965 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1966 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1967 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1968 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1969 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1970 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1971 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1972 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1973 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1974 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1975 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1976 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1977 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1978 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1979 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1980 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1981 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1982 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1983 ))[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_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
1984 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1985 ))[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_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
1986 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1987 ))[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 *) ( suffix ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
1988 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( suffix ))[3] - __s2[3]);
0-12
1989 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( suffix ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
1990 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1991 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1992 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1993 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1994 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1995 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1996 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1997 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1998 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
1999 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2000 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2001 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2002 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2003 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2004 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2005 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2006 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2007 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2008 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2009 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2010 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2011 ))[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_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
2012 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2013 ))[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_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
2014 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2015 ))[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 *) ( possible_suffix ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
2016 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( possible_suffix ))[3] - __s2[3]);
0-12
2017 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
never executed: __result = (((const unsigned char *) (const char *) ( possible_suffix ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
0-12
2018 suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2019 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2020 possible_suffix
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2021 )))); })
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
9-12
2022 == 0)
( __extension_...)))); }) == 0)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
)
9-12
2023 {-
2024-
2025 *possible_suffix = '\0';-
2026 do { if (dev_debug
dev_debugDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 1 time by 1 test: fprintf ( stderr , "trimming suffix %s\n", quote (suffix));
Executed by:
  • numfmt
1-8
2027 stderr
executed 1 time by 1 test: fprintf ( stderr , "trimming suffix %s\n", quote (suffix));
Executed by:
  • numfmt
1
2028 , "trimming suffix %s\n", quote (suffix));
executed 1 time by 1 test: fprintf ( stderr , "trimming suffix %s\n", quote (suffix));
Executed by:
  • numfmt
} while (0);
1
2029 }
executed 9 times by 1 test: end of block
Executed by:
  • numfmt
9
2030 else-
2031 do { if (dev_debug
dev_debugDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 11 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 1 time by 1 test: fprintf ( stderr , "no valid suffix found\n");
Executed by:
  • numfmt
1-11
2032 stderr
executed 1 time by 1 test: fprintf ( stderr , "no valid suffix found\n");
Executed by:
  • numfmt
1
2033 , "no valid suffix found\n");
executed 1 time by 1 test: fprintf ( stderr , "no valid suffix found\n");
Executed by:
  • numfmt
}
executed 12 times by 1 test: end of block
Executed by:
  • numfmt
while (0);
1-12
2034 }-
2035-
2036-
2037 char *p = text;-
2038 while (*
*pDescription
TRUEevaluated 559 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
p
*pDescription
TRUEevaluated 559 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&&
1-559
2039 ((*
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 534 times by 1 test
Evaluated by:
  • numfmt
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 534 times by 1 test
Evaluated by:
  • numfmt
25-534
2040 to_uchar (*p)
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 534 times by 1 test
Evaluated by:
  • numfmt
25-534
2041 ))] & (unsigned short int) _ISblank)
((*__ctype_b_l...int) _ISblank)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 534 times by 1 test
Evaluated by:
  • numfmt
25-534
2042 )-
2043 ++
executed 25 times by 1 test: ++p;
Executed by:
  • numfmt
p;
executed 25 times by 1 test: ++p;
Executed by:
  • numfmt
25
2044 const unsigned int skip_count = text - p;-
2045-
2046-
2047 if (auto_padding
auto_paddingDescription
TRUEevaluated 497 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 38 times by 1 test
Evaluated by:
  • numfmt
)
38-497
2048 {-
2049 if (skip_count > 0
skip_count > 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 488 times by 1 test
Evaluated by:
  • numfmt
|| field > 1
field > 1Description
TRUEevaluated 74 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 414 times by 1 test
Evaluated by:
  • numfmt
)
9-488
2050 {-
2051 padding_width = strlen (text);-
2052 setup_padding_buffer (padding_width);-
2053 }
executed 83 times by 1 test: end of block
Executed by:
  • numfmt
83
2054 else-
2055 {-
2056 padding_width = 0;-
2057 }
executed 414 times by 1 test: end of block
Executed by:
  • numfmt
414
2058 do { if (dev_debug
dev_debugDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 488 times by 1 test
Evaluated by:
  • numfmt
) fprintf (
executed 9 times by 1 test: fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width);
Executed by:
  • numfmt
9-488
2059 stderr
executed 9 times by 1 test: fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width);
Executed by:
  • numfmt
9
2060 , "setting Auto-Padding to %ld characters\n", padding_width);
executed 9 times by 1 test: fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width);
Executed by:
  • numfmt
} while (0);
9
2061 }
executed 497 times by 1 test: end of block
Executed by:
  • numfmt
497
2062-
2063 long double val = 0;-
2064 enum simple_strtod_error e = parse_human_number (p, &val, precision);-
2065 if (e == SSE_OK_PRECISION_LOSS
e == SSE_OK_PRECISION_LOSSDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 449 times by 1 test
Evaluated by:
  • numfmt
&& debug
debugDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
)
2-449
2066 error (0, 0,
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2067 dcgettext (((void *)0),
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2068 "large input value %s: possible precision loss"
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2069 , 5)
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2070 ,
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2071 quote (p));
executed 2 times by 1 test: error (0, 0, dcgettext (((void *)0), "large input value %s: possible precision loss" , 5) , quote (p));
Executed by:
  • numfmt
2
2072-
2073 if (from_unit_size != 1
from_unit_size != 1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 458 times by 1 test
Evaluated by:
  • numfmt
|| to_unit_size != 1
to_unit_size != 1Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 405 times by 1 test
Evaluated by:
  • numfmt
)
8-458
2074 val = (val * from_unit_size) / to_unit_size;
executed 61 times by 1 test: val = (val * from_unit_size) / to_unit_size;
Executed by:
  • numfmt
61
2075-
2076 *result = val;-
2077-
2078 return
executed 466 times by 1 test: return (e == SSE_OK || e == SSE_OK_PRECISION_LOSS);
Executed by:
  • numfmt
(e == SSE_OK || e == SSE_OK_PRECISION_LOSS);
executed 466 times by 1 test: return (e == SSE_OK || e == SSE_OK_PRECISION_LOSS);
Executed by:
  • numfmt
466
2079}-
2080-
2081-
2082-
2083static char*-
2084next_field (char **line)-
2085{-
2086 char *field_start = *line;-
2087 char *field_end = field_start;-
2088-
2089 if (delimiter != DELIMITER_DEFAULT
delimiter != DELIMITER_DEFAULTDescription
TRUEevaluated 29 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 597 times by 1 test
Evaluated by:
  • numfmt
)
29-597
2090 {-
2091 if (*
*field_start != delimiterDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
field_start != delimiter
*field_start != delimiterDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-28
2092 {-
2093 while (*
*field_endDescription
TRUEevaluated 102 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
field_end
*field_endDescription
TRUEevaluated 102 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
&& *
*field_end != delimiterDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
field_end != delimiter
*field_end != delimiterDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
)
14-102
2094 ++
executed 88 times by 1 test: ++field_end;
Executed by:
  • numfmt
field_end;
executed 88 times by 1 test: ++field_end;
Executed by:
  • numfmt
88
2095 }
executed 28 times by 1 test: end of block
Executed by:
  • numfmt
28
2096-
2097 }
executed 29 times by 1 test: end of block
Executed by:
  • numfmt
29
2098 else-
2099 {-
2100-
2101 while (*
*field_endDescription
TRUEevaluated 620 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
field_end
*field_endDescription
TRUEevaluated 620 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
&& field_sep (*field_end)
field_sep (*field_end)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 595 times by 1 test
Evaluated by:
  • numfmt
)
2-620
2102 ++
executed 25 times by 1 test: ++field_end;
Executed by:
  • numfmt
field_end;
executed 25 times by 1 test: ++field_end;
Executed by:
  • numfmt
25
2103-
2104 while (*
*field_endDescription
TRUEevaluated 3134 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 468 times by 1 test
Evaluated by:
  • numfmt
field_end
*field_endDescription
TRUEevaluated 3134 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 468 times by 1 test
Evaluated by:
  • numfmt
&& ! field_sep (*field_end)
! field_sep (*field_end)Description
TRUEevaluated 3005 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 129 times by 1 test
Evaluated by:
  • numfmt
)
129-3134
2105 ++
executed 3005 times by 1 test: ++field_end;
Executed by:
  • numfmt
field_end;
executed 3005 times by 1 test: ++field_end;
Executed by:
  • numfmt
3005
2106 }
executed 597 times by 1 test: end of block
Executed by:
  • numfmt
597
2107-
2108 *line = field_end;-
2109 return
executed 626 times by 1 test: return field_start;
Executed by:
  • numfmt
field_start;
executed 626 times by 1 test: return field_start;
Executed by:
  • numfmt
626
2110}-
2111-
2112static -
2113 _Bool __attribute__ ((__pure__))-
2114-
2115include_field (uintmax_t field)-
2116{-
2117 struct field_range_pair *p = frp;-
2118 if (!p
!pDescription
TRUEevaluated 446 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 180 times by 1 test
Evaluated by:
  • numfmt
)
180-446
2119 return
executed 446 times by 1 test: return field == 1;
Executed by:
  • numfmt
field == 1;
executed 446 times by 1 test: return field == 1;
Executed by:
  • numfmt
446
2120-
2121 while (p->lo !=
p->lo != (1844...73709551615UL)Description
TRUEevaluated 213 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 82 times by 1 test
Evaluated by:
  • numfmt
82-213
2122 (18446744073709551615UL)
p->lo != (1844...73709551615UL)Description
TRUEevaluated 213 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 82 times by 1 test
Evaluated by:
  • numfmt
82-213
2123 )-
2124 {-
2125 if (p->lo <= field
p->lo <= fieldDescription
TRUEevaluated 161 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 52 times by 1 test
Evaluated by:
  • numfmt
&& p->hi >= field
p->hi >= fieldDescription
TRUEevaluated 98 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 63 times by 1 test
Evaluated by:
  • numfmt
)
52-161
2126 return
executed 98 times by 1 test: return 1 ;
Executed by:
  • numfmt
executed 98 times by 1 test: return 1 ;
Executed by:
  • numfmt
98
2127 1
executed 98 times by 1 test: return 1 ;
Executed by:
  • numfmt
98
2128 ;
executed 98 times by 1 test: return 1 ;
Executed by:
  • numfmt
98
2129 ++p;-
2130 }
executed 115 times by 1 test: end of block
Executed by:
  • numfmt
115
2131 return
executed 82 times by 1 test: return 0 ;
Executed by:
  • numfmt
executed 82 times by 1 test: return 0 ;
Executed by:
  • numfmt
82
2132 0
executed 82 times by 1 test: return 0 ;
Executed by:
  • numfmt
82
2133 ;
executed 82 times by 1 test: return 0 ;
Executed by:
  • numfmt
82
2134}-
2135-
2136-
2137-
2138static -
2139 _Bool-
2140-
2141process_field (char *text, uintmax_t field)-
2142{-
2143 long double val = 0;-
2144 size_t precision = 0;-
2145 -
2146 _Bool -
2147 valid_number = -
2148 1-
2149 ;-
2150-
2151 if (include_field (field)
include_field (field)Description
TRUEevaluated 535 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 91 times by 1 test
Evaluated by:
  • numfmt
)
91-535
2152 {-
2153 valid_number =-
2154 process_suffixed_number (text, &val, &precision, field);-
2155-
2156 if (valid_number
valid_numberDescription
TRUEevaluated 450 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
)
16-450
2157 valid_number = prepare_padded_number (val, precision);
executed 450 times by 1 test: valid_number = prepare_padded_number (val, precision);
Executed by:
  • numfmt
450
2158-
2159 if (valid_number
valid_numberDescription
TRUEevaluated 436 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
17-436
2160 print_padded_number ();
executed 436 times by 1 test: print_padded_number ();
Executed by:
  • numfmt
436
2161 else-
2162 fputs_unlocked (text,
executed 17 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
17
2163 stdout
executed 17 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
17
2164 );
executed 17 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
17
2165 }-
2166 else-
2167 fputs_unlocked (text,
executed 91 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
91
2168 stdout
executed 91 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
91
2169 );
executed 91 times by 1 test: fputs_unlocked (text, stdout );
Executed by:
  • numfmt
91
2170-
2171 return
executed 544 times by 1 test: return valid_number;
Executed by:
  • numfmt
valid_number;
executed 544 times by 1 test: return valid_number;
Executed by:
  • numfmt
544
2172}-
2173-
2174-
2175-
2176static int-
2177process_line (char *line, -
2178 _Bool -
2179 newline)-
2180{-
2181 char *next;-
2182 uintmax_t field = 0;-
2183 -
2184 _Bool -
2185 valid_number = -
2186 1-
2187 ;-
2188-
2189 while (-
2190 1-
2191 ) {-
2192 ++field;-
2193 next = next_field (&line);-
2194-
2195 if (*
*line != '\0'Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 482 times by 1 test
Evaluated by:
  • numfmt
line != '\0'
*line != '\0'Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 482 times by 1 test
Evaluated by:
  • numfmt
)
144-482
2196 {-
2197-
2198 *line = '\0';-
2199-
2200 if (! process_field (next, field)
! process_field (next, field)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 141 times by 1 test
Evaluated by:
  • numfmt
)
2-141
2201 valid_number =
executed 2 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
2
2202 0
executed 2 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
2
2203 ;
executed 2 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
2
2204-
2205 fputc_unlocked ((delimiter == DELIMITER_DEFAULT) ? ' ' : delimiter,-
2206 stdout-
2207 )-
2208 ;-
2209 ++line;-
2210 }
executed 143 times by 1 test: end of block
Executed by:
  • numfmt
143
2211 else-
2212 {-
2213-
2214 if (! process_field (next, field)
! process_field (next, field)Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 386 times by 1 test
Evaluated by:
  • numfmt
)
15-386
2215 valid_number =
executed 15 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
15
2216 0
executed 15 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
15
2217 ;
executed 15 times by 1 test: valid_number = 0 ;
Executed by:
  • numfmt
15
2218-
2219 break;
executed 401 times by 1 test: break;
Executed by:
  • numfmt
401
2220 }-
2221 }-
2222-
2223 if (newline
newlineDescription
TRUEevaluated 400 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-400
2224 putchar_unlocked (line_delim);
executed 400 times by 1 test: putchar_unlocked (line_delim);
Executed by:
  • numfmt
400
2225-
2226 return
executed 401 times by 1 test: return valid_number;
Executed by:
  • numfmt
valid_number;
executed 401 times by 1 test: return valid_number;
Executed by:
  • numfmt
401
2227}-
2228-
2229int-
2230main (int argc, char **argv)-
2231{-
2232 int valid_numbers = 1;-
2233 -
2234 _Bool -
2235 locale_ok;-
2236-
2237 ;-
2238 set_program_name (argv[0]);-
2239 locale_ok = !!setlocale (-
2240 6-
2241 , "");-
2242 bindtextdomain ("coreutils", "/usr/local/share/locale");-
2243 textdomain ("coreutils");-
2244-
2245-
2246-
2247-
2248-
2249-
2250 decimal_point = -
2251 rpl_nl_langinfo -
2252 (-
2253 RADIXCHAR-
2254 );-
2255 if (decimal_point ==
decimal_point == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 501 times by 1 test
Evaluated by:
  • numfmt
0-501
2256 ((void *)0)
decimal_point == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 501 times by 1 test
Evaluated by:
  • numfmt
0-501
2257 || strlen (decimal_point) == 0
strlen (decimal_point) == 0Description
TRUEnever evaluated
FALSEevaluated 501 times by 1 test
Evaluated by:
  • numfmt
)
0-501
2258 decimal_point = ".";
never executed: decimal_point = ".";
0
2259 decimal_point_length = strlen (decimal_point);-
2260-
2261 atexit (close_stdout);-
2262-
2263 while (-
2264 1-
2265 )-
2266 {-
2267 int c = getopt_long (argc, argv, "d:z", longopts, -
2268 ((void *)0)-
2269 );-
2270-
2271 if (c == -1
c == -1Description
TRUEevaluated 447 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 782 times by 1 test
Evaluated by:
  • numfmt
)
447-782
2272 break;
executed 447 times by 1 test: break;
Executed by:
  • numfmt
447
2273-
2274 switch (c)-
2275 {-
2276 case
executed 183 times by 1 test: case FROM_OPTION:
Executed by:
  • numfmt
FROM_OPTION:
executed 183 times by 1 test: case FROM_OPTION:
Executed by:
  • numfmt
183
2277 scale_from = ((scale_from_types) [__xargmatch_internal ("--from", optarg, scale_from_args, (char const *) (scale_from_types), sizeof *(scale_from_types), argmatch_die)])-
2278 ;-
2279 break;
executed 182 times by 1 test: break;
Executed by:
  • numfmt
182
2280-
2281 case
executed 15 times by 1 test: case FROM_UNIT_OPTION:
Executed by:
  • numfmt
FROM_UNIT_OPTION:
executed 15 times by 1 test: case FROM_UNIT_OPTION:
Executed by:
  • numfmt
15
2282 from_unit_size = unit_to_umax (optarg);-
2283 break;
executed 8 times by 1 test: break;
Executed by:
  • numfmt
8
2284-
2285 case
executed 264 times by 1 test: case TO_OPTION:
Executed by:
  • numfmt
TO_OPTION:
executed 264 times by 1 test: case TO_OPTION:
Executed by:
  • numfmt
264
2286 scale_to =-
2287 ((scale_to_types) [__xargmatch_internal ("--to", optarg, scale_to_args, (char const *) (scale_to_types), sizeof *(scale_to_types), argmatch_die)]);-
2288 break;
executed 263 times by 1 test: break;
Executed by:
  • numfmt
263
2289-
2290 case
executed 30 times by 1 test: case TO_UNIT_OPTION:
Executed by:
  • numfmt
TO_UNIT_OPTION:
executed 30 times by 1 test: case TO_UNIT_OPTION:
Executed by:
  • numfmt
30
2291 to_unit_size = unit_to_umax (optarg);-
2292 break;
executed 28 times by 1 test: break;
Executed by:
  • numfmt
28
2293-
2294 case
executed 48 times by 1 test: case ROUND_OPTION:
Executed by:
  • numfmt
ROUND_OPTION:
executed 48 times by 1 test: case ROUND_OPTION:
Executed by:
  • numfmt
48
2295 round_style = ((round_types) [__xargmatch_internal ("--round", optarg, round_args, (char const *) (round_types), sizeof *(round_types), argmatch_die)]);-
2296 break;
executed 47 times by 1 test: break;
Executed by:
  • numfmt
47
2297-
2298 case
executed 6 times by 1 test: case GROUPING_OPTION:
Executed by:
  • numfmt
GROUPING_OPTION:
executed 6 times by 1 test: case GROUPING_OPTION:
Executed by:
  • numfmt
6
2299 grouping = 1;-
2300 break;
executed 6 times by 1 test: break;
Executed by:
  • numfmt
6
2301-
2302 case
executed 17 times by 1 test: case PADDING_OPTION:
Executed by:
  • numfmt
PADDING_OPTION:
executed 17 times by 1 test: case PADDING_OPTION:
Executed by:
  • numfmt
17
2303 if (xstrtol (optarg,
xstrtol (optar... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
2-15
2304 ((void *)0)
xstrtol (optar... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
2-15
2305 , 10, &padding_width, "") != LONGINT_OK
xstrtol (optar... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
2-15
2306 || padding_width == 0
padding_width == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
)
1-14
2307 ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2308 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2309 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2310 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2311 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2312 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2313 "invalid padding value %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2314 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2315 , quote (optarg)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2316 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2317 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2318 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2319 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2320 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2321 "invalid padding value %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2322 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2323 , quote (optarg)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2324 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2325 ) ? (void) 0 : __builtin_unreachable ()))))
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2326 ;
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid padding value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid padding value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2327 if (padding_width < 0
padding_width < 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
)
4-10
2328 {-
2329 padding_alignment = MBS_ALIGN_LEFT;-
2330 padding_width = -padding_width;-
2331 }
executed 4 times by 1 test: end of block
Executed by:
  • numfmt
4
2332-
2333-
2334 break;
executed 14 times by 1 test: break;
Executed by:
  • numfmt
14
2335-
2336 case
executed 57 times by 1 test: case FIELD_OPTION:
Executed by:
  • numfmt
FIELD_OPTION:
executed 57 times by 1 test: case FIELD_OPTION:
Executed by:
  • numfmt
57
2337 if (n_frp
n_frpDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 52 times by 1 test
Evaluated by:
  • numfmt
)
5-52
2338 ((
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2339 1
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2340 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2341 1
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2342 , 0,
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2343 dcgettext (((void *)0),
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2344 "multiple field specifications"
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2345 , 5)
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2346 ), ((
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2347 0
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2348 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2349 1
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2350 , 0,
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2351 dcgettext (((void *)0),
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2352 "multiple field specifications"
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2353 , 5)
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2354 ), ((
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2355 0
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2356 ) ? (void) 0 : __builtin_unreachable ()))));
executed 5 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"multiple field specifications\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "multiple field specifications" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
5
2357 set_fields (optarg, SETFLD_ALLOW_DASH);-
2358 break;
executed 43 times by 1 test: break;
Executed by:
  • numfmt
43
2359-
2360 case
executed 17 times by 1 test: case 'd':
Executed by:
  • numfmt
'd':
executed 17 times by 1 test: case 'd':
Executed by:
  • numfmt
17
2361-
2362 if (optarg[0] != '\0'
optarg[0] != '\0'Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
&& optarg[1] != '\0'
optarg[1] != '\0'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • numfmt
)
2-15
2363 ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2364 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2365 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2366 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2367 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2368 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2369 "the delimiter must be a single character"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2370 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2371 ), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2372 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2373 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2374 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2375 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2376 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2377 "the delimiter must be a single character"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2378 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2379 ), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2380 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2381 ) ? (void) 0 : __builtin_unreachable ()))))
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2382 ;
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"the delimiter must be a single character\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "the delimiter must be a single character" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2383 delimiter = optarg[0];-
2384 break;
executed 14 times by 1 test: break;
Executed by:
  • numfmt
14
2385-
2386 case
executed 6 times by 1 test: case 'z':
Executed by:
  • numfmt
'z':
executed 6 times by 1 test: case 'z':
Executed by:
  • numfmt
6
2387 line_delim = '\0';-
2388 break;
executed 6 times by 1 test: break;
Executed by:
  • numfmt
6
2389-
2390 case
executed 26 times by 1 test: case SUFFIX_OPTION:
Executed by:
  • numfmt
SUFFIX_OPTION:
executed 26 times by 1 test: case SUFFIX_OPTION:
Executed by:
  • numfmt
26
2391 suffix = optarg;-
2392 break;
executed 26 times by 1 test: break;
Executed by:
  • numfmt
26
2393-
2394 case
executed 12 times by 1 test: case DEBUG_OPTION:
Executed by:
  • numfmt
DEBUG_OPTION:
executed 12 times by 1 test: case DEBUG_OPTION:
Executed by:
  • numfmt
12
2395 debug = -
2396 1-
2397 ;-
2398 break;
executed 12 times by 1 test: break;
Executed by:
  • numfmt
12
2399-
2400 case
executed 11 times by 1 test: case DEV_DEBUG_OPTION:
Executed by:
  • numfmt
DEV_DEBUG_OPTION:
executed 11 times by 1 test: case DEV_DEBUG_OPTION:
Executed by:
  • numfmt
11
2401 dev_debug = -
2402 1-
2403 ;-
2404 debug = -
2405 1-
2406 ;-
2407 break;
executed 11 times by 1 test: break;
Executed by:
  • numfmt
11
2408-
2409 case
executed 10 times by 1 test: case HEADER_OPTION:
Executed by:
  • numfmt
HEADER_OPTION:
executed 10 times by 1 test: case HEADER_OPTION:
Executed by:
  • numfmt
10
2410 if (optarg
optargDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
)
4-6
2411 {-
2412 if (xstrtoumax (optarg,
xstrtoumax (op... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
2-4
2413 ((void *)0)
xstrtoumax (op... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
2-4
2414 , 10, &header, "") != LONGINT_OK
xstrtoumax (op... != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
2-4
2415 || header == 0
header == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
)
1-3
2416 ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2417 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2418 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2419 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2420 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2421 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2422 "invalid header value %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2423 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2424 , quote (optarg)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2425 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2426 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2427 1
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2428 , 0,
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2429 dcgettext (((void *)0),
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2430 "invalid header value %s"
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2431 , 5)
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2432 , quote (optarg)), ((
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2433 0
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2434 ) ? (void) 0 : __builtin_unreachable ()))))
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2435 ;
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid header value %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "invalid header value %s" , 5) , quote (optarg)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • numfmt
3
2436 }
executed 3 times by 1 test: end of block
Executed by:
  • numfmt
3
2437 else-
2438 {-
2439 header = 1;-
2440 }
executed 4 times by 1 test: end of block
Executed by:
  • numfmt
4
2441 break;
executed 7 times by 1 test: break;
Executed by:
  • numfmt
7
2442-
2443 case
executed 42 times by 1 test: case FORMAT_OPTION:
Executed by:
  • numfmt
FORMAT_OPTION:
executed 42 times by 1 test: case FORMAT_OPTION:
Executed by:
  • numfmt
42
2444 format_str = optarg;-
2445 break;
executed 42 times by 1 test: break;
Executed by:
  • numfmt
42
2446-
2447 case
executed 20 times by 1 test: case INVALID_OPTION:
Executed by:
  • numfmt
INVALID_OPTION:
executed 20 times by 1 test: case INVALID_OPTION:
Executed by:
  • numfmt
20
2448 inval_style = ((inval_types) [__xargmatch_internal ("--invalid", optarg, inval_args, (char const *) (inval_types), sizeof *(inval_types), argmatch_die)])-
2449 ;-
2450 break;
executed 19 times by 1 test: break;
Executed by:
  • numfmt
19
2451-
2452 case
executed 10 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • numfmt
GETOPT_HELP_CHAR:
executed 10 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • numfmt
usage (
10
2453 0-
2454 ); break;
never executed: break;
;
0
2455 case
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • numfmt
GETOPT_VERSION_CHAR:
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • numfmt
version_etc (
4
2456 stdout-
2457 , "numfmt", "GNU coreutils", Version, ("Assaf Gordon"), (char *) -
2458 ((void *)0)-
2459 ); exit (
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • numfmt
4
2460 0
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • numfmt
4
2461 );
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • numfmt
break;
never executed: break;
;
0-4
2462-
2463 default
executed 4 times by 1 test: default:
Executed by:
  • numfmt
:
executed 4 times by 1 test: default:
Executed by:
  • numfmt
4
2464 usage (-
2465 1-
2466 );-
2467 }
never executed: end of block
0
2468 }-
2469-
2470 if (format_str !=
format_str != ((void *)0)Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 406 times by 1 test
Evaluated by:
  • numfmt
41-406
2471 ((void *)0)
format_str != ((void *)0)Description
TRUEevaluated 41 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 406 times by 1 test
Evaluated by:
  • numfmt
41-406
2472 && grouping
groupingDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 40 times by 1 test
Evaluated by:
  • numfmt
)
1-40
2473 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2474 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2475 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2476 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2477 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2478 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2479 "--grouping cannot be combined with --format"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2480 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2481 ), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2482 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2483 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2484 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2485 , 0,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2486 dcgettext (((void *)0),
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2487 "--grouping cannot be combined with --format"
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2488 , 5)
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2489 ), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2490 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2491 ) ? (void) 0 : __builtin_unreachable ()))));
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"--grouping cannot be combined with --format\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "--grouping cannot be combined with --format" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
1
2492-
2493 if (debug
debugDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 424 times by 1 test
Evaluated by:
  • numfmt
&& ! locale_ok
! locale_okDescription
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
)
0-424
2494 error (0, 0,
never executed: error (0, 0, dcgettext (((void *)0), "failed to set locale" , 5) );
0
2495 dcgettext (((void *)0),
never executed: error (0, 0, dcgettext (((void *)0), "failed to set locale" , 5) );
0
2496 "failed to set locale"
never executed: error (0, 0, dcgettext (((void *)0), "failed to set locale" , 5) );
0
2497 , 5)
never executed: error (0, 0, dcgettext (((void *)0), "failed to set locale" , 5) );
0
2498 );
never executed: error (0, 0, dcgettext (((void *)0), "failed to set locale" , 5) );
0
2499-
2500-
2501 if (debug
debugDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 424 times by 1 test
Evaluated by:
  • numfmt
&& scale_from == scale_none
scale_from == scale_noneDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
&& scale_to == scale_none
scale_to == scale_noneDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
4-424
2502 && !grouping
!groupingDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&& (
(padding_width == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
padding_width == 0)
(padding_width == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&& (
(format_str == ((void *)0) )Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
format_str ==
(format_str == ((void *)0) )Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
1-9
2503 ((void *)0)
(format_str == ((void *)0) )Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
3-5
2504 )
(format_str == ((void *)0) )Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 3 times by 1 test
Evaluated by:
  • numfmt
)
3-5
2505 error (0, 0,
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) );
Executed by:
  • numfmt
5
2506 dcgettext (((void *)0),
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) );
Executed by:
  • numfmt
5
2507 "no conversion option specified"
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) );
Executed by:
  • numfmt
5
2508 , 5)
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) );
Executed by:
  • numfmt
5
2509 );
executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) );
Executed by:
  • numfmt
5
2510-
2511 if (format_str
format_strDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 406 times by 1 test
Evaluated by:
  • numfmt
)
40-406
2512 parse_format_string (format_str);
executed 40 times by 1 test: parse_format_string (format_str);
Executed by:
  • numfmt
40
2513-
2514 if (grouping
groupingDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 426 times by 1 test
Evaluated by:
  • numfmt
)
10-426
2515 {-
2516 if (scale_to != scale_none
scale_to != scale_noneDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
)
2-8
2517 ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
!!sizeof (struct { _Static_assert (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2518 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2519 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2520 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2521 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2522 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2523 "grouping cannot be combined with --to"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2524 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2525 ), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2526 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2527 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2528 1
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2529 , 0,
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2530 dcgettext (((void *)0),
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2531 "grouping cannot be combined with --to"
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2532 , 5)
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2533 ), ((
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2534 0
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2535 ) ? (void) 0 : __builtin_unreachable ()))));
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"grouping cannot be combined with --to\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "grouping cannot be combined with --to" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • numfmt
2
2536 if (debug
debugDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
&& (
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
strlen (
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
0-4
2537 rpl_nl_langinfo
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
0-4
2538 (
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
0-4
2539 THOUSEP
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
0-4
2540 )) == 0)
(strlen ( rpl_...OUSEP )) == 0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • numfmt
FALSEnever evaluated
)
0-4
2541 error (0, 0,
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) );
Executed by:
  • numfmt
4
2542 dcgettext (((void *)0),
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) );
Executed by:
  • numfmt
4
2543 "grouping has no effect in this locale"
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) );
Executed by:
  • numfmt
4
2544 , 5)
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) );
Executed by:
  • numfmt
4
2545 );
executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) );
Executed by:
  • numfmt
4
2546 }
executed 8 times by 1 test: end of block
Executed by:
  • numfmt
8
2547-
2548-
2549 setup_padding_buffer (padding_width);-
2550 auto_padding = (padding_width == 0
padding_width == 0Description
TRUEevaluated 409 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 25 times by 1 test
Evaluated by:
  • numfmt
&& delimiter == DELIMITER_DEFAULT
delimiter == DELIMITER_DEFAULTDescription
TRUEevaluated 395 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
);
14-409
2551-
2552 if (inval_style != inval_abort
inval_style != inval_abortDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 415 times by 1 test
Evaluated by:
  • numfmt
)
19-415
2553 conv_exit_code = 0;
executed 19 times by 1 test: conv_exit_code = 0;
Executed by:
  • numfmt
19
2554-
2555 if (argc > optind
argc > optindDescription
TRUEevaluated 417 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
17-417
2556 {-
2557 if (debug
debugDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 397 times by 1 test
Evaluated by:
  • numfmt
&& header
headerDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 19 times by 1 test
Evaluated by:
  • numfmt
)
1-397
2558 error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) );
Executed by:
  • numfmt
1
2559 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) );
Executed by:
  • numfmt
1
2560 "--header ignored with command-line input"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) );
Executed by:
  • numfmt
1
2561 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) );
Executed by:
  • numfmt
1
2562 );
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) );
Executed by:
  • numfmt
1
2563-
2564 for (; optind < argc
optind < argcDescription
TRUEevaluated 452 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 335 times by 1 test
Evaluated by:
  • numfmt
; optind++)
335-452
2565 valid_numbers &= process_line (argv[optind],
executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 );
Executed by:
  • numfmt
452
2566 1
executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 );
Executed by:
  • numfmt
452
2567 );
executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 );
Executed by:
  • numfmt
452
2568 }
executed 335 times by 1 test: end of block
Executed by:
  • numfmt
335
2569 else-
2570 {-
2571 char *line = -
2572 ((void *)0)-
2573 ;-
2574 size_t line_allocated = 0;-
2575 ssize_t len;-
2576-
2577 while (header--
header--Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
&& getdelim (&line, &line_allocated,
getdelim (&lin...m, stdin ) > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
1-16
2578 line_delim,
getdelim (&lin...m, stdin ) > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
1-8
2579 stdin
getdelim (&lin...m, stdin ) > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
1-8
2580 ) > 0
getdelim (&lin...m, stdin ) > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-8
2581 fputs_unlocked (line,
executed 8 times by 1 test: fputs_unlocked (line, stdout );
Executed by:
  • numfmt
8
2582 stdout
executed 8 times by 1 test: fputs_unlocked (line, stdout );
Executed by:
  • numfmt
8
2583 );
executed 8 times by 1 test: fputs_unlocked (line, stdout );
Executed by:
  • numfmt
8
2584-
2585 while ((
(len = getdeli..., stdin )) > 0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
len = getdelim (&line, &line_allocated,
(len = getdeli..., stdin )) > 0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
17-31
2586 line_delim,
(len = getdeli..., stdin )) > 0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
17-31
2587 stdin
(len = getdeli..., stdin )) > 0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
17-31
2588 )) > 0
(len = getdeli..., stdin )) > 0Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
17-31
2589 {-
2590 -
2591 _Bool -
2592 newline = line[len - 1] == line_delim;-
2593 if (newline
newlineDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
)
1-30
2594 line[len - 1] = '\0';
executed 30 times by 1 test: line[len - 1] = '\0';
Executed by:
  • numfmt
30
2595 valid_numbers &= process_line (line, newline);-
2596 }
executed 31 times by 1 test: end of block
Executed by:
  • numfmt
31
2597-
2598 ;-
2599-
2600 if (ferror_unlocked (
ferror_unlocked ( stdin )Description
TRUEnever evaluated
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
0-17
2601 stdin
ferror_unlocked ( stdin )Description
TRUEnever evaluated
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
0-17
2602 )
ferror_unlocked ( stdin )Description
TRUEnever evaluated
FALSEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
)
0-17
2603 error (0,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2604 (*__errno_location ())
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2605 ,
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2606 dcgettext (((void *)0),
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2607 "error reading input"
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2608 , 5)
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2609 );
never executed: error (0, (*__errno_location ()) , dcgettext (((void *)0), "error reading input" , 5) );
0
2610 }
executed 17 times by 1 test: end of block
Executed by:
  • numfmt
17
2611 if (debug
debugDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 330 times by 1 test
Evaluated by:
  • numfmt
&& !valid_numbers
!valid_numbersDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 21 times by 1 test
Evaluated by:
  • numfmt
)
1-330
2612 error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "failed to convert some of the input numbers" , 5) );
Executed by:
  • numfmt
1
2613 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "failed to convert some of the input numbers" , 5) );
Executed by:
  • numfmt
1
2614 "failed to convert some of the input numbers"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "failed to convert some of the input numbers" , 5) );
Executed by:
  • numfmt
1
2615 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "failed to convert some of the input numbers" , 5) );
Executed by:
  • numfmt
1
2616 );
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "failed to convert some of the input numbers" , 5) );
Executed by:
  • numfmt
1
2617-
2618 int exit_status = -
2619 0-
2620 ;-
2621 if (!valid_numbers
!valid_numbersDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 335 times by 1 test
Evaluated by:
  • numfmt
17-335
2622 && inval_style != inval_warn
inval_style != inval_warnDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 1 time by 1 test
Evaluated by:
  • numfmt
&& inval_style != inval_ignore
inval_style != inval_ignoreDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • numfmt
FALSEevaluated 2 times by 1 test
Evaluated by:
  • numfmt
)
1-16
2623 exit_status = EXIT_CONVERSION_WARNINGS;
executed 14 times by 1 test: exit_status = EXIT_CONVERSION_WARNINGS;
Executed by:
  • numfmt
14
2624-
2625 return
executed 352 times by 1 test: return exit_status;
Executed by:
  • numfmt
exit_status;
executed 352 times by 1 test: return exit_status;
Executed by:
  • numfmt
352
2626}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2