OpenCoverage

md5sum.c #1

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/md5sum.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6static -
7 _Bool -
8 have_read_stdin;-
9-
10-
11static size_t min_digest_line_length;-
12-
13-
14static size_t digest_hex_bytes;-
15-
16-
17-
18static -
19 _Bool -
20 status_only = -
21 0-
22 ;-
23-
24-
25-
26static -
27 _Bool -
28 warn = -
29 0-
30 ;-
31-
32-
33static -
34 _Bool -
35 ignore_missing = -
36 0-
37 ;-
38-
39-
40static -
41 _Bool -
42 quiet = -
43 0-
44 ;-
45-
46-
47-
48static -
49 _Bool -
50 strict = -
51 0-
52 ;-
53-
54-
55static int bsd_reversed = -1;-
56-
57-
58static char const *const algorithm_in_string[] =-
59{-
60 "blake2b", -
61 ((void *)0)-
62-
63};-
64static char const *const algorithm_out_string[] =-
65{-
66 "BLAKE2b", -
67 ((void *)0)-
68-
69};-
70enum Algorithm-
71{-
72 BLAKE2b-
73};-
74_Static_assert ((sizeof (algorithm_in_string) / sizeof *(algorithm_in_string)) == 2, "verify (" "ARRAY_CARDINALITY (algorithm_in_string) == 2" ")");-
75_Static_assert ((sizeof (algorithm_out_string) / sizeof *(algorithm_out_string)) == 2, "verify (" "ARRAY_CARDINALITY (algorithm_out_string) == 2" ")");-
76-
77static enum Algorithm b2_algorithm;-
78static uintmax_t b2_length;-
79static blake2fn blake2fns[]=-
80{-
81 blake2b_stream-
82};-
83static uintmax_t blake2_max_len[]=-
84{-
85 64-
86};-
87-
88-
89-
90-
91enum-
92{-
93 IGNORE_MISSING_OPTION = 0x7f + 1,-
94 STATUS_OPTION,-
95 QUIET_OPTION,-
96 STRICT_OPTION,-
97 TAG_OPTION-
98};-
99-
100static struct option const long_options[] =-
101{-
102-
103 { "length", -
104 1-
105 , -
106 ((void *)0)-
107 , 'l'},-
108-
109 { "binary", -
110 0-
111 , -
112 ((void *)0)-
113 , 'b' },-
114 { "check", -
115 0-
116 , -
117 ((void *)0)-
118 , 'c' },-
119 { "ignore-missing", -
120 0-
121 , -
122 ((void *)0)-
123 , IGNORE_MISSING_OPTION},-
124 { "quiet", -
125 0-
126 , -
127 ((void *)0)-
128 , QUIET_OPTION },-
129 { "status", -
130 0-
131 , -
132 ((void *)0)-
133 , STATUS_OPTION },-
134 { "text", -
135 0-
136 , -
137 ((void *)0)-
138 , 't' },-
139 { "warn", -
140 0-
141 , -
142 ((void *)0)-
143 , 'w' },-
144 { "strict", -
145 0-
146 , -
147 ((void *)0)-
148 , STRICT_OPTION },-
149 { "tag", -
150 0-
151 , -
152 ((void *)0)-
153 , TAG_OPTION },-
154 { "help", -
155 0-
156 , -
157 ((void *)0)-
158 , GETOPT_HELP_CHAR },-
159 { "version", -
160 0-
161 , -
162 ((void *)0)-
163 , GETOPT_VERSION_CHAR },-
164 { -
165 ((void *)0)-
166 , 0, -
167 ((void *)0)-
168 , 0 }-
169};-
170-
171void-
172usage (int status)-
173{-
174 if (status !=
status != 0Description
TRUEevaluated 24 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 112 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
24-112
175 0
status != 0Description
TRUEevaluated 24 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 112 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
24-112
176 )-
177 do { fprintf (-
178 stderr-
179 , -
180 dcgettext (((void *)0), -
181 "Try '%s --help' for more information.\n"-
182 , 5)-
183 , program_name); }
executed 24 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
while (0);
24
184 else-
185 {-
186 printf (-
187 dcgettext (((void *)0), -
188 "Usage: %s [OPTION]... [FILE]...\nPrint or check %s (%d-bit) checksums.\n"-
189 , 5)-
190-
191-
192 -
193 ,-
194 program_name,-
195 "BLAKE2",-
196 512);-
197-
198 emit_stdin_note ();-
199 if (-
200 0-
201 )-
202 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
203 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
204 "\n -b, --binary read in binary mode (default unless reading tty stdin)\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
205 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
206 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
207 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
208 )
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
209-
210-
211 ;
dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ;
-
212 else-
213 fputs_unlocked (
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
214 dcgettext (((void *)0),
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
215 "\n -b, --binary read in binary mode\n"
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
216 , 5)
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
217 ,
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
218 stdout
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
219 )
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
220112
221112
222 ;
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
223-
224 printf (-
225 dcgettext (((void *)0), -
226 " -c, --check read %s sums from the FILEs and check them\n"-
227 , 5)-
228 -
229 ,-
230 "BLAKE2");-
231-
232 fputs_unlocked (-
233 dcgettext (((void *)0), -
234 " -l, --length digest length in bits; must not exceed the maximum for\n the blake2 algorithm and must be a multiple of 8\n"-
235 , 5)-
236 ,-
237 stdout-
238 )-
239-
240-
241 ;-
242-
243 fputs_unlocked (-
244 dcgettext (((void *)0), -
245 " --tag create a BSD-style checksum\n"-
246 , 5)-
247 ,-
248 stdout-
249 )-
250-
251 ;-
252 if (-
253 0-
254 )-
255 fputs_unlocked (
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
256 dcgettext (((void *)0),
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
257 " -t, --text read in text mode (default if reading tty stdin)\n"
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
258 , 5)
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
259 ,
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
260 stdout
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
261 )
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
262-
263 ;
dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ;
-
264 else-
265 fputs_unlocked (
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
266 dcgettext (((void *)0),
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
267 " -t, --text read in text mode (default)\n"
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
268 , 5)
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
269 ,
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
270 stdout
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
271 )
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
272112
273 ;
executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
274 fputs_unlocked (-
275 dcgettext (((void *)0), -
276 "\nThe following five options are useful only when verifying checksums:\n --ignore-missing don't fail or report status for missing files\n --quiet don't print OK for each successfully verified file\n --status don't output anything, status code shows success\n --strict exit non-zero for improperly formatted checksum lines\n -w, --warn warn about improperly formatted checksum lines\n\n"-
277 , 5)-
278 ,-
279 stdout-
280 )-
281 ;-
282 fputs_unlocked (-
283 dcgettext (((void *)0), -
284 " --help display this help and exit\n"-
285 , 5)-
286 ,-
287 stdout-
288 );-
289 fputs_unlocked (-
290 dcgettext (((void *)0), -
291 " --version output version information and exit\n"-
292 , 5)-
293 ,-
294 stdout-
295 );-
296 printf (-
297 dcgettext (((void *)0), -
298 "\nThe sums are computed as described in %s. When checking, the input\nshould be a former output of this program. The default mode is to print a\nline with checksum, a space, a character indicating input mode ('*' for binary,\n' ' for text or where binary is insignificant), and name for each FILE.\n"-
299 , 5)-
300-
301-
302-
303-
304 -
305 ,-
306 "RFC 7693");-
307 emit_ancillary_info ("b2sum");-
308 }
executed 112 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
112
309-
310 exit (status);
executed 136 times by 7 tests: exit (status);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
136
311}-
312static char *-
313filename_unescape (char *s, size_t s_len)-
314{-
315 char *dst = s;-
316-
317 for (size_t i = 0; i < s_len
i < s_lenDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
; i++)
3-8
318 {-
319 switch (s[i])-
320 {-
321 case
executed 3 times by 1 test: case '\\':
Executed by:
  • md5sum
'\\':
executed 3 times by 1 test: case '\\':
Executed by:
  • md5sum
3
322 if (i == s_len - 1
i == s_len - 1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
)
0-3
323 {-
324-
325 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
326 ((void *)0)
never executed: return ((void *)0) ;
0
327 ;
never executed: return ((void *)0) ;
0
328 }-
329 ++i;-
330 switch (s[i])-
331 {-
332 case
executed 1 time by 1 test: case 'n':
Executed by:
  • md5sum
'n':
executed 1 time by 1 test: case 'n':
Executed by:
  • md5sum
1
333 *dst++ = '\n';-
334 break;
executed 1 time by 1 test: break;
Executed by:
  • md5sum
1
335 case
executed 2 times by 1 test: case '\\':
Executed by:
  • md5sum
'\\':
executed 2 times by 1 test: case '\\':
Executed by:
  • md5sum
2
336 *dst++ = '\\';-
337 break;
executed 2 times by 1 test: break;
Executed by:
  • md5sum
2
338 default
never executed: default:
:
never executed: default:
0
339-
340 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
341 ((void *)0)
never executed: return ((void *)0) ;
0
342 ;
never executed: return ((void *)0) ;
0
343 }-
344 break;
executed 3 times by 1 test: break;
Executed by:
  • md5sum
3
345-
346 case
never executed: case '\0':
'\0':
never executed: case '\0':
0
347-
348 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
349 ((void *)0)
never executed: return ((void *)0) ;
0
350 ;
never executed: return ((void *)0) ;
0
351-
352 default
executed 5 times by 1 test: default:
Executed by:
  • md5sum
:
executed 5 times by 1 test: default:
Executed by:
  • md5sum
5
353 *dst++ = s[i];-
354 break;
executed 5 times by 1 test: break;
Executed by:
  • md5sum
5
355 }-
356 }-
357 if (dst < s + s_len
dst < s + s_lenDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
)
0-3
358 *
executed 3 times by 1 test: *dst = '\0';
Executed by:
  • md5sum
dst = '\0';
executed 3 times by 1 test: *dst = '\0';
Executed by:
  • md5sum
3
359-
360 return
executed 3 times by 1 test: return s;
Executed by:
  • md5sum
s;
executed 3 times by 1 test: return s;
Executed by:
  • md5sum
3
361}-
362-
363-
364-
365static -
366 _Bool -
367 __attribute__ ((__pure__))-
368hex_digits (unsigned char const *s)-
369{-
370 for (unsigned int i = 0; i < digest_hex_bytes
i < digest_hex_bytesDescription
TRUEevaluated 3682 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 78 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
; i++)
78-3682
371 {-
372 if (!
! ((*__ctype_b...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3680 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
2-3680
373 ((*__ctype_b_loc ())[(int) ((
! ((*__ctype_b...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3680 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
2-3680
374 *s
! ((*__ctype_b...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3680 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
2-3680
375 ))] & (unsigned short int) _ISxdigit)
! ((*__ctype_b...nt) _ISxdigit)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3680 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
2-3680
376 )-
377 return
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
378 0
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
379 ;
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
380 ++s;-
381 }
executed 3680 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
3680
382 return
executed 78 times by 3 tests: return *s == '\0';
Executed by:
  • b2sum
  • md5sum
  • sha1sum
*s == '\0';
executed 78 times by 3 tests: return *s == '\0';
Executed by:
  • b2sum
  • md5sum
  • sha1sum
78
383}-
384-
385-
386-
387-
388-
389static -
390 _Bool-
391-
392bsd_split_3 (char *s, size_t s_len, unsigned char **hex_digest,-
393 char **file_name, -
394 _Bool -
395 escaped_filename)-
396{-
397 size_t i;-
398-
399 if (s_len == 0
s_len == 0Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
4-37
400 return
executed 4 times by 3 tests: return 0 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
executed 4 times by 3 tests: return 0 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
4
401 0
executed 4 times by 3 tests: return 0 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
4
402 ;
executed 4 times by 3 tests: return 0 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
4
403-
404-
405 i = s_len - 1;-
406 while (i
iDescription
TRUEevaluated 2310 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& s[i] != ')'
s[i] != ')'Description
TRUEevaluated 2273 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-2310
407 i--;
executed 2273 times by 3 tests: i--;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
2273
408-
409 if (s[i] != ')'
s[i] != ')'Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-37
410 return
never executed: return 0 ;
never executed: return 0 ;
0
411 0
never executed: return 0 ;
0
412 ;
never executed: return 0 ;
0
413-
414 *file_name = s;-
415-
416 if (escaped_filename
escaped_filenameDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
&& filename_unescape (s, i) ==
filename_unesc...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
0-34
417 ((void *)0)
filename_unesc...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
0-3
418 )-
419 return
never executed: return 0 ;
never executed: return 0 ;
0
420 0
never executed: return 0 ;
0
421 ;
never executed: return 0 ;
0
422-
423 s[i++] = '\0';-
424-
425 while (((
(s[i]) == ' 'Description
TRUEevaluated 23 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == ' '
(s[i]) == ' 'Description
TRUEevaluated 23 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
|| (
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == '\t'
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
))
0-37
426 i++;
executed 23 times by 3 tests: i++;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
23
427-
428 if (s[i] != '='
s[i] != '='Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-37
429 return
never executed: return 0 ;
never executed: return 0 ;
0
430 0
never executed: return 0 ;
0
431 ;
never executed: return 0 ;
0
432-
433 i++;-
434-
435 while (((
(s[i]) == ' 'Description
TRUEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == ' '
(s[i]) == ' 'Description
TRUEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
|| (
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == '\t'
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
))
0-37
436 i++;
executed 37 times by 3 tests: i++;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
37
437-
438 *hex_digest = (unsigned char *) &s[i];-
439-
440 return
executed 37 times by 3 tests: return hex_digits (*hex_digest);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
hex_digits (*hex_digest);
executed 37 times by 3 tests: return hex_digits (*hex_digest);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
37
441}-
442-
443-
444-
445-
446-
447static -
448 _Bool-
449-
450split_3 (char *s, size_t s_len,-
451 unsigned char **hex_digest, int *binary, char **file_name)-
452{-
453 -
454 _Bool -
455 escaped_filename = -
456 0-
457 ;-
458 size_t algo_name_len;-
459-
460 size_t i = 0;-
461 while (((
(s[i]) == ' 'Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == ' '
(s[i]) == ' 'Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
|| (
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
s[i]) == '\t'
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
))
0-95
462 ++
never executed: ++i;
i;
never executed: ++i;
0
463-
464 if (s[i] == '\\'
s[i] == '\\'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 92 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
3-92
465 {-
466 ++i;-
467 escaped_filename = -
468 1-
469 ;-
470 }
executed 3 times by 1 test: end of block
Executed by:
  • md5sum
3
471-
472-
473-
474 algo_name_len = strlen ("BLAKE2");-
475 if ((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
476 (__extension__ (__builtin_constant_p (
__builtin_cons...lgo_name_len )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
477 algo_name_len
__builtin_cons...lgo_name_len )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
478 )
__builtin_cons...lgo_name_len )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& ((__builtin_constant_p (
__builtin_constant_p ( s + i )Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
479 s + i
__builtin_constant_p ( s + i )Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
480 )
__builtin_constant_p ( s + i )Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
&& strlen (
strlen ( s + i...go_name_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
481 s + i
strlen ( s + i...go_name_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
482 ) < ((size_t) (
strlen ( s + i...go_name_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
483 algo_name_len
strlen ( s + i...go_name_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
484 ))
strlen ( s + i...go_name_len ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_cons...p ( "BLAKE2" )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
485 "BLAKE2"
__builtin_cons...p ( "BLAKE2" )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
486 )
__builtin_cons...p ( "BLAKE2" )Description
TRUEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& strlen (
strlen ( "BLAK...go_name_len ))Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
487 "BLAKE2"
strlen ( "BLAK...go_name_len ))Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
488 ) < ((size_t) (
strlen ( "BLAK...go_name_len ))Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
489 algo_name_len
strlen ( "BLAK...go_name_len ))Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
490 ))
strlen ( "BLAK...go_name_len ))Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-95
491 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
492 ) && __builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
493 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
494 ) && (__s1_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
495 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
496 ), __s2_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
497 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
498 ), (!((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
499 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
500 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
501 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
502 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
503 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
504 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
505 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
506 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
507 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
508 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
509 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
510 ) : (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
511 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
512 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
513 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
514 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
515 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
516 ) == 1) && (__s1_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
517 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
518 ), __s1_len < 4) ? (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
519 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
520 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
521 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
522 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
523 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
524 ) == 1) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
525 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
526 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
527 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
528 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
529 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
530 ); int __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
531 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
532 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
533 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
534 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
535 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
536 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
537 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);
0-51
538 ))[3] - __s2[3]);
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
539 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
540 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
541 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
542 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
543 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
544 ) == 1) && (__s2_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
545 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
546 ), __s2_len < 4) ? (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
547 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
548 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
549 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
550 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
551 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
552 ) == 1) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
553 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
554 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
555 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
556 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
557 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
558 ); int __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
559 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
560 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
561 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
562 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
563 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
564 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]);
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
565 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]);
0-51
566 ))[3] - __s2[3]);
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-51
567 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
568 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
569 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
570 )))); }) : strncmp (
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
571 s + i
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
572 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
573 "BLAKE2"
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
574 ,
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
575 algo_name_len
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
576 )))
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
44-51
577 == 0)
( (__extension..._len ))) == 0)Description
TRUEevaluated 44 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 51 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
44-51
578 {-
579 i += algo_name_len;-
580-
581-
582 char const *algo_name = &s[i - algo_name_len];-
583-
584 while (s[i]
s[i]Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • b2sum
&& ! ((
(s[i]) == ' 'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 38 times by 1 test
Evaluated by:
  • b2sum
s[i]) == ' '
(s[i]) == ' 'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 38 times by 1 test
Evaluated by:
  • b2sum
|| (
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • b2sum
s[i]) == '\t'
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 38 times by 1 test
Evaluated by:
  • b2sum
) && s[i] != '-'
s[i] != '-'Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 11 times by 1 test
Evaluated by:
  • b2sum
&& s[i] != '('
s[i] != '('Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 6 times by 1 test
Evaluated by:
  • b2sum
)
0-44
585 ++
executed 21 times by 1 test: ++i;
Executed by:
  • b2sum
i;
executed 21 times by 1 test: ++i;
Executed by:
  • b2sum
21
586 -
587 _Bool -
588 length_specified = s[i] == '-';-
589 -
590 _Bool -
591 openssl_format = s[i] == '(';-
592 s[i++] = '\0';-
593 ptrdiff_t algo = argmatch (algo_name, algorithm_out_string, -
594 ((void *)0)-
595 , 0);-
596 if (algo < 0
algo < 0Description
TRUEnever evaluated
FALSEevaluated 25 times by 1 test
Evaluated by:
  • b2sum
)
0-25
597 return
never executed: return 0 ;
never executed: return 0 ;
0
598 0
never executed: return 0 ;
0
599 ;
never executed: return 0 ;
0
600 else-
601 b2_algorithm = algo;
executed 25 times by 1 test: b2_algorithm = algo;
Executed by:
  • b2sum
25
602 if (openssl_format
openssl_formatDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 19 times by 1 test
Evaluated by:
  • b2sum
)
6-19
603 s[--i] = '(';
executed 6 times by 1 test: s[--i] = '(';
Executed by:
  • b2sum
6
604-
605 if (length_specified
length_specifiedDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 14 times by 1 test
Evaluated by:
  • b2sum
)
11-14
606 {-
607 unsigned long int tmp_ulong;-
608 if (xstrtoul (s + i,
xstrtoul (s + ... == LONGINT_OKDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • b2sum
1-10
609 ((void *)0)
xstrtoul (s + ... == LONGINT_OKDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • b2sum
1-10
610 , 0, &tmp_ulong,
xstrtoul (s + ... == LONGINT_OKDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • b2sum
1-10
611 ((void *)0)
xstrtoul (s + ... == LONGINT_OKDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • b2sum
1-10
612 ) == LONGINT_OK
xstrtoul (s + ... == LONGINT_OKDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • b2sum
1-10
613 && 0 < tmp_ulong
0 < tmp_ulongDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEnever evaluated
&& tmp_ulong <= blake2_max_len[b2_algorithm] * 8
tmp_ulong <= b...algorithm] * 8Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEnever evaluated
0-10
614 && tmp_ulong % 8 == 0
tmp_ulong % 8 == 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
FALSEnever evaluated
)
0-10
615 b2_length = tmp_ulong;
executed 10 times by 1 test: b2_length = tmp_ulong;
Executed by:
  • b2sum
10
616 else-
617 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • b2sum
executed 1 time by 1 test: return 0 ;
Executed by:
  • b2sum
1
618 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • b2sum
1
619 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • b2sum
1
620-
621 while (((
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
unsigned int) (s[i]) - '0' <= 9)
((unsigned int...]) - '0' <= 9)Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 10 times by 1 test
Evaluated by:
  • b2sum
)
10-30
622 ++
executed 30 times by 1 test: ++i;
Executed by:
  • b2sum
i;
executed 30 times by 1 test: ++i;
Executed by:
  • b2sum
30
623 }
executed 10 times by 1 test: end of block
Executed by:
  • b2sum
10
624 else-
625 b2_length = blake2_max_len[b2_algorithm] * 8;
executed 14 times by 1 test: b2_length = blake2_max_len[b2_algorithm] * 8;
Executed by:
  • b2sum
14
626-
627 digest_hex_bytes = b2_length / 4;-
628-
629 if (s[i] == ' '
s[i] == ' 'Description
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 23 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
20-23
630 ++
executed 20 times by 3 tests: ++i;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
i;
executed 20 times by 3 tests: ++i;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
20
631 if (s[i] == '('
s[i] == '('Description
TRUEevaluated 41 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • b2sum
)
2-41
632 {-
633 ++i;-
634 *binary = 0;-
635 return
executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
bsd_split_3 (s + i, s_len - i,
executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
636 hex_digest, file_name, escaped_filename);
executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
637 }-
638 return
executed 2 times by 1 test: return 0 ;
Executed by:
  • b2sum
executed 2 times by 1 test: return 0 ;
Executed by:
  • b2sum
2
639 0
executed 2 times by 1 test: return 0 ;
Executed by:
  • b2sum
2
640 ;
executed 2 times by 1 test: return 0 ;
Executed by:
  • b2sum
2
641 }-
642-
643-
644-
645-
646-
647 if (s_len - i < min_digest_line_length + (s[i] == '\\')
s_len - i < mi...(s[i] == '\\')Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 47 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
4-47
648 return
executed 4 times by 1 test: return 0 ;
Executed by:
  • md5sum
executed 4 times by 1 test: return 0 ;
Executed by:
  • md5sum
4
649 0
executed 4 times by 1 test: return 0 ;
Executed by:
  • md5sum
4
650 ;
executed 4 times by 1 test: return 0 ;
Executed by:
  • md5sum
4
651-
652 *hex_digest = (unsigned char *) &s[i];-
653-
654-
655-
656 unsigned char const *hp = *hex_digest;-
657 digest_hex_bytes = 0;-
658 while (-
659 ((*
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 320 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 320 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
4-320
660 *hp++
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 320 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
4-320
661 ))] & (unsigned short int) _ISxdigit)
((*__ctype_b_l...nt) _ISxdigit)Description
TRUEevaluated 320 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
4-320
662 )-
663 digest_hex_bytes++;
executed 320 times by 1 test: digest_hex_bytes++;
Executed by:
  • b2sum
320
664 if (digest_hex_bytes < 2
digest_hex_bytes < 2Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
|| digest_hex_bytes % 2
digest_hex_bytes % 2Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
0-4
665 || blake2_max_len[b2_algorithm] * 2 < digest_hex_bytes
blake2_max_len...gest_hex_bytesDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • b2sum
)
0-4
666 return
never executed: return 0 ;
never executed: return 0 ;
0
667 0
never executed: return 0 ;
0
668 ;
never executed: return 0 ;
0
669 b2_length = digest_hex_bytes * 4;-
670-
671-
672-
673-
674-
675 i += digest_hex_bytes;-
676 if (!((
(s[i]) == ' 'Description
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
s[i]) == ' '
(s[i]) == ' 'Description
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
|| (
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
s[i]) == '\t'
(s[i]) == '\t'Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
))
0-43
677 return
executed 4 times by 2 tests: return 0 ;
Executed by:
  • md5sum
  • sha1sum
executed 4 times by 2 tests: return 0 ;
Executed by:
  • md5sum
  • sha1sum
4
678 0
executed 4 times by 2 tests: return 0 ;
Executed by:
  • md5sum
  • sha1sum
4
679 ;
executed 4 times by 2 tests: return 0 ;
Executed by:
  • md5sum
  • sha1sum
4
680-
681 s[i++] = '\0';-
682-
683 if (! hex_digits (*hex_digest)
! hex_digits (*hex_digest)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
2-41
684 return
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
685 0
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
686 ;
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
687-
688-
689 if ((
(s_len - i == 1)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
s_len - i == 1)
(s_len - i == 1)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
|| (s[i] != ' '
s[i] != ' 'Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
&& s[i] != '*'
s[i] != '*'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
))
2-38
690 {-
691-
692-
693-
694-
695-
696-
697 if (bsd_reversed == 0
bsd_reversed == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
)
2-3
698 return
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
699 0
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
700 ;
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
701 bsd_reversed = 1;-
702 }
executed 3 times by 1 test: end of block
Executed by:
  • md5sum
3
703 else if (bsd_reversed != 1
bsd_reversed != 1Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
)
2-34
704 {-
705 bsd_reversed = 0;-
706 *binary = (s[i++] == '*');-
707 }
executed 34 times by 2 tests: end of block
Executed by:
  • b2sum
  • md5sum
34
708-
709-
710-
711 *file_name = &s[i];-
712-
713 if (escaped_filename
escaped_filenameDescription
TRUEnever evaluated
FALSEevaluated 39 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
0-39
714 return
never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ;
filename_unescape (&s[i], s_len - i) !=
never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ;
0
715 ((void *)0)
never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ;
0
716 ;
never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ;
0
717-
718 return
executed 39 times by 2 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
executed 39 times by 2 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
39
719 1
executed 39 times by 2 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
39
720 ;
executed 39 times by 2 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
39
721}-
722-
723-
724-
725static void-
726print_filename (char const *file, -
727 _Bool -
728 escape)-
729{-
730 if (! escape
! escapeDescription
TRUEevaluated 1865 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
10-1865
731 {-
732 fputs_unlocked (file,-
733 stdout-
734 );-
735 return;
executed 1865 times by 7 tests: return;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1865
736 }-
737-
738 while (*
*fileDescription
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
file
*fileDescription
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
10-45
739 {-
740 switch (*file)-
741 {-
742 case
executed 6 times by 2 tests: case '\n':
Executed by:
  • md5sum
  • sha1sum
'\n':
executed 6 times by 2 tests: case '\n':
Executed by:
  • md5sum
  • sha1sum
6
743 fputs_unlocked ("\\n",-
744 stdout-
745 );-
746 break;
executed 6 times by 2 tests: break;
Executed by:
  • md5sum
  • sha1sum
6
747-
748 case
executed 6 times by 2 tests: case '\\':
Executed by:
  • md5sum
  • sha1sum
'\\':
executed 6 times by 2 tests: case '\\':
Executed by:
  • md5sum
  • sha1sum
6
749 fputs_unlocked ("\\\\",-
750 stdout-
751 );-
752 break;
executed 6 times by 2 tests: break;
Executed by:
  • md5sum
  • sha1sum
6
753-
754 default
executed 33 times by 2 tests: default:
Executed by:
  • md5sum
  • sha1sum
:
executed 33 times by 2 tests: default:
Executed by:
  • md5sum
  • sha1sum
33
755 putchar_unlocked (*file);-
756 break;
executed 33 times by 2 tests: break;
Executed by:
  • md5sum
  • sha1sum
33
757 }-
758 file++;-
759 }
executed 45 times by 2 tests: end of block
Executed by:
  • md5sum
  • sha1sum
45
760}
executed 10 times by 2 tests: end of block
Executed by:
  • md5sum
  • sha1sum
10
761static -
762 _Bool-
763-
764digest_file (const char *filename, int *binary, unsigned char *bin_result,-
765 -
766 _Bool -
767 *missing)-
768{-
769 FILE *fp;-
770 int err;-
771 -
772 _Bool -
773 is_stdin = (-
774 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (-
775 filename-
776 ) && __builtin_constant_p (-
777 "-"-
778 ) && (__s1_len = __builtin_strlen (-
779 filename-
780 ), __s2_len = __builtin_strlen (-
781 "-"-
782 ), (!((size_t)(const void *)((-
783 filename-
784 ) + 1) - (size_t)(const void *)(-
785 filename-
786 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((-
787 "-"-
788 ) + 1) - (size_t)(const void *)(-
789 "-"-
790 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (-
791 filename-
792 , -
793 "-"-
794 ) : (__builtin_constant_p (-
795 filename-
796 ) && ((size_t)(const void *)((-
797 filename-
798 ) + 1) - (size_t)(const void *)(-
799 filename-
800 ) == 1) && (__s1_len = __builtin_strlen (-
801 filename-
802 ), __s1_len < 4) ? (__builtin_constant_p (-
803 "-"-
804 ) && ((size_t)(const void *)((-
805 "-"-
806 ) + 1) - (size_t)(const void *)(-
807 "-"-
808 ) == 1) ? __builtin_strcmp (-
809 filename-
810 , -
811 "-"-
812 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
813 "-"-
814 ); int __result = (((const unsigned char *) (const char *) (-
815 filename-
816 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
817 filename-
818 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
819 filename-
820 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
0
821 filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
0
822 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
0
823 "-"-
824 ) && ((size_t)(const void *)((-
825 "-"-
826 ) + 1) - (size_t)(const void *)(-
827 "-"-
828 ) == 1) && (__s2_len = __builtin_strlen (-
829 "-"-
830 ), __s2_len < 4) ? (__builtin_constant_p (-
831 filename-
832 ) && ((size_t)(const void *)((-
833 filename-
834 ) + 1) - (size_t)(const void *)(-
835 filename-
836 ) == 1) ? __builtin_strcmp (-
837 filename-
838 , -
839 "-"-
840 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
841 filename-
842 ); int __result = (((const unsigned char *) (const char *) (-
843 "-"-
844 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 1886 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 13 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 1873 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
) { __result = (((const unsigned char *) (const char *) (
0-1886
845 "-"-
846 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 13 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0-13
847 "-"-
848 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0
849 "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0
850 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
}
executed 13 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
__result; }))) : __builtin_strcmp (
0-13
851 filename-
852 , -
853 "-"-
854 )))); }) -
855 == 0);-
856-
857 *missing = -
858 0-
859 ;-
860-
861 if (is_stdin
is_stdinDescription
TRUEevaluated 13 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 1873 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
13-1873
862 {-
863 have_read_stdin = -
864 1-
865 ;-
866 fp = -
867 stdin-
868 ;-
869 if (-
870 0 -
871 && *
dead code: *binary
binary
dead code: *binary
)
-
872 {
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
873 if (*binary < 0)
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
874 *binary = ! isatty (
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
875 0
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
876 );
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
877 if (*binary)
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
878 xset_binary_mode (
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
879 0
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
880 ,
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
881 0
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
882 );
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
883 }
dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); }
-
884 }
executed 13 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
13
885 else-
886 {-
887 fp = fopen_safer (filename, (-
888 0 -
889 && *binary ? "rb" : "r"));-
890 if (fp ==
fp == ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 1867 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
6-1867
891 ((void *)0)
fp == ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 1867 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
6-1867
892 )-
893 {-
894 if (ignore_missing
ignore_missingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
&&
2-4
895 (*
(*__errno_location ()) == 2Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 2Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
0-4
896 ==
(*__errno_location ()) == 2Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
0-4
897 2
(*__errno_location ()) == 2Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
0-4
898 )-
899 {-
900 *missing = -
901 1-
902 ;-
903 return
executed 4 times by 1 test: return 1 ;
Executed by:
  • md5sum
executed 4 times by 1 test: return 1 ;
Executed by:
  • md5sum
4
904 1
executed 4 times by 1 test: return 1 ;
Executed by:
  • md5sum
4
905 ;
executed 4 times by 1 test: return 1 ;
Executed by:
  • md5sum
4
906 }-
907 error (0, -
908 (*__errno_location ())-
909 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename));-
910 return
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
911 0
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
912 ;
executed 2 times by 1 test: return 0 ;
Executed by:
  • md5sum
2
913 }-
914 }
executed 1867 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1867
915-
916 fadvise (fp, FADVISE_SEQUENTIAL);-
917-
918-
919 err = blake2fns[b2_algorithm] (fp, bin_result, b2_length / 8);-
920-
921-
922-
923 if (err
errDescription
TRUEnever evaluated
FALSEevaluated 1880 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
0-1880
924 {-
925 error (0, -
926 (*__errno_location ())-
927 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename));-
928 if (fp !=
fp != stdinDescription
TRUEnever evaluated
FALSEnever evaluated
0
929 stdin
fp != stdinDescription
TRUEnever evaluated
FALSEnever evaluated
0
930 )-
931 -
932 rpl_fclose
never executed: rpl_fclose (fp);
0
933 (fp);
never executed: rpl_fclose (fp);
0
934 return
never executed: return 0 ;
never executed: return 0 ;
0
935 0
never executed: return 0 ;
0
936 ;
never executed: return 0 ;
0
937 }-
938-
939 if (!is_stdin
!is_stdinDescription
TRUEevaluated 1867 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 13 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&&
13-1867
940 rpl_fclose
rpl_fclose (fp) != 0Description
TRUEnever evaluated
FALSEevaluated 1867 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1867
941 (fp) != 0
rpl_fclose (fp) != 0Description
TRUEnever evaluated
FALSEevaluated 1867 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
0-1867
942 {-
943 error (0, -
944 (*__errno_location ())-
945 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename));-
946 return
never executed: return 0 ;
never executed: return 0 ;
0
947 0
never executed: return 0 ;
0
948 ;
never executed: return 0 ;
0
949 }-
950-
951 return
executed 1880 times by 7 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
executed 1880 times by 7 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1880
952 1
executed 1880 times by 7 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1880
953 ;
executed 1880 times by 7 tests: return 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1880
954}-
955-
956static -
957 _Bool-
958-
959digest_check (const char *checkfile_name)-
960{-
961 FILE *checkfile_stream;-
962 uintmax_t n_misformatted_lines = 0;-
963 uintmax_t n_improperly_formatted_lines = 0;-
964 uintmax_t n_mismatched_checksums = 0;-
965 uintmax_t n_open_or_read_failures = 0;-
966 -
967 _Bool -
968 properly_formatted_lines = -
969 0-
970 ;-
971 -
972 _Bool -
973 matched_checksums = -
974 0-
975 ;-
976 unsigned char bin_buffer_unaligned[(512 / 8) + 8];-
977-
978 unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 8);-
979 uintmax_t line_number;-
980 char *line;-
981 size_t line_chars_allocated;-
982 -
983 _Bool -
984 is_stdin = (-
985 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (-
986 checkfile_name-
987 ) && __builtin_constant_p (-
988 "-"-
989 ) && (__s1_len = __builtin_strlen (-
990 checkfile_name-
991 ), __s2_len = __builtin_strlen (-
992 "-"-
993 ), (!((size_t)(const void *)((-
994 checkfile_name-
995 ) + 1) - (size_t)(const void *)(-
996 checkfile_name-
997 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((-
998 "-"-
999 ) + 1) - (size_t)(const void *)(-
1000 "-"-
1001 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (-
1002 checkfile_name-
1003 , -
1004 "-"-
1005 ) : (__builtin_constant_p (-
1006 checkfile_name-
1007 ) && ((size_t)(const void *)((-
1008 checkfile_name-
1009 ) + 1) - (size_t)(const void *)(-
1010 checkfile_name-
1011 ) == 1) && (__s1_len = __builtin_strlen (-
1012 checkfile_name-
1013 ), __s1_len < 4) ? (__builtin_constant_p (-
1014 "-"-
1015 ) && ((size_t)(const void *)((-
1016 "-"-
1017 ) + 1) - (size_t)(const void *)(-
1018 "-"-
1019 ) == 1) ? __builtin_strcmp (-
1020 checkfile_name-
1021 , -
1022 "-"-
1023 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
1024 "-"-
1025 ); int __result = (((const unsigned char *) (const char *) (-
1026 checkfile_name-
1027 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
1028 checkfile_name-
1029 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0
1030 checkfile_name-
1031 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]);
0
1032 checkfile_name
never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]);
0
1033 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
0
1034 "-"-
1035 ) && ((size_t)(const void *)((-
1036 "-"-
1037 ) + 1) - (size_t)(const void *)(-
1038 "-"-
1039 ) == 1) && (__s2_len = __builtin_strlen (-
1040 "-"-
1041 ), __s2_len < 4) ? (__builtin_constant_p (-
1042 checkfile_name-
1043 ) && ((size_t)(const void *)((-
1044 checkfile_name-
1045 ) + 1) - (size_t)(const void *)(-
1046 checkfile_name-
1047 ) == 1) ? __builtin_strcmp (-
1048 checkfile_name-
1049 , -
1050 "-"-
1051 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (-
1052 checkfile_name-
1053 ); int __result = (((const unsigned char *) (const char *) (-
1054 "-"-
1055 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 41 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
) { __result = (((const unsigned char *) (const char *) (
0-41
1056 "-"-
1057 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
0-1
1058 "-"-
1059 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0
1060 "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0
1061 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
}
executed 1 time by 1 test: end of block
Executed by:
  • md5sum
__result; }))) : __builtin_strcmp (
0-1
1062 checkfile_name-
1063 , -
1064 "-"-
1065 )))); }) -
1066 == 0);-
1067-
1068 if (is_stdin
is_stdinDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
1-40
1069 {-
1070 have_read_stdin = -
1071 1-
1072 ;-
1073 checkfile_name = -
1074 dcgettext (((void *)0), -
1075 "standard input"-
1076 , 5)-
1077 ;-
1078 checkfile_stream = -
1079 stdin-
1080 ;-
1081 }
executed 1 time by 1 test: end of block
Executed by:
  • md5sum
1
1082 else-
1083 {-
1084 checkfile_stream = fopen_safer (checkfile_name, "r");-
1085 if (checkfile_stream ==
checkfile_stre...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-40
1086 ((void *)0)
checkfile_stre...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-40
1087 )-
1088 {-
1089 error (0, -
1090 (*__errno_location ())-
1091 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));-
1092 return
never executed: return 0 ;
never executed: return 0 ;
0
1093 0
never executed: return 0 ;
0
1094 ;
never executed: return 0 ;
0
1095 }-
1096 }
executed 40 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
40
1097-
1098 line_number = 0;-
1099 line = -
1100 ((void *)0)-
1101 ;-
1102 line_chars_allocated = 0;-
1103 do-
1104 {-
1105 char *filename ;-
1106 int binary;-
1107 unsigned char *hex_digest ;-
1108 ssize_t line_length;-
1109-
1110 ++line_number;-
1111 if (line_number == 0
line_number == 0Description
TRUEnever evaluated
FALSEevaluated 134 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-134
1112 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1113 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1114 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1115 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1116 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1117 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1118 "%s: too many checksum lines"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1119 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1120 , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1121 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1122 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1123 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1124 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1125 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1126 "%s: too many checksum lines"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1127 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1128 , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1129 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1130 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1131 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
1132-
1133 line_length = getline (&line, &line_chars_allocated, checkfile_stream);-
1134 if (line_length <= 0
line_length <= 0Description
TRUEevaluated 39 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
39-95
1135 break;
executed 39 times by 3 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
39
1136-
1137-
1138 if (line[0] == '#'
line[0] == '#'Description
TRUEnever evaluated
FALSEevaluated 95 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-95
1139 continue;
never executed: continue;
0
1140-
1141-
1142 if (line[line_length - 1] == '\n'
line[line_length - 1] == '\n'Description
TRUEevaluated 93 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
2-93
1143 line[--line_length] = '\0';
executed 93 times by 3 tests: line[--line_length] = '\0';
Executed by:
  • b2sum
  • md5sum
  • sha1sum
93
1144-
1145 if (! (split_3 (line, line_length, &hex_digest, &binary, &filename)
split_3 (line,...ry, &filename)Description
TRUEevaluated 76 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 19 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
19-76
1146 && ! (is_stdin
is_stdinDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
&& (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-74
1147 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1148 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1149 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1150 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1151 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1152 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1153 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1154 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1155 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1156 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1157 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1158 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1159 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1160 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1161 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1162 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1163 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1164 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1165 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1166 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1167 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1168 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1169 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1170 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1171 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1172 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1173 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1174 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1175 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1176 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1177 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1178 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1179 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1180 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1181 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1182 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1183 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1184 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1185 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1186 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1187 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1188 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1189 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1190 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1191 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1192 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1193 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1194 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
0-2
1195 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1196 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1197 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1198 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1199 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1200 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1201 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1202 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1203 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1204 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1205 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1206 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1207 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1208 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1209 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1210 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1211 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1212 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1213 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1214 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1215 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1216 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1217 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1218 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1219 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1220 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1221 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1222 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0-2
1223 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1224 filename
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1225 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1226 "-"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1227 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
0-2
1228 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
)))
0-2
1229 {-
1230 ++n_misformatted_lines;-
1231-
1232 if (warn
warnDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
1-18
1233 {-
1234 error (0, 0,-
1235 -
1236 dcgettext (((void *)0), -
1237 "%s: %" -
1238 "l" "u" -
1239 ": improperly formatted %s checksum line"-
1240 , 5)-
1241 -
1242 ,-
1243 quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), line_number,-
1244 "BLAKE2");-
1245 }
executed 1 time by 1 test: end of block
Executed by:
  • md5sum
1
1246-
1247 ++n_improperly_formatted_lines;-
1248 }
executed 19 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
19
1249 else-
1250 {-
1251 static const char bin2hex[] = { '0', '1', '2', '3',-
1252 '4', '5', '6', '7',-
1253 '8', '9', 'a', 'b',-
1254 'c', 'd', 'e', 'f' };-
1255 -
1256 _Bool -
1257 ok;-
1258 -
1259 _Bool -
1260 missing;-
1261-
1262-
1263 -
1264 _Bool -
1265 needs_escape = ! status_only
! status_onlyDescription
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
&&
5-71
1266 (
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__extension__ (__builtin_constant_p (
__builtin_constant_p ( '\n' )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1267 '\n'
__builtin_constant_p ( '\n' )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1268 )
__builtin_constant_p ( '\n' )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con...p ( filename )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1269 filename
!__builtin_con...p ( filename )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1270 )
!__builtin_con...p ( filename )Description
TRUEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
&& (
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1271 '\n'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1272 ) == '\0'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 71 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
? (char *) __rawmemchr (
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-71
1273 filename
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1274 ,
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1275 '\n'
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1276 ) : __builtin_strchr (
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1277 filename
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1278 ,
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1279 '\n'
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1280 )))
(__extension__...ame , '\n' )))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 70 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
1-70
1281 ;-
1282-
1283 properly_formatted_lines = -
1284 1-
1285 ;-
1286-
1287 ok = digest_file (filename, &binary, bin_buffer, &missing);-
1288-
1289 if (!ok
!okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
2-74
1290 {-
1291 ++n_open_or_read_failures;-
1292 if (!status_only
!status_onlyDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
FALSEnever evaluated
)
0-2
1293 {-
1294 if (needs_escape
needs_escapeDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
)
0-2
1295 putchar_unlocked ('\\');
never executed: putchar_unlocked ('\\');
0
1296 print_filename (filename, needs_escape);-
1297 printf (": %s\n", -
1298 dcgettext (((void *)0), -
1299 "FAILED open or read"-
1300 , 5)-
1301 );-
1302 }
executed 2 times by 1 test: end of block
Executed by:
  • md5sum
2
1303 }
executed 2 times by 1 test: end of block
Executed by:
  • md5sum
2
1304 else if (ignore_missing
ignore_missingDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
&& missing
missingDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
)
4-66
1305 {-
1306-
1307 ;-
1308 }
executed 4 times by 1 test: end of block
Executed by:
  • md5sum
4
1309 else-
1310 {-
1311 size_t digest_bin_bytes = digest_hex_bytes / 2;-
1312 size_t cnt;-
1313-
1314-
1315-
1316 for (cnt = 0; cnt < digest_bin_bytes
cnt < digest_bin_bytesDescription
TRUEevaluated 1554 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
; ++cnt)
60-1554
1317 {-
1318 if (-
1319 (
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__extension__ ({ int __res; if (sizeof (
sizeof ( hex_d...2 * cnt] ) > 1Description
TRUEnever evaluated
FALSEevaluated 1554 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1554
1320 hex_digest[2 * cnt]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
sizeof ( hex_d...2 * cnt] ) > 1Description
TRUEnever evaluated
FALSEevaluated 1554 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1554
1321 ) > 1
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
sizeof ( hex_d...2 * cnt] ) > 1Description
TRUEnever evaluated
FALSEevaluated 1554 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
) { if (__builtin_constant_p (
__builtin_cons...est[2 * cnt] )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1554
1322 hex_digest[2 * cnt]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__builtin_cons...est[2 * cnt] )Description
TRUEnever evaluated
FALSEnever evaluated
0-1544
1323 )
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__builtin_cons...est[2 * cnt] )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1324 hex_digest[2 * cnt]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
10-1544
1325 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( hex_digest[2 * cnt] );
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1326 hex_digest[2 * cnt]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __res = tolower ( hex_digest[2 * cnt] );
0-1544
1327 );
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __res = tolower ( hex_digest[2 * cnt] );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )];
Executed by:
  • b2sum
  • md5sum
  • sha1sum
0-1554
1328 hex_digest[2 * cnt]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )];
Executed by:
  • b2sum
  • md5sum
  • sha1sum
10-1554
1329 )]; __res; }))
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
10-1554
1330
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
10-1544
1331 != bin2hex[bin_buffer[cnt] >> 4]
(__extension__...fer[cnt] >> 4]Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
10-1544
1332 || (
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1333 (__extension__ ({ int __res; if (sizeof (
sizeof ( hex_d...cnt + 1] ) > 1Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1334 hex_digest[2 * cnt + 1]
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
sizeof ( hex_d...cnt + 1] ) > 1Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1335 ) > 1) { if (__builtin_constant_p (
__builtin_cons...2 * cnt + 1] )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1336 hex_digest[2 * cnt + 1]
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__builtin_cons...2 * cnt + 1] )Description
TRUEnever evaluated
FALSEnever evaluated
0-1544
1337 )
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
__builtin_cons...2 * cnt + 1] )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1338 hex_digest[2 * cnt + 1]
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1339 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( hex_digest[2 * cnt + 1] );
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1340 hex_digest[2 * cnt + 1]
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __res = tolower ( hex_digest[2 * cnt + 1] );
0-1544
1341 );
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
never executed: __res = tolower ( hex_digest[2 * cnt + 1] );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )];
Executed by:
  • b2sum
  • md5sum
  • sha1sum
( (__extension...[cnt] & 0xf]))Description
TRUE