Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/numfmt.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||||||||||||||
4 | enum { EXIT_CONVERSION_WARNINGS = 2 }; | - | ||||||||||||||||||||||||||||||||||||
5 | - | |||||||||||||||||||||||||||||||||||||
6 | enum | - | ||||||||||||||||||||||||||||||||||||
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 | - | |||||||||||||||||||||||||||||||||||||
24 | enum scale_type | - | ||||||||||||||||||||||||||||||||||||
25 | { | - | ||||||||||||||||||||||||||||||||||||
26 | scale_none, | - | ||||||||||||||||||||||||||||||||||||
27 | scale_auto, | - | ||||||||||||||||||||||||||||||||||||
28 | scale_SI, | - | ||||||||||||||||||||||||||||||||||||
29 | scale_IEC, | - | ||||||||||||||||||||||||||||||||||||
30 | scale_IEC_I | - | ||||||||||||||||||||||||||||||||||||
31 | }; | - | ||||||||||||||||||||||||||||||||||||
32 | - | |||||||||||||||||||||||||||||||||||||
33 | static char const *const scale_from_args[] = | - | ||||||||||||||||||||||||||||||||||||
34 | { | - | ||||||||||||||||||||||||||||||||||||
35 | "none", "auto", "si", "iec", "iec-i", | - | ||||||||||||||||||||||||||||||||||||
36 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
37 | - | |||||||||||||||||||||||||||||||||||||
38 | }; | - | ||||||||||||||||||||||||||||||||||||
39 | - | |||||||||||||||||||||||||||||||||||||
40 | static enum scale_type const scale_from_types[] = | - | ||||||||||||||||||||||||||||||||||||
41 | { | - | ||||||||||||||||||||||||||||||||||||
42 | scale_none, scale_auto, scale_SI, scale_IEC, scale_IEC_I | - | ||||||||||||||||||||||||||||||||||||
43 | }; | - | ||||||||||||||||||||||||||||||||||||
44 | - | |||||||||||||||||||||||||||||||||||||
45 | static char const *const scale_to_args[] = | - | ||||||||||||||||||||||||||||||||||||
46 | { | - | ||||||||||||||||||||||||||||||||||||
47 | "none", "si", "iec", "iec-i", | - | ||||||||||||||||||||||||||||||||||||
48 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
49 | - | |||||||||||||||||||||||||||||||||||||
50 | }; | - | ||||||||||||||||||||||||||||||||||||
51 | - | |||||||||||||||||||||||||||||||||||||
52 | static enum scale_type const scale_to_types[] = | - | ||||||||||||||||||||||||||||||||||||
53 | { | - | ||||||||||||||||||||||||||||||||||||
54 | scale_none, scale_SI, scale_IEC, scale_IEC_I | - | ||||||||||||||||||||||||||||||||||||
55 | }; | - | ||||||||||||||||||||||||||||||||||||
56 | - | |||||||||||||||||||||||||||||||||||||
57 | - | |||||||||||||||||||||||||||||||||||||
58 | enum round_type | - | ||||||||||||||||||||||||||||||||||||
59 | { | - | ||||||||||||||||||||||||||||||||||||
60 | round_ceiling, | - | ||||||||||||||||||||||||||||||||||||
61 | round_floor, | - | ||||||||||||||||||||||||||||||||||||
62 | round_from_zero, | - | ||||||||||||||||||||||||||||||||||||
63 | round_to_zero, | - | ||||||||||||||||||||||||||||||||||||
64 | round_nearest, | - | ||||||||||||||||||||||||||||||||||||
65 | }; | - | ||||||||||||||||||||||||||||||||||||
66 | - | |||||||||||||||||||||||||||||||||||||
67 | static char const *const round_args[] = | - | ||||||||||||||||||||||||||||||||||||
68 | { | - | ||||||||||||||||||||||||||||||||||||
69 | "up", "down", "from-zero", "towards-zero", "nearest", | - | ||||||||||||||||||||||||||||||||||||
70 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
71 | - | |||||||||||||||||||||||||||||||||||||
72 | }; | - | ||||||||||||||||||||||||||||||||||||
73 | - | |||||||||||||||||||||||||||||||||||||
74 | static enum round_type const round_types[] = | - | ||||||||||||||||||||||||||||||||||||
75 | { | - | ||||||||||||||||||||||||||||||||||||
76 | round_ceiling, round_floor, round_from_zero, round_to_zero, round_nearest | - | ||||||||||||||||||||||||||||||||||||
77 | }; | - | ||||||||||||||||||||||||||||||||||||
78 | - | |||||||||||||||||||||||||||||||||||||
79 | - | |||||||||||||||||||||||||||||||||||||
80 | enum inval_type | - | ||||||||||||||||||||||||||||||||||||
81 | { | - | ||||||||||||||||||||||||||||||||||||
82 | inval_abort, | - | ||||||||||||||||||||||||||||||||||||
83 | inval_fail, | - | ||||||||||||||||||||||||||||||||||||
84 | inval_warn, | - | ||||||||||||||||||||||||||||||||||||
85 | inval_ignore | - | ||||||||||||||||||||||||||||||||||||
86 | }; | - | ||||||||||||||||||||||||||||||||||||
87 | - | |||||||||||||||||||||||||||||||||||||
88 | static char const *const inval_args[] = | - | ||||||||||||||||||||||||||||||||||||
89 | { | - | ||||||||||||||||||||||||||||||||||||
90 | "abort", "fail", "warn", "ignore", | - | ||||||||||||||||||||||||||||||||||||
91 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
92 | - | |||||||||||||||||||||||||||||||||||||
93 | }; | - | ||||||||||||||||||||||||||||||||||||
94 | - | |||||||||||||||||||||||||||||||||||||
95 | static enum inval_type const inval_types[] = | - | ||||||||||||||||||||||||||||||||||||
96 | { | - | ||||||||||||||||||||||||||||||||||||
97 | inval_abort, inval_fail, inval_warn, inval_ignore | - | ||||||||||||||||||||||||||||||||||||
98 | }; | - | ||||||||||||||||||||||||||||||||||||
99 | - | |||||||||||||||||||||||||||||||||||||
100 | static 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 | - | |||||||||||||||||||||||||||||||||||||
200 | enum { DELIMITER_DEFAULT = 0x7f + 1 }; | - | ||||||||||||||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||||||||||||||
202 | - | |||||||||||||||||||||||||||||||||||||
203 | - | |||||||||||||||||||||||||||||||||||||
204 | enum { MAX_UNSCALED_DIGITS = 18 }; | - | ||||||||||||||||||||||||||||||||||||
205 | - | |||||||||||||||||||||||||||||||||||||
206 | - | |||||||||||||||||||||||||||||||||||||
207 | - | |||||||||||||||||||||||||||||||||||||
208 | - | |||||||||||||||||||||||||||||||||||||
209 | - | |||||||||||||||||||||||||||||||||||||
210 | enum { MAX_ACCEPTABLE_DIGITS = 27 }; | - | ||||||||||||||||||||||||||||||||||||
211 | - | |||||||||||||||||||||||||||||||||||||
212 | static enum scale_type scale_from = scale_none; | - | ||||||||||||||||||||||||||||||||||||
213 | static enum scale_type scale_to = scale_none; | - | ||||||||||||||||||||||||||||||||||||
214 | static enum round_type round_style = round_from_zero; | - | ||||||||||||||||||||||||||||||||||||
215 | static enum inval_type inval_style = inval_abort; | - | ||||||||||||||||||||||||||||||||||||
216 | static const char *suffix = | - | ||||||||||||||||||||||||||||||||||||
217 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
218 | ; | - | ||||||||||||||||||||||||||||||||||||
219 | static uintmax_t from_unit_size = 1; | - | ||||||||||||||||||||||||||||||||||||
220 | static uintmax_t to_unit_size = 1; | - | ||||||||||||||||||||||||||||||||||||
221 | static int grouping = 0; | - | ||||||||||||||||||||||||||||||||||||
222 | static char *padding_buffer = | - | ||||||||||||||||||||||||||||||||||||
223 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
224 | ; | - | ||||||||||||||||||||||||||||||||||||
225 | static size_t padding_buffer_size = 0; | - | ||||||||||||||||||||||||||||||||||||
226 | static long int padding_width = 0; | - | ||||||||||||||||||||||||||||||||||||
227 | static long int zero_padding_width = 0; | - | ||||||||||||||||||||||||||||||||||||
228 | static long int user_precision = -1; | - | ||||||||||||||||||||||||||||||||||||
229 | static const char *format_str = | - | ||||||||||||||||||||||||||||||||||||
230 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
231 | ; | - | ||||||||||||||||||||||||||||||||||||
232 | static char *format_str_prefix = | - | ||||||||||||||||||||||||||||||||||||
233 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
234 | ; | - | ||||||||||||||||||||||||||||||||||||
235 | static char *format_str_suffix = | - | ||||||||||||||||||||||||||||||||||||
236 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
237 | ; | - | ||||||||||||||||||||||||||||||||||||
238 | - | |||||||||||||||||||||||||||||||||||||
239 | - | |||||||||||||||||||||||||||||||||||||
240 | static int conv_exit_code = EXIT_CONVERSION_WARNINGS; | - | ||||||||||||||||||||||||||||||||||||
241 | - | |||||||||||||||||||||||||||||||||||||
242 | - | |||||||||||||||||||||||||||||||||||||
243 | - | |||||||||||||||||||||||||||||||||||||
244 | static int auto_padding = 0; | - | ||||||||||||||||||||||||||||||||||||
245 | static mbs_align_t padding_alignment = MBS_ALIGN_RIGHT; | - | ||||||||||||||||||||||||||||||||||||
246 | - | |||||||||||||||||||||||||||||||||||||
247 | - | |||||||||||||||||||||||||||||||||||||
248 | static int delimiter = DELIMITER_DEFAULT; | - | ||||||||||||||||||||||||||||||||||||
249 | - | |||||||||||||||||||||||||||||||||||||
250 | - | |||||||||||||||||||||||||||||||||||||
251 | static unsigned char line_delim = '\n'; | - | ||||||||||||||||||||||||||||||||||||
252 | - | |||||||||||||||||||||||||||||||||||||
253 | - | |||||||||||||||||||||||||||||||||||||
254 | static uintmax_t header = 0; | - | ||||||||||||||||||||||||||||||||||||
255 | - | |||||||||||||||||||||||||||||||||||||
256 | - | |||||||||||||||||||||||||||||||||||||
257 | - | |||||||||||||||||||||||||||||||||||||
258 | static | - | ||||||||||||||||||||||||||||||||||||
259 | _Bool | - | ||||||||||||||||||||||||||||||||||||
260 | debug; | - | ||||||||||||||||||||||||||||||||||||
261 | - | |||||||||||||||||||||||||||||||||||||
262 | - | |||||||||||||||||||||||||||||||||||||
263 | static const char *decimal_point; | - | ||||||||||||||||||||||||||||||||||||
264 | static int decimal_point_length; | - | ||||||||||||||||||||||||||||||||||||
265 | - | |||||||||||||||||||||||||||||||||||||
266 | - | |||||||||||||||||||||||||||||||||||||
267 | static | - | ||||||||||||||||||||||||||||||||||||
268 | _Bool | - | ||||||||||||||||||||||||||||||||||||
269 | dev_debug = | - | ||||||||||||||||||||||||||||||||||||
270 | 0 | - | ||||||||||||||||||||||||||||||||||||
271 | ; | - | ||||||||||||||||||||||||||||||||||||
272 | - | |||||||||||||||||||||||||||||||||||||
273 | - | |||||||||||||||||||||||||||||||||||||
274 | static inline int | - | ||||||||||||||||||||||||||||||||||||
275 | default_scale_base (enum scale_type scale) | - | ||||||||||||||||||||||||||||||||||||
276 | { | - | ||||||||||||||||||||||||||||||||||||
277 | switch (scale) | - | ||||||||||||||||||||||||||||||||||||
278 | { | - | ||||||||||||||||||||||||||||||||||||
279 | case executed 87 times by 1 test: scale_IEC:case scale_IEC: Executed by:
executed 87 times by 1 test: case scale_IEC: Executed by:
| 87 | ||||||||||||||||||||||||||||||||||||
280 | case executed 22 times by 1 test: scale_IEC_I:case scale_IEC_I: Executed by:
executed 22 times by 1 test: case scale_IEC_I: Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||
281 | return executed 109 times by 1 test: 1024;return 1024; Executed by:
executed 109 times by 1 test: return 1024; Executed by:
| 109 | ||||||||||||||||||||||||||||||||||||
282 | - | |||||||||||||||||||||||||||||||||||||
283 | case executed 351 times by 1 test: scale_none:case scale_none: Executed by:
executed 351 times by 1 test: case scale_none: Executed by:
| 351 | ||||||||||||||||||||||||||||||||||||
284 | case executed 30 times by 1 test: scale_auto:case scale_auto: Executed by:
executed 30 times by 1 test: case scale_auto: Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||
285 | case executed 326 times by 1 test: scale_SI:case scale_SI: Executed by:
executed 326 times by 1 test: case scale_SI: Executed by:
| 326 | ||||||||||||||||||||||||||||||||||||
286 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
287 | return executed 707 times by 1 test: 1000;return 1000; Executed by:
executed 707 times by 1 test: return 1000; Executed by:
| 707 | ||||||||||||||||||||||||||||||||||||
288 | } | - | ||||||||||||||||||||||||||||||||||||
289 | } | - | ||||||||||||||||||||||||||||||||||||
290 | - | |||||||||||||||||||||||||||||||||||||
291 | static inline int | - | ||||||||||||||||||||||||||||||||||||
292 | valid_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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 180 | ||||||||||||||||||||||||||||||||||||
314 | } | - | ||||||||||||||||||||||||||||||||||||
315 | - | |||||||||||||||||||||||||||||||||||||
316 | static inline int | - | ||||||||||||||||||||||||||||||||||||
317 | suffix_power (const char suf) | - | ||||||||||||||||||||||||||||||||||||
318 | { | - | ||||||||||||||||||||||||||||||||||||
319 | switch (suf) | - | ||||||||||||||||||||||||||||||||||||
320 | { | - | ||||||||||||||||||||||||||||||||||||
321 | case executed 22 times by 1 test: 'K':case 'K': Executed by:
executed 22 times by 1 test: case 'K': Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||
322 | return executed 22 times by 1 test: 1;return 1; Executed by:
executed 22 times by 1 test: return 1; Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||
323 | - | |||||||||||||||||||||||||||||||||||||
324 | case executed 35 times by 1 test: 'M':case 'M': Executed by:
executed 35 times by 1 test: case 'M': Executed by:
| 35 | ||||||||||||||||||||||||||||||||||||
325 | return executed 35 times by 1 test: 2;return 2; Executed by:
executed 35 times by 1 test: return 2; Executed by:
| 35 | ||||||||||||||||||||||||||||||||||||
326 | - | |||||||||||||||||||||||||||||||||||||
327 | case executed 12 times by 1 test: 'G':case 'G': Executed by:
executed 12 times by 1 test: case 'G': Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||
328 | return executed 12 times by 1 test: 3;return 3; Executed by:
executed 12 times by 1 test: return 3; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||
329 | - | |||||||||||||||||||||||||||||||||||||
330 | case executed 8 times by 1 test: 'T':case 'T': Executed by:
executed 8 times by 1 test: case 'T': Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
331 | return executed 8 times by 1 test: 4;return 4; Executed by:
executed 8 times by 1 test: return 4; Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
332 | - | |||||||||||||||||||||||||||||||||||||
333 | case executed 10 times by 1 test: 'P':case 'P': Executed by:
executed 10 times by 1 test: case 'P': Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
334 | return executed 10 times by 1 test: 5;return 5; Executed by:
executed 10 times by 1 test: return 5; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
335 | - | |||||||||||||||||||||||||||||||||||||
336 | case executed 9 times by 1 test: 'E':case 'E': Executed by:
executed 9 times by 1 test: case 'E': Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
337 | return executed 9 times by 1 test: 6;return 6; Executed by:
executed 9 times by 1 test: return 6; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
338 | - | |||||||||||||||||||||||||||||||||||||
339 | case executed 10 times by 1 test: 'Z':case 'Z': Executed by:
executed 10 times by 1 test: case 'Z': Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
340 | return executed 10 times by 1 test: 7;return 7; Executed by:
executed 10 times by 1 test: return 7; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
341 | - | |||||||||||||||||||||||||||||||||||||
342 | case executed 16 times by 1 test: 'Y':case 'Y': Executed by:
executed 16 times by 1 test: case 'Y': Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||
343 | return executed 16 times by 1 test: 8;return 8; Executed by:
executed 16 times by 1 test: return 8; Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||
344 | - | |||||||||||||||||||||||||||||||||||||
345 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
346 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
347 | } | - | ||||||||||||||||||||||||||||||||||||
348 | } | - | ||||||||||||||||||||||||||||||||||||
349 | - | |||||||||||||||||||||||||||||||||||||
350 | static inline const char * | - | ||||||||||||||||||||||||||||||||||||
351 | suffix_power_char (unsigned int power) | - | ||||||||||||||||||||||||||||||||||||
352 | { | - | ||||||||||||||||||||||||||||||||||||
353 | switch (power) | - | ||||||||||||||||||||||||||||||||||||
354 | { | - | ||||||||||||||||||||||||||||||||||||
355 | case executed 14 times by 1 test: 0:case 0: Executed by:
executed 14 times by 1 test: case 0: Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
356 | return executed 14 times by 1 test: "";return ""; Executed by:
executed 14 times by 1 test: return ""; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
357 | - | |||||||||||||||||||||||||||||||||||||
358 | case executed 173 times by 1 test: 1:case 1: Executed by:
executed 173 times by 1 test: case 1: Executed by:
| 173 | ||||||||||||||||||||||||||||||||||||
359 | return executed 173 times by 1 test: "K";return "K"; Executed by:
executed 173 times by 1 test: return "K"; Executed by:
| 173 | ||||||||||||||||||||||||||||||||||||
360 | - | |||||||||||||||||||||||||||||||||||||
361 | case executed 26 times by 1 test: 2:case 2: Executed by:
executed 26 times by 1 test: case 2: Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||
362 | return executed 26 times by 1 test: "M";return "M"; Executed by:
executed 26 times by 1 test: return "M"; Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||
363 | - | |||||||||||||||||||||||||||||||||||||
364 | case executed 15 times by 1 test: 3:case 3: Executed by:
executed 15 times by 1 test: case 3: Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
365 | return executed 15 times by 1 test: "G";return "G"; Executed by:
executed 15 times by 1 test: return "G"; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
366 | - | |||||||||||||||||||||||||||||||||||||
367 | case executed 9 times by 1 test: 4:case 4: Executed by:
executed 9 times by 1 test: case 4: Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
368 | return executed 9 times by 1 test: "T";return "T"; Executed by:
executed 9 times by 1 test: return "T"; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
369 | - | |||||||||||||||||||||||||||||||||||||
370 | case executed 8 times by 1 test: 5:case 5: Executed by:
executed 8 times by 1 test: case 5: Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
371 | return executed 8 times by 1 test: "P";return "P"; Executed by:
executed 8 times by 1 test: return "P"; Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
372 | - | |||||||||||||||||||||||||||||||||||||
373 | case executed 11 times by 1 test: 6:case 6: Executed by:
executed 11 times by 1 test: case 6: Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
374 | return executed 11 times by 1 test: "E";return "E"; Executed by:
executed 11 times by 1 test: return "E"; Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
375 | - | |||||||||||||||||||||||||||||||||||||
376 | case executed 10 times by 1 test: 7:case 7: Executed by:
executed 10 times by 1 test: case 7: Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
377 | return executed 10 times by 1 test: "Z";return "Z"; Executed by:
executed 10 times by 1 test: return "Z"; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
378 | - | |||||||||||||||||||||||||||||||||||||
379 | case executed 15 times by 1 test: 8:case 8: Executed by:
executed 15 times by 1 test: case 8: Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
380 | return executed 15 times by 1 test: "Y";return "Y"; Executed by:
executed 15 times by 1 test: return "Y"; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
381 | - | |||||||||||||||||||||||||||||||||||||
382 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
383 | return never executed: "(error)";return "(error)"; never executed: return "(error)"; | 0 | ||||||||||||||||||||||||||||||||||||
384 | } | - | ||||||||||||||||||||||||||||||||||||
385 | } | - | ||||||||||||||||||||||||||||||||||||
386 | - | |||||||||||||||||||||||||||||||||||||
387 | - | |||||||||||||||||||||||||||||||||||||
388 | static long double | - | ||||||||||||||||||||||||||||||||||||
389 | powerld (long double base, unsigned int x) | - | ||||||||||||||||||||||||||||||||||||
390 | { | - | ||||||||||||||||||||||||||||||||||||
391 | long double result = base; | - | ||||||||||||||||||||||||||||||||||||
392 | if (x == 0
| 662-725 | ||||||||||||||||||||||||||||||||||||
393 | return executed 662 times by 1 test: 1;return 1; Executed by:
executed 662 times by 1 test: return 1; Executed by:
| 662 | ||||||||||||||||||||||||||||||||||||
394 | - | |||||||||||||||||||||||||||||||||||||
395 | - | |||||||||||||||||||||||||||||||||||||
396 | - | |||||||||||||||||||||||||||||||||||||
397 | - | |||||||||||||||||||||||||||||||||||||
398 | while (--
| 602-725 | ||||||||||||||||||||||||||||||||||||
399 | result *= base; executed 602 times by 1 test: result *= base; Executed by:
| 602 | ||||||||||||||||||||||||||||||||||||
400 | return executed 725 times by 1 test: result;return result; Executed by:
executed 725 times by 1 test: return result; Executed by:
| 725 | ||||||||||||||||||||||||||||||||||||
401 | } | - | ||||||||||||||||||||||||||||||||||||
402 | - | |||||||||||||||||||||||||||||||||||||
403 | - | |||||||||||||||||||||||||||||||||||||
404 | static inline long double | - | ||||||||||||||||||||||||||||||||||||
405 | absld (long double val) | - | ||||||||||||||||||||||||||||||||||||
406 | { | - | ||||||||||||||||||||||||||||||||||||
407 | return executed 4894 times by 1 test: val < 0 ? -val : val;return val < 0 ? -val : val; Executed by:
executed 4894 times by 1 test: return val < 0 ? -val : val; Executed by:
| 4894 | ||||||||||||||||||||||||||||||||||||
408 | } | - | ||||||||||||||||||||||||||||||||||||
409 | - | |||||||||||||||||||||||||||||||||||||
410 | - | |||||||||||||||||||||||||||||||||||||
411 | - | |||||||||||||||||||||||||||||||||||||
412 | - | |||||||||||||||||||||||||||||||||||||
413 | - | |||||||||||||||||||||||||||||||||||||
414 | static long double | - | ||||||||||||||||||||||||||||||||||||
415 | expld (long double val, unsigned int base, unsigned int *x) | - | ||||||||||||||||||||||||||||||||||||
416 | { | - | ||||||||||||||||||||||||||||||||||||
417 | unsigned int power = 0; | - | ||||||||||||||||||||||||||||||||||||
418 | - | |||||||||||||||||||||||||||||||||||||
419 | if (val >= -1.18973149535723176502e+4932L
| 0-731 | ||||||||||||||||||||||||||||||||||||
420 | { | - | ||||||||||||||||||||||||||||||||||||
421 | while (absld (val) >= base
| 731-3325 | ||||||||||||||||||||||||||||||||||||
422 | { | - | ||||||||||||||||||||||||||||||||||||
423 | ++power; | - | ||||||||||||||||||||||||||||||||||||
424 | val /= base; | - | ||||||||||||||||||||||||||||||||||||
425 | } executed 3325 times by 1 test: end of block Executed by:
| 3325 | ||||||||||||||||||||||||||||||||||||
426 | } executed 731 times by 1 test: end of block Executed by:
| 731 | ||||||||||||||||||||||||||||||||||||
427 | if (x
| 0-731 | ||||||||||||||||||||||||||||||||||||
428 | * executed 731 times by 1 test: x = power;*x = power; Executed by:
executed 731 times by 1 test: *x = power; Executed by:
| 731 | ||||||||||||||||||||||||||||||||||||
429 | return executed 731 times by 1 test: val;return val; Executed by:
executed 731 times by 1 test: return val; Executed by:
| 731 | ||||||||||||||||||||||||||||||||||||
430 | } | - | ||||||||||||||||||||||||||||||||||||
431 | - | |||||||||||||||||||||||||||||||||||||
432 | - | |||||||||||||||||||||||||||||||||||||
433 | - | |||||||||||||||||||||||||||||||||||||
434 | static inline intmax_t | - | ||||||||||||||||||||||||||||||||||||
435 | simple_round_ceiling (long double val) | - | ||||||||||||||||||||||||||||||||||||
436 | { | - | ||||||||||||||||||||||||||||||||||||
437 | intmax_t intval = val; | - | ||||||||||||||||||||||||||||||||||||
438 | if (intval < val
| 72-335 | ||||||||||||||||||||||||||||||||||||
439 | intval++; executed 72 times by 1 test: intval++; Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||
440 | return executed 407 times by 1 test: intval;return intval; Executed by:
executed 407 times by 1 test: return intval; Executed by:
| 407 | ||||||||||||||||||||||||||||||||||||
441 | } | - | ||||||||||||||||||||||||||||||||||||
442 | - | |||||||||||||||||||||||||||||||||||||
443 | - | |||||||||||||||||||||||||||||||||||||
444 | - | |||||||||||||||||||||||||||||||||||||
445 | static inline intmax_t | - | ||||||||||||||||||||||||||||||||||||
446 | simple_round_floor (long double val) | - | ||||||||||||||||||||||||||||||||||||
447 | { | - | ||||||||||||||||||||||||||||||||||||
448 | return executed 34 times by 1 test: -simple_round_ceiling (-val);return -simple_round_ceiling (-val); Executed by:
executed 34 times by 1 test: return -simple_round_ceiling (-val); Executed by:
| 34 | ||||||||||||||||||||||||||||||||||||
449 | } | - | ||||||||||||||||||||||||||||||||||||
450 | - | |||||||||||||||||||||||||||||||||||||
451 | - | |||||||||||||||||||||||||||||||||||||
452 | - | |||||||||||||||||||||||||||||||||||||
453 | static inline intmax_t | - | ||||||||||||||||||||||||||||||||||||
454 | simple_round_from_zero (long double val) | - | ||||||||||||||||||||||||||||||||||||
455 | { | - | ||||||||||||||||||||||||||||||||||||
456 | return executed 369 times by 1 test: val < 0 ? simple_round_floor (val) : simple_round_ceiling (val);return val < 0 ? simple_round_floor (val) : simple_round_ceiling (val); Executed by:
executed 369 times by 1 test: return val < 0 ? simple_round_floor (val) : simple_round_ceiling (val); Executed by:
| 369 | ||||||||||||||||||||||||||||||||||||
457 | } | - | ||||||||||||||||||||||||||||||||||||
458 | - | |||||||||||||||||||||||||||||||||||||
459 | - | |||||||||||||||||||||||||||||||||||||
460 | - | |||||||||||||||||||||||||||||||||||||
461 | static inline intmax_t | - | ||||||||||||||||||||||||||||||||||||
462 | simple_round_to_zero (long double val) | - | ||||||||||||||||||||||||||||||||||||
463 | { | - | ||||||||||||||||||||||||||||||||||||
464 | return executed 10 times by 1 test: val;return val; Executed by:
executed 10 times by 1 test: return val; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
465 | } | - | ||||||||||||||||||||||||||||||||||||
466 | - | |||||||||||||||||||||||||||||||||||||
467 | - | |||||||||||||||||||||||||||||||||||||
468 | - | |||||||||||||||||||||||||||||||||||||
469 | static inline intmax_t | - | ||||||||||||||||||||||||||||||||||||
470 | simple_round_nearest (long double val) | - | ||||||||||||||||||||||||||||||||||||
471 | { | - | ||||||||||||||||||||||||||||||||||||
472 | return executed 19 times by 1 test: val < 0 ? val - 0.5 : val + 0.5;return val < 0 ? val - 0.5 : val + 0.5; Executed by:
executed 19 times by 1 test: return val < 0 ? val - 0.5 : val + 0.5; Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||
473 | } | - | ||||||||||||||||||||||||||||||||||||
474 | - | |||||||||||||||||||||||||||||||||||||
475 | static inline long double __attribute__ ((__const__)) | - | ||||||||||||||||||||||||||||||||||||
476 | simple_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: round_ceiling:case round_ceiling: Executed by:
executed 14 times by 1 test: case round_ceiling: Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
489 | rval = simple_round_ceiling (val); | - | ||||||||||||||||||||||||||||||||||||
490 | break; executed 14 times by 1 test: break; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
491 | - | |||||||||||||||||||||||||||||||||||||
492 | case executed 24 times by 1 test: round_floor:case round_floor: Executed by:
executed 24 times by 1 test: case round_floor: Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
493 | rval = simple_round_floor (val); | - | ||||||||||||||||||||||||||||||||||||
494 | break; executed 24 times by 1 test: break; Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
495 | - | |||||||||||||||||||||||||||||||||||||
496 | case executed 369 times by 1 test: round_from_zero:case round_from_zero: Executed by:
executed 369 times by 1 test: case round_from_zero: Executed by:
| 369 | ||||||||||||||||||||||||||||||||||||
497 | rval = simple_round_from_zero (val); | - | ||||||||||||||||||||||||||||||||||||
498 | break; executed 369 times by 1 test: break; Executed by:
| 369 | ||||||||||||||||||||||||||||||||||||
499 | - | |||||||||||||||||||||||||||||||||||||
500 | case executed 10 times by 1 test: round_to_zero:case round_to_zero: Executed by:
executed 10 times by 1 test: case round_to_zero: Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
501 | rval = simple_round_to_zero (val); | - | ||||||||||||||||||||||||||||||||||||
502 | break; executed 10 times by 1 test: break; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
503 | - | |||||||||||||||||||||||||||||||||||||
504 | case executed 19 times by 1 test: round_nearest:case round_nearest: Executed by:
executed 19 times by 1 test: case round_nearest: Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||
505 | rval = simple_round_nearest (val); | - | ||||||||||||||||||||||||||||||||||||
506 | break; executed 19 times by 1 test: break; Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||
507 | - | |||||||||||||||||||||||||||||||||||||
508 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
509 | - | |||||||||||||||||||||||||||||||||||||
510 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||
511 | } | - | ||||||||||||||||||||||||||||||||||||
512 | - | |||||||||||||||||||||||||||||||||||||
513 | return executed 436 times by 1 test: (long double) return (long double) (9223372036854775807L) * intmax_mul + rval; Executed by:
executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval; Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
514 | (9223372036854775807L) executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval; Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
515 | * intmax_mul + rval; executed 436 times by 1 test: return (long double) (9223372036854775807L) * intmax_mul + rval; Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
516 | } | - | ||||||||||||||||||||||||||||||||||||
517 | - | |||||||||||||||||||||||||||||||||||||
518 | enum 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 | }; | - | ||||||||||||||||||||||||||||||||||||
530 | static enum simple_strtod_error | - | ||||||||||||||||||||||||||||||||||||
531 | simple_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 (*
| 33-570 | ||||||||||||||||||||||||||||||||||||
547 | { | - | ||||||||||||||||||||||||||||||||||||
548 | input_str++; | - | ||||||||||||||||||||||||||||||||||||
549 | *negative = | - | ||||||||||||||||||||||||||||||||||||
550 | 1 | - | ||||||||||||||||||||||||||||||||||||
551 | ; | - | ||||||||||||||||||||||||||||||||||||
552 | } executed 33 times by 1 test: end of block Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||
553 | else | - | ||||||||||||||||||||||||||||||||||||
554 | * executed 570 times by 1 test: negative = *negative = 0 ; Executed by:
executed 570 times by 1 test: *negative = 0 ; Executed by:
| 570 | ||||||||||||||||||||||||||||||||||||
555 | 0 executed 570 times by 1 test: *negative = 0 ; Executed by:
| 570 | ||||||||||||||||||||||||||||||||||||
556 | ; executed 570 times by 1 test: *negative = 0 ; Executed by:
| 570 | ||||||||||||||||||||||||||||||||||||
557 | - | |||||||||||||||||||||||||||||||||||||
558 | *endptr = (char *) input_str; | - | ||||||||||||||||||||||||||||||||||||
559 | while (*
| 0-2944 | ||||||||||||||||||||||||||||||||||||
560 | { | - | ||||||||||||||||||||||||||||||||||||
561 | int digit = (**endptr) - '0'; | - | ||||||||||||||||||||||||||||||||||||
562 | - | |||||||||||||||||||||||||||||||||||||
563 | found_digit = | - | ||||||||||||||||||||||||||||||||||||
564 | 1 | - | ||||||||||||||||||||||||||||||||||||
565 | ; | - | ||||||||||||||||||||||||||||||||||||
566 | - | |||||||||||||||||||||||||||||||||||||
567 | if (val
| 136-1675 | ||||||||||||||||||||||||||||||||||||
568 | digits++; executed 2209 times by 1 test: digits++; Executed by:
| 2209 | ||||||||||||||||||||||||||||||||||||
569 | - | |||||||||||||||||||||||||||||||||||||
570 | if (digits > MAX_UNSCALED_DIGITS
| 97-2248 | ||||||||||||||||||||||||||||||||||||
571 | e = SSE_OK_PRECISION_LOSS; executed 97 times by 1 test: e = SSE_OK_PRECISION_LOSS; Executed by:
| 97 | ||||||||||||||||||||||||||||||||||||
572 | - | |||||||||||||||||||||||||||||||||||||
573 | if (digits > MAX_ACCEPTABLE_DIGITS
| 4-2341 | ||||||||||||||||||||||||||||||||||||
574 | return executed 4 times by 1 test: SSE_OVERFLOW;return SSE_OVERFLOW; Executed by:
executed 4 times by 1 test: return SSE_OVERFLOW; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
575 | - | |||||||||||||||||||||||||||||||||||||
576 | val *= 10; | - | ||||||||||||||||||||||||||||||||||||
577 | val += digit; | - | ||||||||||||||||||||||||||||||||||||
578 | - | |||||||||||||||||||||||||||||||||||||
579 | ++(*endptr); | - | ||||||||||||||||||||||||||||||||||||
580 | } executed 2341 times by 1 test: end of block Executed by:
| 2341 | ||||||||||||||||||||||||||||||||||||
581 | if (! found_digit
| 20-579 | ||||||||||||||||||||||||||||||||||||
582 | && ! (
| 3-17 | ||||||||||||||||||||||||||||||||||||
583 | (__extension__ (__builtin_constant_p (
| 0-20 | ||||||||||||||||||||||||||||||||||||
584 | decimal_point_length
| 0-20 | ||||||||||||||||||||||||||||||||||||
585 | )
| 0-20 | ||||||||||||||||||||||||||||||||||||
586 | *endptr
| 0-17 | ||||||||||||||||||||||||||||||||||||
587 | )
| 0-17 | ||||||||||||||||||||||||||||||||||||
588 | *endptr
| 0-17 | ||||||||||||||||||||||||||||||||||||
589 | ) < ((size_t) (
| 0-17 | ||||||||||||||||||||||||||||||||||||
590 | decimal_point_length
| 0-17 | ||||||||||||||||||||||||||||||||||||
591 | ))
| 0-17 | ||||||||||||||||||||||||||||||||||||
592 | decimal_point
| 0-17 | ||||||||||||||||||||||||||||||||||||
593 | )
| 0-17 | ||||||||||||||||||||||||||||||||||||
594 | decimal_point
| 0-17 | ||||||||||||||||||||||||||||||||||||
595 | ) < ((size_t) (
| 0-17 | ||||||||||||||||||||||||||||||||||||
596 | decimal_point_length
| 0-17 | ||||||||||||||||||||||||||||||||||||
597 | ))
| 0-17 | ||||||||||||||||||||||||||||||||||||
598 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
599 | ) && __builtin_constant_p (
| 3-17 | ||||||||||||||||||||||||||||||||||||
600 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
601 | ) && (__s1_len = __builtin_strlen (
| 3-17 | ||||||||||||||||||||||||||||||||||||
602 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
603 | ), __s2_len = __builtin_strlen (
| 3-17 | ||||||||||||||||||||||||||||||||||||
604 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
605 | ), (!((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
606 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
607 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
608 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
609 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
610 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
611 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
612 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
613 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 3-17 | ||||||||||||||||||||||||||||||||||||
614 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
615 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
616 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
617 | ) : (__builtin_constant_p (
| 3-17 | ||||||||||||||||||||||||||||||||||||
618 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
619 | ) && ((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
620 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
621 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
622 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
623 | ) == 1) && (__s1_len = __builtin_strlen (
| 3-17 | ||||||||||||||||||||||||||||||||||||
624 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
625 | ), __s1_len < 4) ? (__builtin_constant_p (
| 3-17 | ||||||||||||||||||||||||||||||||||||
626 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
627 | ) && ((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
628 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
629 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
630 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
631 | ) == 1) ? __builtin_strcmp (
| 3-17 | ||||||||||||||||||||||||||||||||||||
632 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
633 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
634 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
635 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 3-17 | ||||||||||||||||||||||||||||||||||||
636 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
637 | ); int __result = (((const unsigned char *) (const char *) (
| 3-17 | ||||||||||||||||||||||||||||||||||||
638 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
639 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-17 | ||||||||||||||||||||||||||||||||||||
640 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
641 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-17 | ||||||||||||||||||||||||||||||||||||
642 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
643 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
| 0-17 | ||||||||||||||||||||||||||||||||||||
644 | *endptr
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]); | 0-17 | ||||||||||||||||||||||||||||||||||||
645 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-17 | ||||||||||||||||||||||||||||||||||||
646 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
647 | ) && ((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
648 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
649 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
650 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
651 | ) == 1) && (__s2_len = __builtin_strlen (
| 3-17 | ||||||||||||||||||||||||||||||||||||
652 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
653 | ), __s2_len < 4) ? (__builtin_constant_p (
| 3-17 | ||||||||||||||||||||||||||||||||||||
654 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
655 | ) && ((size_t)(const void *)((
| 3-17 | ||||||||||||||||||||||||||||||||||||
656 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
657 | ) + 1) - (size_t)(const void *)(
| 3-17 | ||||||||||||||||||||||||||||||||||||
658 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
659 | ) == 1) ? __builtin_strcmp (
| 3-17 | ||||||||||||||||||||||||||||||||||||
660 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
661 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
662 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
663 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 3-17 | ||||||||||||||||||||||||||||||||||||
664 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
665 | ); int __result = (((const unsigned char *) (const char *) (
| 3-17 | ||||||||||||||||||||||||||||||||||||
666 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
667 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-17 | ||||||||||||||||||||||||||||||||||||
668 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
669 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-17 | ||||||||||||||||||||||||||||||||||||
670 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
671 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
| 0-17 | ||||||||||||||||||||||||||||||||||||
672 | decimal_point
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]); | 0-17 | ||||||||||||||||||||||||||||||||||||
673 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-17 | ||||||||||||||||||||||||||||||||||||
674 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
675 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
676 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
677 | )))); }) : strncmp (
| 3-17 | ||||||||||||||||||||||||||||||||||||
678 | *endptr
| 3-17 | ||||||||||||||||||||||||||||||||||||
679 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
680 | decimal_point
| 3-17 | ||||||||||||||||||||||||||||||||||||
681 | ,
| 3-17 | ||||||||||||||||||||||||||||||||||||
682 | decimal_point_length
| 3-17 | ||||||||||||||||||||||||||||||||||||
683 | )))
| 3-17 | ||||||||||||||||||||||||||||||||||||
684 | == 0)
| 3-17 | ||||||||||||||||||||||||||||||||||||
685 | return executed 17 times by 1 test: SSE_INVALID_NUMBER;return SSE_INVALID_NUMBER; Executed by:
executed 17 times by 1 test: return SSE_INVALID_NUMBER; Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
686 | if (*
| 33-549 | ||||||||||||||||||||||||||||||||||||
687 | val = -val; executed 33 times by 1 test: val = -val; Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||
688 | - | |||||||||||||||||||||||||||||||||||||
689 | if (value
| 0-582 | ||||||||||||||||||||||||||||||||||||
690 | * executed 582 times by 1 test: value = val;*value = val; Executed by:
executed 582 times by 1 test: *value = val; Executed by:
| 582 | ||||||||||||||||||||||||||||||||||||
691 | - | |||||||||||||||||||||||||||||||||||||
692 | return executed 582 times by 1 test: e;return e; Executed by:
executed 582 times by 1 test: return e; Executed by:
| 582 | ||||||||||||||||||||||||||||||||||||
693 | } | - | ||||||||||||||||||||||||||||||||||||
694 | static enum simple_strtod_error | - | ||||||||||||||||||||||||||||||||||||
695 | simple_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
| 0-535 | ||||||||||||||||||||||||||||||||||||
706 | * executed 535 times by 1 test: precision = 0;*precision = 0; Executed by:
executed 535 times by 1 test: *precision = 0; Executed by:
| 535 | ||||||||||||||||||||||||||||||||||||
707 | - | |||||||||||||||||||||||||||||||||||||
708 | - | |||||||||||||||||||||||||||||||||||||
709 | e = simple_strtod_int (input_str, endptr, value, &negative); | - | ||||||||||||||||||||||||||||||||||||
710 | if (e != SSE_OK
| 16-503 | ||||||||||||||||||||||||||||||||||||
711 | return executed 16 times by 1 test: e;return e; Executed by:
executed 16 times by 1 test: return e; Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||
712 | - | |||||||||||||||||||||||||||||||||||||
713 | - | |||||||||||||||||||||||||||||||||||||
714 | if ((
| 68-451 | ||||||||||||||||||||||||||||||||||||
715 | (__extension__ (__builtin_constant_p (
| 0-519 | ||||||||||||||||||||||||||||||||||||
716 | decimal_point_length
| 0-519 | ||||||||||||||||||||||||||||||||||||
717 | )
| 0-519 | ||||||||||||||||||||||||||||||||||||
718 | *endptr
| 0-451 | ||||||||||||||||||||||||||||||||||||
719 | )
| 0-451 | ||||||||||||||||||||||||||||||||||||
720 | *endptr
| 0-451 | ||||||||||||||||||||||||||||||||||||
721 | ) < ((size_t) (
| 0-451 | ||||||||||||||||||||||||||||||||||||
722 | decimal_point_length
| 0-451 | ||||||||||||||||||||||||||||||||||||
723 | ))
| 0-451 | ||||||||||||||||||||||||||||||||||||
724 | decimal_point
| 0-451 | ||||||||||||||||||||||||||||||||||||
725 | )
| 0-451 | ||||||||||||||||||||||||||||||||||||
726 | decimal_point
| 0-451 | ||||||||||||||||||||||||||||||||||||
727 | ) < ((size_t) (
| 0-451 | ||||||||||||||||||||||||||||||||||||
728 | decimal_point_length
| 0-451 | ||||||||||||||||||||||||||||||||||||
729 | ))
| 0-451 | ||||||||||||||||||||||||||||||||||||
730 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
731 | ) && __builtin_constant_p (
| 68-451 | ||||||||||||||||||||||||||||||||||||
732 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
733 | ) && (__s1_len = __builtin_strlen (
| 68-451 | ||||||||||||||||||||||||||||||||||||
734 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
735 | ), __s2_len = __builtin_strlen (
| 68-451 | ||||||||||||||||||||||||||||||||||||
736 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
737 | ), (!((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
738 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
739 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
740 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
741 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
742 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
743 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
744 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
745 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 68-451 | ||||||||||||||||||||||||||||||||||||
746 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
747 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
748 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
749 | ) : (__builtin_constant_p (
| 68-451 | ||||||||||||||||||||||||||||||||||||
750 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
751 | ) && ((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
752 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
753 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
754 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
755 | ) == 1) && (__s1_len = __builtin_strlen (
| 68-451 | ||||||||||||||||||||||||||||||||||||
756 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
757 | ), __s1_len < 4) ? (__builtin_constant_p (
| 68-451 | ||||||||||||||||||||||||||||||||||||
758 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
759 | ) && ((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
760 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
761 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
762 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
763 | ) == 1) ? __builtin_strcmp (
| 68-451 | ||||||||||||||||||||||||||||||||||||
764 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
765 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
766 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
767 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 68-451 | ||||||||||||||||||||||||||||||||||||
768 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
769 | ); int __result = (((const unsigned char *) (const char *) (
| 68-451 | ||||||||||||||||||||||||||||||||||||
770 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
771 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-451 | ||||||||||||||||||||||||||||||||||||
772 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
773 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-451 | ||||||||||||||||||||||||||||||||||||
774 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
775 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]);
| 0-451 | ||||||||||||||||||||||||||||||||||||
776 | *endptr
never executed: __result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]); | 0-451 | ||||||||||||||||||||||||||||||||||||
777 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( *endptr ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-451 | ||||||||||||||||||||||||||||||||||||
778 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
779 | ) && ((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
780 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
781 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
782 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
783 | ) == 1) && (__s2_len = __builtin_strlen (
| 68-451 | ||||||||||||||||||||||||||||||||||||
784 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
785 | ), __s2_len < 4) ? (__builtin_constant_p (
| 68-451 | ||||||||||||||||||||||||||||||||||||
786 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
787 | ) && ((size_t)(const void *)((
| 68-451 | ||||||||||||||||||||||||||||||||||||
788 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
789 | ) + 1) - (size_t)(const void *)(
| 68-451 | ||||||||||||||||||||||||||||||||||||
790 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
791 | ) == 1) ? __builtin_strcmp (
| 68-451 | ||||||||||||||||||||||||||||||||||||
792 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
793 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
794 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
795 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 68-451 | ||||||||||||||||||||||||||||||||||||
796 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
797 | ); int __result = (((const unsigned char *) (const char *) (
| 68-451 | ||||||||||||||||||||||||||||||||||||
798 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
799 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-451 | ||||||||||||||||||||||||||||||||||||
800 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
801 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-451 | ||||||||||||||||||||||||||||||||||||
802 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
803 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]);
| 0-451 | ||||||||||||||||||||||||||||||||||||
804 | decimal_point
never executed: __result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]); | 0-451 | ||||||||||||||||||||||||||||||||||||
805 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( decimal_point ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-451 | ||||||||||||||||||||||||||||||||||||
806 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
807 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
808 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
809 | )))); }) : strncmp (
| 68-451 | ||||||||||||||||||||||||||||||||||||
810 | *endptr
| 68-451 | ||||||||||||||||||||||||||||||||||||
811 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
812 | decimal_point
| 68-451 | ||||||||||||||||||||||||||||||||||||
813 | ,
| 68-451 | ||||||||||||||||||||||||||||||||||||
814 | decimal_point_length
| 68-451 | ||||||||||||||||||||||||||||||||||||
815 | )))
| 68-451 | ||||||||||||||||||||||||||||||||||||
816 | == 0)
| 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
| 1-62 | ||||||||||||||||||||||||||||||||||||
828 | return executed 5 times by 1 test: e2;return e2; Executed by:
executed 5 times by 1 test: return e2; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
829 | if (e2 == SSE_OK_PRECISION_LOSS
| 1-62 | ||||||||||||||||||||||||||||||||||||
830 | e = e2; executed 1 time by 1 test: e = e2; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
831 | if (neg_frac
| 1-62 | ||||||||||||||||||||||||||||||||||||
832 | return executed 1 time by 1 test: SSE_INVALID_NUMBER;return SSE_INVALID_NUMBER; Executed by:
executed 1 time by 1 test: return SSE_INVALID_NUMBER; Executed by:
| 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
| 0-62 | ||||||||||||||||||||||||||||||||||||
842 | { | - | ||||||||||||||||||||||||||||||||||||
843 | if (negative
| 21-41 | ||||||||||||||||||||||||||||||||||||
844 | * executed 21 times by 1 test: value -= val_frac;*value -= val_frac; Executed by:
executed 21 times by 1 test: *value -= val_frac; Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||
845 | else | - | ||||||||||||||||||||||||||||||||||||
846 | * executed 41 times by 1 test: value += val_frac;*value += val_frac; Executed by:
executed 41 times by 1 test: *value += val_frac; Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||
847 | } | - | ||||||||||||||||||||||||||||||||||||
848 | - | |||||||||||||||||||||||||||||||||||||
849 | if (precision
| 0-62 | ||||||||||||||||||||||||||||||||||||
850 | * executed 62 times by 1 test: precision = exponent;*precision = exponent; Executed by:
executed 62 times by 1 test: *precision = exponent; Executed by:
| 62 | ||||||||||||||||||||||||||||||||||||
851 | - | |||||||||||||||||||||||||||||||||||||
852 | *endptr = ptr2; | - | ||||||||||||||||||||||||||||||||||||
853 | } executed 62 times by 1 test: end of block Executed by:
| 62 | ||||||||||||||||||||||||||||||||||||
854 | return executed 513 times by 1 test: e;return e; Executed by:
executed 513 times by 1 test: return e; Executed by:
| 513 | ||||||||||||||||||||||||||||||||||||
855 | } | - | ||||||||||||||||||||||||||||||||||||
856 | static enum simple_strtod_error | - | ||||||||||||||||||||||||||||||||||||
857 | simple_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
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:
| 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:
| 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: } while (0)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:
| 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
| 17-496 | ||||||||||||||||||||||||||||||||||||
877 | return executed 22 times by 1 test: e;return e; Executed by:
executed 22 times by 1 test: return e; Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||
878 | - | |||||||||||||||||||||||||||||||||||||
879 | do { if (dev_debug
executed 11 times by 1 test: fprintf ( stderr , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision); Executed by:
| 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:
| 11 | ||||||||||||||||||||||||||||||||||||
881 | , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision); executed 11 times by 1 test: } while (0)fprintf ( stderr , " parsed numeric value: %Lf\n" " input precision = %d\n", *value, (int)*precision); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
882 | ; | - | ||||||||||||||||||||||||||||||||||||
883 | - | |||||||||||||||||||||||||||||||||||||
884 | if (**
| 180-333 | ||||||||||||||||||||||||||||||||||||
885 | { | - | ||||||||||||||||||||||||||||||||||||
886 | - | |||||||||||||||||||||||||||||||||||||
887 | - | |||||||||||||||||||||||||||||||||||||
888 | - | |||||||||||||||||||||||||||||||||||||
889 | while ( | - | ||||||||||||||||||||||||||||||||||||
890 | ((*
| 2-180 | ||||||||||||||||||||||||||||||||||||
891 | to_uchar (**endptr)
| 2-180 | ||||||||||||||||||||||||||||||||||||
892 | ))] & (unsigned short int) _ISblank)
| 2-180 | ||||||||||||||||||||||||||||||||||||
893 | ) | - | ||||||||||||||||||||||||||||||||||||
894 | (* executed 2 times by 1 test: endptr)++;(*endptr)++; Executed by:
executed 2 times by 1 test: (*endptr)++; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
895 | - | |||||||||||||||||||||||||||||||||||||
896 | if (!valid_suffix (**endptr)
| 54-126 | ||||||||||||||||||||||||||||||||||||
897 | return executed 54 times by 1 test: SSE_INVALID_SUFFIX;return SSE_INVALID_SUFFIX; Executed by:
executed 54 times by 1 test: return SSE_INVALID_SUFFIX; Executed by:
| 54 | ||||||||||||||||||||||||||||||||||||
898 | - | |||||||||||||||||||||||||||||||||||||
899 | if (allowed_scaling == scale_none
| 4-122 | ||||||||||||||||||||||||||||||||||||
900 | return executed 4 times by 1 test: SSE_VALID_BUT_FORBIDDEN_SUFFIX;return SSE_VALID_BUT_FORBIDDEN_SUFFIX; Executed by:
executed 4 times by 1 test: return SSE_VALID_BUT_FORBIDDEN_SUFFIX; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
901 | - | |||||||||||||||||||||||||||||||||||||
902 | power = suffix_power (**endptr); | - | ||||||||||||||||||||||||||||||||||||
903 | (*endptr)++; | - | ||||||||||||||||||||||||||||||||||||
904 | - | |||||||||||||||||||||||||||||||||||||
905 | if (allowed_scaling == scale_auto
| 12-97 | ||||||||||||||||||||||||||||||||||||
906 | { | - | ||||||||||||||||||||||||||||||||||||
907 | - | |||||||||||||||||||||||||||||||||||||
908 | - | |||||||||||||||||||||||||||||||||||||
909 | scale_base = 1024; | - | ||||||||||||||||||||||||||||||||||||
910 | (*endptr)++; | - | ||||||||||||||||||||||||||||||||||||
911 | do { if (dev_debug
executed 1 time by 1 test: fprintf ( stderr , " Auto-scaling, found 'i', switching to base %d\n", scale_base); Executed by:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
913 | , " Auto-scaling, found 'i', switching to base %d\n", scale_base); executed 1 time by 1 test: } while (0)fprintf ( stderr , " Auto-scaling, found 'i', switching to base %d\n", scale_base); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
914 | ; | - | ||||||||||||||||||||||||||||||||||||
915 | } executed 13 times by 1 test: end of block Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||
916 | - | |||||||||||||||||||||||||||||||||||||
917 | *precision = 0; | - | ||||||||||||||||||||||||||||||||||||
918 | } executed 122 times by 1 test: end of block Executed by:
| 122 | ||||||||||||||||||||||||||||||||||||
919 | - | |||||||||||||||||||||||||||||||||||||
920 | if (allowed_scaling == scale_IEC_I
| 11-444 | ||||||||||||||||||||||||||||||||||||
921 | { | - | ||||||||||||||||||||||||||||||||||||
922 | if (**
| 2-9 | ||||||||||||||||||||||||||||||||||||
923 | (* executed 9 times by 1 test: endptr)++;(*endptr)++; Executed by:
executed 9 times by 1 test: (*endptr)++; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
924 | else | - | ||||||||||||||||||||||||||||||||||||
925 | return executed 2 times by 1 test: SSE_MISSING_I_SUFFIX;return SSE_MISSING_I_SUFFIX; Executed by:
executed 2 times by 1 test: return SSE_MISSING_I_SUFFIX; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
926 | } | - | ||||||||||||||||||||||||||||||||||||
927 | - | |||||||||||||||||||||||||||||||||||||
928 | long double multiplier = powerld (scale_base, power); | - | ||||||||||||||||||||||||||||||||||||
929 | - | |||||||||||||||||||||||||||||||||||||
930 | do { if (dev_debug
executed 11 times by 1 test: fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier); Executed by:
| 11-442 | ||||||||||||||||||||||||||||||||||||
931 | stderr executed 11 times by 1 test: fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
932 | , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier); executed 11 times by 1 test: } while (0);fprintf ( stderr , " suffix power=%d^%d = %Lf\n", scale_base, power, multiplier); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
933 | - | |||||||||||||||||||||||||||||||||||||
934 | - | |||||||||||||||||||||||||||||||||||||
935 | (*value) = (*value) * multiplier; | - | ||||||||||||||||||||||||||||||||||||
936 | - | |||||||||||||||||||||||||||||||||||||
937 | do { if (dev_debug
executed 11 times by 1 test: fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value); Executed by:
| 11-442 | ||||||||||||||||||||||||||||||||||||
938 | stderr executed 11 times by 1 test: fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
939 | , " returning value: %Lf (%LG)\n", *value, *value); executed 11 times by 1 test: } while (0);fprintf ( stderr , " returning value: %Lf (%LG)\n", *value, *value); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
940 | - | |||||||||||||||||||||||||||||||||||||
941 | return executed 453 times by 1 test: e;return e; Executed by:
executed 453 times by 1 test: return e; Executed by:
| 453 | ||||||||||||||||||||||||||||||||||||
942 | } | - | ||||||||||||||||||||||||||||||||||||
943 | - | |||||||||||||||||||||||||||||||||||||
944 | - | |||||||||||||||||||||||||||||||||||||
945 | static void | - | ||||||||||||||||||||||||||||||||||||
946 | simple_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: SSE_OK_PRECISION_LOSS:case SSE_OK_PRECISION_LOSS: never executed: case SSE_OK_PRECISION_LOSS: | 0 | ||||||||||||||||||||||||||||||||||||
955 | case never executed: SSE_OK:case 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:
code before this statement never executed: case SSE_OVERFLOW: executed 4 times by 1 test: SSE_OVERFLOW:case SSE_OVERFLOW: Executed by:
code before this statement never executed: case SSE_OVERFLOW: executed 4 times by 1 test: case SSE_OVERFLOW: Executed by:
| 0-4 | ||||||||||||||||||||||||||||||||||||
960 | msgid = "value too large to be converted: %s"; | - | ||||||||||||||||||||||||||||||||||||
961 | break; executed 4 times by 1 test: break; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
962 | - | |||||||||||||||||||||||||||||||||||||
963 | case executed 18 times by 1 test: SSE_INVALID_NUMBER:case SSE_INVALID_NUMBER: Executed by:
executed 18 times by 1 test: case SSE_INVALID_NUMBER: Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||
964 | msgid = "invalid number: %s"; | - | ||||||||||||||||||||||||||||||||||||
965 | break; executed 18 times by 1 test: break; Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||
966 | - | |||||||||||||||||||||||||||||||||||||
967 | case executed 4 times by 1 test: SSE_VALID_BUT_FORBIDDEN_SUFFIX:case SSE_VALID_BUT_FORBIDDEN_SUFFIX: Executed by:
executed 4 times by 1 test: case SSE_VALID_BUT_FORBIDDEN_SUFFIX: Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
968 | msgid = "rejecting suffix in input: %s (consider using --from)"; | - | ||||||||||||||||||||||||||||||||||||
969 | break; executed 4 times by 1 test: break; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
970 | - | |||||||||||||||||||||||||||||||||||||
971 | case executed 54 times by 1 test: SSE_INVALID_SUFFIX:case SSE_INVALID_SUFFIX: Executed by:
executed 54 times by 1 test: case SSE_INVALID_SUFFIX: Executed by:
| 54 | ||||||||||||||||||||||||||||||||||||
972 | msgid = "invalid suffix in input: %s"; | - | ||||||||||||||||||||||||||||||||||||
973 | break; executed 54 times by 1 test: break; Executed by:
| 54 | ||||||||||||||||||||||||||||||||||||
974 | - | |||||||||||||||||||||||||||||||||||||
975 | case executed 2 times by 1 test: SSE_MISSING_I_SUFFIX:case SSE_MISSING_I_SUFFIX: Executed by:
executed 2 times by 1 test: case SSE_MISSING_I_SUFFIX: Executed by:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
978 | - | |||||||||||||||||||||||||||||||||||||
979 | } | - | ||||||||||||||||||||||||||||||||||||
980 | - | |||||||||||||||||||||||||||||||||||||
981 | if (inval_style != inval_ignore
| 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:
| 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:
| 80 | ||||||||||||||||||||||||||||||||||||
984 | msgid executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str)); Executed by:
| 80 | ||||||||||||||||||||||||||||||||||||
985 | , 5) executed 80 times by 1 test: error (conv_exit_code, 0, dcgettext (((void *)0), msgid , 5) , quote (input_str)); Executed by:
| 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:
| 80 | ||||||||||||||||||||||||||||||||||||
987 | } executed 15 times by 1 test: end of block Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
988 | - | |||||||||||||||||||||||||||||||||||||
989 | - | |||||||||||||||||||||||||||||||||||||
990 | static void | - | ||||||||||||||||||||||||||||||||||||
991 | double_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
| 8-428 | ||||||||||||||||||||||||||||||||||||
1005 | * executed 8 times by 1 test: pfmt++ = '\'';*pfmt++ = '\''; Executed by:
executed 8 times by 1 test: *pfmt++ = '\''; Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
1006 | - | |||||||||||||||||||||||||||||||||||||
1007 | if (zero_padding_width
| 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:
| 4 | ||||||||||||||||||||||||||||||||||||
1009 | - | |||||||||||||||||||||||||||||||||||||
1010 | do { if (dev_debug
executed 11 times by 1 test: fprintf ( stderr , "double_to_human:\n"); Executed by:
| 11-425 | ||||||||||||||||||||||||||||||||||||
1011 | stderr executed 11 times by 1 test: fprintf ( stderr , "double_to_human:\n"); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1012 | , "double_to_human:\n"); executed 11 times by 1 test: } while (0);fprintf ( stderr , "double_to_human:\n"); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1013 | - | |||||||||||||||||||||||||||||||||||||
1014 | if (scale == scale_none
| 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
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:
| 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:
| 9 | ||||||||||||||||||||||||||||||||||||
1022 | , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val); executed 9 times by 1 test: } while (0)fprintf ( stderr , (group) ? " no scaling, returning (grouped) value: %'.*Lf\n" : " no scaling, returning value: %.*Lf\n", precision, val); Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
1023 | - | |||||||||||||||||||||||||||||||||||||
1024 | ; | - | ||||||||||||||||||||||||||||||||||||
1025 | - | |||||||||||||||||||||||||||||||||||||
1026 | stpcpy (pfmt, ".*Lf"); | - | ||||||||||||||||||||||||||||||||||||
1027 | - | |||||||||||||||||||||||||||||||||||||
1028 | num_size = snprintf (buf, buf_size, fmt, precision, val); | - | ||||||||||||||||||||||||||||||||||||
1029 | if (num_size < 0
| 0-155 | ||||||||||||||||||||||||||||||||||||
1030 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ; 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:
| 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
executed 2 times by 1 test: fprintf ( stderr , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power); Executed by:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
1061 | , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power); executed 2 times by 1 test: } while (0);fprintf ( stderr , " scaled value to %Lf * %0.f ^ %u\n", val, scale_base, power); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1062 | - | |||||||||||||||||||||||||||||||||||||
1063 | - | |||||||||||||||||||||||||||||||||||||
1064 | unsigned int power_adjust = 0; | - | ||||||||||||||||||||||||||||||||||||
1065 | if (user_precision != -1
| 2-279 | ||||||||||||||||||||||||||||||||||||
1066 | power_adjust = executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1067 | (((
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||
1068 | power * 3
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||
1069 | )<(
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||
1070 | user_precision
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||
1071 | ))
executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||
1072 | power * 3 executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1073 | ):( executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1074 | user_precision executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1075 | )) executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1076 | ; executed 2 times by 1 test: power_adjust = ((( power * 3 )<( user_precision ))?( power * 3 ):( user_precision )) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1077 | else if (absld (val) < 10
| 58-221 | ||||||||||||||||||||||||||||||||||||
1078 | { | - | ||||||||||||||||||||||||||||||||||||
1079 | - | |||||||||||||||||||||||||||||||||||||
1080 | - | |||||||||||||||||||||||||||||||||||||
1081 | power_adjust = 1; | - | ||||||||||||||||||||||||||||||||||||
1082 | } executed 221 times by 1 test: end of block Executed by:
| 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
| 1-280 | ||||||||||||||||||||||||||||||||||||
1092 | { | - | ||||||||||||||||||||||||||||||||||||
1093 | val /= scale_base; | - | ||||||||||||||||||||||||||||||||||||
1094 | power++; | - | ||||||||||||||||||||||||||||||||||||
1095 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
1096 | - | |||||||||||||||||||||||||||||||||||||
1097 | - | |||||||||||||||||||||||||||||||||||||
1098 | - | |||||||||||||||||||||||||||||||||||||
1099 | int show_decimal_point = (
| 1-278 | ||||||||||||||||||||||||||||||||||||
1100 | - | |||||||||||||||||||||||||||||||||||||
1101 | - | |||||||||||||||||||||||||||||||||||||
1102 | do { if (dev_debug
executed 2 times by 1 test: fprintf ( stderr , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power); Executed by:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
1104 | , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power); executed 2 times by 1 test: } while (0);fprintf ( stderr , " after rounding, value=%Lf * %0.f ^ %u\n", val, scale_base, power); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1105 | - | |||||||||||||||||||||||||||||||||||||
1106 | stpcpy (pfmt, ".*Lf%s"); | - | ||||||||||||||||||||||||||||||||||||
1107 | - | |||||||||||||||||||||||||||||||||||||
1108 | int prec = user_precision == -1
| 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
| 0-281 | ||||||||||||||||||||||||||||||||||||
1114 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ; 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
| 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:
| 10 | ||||||||||||||||||||||||||||||||||||
1137 | - | |||||||||||||||||||||||||||||||||||||
1138 | do { if (dev_debug
executed 2 times by 1 test: fprintf ( stderr , " returning value: %s\n", quote (buf)); Executed by:
| 2-279 | ||||||||||||||||||||||||||||||||||||
1139 | stderr executed 2 times by 1 test: fprintf ( stderr , " returning value: %s\n", quote (buf)); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1140 | , " returning value: %s\n", quote (buf)); executed 2 times by 1 test: } while (0);fprintf ( stderr , " returning value: %s\n", quote (buf)); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1141 | - | |||||||||||||||||||||||||||||||||||||
1142 | return; executed 281 times by 1 test: return; Executed by:
| 281 | ||||||||||||||||||||||||||||||||||||
1143 | } | - | ||||||||||||||||||||||||||||||||||||
1144 | - | |||||||||||||||||||||||||||||||||||||
1145 | - | |||||||||||||||||||||||||||||||||||||
1146 | - | |||||||||||||||||||||||||||||||||||||
1147 | - | |||||||||||||||||||||||||||||||||||||
1148 | - | |||||||||||||||||||||||||||||||||||||
1149 | static uintmax_t | - | ||||||||||||||||||||||||||||||||||||
1150 | unit_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
| 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 (*
| 1-7 | ||||||||||||||||||||||||||||||||||||
1172 | * executed 1 time by 1 test: end = '\0';*end = '\0'; Executed by:
executed 1 time by 1 test: *end = '\0'; Executed by:
| 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:
| 9 | ||||||||||||||||||||||||||||||||||||
1179 | - | |||||||||||||||||||||||||||||||||||||
1180 | c_string = t_string; | - | ||||||||||||||||||||||||||||||||||||
1181 | } executed 10 times by 1 test: end of block Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
1182 | - | |||||||||||||||||||||||||||||||||||||
1183 | s_err = xstrtoumax (c_string, &end, 10, &n, suffixes); | - | ||||||||||||||||||||||||||||||||||||
1184 | - | |||||||||||||||||||||||||||||||||||||
1185 | if (s_err != LONGINT_OK
| 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: n;return n; Executed by:
executed 36 times by 1 test: return n; Executed by:
| 36 | ||||||||||||||||||||||||||||||||||||
1212 | } | - | ||||||||||||||||||||||||||||||||||||
1213 | - | |||||||||||||||||||||||||||||||||||||
1214 | - | |||||||||||||||||||||||||||||||||||||
1215 | static void | - | ||||||||||||||||||||||||||||||||||||
1216 | setup_padding_buffer (size_t min_size) | - | ||||||||||||||||||||||||||||||||||||
1217 | { | - | ||||||||||||||||||||||||||||||||||||
1218 | if (padding_buffer_size > min_size
| 132-790 | ||||||||||||||||||||||||||||||||||||
1219 | return; executed 132 times by 1 test: return; Executed by:
| 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:
| 790 | ||||||||||||||||||||||||||||||||||||
1224 | - | |||||||||||||||||||||||||||||||||||||
1225 | void | - | ||||||||||||||||||||||||||||||||||||
1226 | usage (int status) | - | ||||||||||||||||||||||||||||||||||||
1227 | { | - | ||||||||||||||||||||||||||||||||||||
1228 | if (status !=
| 10-17 | ||||||||||||||||||||||||||||||||||||
1229 | 0
| 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: while (0);end of block Executed by:
| 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:
| 10 | ||||||||||||||||||||||||||||||||||||
1537 | exit (status); executed 27 times by 1 test: exit (status); Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||
1538 | } | - | ||||||||||||||||||||||||||||||||||||
1539 | static void | - | ||||||||||||||||||||||||||||||||||||
1540 | parse_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] == '%'
| 1-39 | ||||||||||||||||||||||||||||||||||||
1556 | { | - | ||||||||||||||||||||||||||||||||||||
1557 | if (!fmt[i]
| 2-32 | ||||||||||||||||||||||||||||||||||||
1558 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
1578 | prefix_len++; | - | ||||||||||||||||||||||||||||||||||||
1579 | } executed 32 times by 1 test: end of block Executed by:
| 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] == '\''
| 6-45 | ||||||||||||||||||||||||||||||||||||
1595 | { | - | ||||||||||||||||||||||||||||||||||||
1596 | grouping = 1; | - | ||||||||||||||||||||||||||||||||||||
1597 | i++; | - | ||||||||||||||||||||||||||||||||||||
1598 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
1599 | else if (fmt[i] == '0'
| 4-41 | ||||||||||||||||||||||||||||||||||||
1600 | { | - | ||||||||||||||||||||||||||||||||||||
1601 | zero_padding = | - | ||||||||||||||||||||||||||||||||||||
1602 | 1 | - | ||||||||||||||||||||||||||||||||||||
1603 | ; | - | ||||||||||||||||||||||||||||||||||||
1604 | i++; | - | ||||||||||||||||||||||||||||||||||||
1605 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
1606 | else if (! skip
| 3-38 | ||||||||||||||||||||||||||||||||||||
1607 | break; executed 38 times by 1 test: break; Executed by:
| 38 | ||||||||||||||||||||||||||||||||||||
1608 | } executed 13 times by 1 test: end of block Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||
1609 | - | |||||||||||||||||||||||||||||||||||||
1610 | - | |||||||||||||||||||||||||||||||||||||
1611 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||
1612 | = 0; | - | ||||||||||||||||||||||||||||||||||||
1613 | pad = strtol (fmt + i, &endptr, 10); | - | ||||||||||||||||||||||||||||||||||||
1614 | if ( | - | ||||||||||||||||||||||||||||||||||||
1615 | (*
| 1-37 | ||||||||||||||||||||||||||||||||||||
1616 | ==
| 1-37 | ||||||||||||||||||||||||||||||||||||
1617 | 34
| 1-37 | ||||||||||||||||||||||||||||||||||||
1618 | ) | - | ||||||||||||||||||||||||||||||||||||
1619 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
1639 | - | |||||||||||||||||||||||||||||||||||||
1640 | if (endptr != (fmt + i)
| 0-20 | ||||||||||||||||||||||||||||||||||||
1641 | { | - | ||||||||||||||||||||||||||||||||||||
1642 | if (debug
| 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
| 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:
| 6 | ||||||||||||||||||||||||||||||||||||
1654 | else | - | ||||||||||||||||||||||||||||||||||||
1655 | { | - | ||||||||||||||||||||||||||||||||||||
1656 | if (zero_padding
| 4-7 | ||||||||||||||||||||||||||||||||||||
1657 | zero_padding_width = pad; executed 4 times by 1 test: zero_padding_width = pad; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
1658 | else | - | ||||||||||||||||||||||||||||||||||||
1659 | padding_width = pad; executed 7 times by 1 test: padding_width = pad; Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
1660 | } | - | ||||||||||||||||||||||||||||||||||||
1661 | - | |||||||||||||||||||||||||||||||||||||
1662 | } | - | ||||||||||||||||||||||||||||||||||||
1663 | i = endptr - fmt; | - | ||||||||||||||||||||||||||||||||||||
1664 | - | |||||||||||||||||||||||||||||||||||||
1665 | if (fmt[i] == '\0'
| 1-36 | ||||||||||||||||||||||||||||||||||||
1666 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
1685 | - | |||||||||||||||||||||||||||||||||||||
1686 | if (fmt[i] == '.'
| 9-27 | ||||||||||||||||||||||||||||||||||||
1687 | { | - | ||||||||||||||||||||||||||||||||||||
1688 | i++; | - | ||||||||||||||||||||||||||||||||||||
1689 | - | |||||||||||||||||||||||||||||||||||||
1690 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||
1691 | = 0; | - | ||||||||||||||||||||||||||||||||||||
1692 | user_precision = strtol (fmt + i, &endptr, 10); | - | ||||||||||||||||||||||||||||||||||||
1693 | if ( | - | ||||||||||||||||||||||||||||||||||||
1694 | (*
| 0-9 | ||||||||||||||||||||||||||||||||||||
1695 | ==
| 0-9 | ||||||||||||||||||||||||||||||||||||
1696 | 34
| 0-9 | ||||||||||||||||||||||||||||||||||||
1697 | || user_precision < 0
| 1-8 | ||||||||||||||||||||||||||||||||||||
1698 | (
| 0-8 | ||||||||||||||||||||||||||||||||||||
1699 | < user_precision
| 0-8 | ||||||||||||||||||||||||||||||||||||
1700 | || | - | ||||||||||||||||||||||||||||||||||||
1701 | ((*
| 1-7 | ||||||||||||||||||||||||||||||||||||
1702 | fmt[i]
| 1-7 | ||||||||||||||||||||||||||||||||||||
1703 | ))] & (unsigned short int) _ISblank)
| 1-7 | ||||||||||||||||||||||||||||||||||||
1704 | || fmt[i] == '+'
| 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:
| 6 | ||||||||||||||||||||||||||||||||||||
1734 | - | |||||||||||||||||||||||||||||||||||||
1735 | if (fmt[i] != 'f'
| 2-31 | ||||||||||||||||||||||||||||||||||||
1736 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
1755 | 2 | |||||||||||||||||||||||||||||||||||||
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:
| 2 | ||||||||||||||||||||||||||||||||||||
1757 | i++; | - | ||||||||||||||||||||||||||||||||||||
1758 | suffix_pos = i; | - | ||||||||||||||||||||||||||||||||||||
1759 | - | |||||||||||||||||||||||||||||||||||||
1760 | for (; fmt[i] != '\0'
| 24-30 | ||||||||||||||||||||||||||||||||||||
1761 | if (fmt[i] == '%'
| 1-22 | ||||||||||||||||||||||||||||||||||||
1762 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
1782 | - | |||||||||||||||||||||||||||||||||||||
1783 | if (prefix_len
| 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:
| 11 | ||||||||||||||||||||||||||||||||||||
1785 | if (fmt[suffix_pos] != '\0'
| 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:
| 11 | ||||||||||||||||||||||||||||||||||||
1787 | - | |||||||||||||||||||||||||||||||||||||
1788 | do { if (dev_debug
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:
| 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:
| 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: } while (0)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:
| 2 | ||||||||||||||||||||||||||||||||||||
1791 | - | |||||||||||||||||||||||||||||||||||||
1792 | - | |||||||||||||||||||||||||||||||||||||
1793 | - | |||||||||||||||||||||||||||||||||||||
1794 | - | |||||||||||||||||||||||||||||||||||||
1795 | - | |||||||||||||||||||||||||||||||||||||
1796 | - | |||||||||||||||||||||||||||||||||||||
1797 | ; | - | ||||||||||||||||||||||||||||||||||||
1798 | } executed 30 times by 1 test: end of block Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||
1799 | static enum simple_strtod_error | - | ||||||||||||||||||||||||||||||||||||
1800 | parse_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
| 17-436 | ||||||||||||||||||||||||||||||||||||
1810 | { | - | ||||||||||||||||||||||||||||||||||||
1811 | simple_strtod_fatal (e, str); | - | ||||||||||||||||||||||||||||||||||||
1812 | return executed 15 times by 1 test: e;return e; Executed by:
executed 15 times by 1 test: return e; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
1813 | } | - | ||||||||||||||||||||||||||||||||||||
1814 | - | |||||||||||||||||||||||||||||||||||||
1815 | if (ptr
| 0-453 | ||||||||||||||||||||||||||||||||||||
1816 | { | - | ||||||||||||||||||||||||||||||||||||
1817 | if (inval_style != inval_ignore
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 3 | ||||||||||||||||||||||||||||||||||||
1824 | e = SSE_INVALID_SUFFIX; | - | ||||||||||||||||||||||||||||||||||||
1825 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
1826 | return executed 451 times by 1 test: e;return e; Executed by:
executed 451 times by 1 test: return e; Executed by:
| 451 | ||||||||||||||||||||||||||||||||||||
1827 | } | - | ||||||||||||||||||||||||||||||||||||
1828 | - | |||||||||||||||||||||||||||||||||||||
1829 | - | |||||||||||||||||||||||||||||||||||||
1830 | - | |||||||||||||||||||||||||||||||||||||
1831 | - | |||||||||||||||||||||||||||||||||||||
1832 | static int | - | ||||||||||||||||||||||||||||||||||||
1833 | prepare_padded_number (const long double val, size_t precision) | - | ||||||||||||||||||||||||||||||||||||
1834 | { | - | ||||||||||||||||||||||||||||||||||||
1835 | - | |||||||||||||||||||||||||||||||||||||
1836 | char buf[128]; | - | ||||||||||||||||||||||||||||||||||||
1837 | - | |||||||||||||||||||||||||||||||||||||
1838 | size_t precision_used = user_precision == -1
| 6-444 | ||||||||||||||||||||||||||||||||||||
1839 | - | |||||||||||||||||||||||||||||||||||||
1840 | - | |||||||||||||||||||||||||||||||||||||
1841 | unsigned int x; | - | ||||||||||||||||||||||||||||||||||||
1842 | expld (val, 10, &x); | - | ||||||||||||||||||||||||||||||||||||
1843 | - | |||||||||||||||||||||||||||||||||||||
1844 | if (scale_to == scale_none
| 167-283 | ||||||||||||||||||||||||||||||||||||
1845 | && x + precision_used > MAX_UNSCALED_DIGITS
| 12-155 | ||||||||||||||||||||||||||||||||||||
1846 | { | - | ||||||||||||||||||||||||||||||||||||
1847 | if (inval_style != inval_ignore
| 0-12 | ||||||||||||||||||||||||||||||||||||
1848 | { | - | ||||||||||||||||||||||||||||||||||||
1849 | if (precision_used
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 11 | ||||||||||||||||||||||||||||||||||||
1867 | } | - | ||||||||||||||||||||||||||||||||||||
1868 | return executed 1 time by 1 test: 0;return 0; Executed by:
executed 1 time by 1 test: return 0; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
1869 | } | - | ||||||||||||||||||||||||||||||||||||
1870 | - | |||||||||||||||||||||||||||||||||||||
1871 | if (x > MAX_ACCEPTABLE_DIGITS - 1
| 2-436 | ||||||||||||||||||||||||||||||||||||
1872 | { | - | ||||||||||||||||||||||||||||||||||||
1873 | if (inval_style != inval_ignore
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
1880 | return never executed: 0;return 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
| 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:
| 22 | ||||||||||||||||||||||||||||||||||||
1887 | - | |||||||||||||||||||||||||||||||||||||
1888 | do { if (dev_debug
executed 11 times by 1 test: fprintf ( stderr , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf)); Executed by:
| 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:
| 11 | ||||||||||||||||||||||||||||||||||||
1890 | , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf)); executed 11 times by 1 test: } while (0)fprintf ( stderr , "formatting output:\n value: %Lf\n humanized: %s\n", val, quote (buf)); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1891 | ; | - | ||||||||||||||||||||||||||||||||||||
1892 | - | |||||||||||||||||||||||||||||||||||||
1893 | if (padding_width
| 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
executed 2 times by 1 test: fprintf ( stderr , " After padding: %s\n", quote (padding_buffer)); Executed by:
| 2-29 | ||||||||||||||||||||||||||||||||||||
1900 | stderr executed 2 times by 1 test: fprintf ( stderr , " After padding: %s\n", quote (padding_buffer)); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1901 | , " After padding: %s\n", quote (padding_buffer)); executed 2 times by 1 test: } while (0);fprintf ( stderr , " After padding: %s\n", quote (padding_buffer)); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
1902 | } executed 31 times by 1 test: end of block Executed by:
| 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:
| 405 | ||||||||||||||||||||||||||||||||||||
1908 | - | |||||||||||||||||||||||||||||||||||||
1909 | return executed 436 times by 1 test: 1;return 1; Executed by:
executed 436 times by 1 test: return 1; Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
1910 | } | - | ||||||||||||||||||||||||||||||||||||
1911 | - | |||||||||||||||||||||||||||||||||||||
1912 | static void | - | ||||||||||||||||||||||||||||||||||||
1913 | print_padded_number (void) | - | ||||||||||||||||||||||||||||||||||||
1914 | { | - | ||||||||||||||||||||||||||||||||||||
1915 | if (format_str_prefix
| 11-425 | ||||||||||||||||||||||||||||||||||||
1916 | fputs_unlocked (format_str_prefix, executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1917 | stdout executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1918 | ); executed 11 times by 1 test: fputs_unlocked (format_str_prefix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1919 | - | |||||||||||||||||||||||||||||||||||||
1920 | fputs_unlocked (padding_buffer, | - | ||||||||||||||||||||||||||||||||||||
1921 | stdout | - | ||||||||||||||||||||||||||||||||||||
1922 | ); | - | ||||||||||||||||||||||||||||||||||||
1923 | - | |||||||||||||||||||||||||||||||||||||
1924 | if (format_str_suffix
| 11-425 | ||||||||||||||||||||||||||||||||||||
1925 | fputs_unlocked (format_str_suffix, executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1926 | stdout executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1927 | ); executed 11 times by 1 test: fputs_unlocked (format_str_suffix, stdout ); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
1928 | } executed 436 times by 1 test: end of block Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
1929 | - | |||||||||||||||||||||||||||||||||||||
1930 | - | |||||||||||||||||||||||||||||||||||||
1931 | - | |||||||||||||||||||||||||||||||||||||
1932 | static int | - | ||||||||||||||||||||||||||||||||||||
1933 | process_suffixed_number (char *text, long double *result, | - | ||||||||||||||||||||||||||||||||||||
1934 | size_t *precision, long int field) | - | ||||||||||||||||||||||||||||||||||||
1935 | { | - | ||||||||||||||||||||||||||||||||||||
1936 | if (suffix
| 4-510 | ||||||||||||||||||||||||||||||||||||
1937 | { | - | ||||||||||||||||||||||||||||||||||||
1938 | char *possible_suffix = text + strlen (text) - strlen (suffix); | - | ||||||||||||||||||||||||||||||||||||
1939 | - | |||||||||||||||||||||||||||||||||||||
1940 | if ((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1941 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1942 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1943 | ) && __builtin_constant_p (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1944 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1945 | ) && (__s1_len = __builtin_strlen (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1946 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1947 | ), __s2_len = __builtin_strlen (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1948 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1949 | ), (!((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1950 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1951 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
1952 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1953 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1954 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1955 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
1956 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1957 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1958 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1959 | ,
| 9-12 | ||||||||||||||||||||||||||||||||||||
1960 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1961 | ) : (__builtin_constant_p (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1962 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1963 | ) && ((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1964 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1965 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
1966 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1967 | ) == 1) && (__s1_len = __builtin_strlen (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1968 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1969 | ), __s1_len < 4) ? (__builtin_constant_p (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1970 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1971 | ) && ((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1972 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1973 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
1974 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1975 | ) == 1) ? __builtin_strcmp (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1976 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1977 | ,
| 9-12 | ||||||||||||||||||||||||||||||||||||
1978 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1979 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1980 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1981 | ); int __result = (((const unsigned char *) (const char *) (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1982 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1983 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-12 | ||||||||||||||||||||||||||||||||||||
1984 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1985 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-12 | ||||||||||||||||||||||||||||||||||||
1986 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1987 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( suffix ))[3] - __s2[3]);
| 0-12 | ||||||||||||||||||||||||||||||||||||
1988 | suffix
never executed: __result = (((const unsigned char *) (const char *) ( suffix ))[3] - __s2[3]); | 0-12 | ||||||||||||||||||||||||||||||||||||
1989 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( suffix ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-12 | ||||||||||||||||||||||||||||||||||||
1990 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1991 | ) && ((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
1992 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1993 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
1994 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1995 | ) == 1) && (__s2_len = __builtin_strlen (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1996 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1997 | ), __s2_len < 4) ? (__builtin_constant_p (
| 9-12 | ||||||||||||||||||||||||||||||||||||
1998 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
1999 | ) && ((size_t)(const void *)((
| 9-12 | ||||||||||||||||||||||||||||||||||||
2000 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2001 | ) + 1) - (size_t)(const void *)(
| 9-12 | ||||||||||||||||||||||||||||||||||||
2002 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2003 | ) == 1) ? __builtin_strcmp (
| 9-12 | ||||||||||||||||||||||||||||||||||||
2004 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2005 | ,
| 9-12 | ||||||||||||||||||||||||||||||||||||
2006 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2007 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 9-12 | ||||||||||||||||||||||||||||||||||||
2008 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2009 | ); int __result = (((const unsigned char *) (const char *) (
| 9-12 | ||||||||||||||||||||||||||||||||||||
2010 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2011 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-12 | ||||||||||||||||||||||||||||||||||||
2012 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2013 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-12 | ||||||||||||||||||||||||||||||||||||
2014 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2015 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( possible_suffix ))[3] - __s2[3]);
| 0-12 | ||||||||||||||||||||||||||||||||||||
2016 | possible_suffix
never executed: __result = (((const unsigned char *) (const char *) ( possible_suffix ))[3] - __s2[3]); | 0-12 | ||||||||||||||||||||||||||||||||||||
2017 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( possible_suffix ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-12 | ||||||||||||||||||||||||||||||||||||
2018 | suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2019 | ,
| 9-12 | ||||||||||||||||||||||||||||||||||||
2020 | possible_suffix
| 9-12 | ||||||||||||||||||||||||||||||||||||
2021 | )))); })
| 9-12 | ||||||||||||||||||||||||||||||||||||
2022 | == 0)
| 9-12 | ||||||||||||||||||||||||||||||||||||
2023 | { | - | ||||||||||||||||||||||||||||||||||||
2024 | - | |||||||||||||||||||||||||||||||||||||
2025 | *possible_suffix = '\0'; | - | ||||||||||||||||||||||||||||||||||||
2026 | do { if (dev_debug
executed 1 time by 1 test: fprintf ( stderr , "trimming suffix %s\n", quote (suffix)); Executed by:
| 1-8 | ||||||||||||||||||||||||||||||||||||
2027 | stderr executed 1 time by 1 test: fprintf ( stderr , "trimming suffix %s\n", quote (suffix)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
2028 | , "trimming suffix %s\n", quote (suffix)); executed 1 time by 1 test: } while (0);fprintf ( stderr , "trimming suffix %s\n", quote (suffix)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
2029 | } executed 9 times by 1 test: end of block Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
2030 | else | - | ||||||||||||||||||||||||||||||||||||
2031 | do { if (dev_debug
executed 1 time by 1 test: fprintf ( stderr , "no valid suffix found\n"); Executed by:
| 1-11 | ||||||||||||||||||||||||||||||||||||
2032 | stderr executed 1 time by 1 test: fprintf ( stderr , "no valid suffix found\n"); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
2033 | , "no valid suffix found\n"); executed 1 time by 1 test: }fprintf ( stderr , "no valid suffix found\n"); Executed by:
executed 12 times by 1 test: while (0);end of block Executed by:
| 1-12 | ||||||||||||||||||||||||||||||||||||
2034 | } | - | ||||||||||||||||||||||||||||||||||||
2035 | - | |||||||||||||||||||||||||||||||||||||
2036 | - | |||||||||||||||||||||||||||||||||||||
2037 | char *p = text; | - | ||||||||||||||||||||||||||||||||||||
2038 | while (*
| 1-559 | ||||||||||||||||||||||||||||||||||||
2039 | ((*
| 25-534 | ||||||||||||||||||||||||||||||||||||
2040 | to_uchar (*p)
| 25-534 | ||||||||||||||||||||||||||||||||||||
2041 | ))] & (unsigned short int) _ISblank)
| 25-534 | ||||||||||||||||||||||||||||||||||||
2042 | ) | - | ||||||||||||||||||||||||||||||||||||
2043 | ++ executed 25 times by 1 test: p;++p; Executed by:
executed 25 times by 1 test: ++p; Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||
2044 | const unsigned int skip_count = text - p; | - | ||||||||||||||||||||||||||||||||||||
2045 | - | |||||||||||||||||||||||||||||||||||||
2046 | - | |||||||||||||||||||||||||||||||||||||
2047 | if (auto_padding
| 38-497 | ||||||||||||||||||||||||||||||||||||
2048 | { | - | ||||||||||||||||||||||||||||||||||||
2049 | if (skip_count > 0
| 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:
| 83 | ||||||||||||||||||||||||||||||||||||
2054 | else | - | ||||||||||||||||||||||||||||||||||||
2055 | { | - | ||||||||||||||||||||||||||||||||||||
2056 | padding_width = 0; | - | ||||||||||||||||||||||||||||||||||||
2057 | } executed 414 times by 1 test: end of block Executed by:
| 414 | ||||||||||||||||||||||||||||||||||||
2058 | do { if (dev_debug
executed 9 times by 1 test: fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width); Executed by:
| 9-488 | ||||||||||||||||||||||||||||||||||||
2059 | stderr executed 9 times by 1 test: fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width); Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
2060 | , "setting Auto-Padding to %ld characters\n", padding_width); executed 9 times by 1 test: } while (0);fprintf ( stderr , "setting Auto-Padding to %ld characters\n", padding_width); Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
2061 | } executed 497 times by 1 test: end of block Executed by:
| 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
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
2072 | - | |||||||||||||||||||||||||||||||||||||
2073 | if (from_unit_size != 1
| 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:
| 61 | ||||||||||||||||||||||||||||||||||||
2075 | - | |||||||||||||||||||||||||||||||||||||
2076 | *result = val; | - | ||||||||||||||||||||||||||||||||||||
2077 | - | |||||||||||||||||||||||||||||||||||||
2078 | return executed 466 times by 1 test: (e == SSE_OK || e == SSE_OK_PRECISION_LOSS);return (e == SSE_OK || e == SSE_OK_PRECISION_LOSS); Executed by:
executed 466 times by 1 test: return (e == SSE_OK || e == SSE_OK_PRECISION_LOSS); Executed by:
| 466 | ||||||||||||||||||||||||||||||||||||
2079 | } | - | ||||||||||||||||||||||||||||||||||||
2080 | - | |||||||||||||||||||||||||||||||||||||
2081 | - | |||||||||||||||||||||||||||||||||||||
2082 | - | |||||||||||||||||||||||||||||||||||||
2083 | static char* | - | ||||||||||||||||||||||||||||||||||||
2084 | next_field (char **line) | - | ||||||||||||||||||||||||||||||||||||
2085 | { | - | ||||||||||||||||||||||||||||||||||||
2086 | char *field_start = *line; | - | ||||||||||||||||||||||||||||||||||||
2087 | char *field_end = field_start; | - | ||||||||||||||||||||||||||||||||||||
2088 | - | |||||||||||||||||||||||||||||||||||||
2089 | if (delimiter != DELIMITER_DEFAULT
| 29-597 | ||||||||||||||||||||||||||||||||||||
2090 | { | - | ||||||||||||||||||||||||||||||||||||
2091 | if (*
| 1-28 | ||||||||||||||||||||||||||||||||||||
2092 | { | - | ||||||||||||||||||||||||||||||||||||
2093 | while (*
| 14-102 | ||||||||||||||||||||||||||||||||||||
2094 | ++ executed 88 times by 1 test: field_end;++field_end; Executed by:
executed 88 times by 1 test: ++field_end; Executed by:
| 88 | ||||||||||||||||||||||||||||||||||||
2095 | } executed 28 times by 1 test: end of block Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||
2096 | - | |||||||||||||||||||||||||||||||||||||
2097 | } executed 29 times by 1 test: end of block Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||
2098 | else | - | ||||||||||||||||||||||||||||||||||||
2099 | { | - | ||||||||||||||||||||||||||||||||||||
2100 | - | |||||||||||||||||||||||||||||||||||||
2101 | while (*
| 2-620 | ||||||||||||||||||||||||||||||||||||
2102 | ++ executed 25 times by 1 test: field_end;++field_end; Executed by:
executed 25 times by 1 test: ++field_end; Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||
2103 | - | |||||||||||||||||||||||||||||||||||||
2104 | while (*
| 129-3134 | ||||||||||||||||||||||||||||||||||||
2105 | ++ executed 3005 times by 1 test: field_end;++field_end; Executed by:
executed 3005 times by 1 test: ++field_end; Executed by:
| 3005 | ||||||||||||||||||||||||||||||||||||
2106 | } executed 597 times by 1 test: end of block Executed by:
| 597 | ||||||||||||||||||||||||||||||||||||
2107 | - | |||||||||||||||||||||||||||||||||||||
2108 | *line = field_end; | - | ||||||||||||||||||||||||||||||||||||
2109 | return executed 626 times by 1 test: field_start;return field_start; Executed by:
executed 626 times by 1 test: return field_start; Executed by:
| 626 | ||||||||||||||||||||||||||||||||||||
2110 | } | - | ||||||||||||||||||||||||||||||||||||
2111 | - | |||||||||||||||||||||||||||||||||||||
2112 | static | - | ||||||||||||||||||||||||||||||||||||
2113 | _Bool __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||||||||||||||
2114 | - | |||||||||||||||||||||||||||||||||||||
2115 | include_field (uintmax_t field) | - | ||||||||||||||||||||||||||||||||||||
2116 | { | - | ||||||||||||||||||||||||||||||||||||
2117 | struct field_range_pair *p = frp; | - | ||||||||||||||||||||||||||||||||||||
2118 | if (!p
| 180-446 | ||||||||||||||||||||||||||||||||||||
2119 | return executed 446 times by 1 test: field == 1;return field == 1; Executed by:
executed 446 times by 1 test: return field == 1; Executed by:
| 446 | ||||||||||||||||||||||||||||||||||||
2120 | - | |||||||||||||||||||||||||||||||||||||
2121 | while (p->lo !=
| 82-213 | ||||||||||||||||||||||||||||||||||||
2122 | (18446744073709551615UL)
| 82-213 | ||||||||||||||||||||||||||||||||||||
2123 | ) | - | ||||||||||||||||||||||||||||||||||||
2124 | { | - | ||||||||||||||||||||||||||||||||||||
2125 | if (p->lo <= field
| 52-161 | ||||||||||||||||||||||||||||||||||||
2126 | return executed 98 times by 1 test: return 1 ; Executed by:
executed 98 times by 1 test: return 1 ; Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||
2127 | 1 executed 98 times by 1 test: return 1 ; Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||
2128 | ; executed 98 times by 1 test: return 1 ; Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||
2129 | ++p; | - | ||||||||||||||||||||||||||||||||||||
2130 | } executed 115 times by 1 test: end of block Executed by:
| 115 | ||||||||||||||||||||||||||||||||||||
2131 | return executed 82 times by 1 test: return 0 ; Executed by:
executed 82 times by 1 test: return 0 ; Executed by:
| 82 | ||||||||||||||||||||||||||||||||||||
2132 | 0 executed 82 times by 1 test: return 0 ; Executed by:
| 82 | ||||||||||||||||||||||||||||||||||||
2133 | ; executed 82 times by 1 test: return 0 ; Executed by:
| 82 | ||||||||||||||||||||||||||||||||||||
2134 | } | - | ||||||||||||||||||||||||||||||||||||
2135 | - | |||||||||||||||||||||||||||||||||||||
2136 | - | |||||||||||||||||||||||||||||||||||||
2137 | - | |||||||||||||||||||||||||||||||||||||
2138 | static | - | ||||||||||||||||||||||||||||||||||||
2139 | _Bool | - | ||||||||||||||||||||||||||||||||||||
2140 | - | |||||||||||||||||||||||||||||||||||||
2141 | process_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)
| 91-535 | ||||||||||||||||||||||||||||||||||||
2152 | { | - | ||||||||||||||||||||||||||||||||||||
2153 | valid_number = | - | ||||||||||||||||||||||||||||||||||||
2154 | process_suffixed_number (text, &val, &precision, field); | - | ||||||||||||||||||||||||||||||||||||
2155 | - | |||||||||||||||||||||||||||||||||||||
2156 | if (valid_number
| 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:
| 450 | ||||||||||||||||||||||||||||||||||||
2158 | - | |||||||||||||||||||||||||||||||||||||
2159 | if (valid_number
| 17-436 | ||||||||||||||||||||||||||||||||||||
2160 | print_padded_number (); executed 436 times by 1 test: print_padded_number (); Executed by:
| 436 | ||||||||||||||||||||||||||||||||||||
2161 | else | - | ||||||||||||||||||||||||||||||||||||
2162 | fputs_unlocked (text, executed 17 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
2163 | stdout executed 17 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
2164 | ); executed 17 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
2165 | } | - | ||||||||||||||||||||||||||||||||||||
2166 | else | - | ||||||||||||||||||||||||||||||||||||
2167 | fputs_unlocked (text, executed 91 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 91 | ||||||||||||||||||||||||||||||||||||
2168 | stdout executed 91 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 91 | ||||||||||||||||||||||||||||||||||||
2169 | ); executed 91 times by 1 test: fputs_unlocked (text, stdout ); Executed by:
| 91 | ||||||||||||||||||||||||||||||||||||
2170 | - | |||||||||||||||||||||||||||||||||||||
2171 | return executed 544 times by 1 test: valid_number;return valid_number; Executed by:
executed 544 times by 1 test: return valid_number; Executed by:
| 544 | ||||||||||||||||||||||||||||||||||||
2172 | } | - | ||||||||||||||||||||||||||||||||||||
2173 | - | |||||||||||||||||||||||||||||||||||||
2174 | - | |||||||||||||||||||||||||||||||||||||
2175 | - | |||||||||||||||||||||||||||||||||||||
2176 | static int | - | ||||||||||||||||||||||||||||||||||||
2177 | process_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 (*
| 144-482 | ||||||||||||||||||||||||||||||||||||
2196 | { | - | ||||||||||||||||||||||||||||||||||||
2197 | - | |||||||||||||||||||||||||||||||||||||
2198 | *line = '\0'; | - | ||||||||||||||||||||||||||||||||||||
2199 | - | |||||||||||||||||||||||||||||||||||||
2200 | if (! process_field (next, field)
| 2-141 | ||||||||||||||||||||||||||||||||||||
2201 | valid_number = executed 2 times by 1 test: valid_number = 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
2202 | 0 executed 2 times by 1 test: valid_number = 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
2203 | ; executed 2 times by 1 test: valid_number = 0 ; Executed by:
| 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:
| 143 | ||||||||||||||||||||||||||||||||||||
2211 | else | - | ||||||||||||||||||||||||||||||||||||
2212 | { | - | ||||||||||||||||||||||||||||||||||||
2213 | - | |||||||||||||||||||||||||||||||||||||
2214 | if (! process_field (next, field)
| 15-386 | ||||||||||||||||||||||||||||||||||||
2215 | valid_number = executed 15 times by 1 test: valid_number = 0 ; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
2216 | 0 executed 15 times by 1 test: valid_number = 0 ; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
2217 | ; executed 15 times by 1 test: valid_number = 0 ; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
2218 | - | |||||||||||||||||||||||||||||||||||||
2219 | break; executed 401 times by 1 test: break; Executed by:
| 401 | ||||||||||||||||||||||||||||||||||||
2220 | } | - | ||||||||||||||||||||||||||||||||||||
2221 | } | - | ||||||||||||||||||||||||||||||||||||
2222 | - | |||||||||||||||||||||||||||||||||||||
2223 | if (newline
| 1-400 | ||||||||||||||||||||||||||||||||||||
2224 | putchar_unlocked (line_delim); executed 400 times by 1 test: putchar_unlocked (line_delim); Executed by:
| 400 | ||||||||||||||||||||||||||||||||||||
2225 | - | |||||||||||||||||||||||||||||||||||||
2226 | return executed 401 times by 1 test: valid_number;return valid_number; Executed by:
executed 401 times by 1 test: return valid_number; Executed by:
| 401 | ||||||||||||||||||||||||||||||||||||
2227 | } | - | ||||||||||||||||||||||||||||||||||||
2228 | - | |||||||||||||||||||||||||||||||||||||
2229 | int | - | ||||||||||||||||||||||||||||||||||||
2230 | main (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 ==
| 0-501 | ||||||||||||||||||||||||||||||||||||
2256 | ((void *)0)
| 0-501 | ||||||||||||||||||||||||||||||||||||
2257 | || strlen (decimal_point) == 0
| 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
| 447-782 | ||||||||||||||||||||||||||||||||||||
2272 | break; executed 447 times by 1 test: break; Executed by:
| 447 | ||||||||||||||||||||||||||||||||||||
2273 | - | |||||||||||||||||||||||||||||||||||||
2274 | switch (c) | - | ||||||||||||||||||||||||||||||||||||
2275 | { | - | ||||||||||||||||||||||||||||||||||||
2276 | case executed 183 times by 1 test: FROM_OPTION:case FROM_OPTION: Executed by:
executed 183 times by 1 test: case FROM_OPTION: Executed by:
| 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:
| 182 | ||||||||||||||||||||||||||||||||||||
2280 | - | |||||||||||||||||||||||||||||||||||||
2281 | case executed 15 times by 1 test: FROM_UNIT_OPTION:case FROM_UNIT_OPTION: Executed by:
executed 15 times by 1 test: case FROM_UNIT_OPTION: Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
2282 | from_unit_size = unit_to_umax (optarg); | - | ||||||||||||||||||||||||||||||||||||
2283 | break; executed 8 times by 1 test: break; Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
2284 | - | |||||||||||||||||||||||||||||||||||||
2285 | case executed 264 times by 1 test: TO_OPTION:case TO_OPTION: Executed by:
executed 264 times by 1 test: case TO_OPTION: Executed by:
| 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:
| 263 | ||||||||||||||||||||||||||||||||||||
2289 | - | |||||||||||||||||||||||||||||||||||||
2290 | case executed 30 times by 1 test: TO_UNIT_OPTION:case TO_UNIT_OPTION: Executed by:
executed 30 times by 1 test: case TO_UNIT_OPTION: Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||
2291 | to_unit_size = unit_to_umax (optarg); | - | ||||||||||||||||||||||||||||||||||||
2292 | break; executed 28 times by 1 test: break; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||
2293 | - | |||||||||||||||||||||||||||||||||||||
2294 | case executed 48 times by 1 test: ROUND_OPTION:case ROUND_OPTION: Executed by:
executed 48 times by 1 test: case ROUND_OPTION: Executed by:
| 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:
| 47 | ||||||||||||||||||||||||||||||||||||
2297 | - | |||||||||||||||||||||||||||||||||||||
2298 | case executed 6 times by 1 test: GROUPING_OPTION:case GROUPING_OPTION: Executed by:
executed 6 times by 1 test: case GROUPING_OPTION: Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
2299 | grouping = 1; | - | ||||||||||||||||||||||||||||||||||||
2300 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
2301 | - | |||||||||||||||||||||||||||||||||||||
2302 | case executed 17 times by 1 test: PADDING_OPTION:case PADDING_OPTION: Executed by:
executed 17 times by 1 test: case PADDING_OPTION: Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
2303 | if (xstrtol (optarg,
| 2-15 | ||||||||||||||||||||||||||||||||||||
2304 | ((void *)0)
| 2-15 | ||||||||||||||||||||||||||||||||||||
2305 | , 10, &padding_width, "") != LONGINT_OK
| 2-15 | ||||||||||||||||||||||||||||||||||||
2306 | || padding_width == 0
| 1-14 | ||||||||||||||||||||||||||||||||||||
2307 | (( executed 3 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 3 | ||||||||||||||||||||||||||||||||||||
2327 | if (padding_width < 0
| 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:
| 4 | ||||||||||||||||||||||||||||||||||||
2332 | - | |||||||||||||||||||||||||||||||||||||
2333 | - | |||||||||||||||||||||||||||||||||||||
2334 | break; executed 14 times by 1 test: break; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
2335 | - | |||||||||||||||||||||||||||||||||||||
2336 | case executed 57 times by 1 test: FIELD_OPTION:case FIELD_OPTION: Executed by:
executed 57 times by 1 test: case FIELD_OPTION: Executed by:
| 57 | ||||||||||||||||||||||||||||||||||||
2337 | if (n_frp
| 5-52 | ||||||||||||||||||||||||||||||||||||
2338 | (( executed 5 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 5 | ||||||||||||||||||||||||||||||||||||
2357 | set_fields (optarg, SETFLD_ALLOW_DASH); | - | ||||||||||||||||||||||||||||||||||||
2358 | break; executed 43 times by 1 test: break; Executed by:
| 43 | ||||||||||||||||||||||||||||||||||||
2359 | - | |||||||||||||||||||||||||||||||||||||
2360 | case executed 17 times by 1 test: 'd':case 'd': Executed by:
executed 17 times by 1 test: case 'd': Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
2361 | - | |||||||||||||||||||||||||||||||||||||
2362 | if (optarg[0] != '\0'
| 2-15 | ||||||||||||||||||||||||||||||||||||
2363 | (( executed 3 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 3 | ||||||||||||||||||||||||||||||||||||
2383 | delimiter = optarg[0]; | - | ||||||||||||||||||||||||||||||||||||
2384 | break; executed 14 times by 1 test: break; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
2385 | - | |||||||||||||||||||||||||||||||||||||
2386 | case executed 6 times by 1 test: 'z':case 'z': Executed by:
executed 6 times by 1 test: case 'z': Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
2387 | line_delim = '\0'; | - | ||||||||||||||||||||||||||||||||||||
2388 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
2389 | - | |||||||||||||||||||||||||||||||||||||
2390 | case executed 26 times by 1 test: SUFFIX_OPTION:case SUFFIX_OPTION: Executed by:
executed 26 times by 1 test: case SUFFIX_OPTION: Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||
2391 | suffix = optarg; | - | ||||||||||||||||||||||||||||||||||||
2392 | break; executed 26 times by 1 test: break; Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||
2393 | - | |||||||||||||||||||||||||||||||||||||
2394 | case executed 12 times by 1 test: DEBUG_OPTION:case DEBUG_OPTION: Executed by:
executed 12 times by 1 test: case DEBUG_OPTION: Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||
2395 | debug = | - | ||||||||||||||||||||||||||||||||||||
2396 | 1 | - | ||||||||||||||||||||||||||||||||||||
2397 | ; | - | ||||||||||||||||||||||||||||||||||||
2398 | break; executed 12 times by 1 test: break; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||
2399 | - | |||||||||||||||||||||||||||||||||||||
2400 | case executed 11 times by 1 test: DEV_DEBUG_OPTION:case DEV_DEBUG_OPTION: Executed by:
executed 11 times by 1 test: case DEV_DEBUG_OPTION: Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
2401 | dev_debug = | - | ||||||||||||||||||||||||||||||||||||
2402 | 1 | - | ||||||||||||||||||||||||||||||||||||
2403 | ; | - | ||||||||||||||||||||||||||||||||||||
2404 | debug = | - | ||||||||||||||||||||||||||||||||||||
2405 | 1 | - | ||||||||||||||||||||||||||||||||||||
2406 | ; | - | ||||||||||||||||||||||||||||||||||||
2407 | break; executed 11 times by 1 test: break; Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||
2408 | - | |||||||||||||||||||||||||||||||||||||
2409 | case executed 10 times by 1 test: HEADER_OPTION:case HEADER_OPTION: Executed by:
executed 10 times by 1 test: case HEADER_OPTION: Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
2410 | if (optarg
| 4-6 | ||||||||||||||||||||||||||||||||||||
2411 | { | - | ||||||||||||||||||||||||||||||||||||
2412 | if (xstrtoumax (optarg,
| 2-4 | ||||||||||||||||||||||||||||||||||||
2413 | ((void *)0)
| 2-4 | ||||||||||||||||||||||||||||||||||||
2414 | , 10, &header, "") != LONGINT_OK
| 2-4 | ||||||||||||||||||||||||||||||||||||
2415 | || header == 0
| 1-3 | ||||||||||||||||||||||||||||||||||||
2416 | (( executed 3 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 3 | ||||||||||||||||||||||||||||||||||||
2436 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||
2437 | else | - | ||||||||||||||||||||||||||||||||||||
2438 | { | - | ||||||||||||||||||||||||||||||||||||
2439 | header = 1; | - | ||||||||||||||||||||||||||||||||||||
2440 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
2441 | break; executed 7 times by 1 test: break; Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
2442 | - | |||||||||||||||||||||||||||||||||||||
2443 | case executed 42 times by 1 test: FORMAT_OPTION:case FORMAT_OPTION: Executed by:
executed 42 times by 1 test: case FORMAT_OPTION: Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||
2444 | format_str = optarg; | - | ||||||||||||||||||||||||||||||||||||
2445 | break; executed 42 times by 1 test: break; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||
2446 | - | |||||||||||||||||||||||||||||||||||||
2447 | case executed 20 times by 1 test: INVALID_OPTION:case INVALID_OPTION: Executed by:
executed 20 times by 1 test: case INVALID_OPTION: Executed by:
| 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:
| 19 | ||||||||||||||||||||||||||||||||||||
2451 | - | |||||||||||||||||||||||||||||||||||||
2452 | case executed 10 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 10 times by 1 test: usage (case GETOPT_HELP_CHAR: Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
2453 | 0 | - | ||||||||||||||||||||||||||||||||||||
2454 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||||||||||||||
2455 | case executed 4 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: Executed by:
executed 4 times by 1 test: version_etc (case GETOPT_VERSION_CHAR: Executed by:
| 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:
| 4 | ||||||||||||||||||||||||||||||||||||
2460 | 0 executed 4 times by 1 test: exit ( 0 ); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
2461 | ); executed 4 times by 1 test: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-4 | ||||||||||||||||||||||||||||||||||||
2462 | - | |||||||||||||||||||||||||||||||||||||
2463 | default executed 4 times by 1 test: :default: Executed by:
executed 4 times by 1 test: default: Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
2464 | usage ( | - | ||||||||||||||||||||||||||||||||||||
2465 | 1 | - | ||||||||||||||||||||||||||||||||||||
2466 | ); | - | ||||||||||||||||||||||||||||||||||||
2467 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
2468 | } | - | ||||||||||||||||||||||||||||||||||||
2469 | - | |||||||||||||||||||||||||||||||||||||
2470 | if (format_str !=
| 41-406 | ||||||||||||||||||||||||||||||||||||
2471 | ((void *)0)
| 41-406 | ||||||||||||||||||||||||||||||||||||
2472 | && grouping
| 1-40 | ||||||||||||||||||||||||||||||||||||
2473 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
2492 | - | |||||||||||||||||||||||||||||||||||||
2493 | if (debug
| 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
| 4-424 | ||||||||||||||||||||||||||||||||||||
2502 | && !grouping
| 1-9 | ||||||||||||||||||||||||||||||||||||
2503 | ((void *)0)
| 3-5 | ||||||||||||||||||||||||||||||||||||
2504 | )
| 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:
| 5 | ||||||||||||||||||||||||||||||||||||
2506 | dcgettext (((void *)0), executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) ); Executed by:
| 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:
| 5 | ||||||||||||||||||||||||||||||||||||
2508 | , 5) executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
2509 | ); executed 5 times by 1 test: error (0, 0, dcgettext (((void *)0), "no conversion option specified" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
2510 | - | |||||||||||||||||||||||||||||||||||||
2511 | if (format_str
| 40-406 | ||||||||||||||||||||||||||||||||||||
2512 | parse_format_string (format_str); executed 40 times by 1 test: parse_format_string (format_str); Executed by:
| 40 | ||||||||||||||||||||||||||||||||||||
2513 | - | |||||||||||||||||||||||||||||||||||||
2514 | if (grouping
| 10-426 | ||||||||||||||||||||||||||||||||||||
2515 | { | - | ||||||||||||||||||||||||||||||||||||
2516 | if (scale_to != scale_none
| 2-8 | ||||||||||||||||||||||||||||||||||||
2517 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (((!!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:
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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 2 | ||||||||||||||||||||||||||||||||||||
2536 | if (debug
| 0-4 | ||||||||||||||||||||||||||||||||||||
2537 | rpl_nl_langinfo
| 0-4 | ||||||||||||||||||||||||||||||||||||
2538 | (
| 0-4 | ||||||||||||||||||||||||||||||||||||
2539 | THOUSEP
| 0-4 | ||||||||||||||||||||||||||||||||||||
2540 | )) == 0)
| 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:
| 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:
| 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:
| 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:
| 4 | ||||||||||||||||||||||||||||||||||||
2545 | ); executed 4 times by 1 test: error (0, 0, dcgettext (((void *)0), "grouping has no effect in this locale" , 5) ); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
2546 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
2547 | - | |||||||||||||||||||||||||||||||||||||
2548 | - | |||||||||||||||||||||||||||||||||||||
2549 | setup_padding_buffer (padding_width); | - | ||||||||||||||||||||||||||||||||||||
2550 | auto_padding = (padding_width == 0
| 14-409 | ||||||||||||||||||||||||||||||||||||
2551 | - | |||||||||||||||||||||||||||||||||||||
2552 | if (inval_style != inval_abort
| 19-415 | ||||||||||||||||||||||||||||||||||||
2553 | conv_exit_code = 0; executed 19 times by 1 test: conv_exit_code = 0; Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||
2554 | - | |||||||||||||||||||||||||||||||||||||
2555 | if (argc > optind
| 17-417 | ||||||||||||||||||||||||||||||||||||
2556 | { | - | ||||||||||||||||||||||||||||||||||||
2557 | if (debug
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
2561 | , 5) executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
2562 | ); executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "--header ignored with command-line input" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
2563 | - | |||||||||||||||||||||||||||||||||||||
2564 | for (; optind < argc
| 335-452 | ||||||||||||||||||||||||||||||||||||
2565 | valid_numbers &= process_line (argv[optind], executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 ); Executed by:
| 452 | ||||||||||||||||||||||||||||||||||||
2566 | 1 executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 ); Executed by:
| 452 | ||||||||||||||||||||||||||||||||||||
2567 | ); executed 452 times by 1 test: valid_numbers &= process_line (argv[optind], 1 ); Executed by:
| 452 | ||||||||||||||||||||||||||||||||||||
2568 | } executed 335 times by 1 test: end of block Executed by:
| 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--
| 1-16 | ||||||||||||||||||||||||||||||||||||
2578 | line_delim,
| 1-8 | ||||||||||||||||||||||||||||||||||||
2579 | stdin
| 1-8 | ||||||||||||||||||||||||||||||||||||
2580 | ) > 0
| 1-8 | ||||||||||||||||||||||||||||||||||||
2581 | fputs_unlocked (line, executed 8 times by 1 test: fputs_unlocked (line, stdout ); Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
2582 | stdout executed 8 times by 1 test: fputs_unlocked (line, stdout ); Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
2583 | ); executed 8 times by 1 test: fputs_unlocked (line, stdout ); Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
2584 | - | |||||||||||||||||||||||||||||||||||||
2585 | while ((
| 17-31 | ||||||||||||||||||||||||||||||||||||
2586 | line_delim,
| 17-31 | ||||||||||||||||||||||||||||||||||||
2587 | stdin
| 17-31 | ||||||||||||||||||||||||||||||||||||
2588 | )) > 0
| 17-31 | ||||||||||||||||||||||||||||||||||||
2589 | { | - | ||||||||||||||||||||||||||||||||||||
2590 | - | |||||||||||||||||||||||||||||||||||||
2591 | _Bool | - | ||||||||||||||||||||||||||||||||||||
2592 | newline = line[len - 1] == line_delim; | - | ||||||||||||||||||||||||||||||||||||
2593 | if (newline
| 1-30 | ||||||||||||||||||||||||||||||||||||
2594 | line[len - 1] = '\0'; executed 30 times by 1 test: line[len - 1] = '\0'; Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||
2595 | valid_numbers &= process_line (line, newline); | - | ||||||||||||||||||||||||||||||||||||
2596 | } executed 31 times by 1 test: end of block Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||
2597 | - | |||||||||||||||||||||||||||||||||||||
2598 | ; | - | ||||||||||||||||||||||||||||||||||||
2599 | - | |||||||||||||||||||||||||||||||||||||
2600 | if (ferror_unlocked (
| 0-17 | ||||||||||||||||||||||||||||||||||||
2601 | stdin
| 0-17 | ||||||||||||||||||||||||||||||||||||
2602 | )
| 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:
| 17 | ||||||||||||||||||||||||||||||||||||
2611 | if (debug
| 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:
| 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:
| 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:
| 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:
| 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:
| 1 | ||||||||||||||||||||||||||||||||||||
2617 | - | |||||||||||||||||||||||||||||||||||||
2618 | int exit_status = | - | ||||||||||||||||||||||||||||||||||||
2619 | 0 | - | ||||||||||||||||||||||||||||||||||||
2620 | ; | - | ||||||||||||||||||||||||||||||||||||
2621 | if (!valid_numbers
| 17-335 | ||||||||||||||||||||||||||||||||||||
2622 | && inval_style != inval_warn
| 1-16 | ||||||||||||||||||||||||||||||||||||
2623 | exit_status = EXIT_CONVERSION_WARNINGS; executed 14 times by 1 test: exit_status = EXIT_CONVERSION_WARNINGS; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||
2624 | - | |||||||||||||||||||||||||||||||||||||
2625 | return executed 352 times by 1 test: exit_status;return exit_status; Executed by:
executed 352 times by 1 test: return exit_status; Executed by:
| 352 | ||||||||||||||||||||||||||||||||||||
2626 | } | - | ||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |