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
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1342 hex_digest[2 * cnt + 1]
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )];
Executed by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1343 )];
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )];
Executed by:
  • b2sum
  • md5sum
  • sha1sum
__res; }))
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1344
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-1544
1345 != (bin2hex[bin_buffer[cnt] & 0xf]))
( (__extension...[cnt] & 0xf]))Description
TRUEnever evaluated
FALSEevaluated 1544 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-1544
1346 break;
executed 10 times by 2 tests: break;
Executed by:
  • md5sum
  • sha1sum
10
1347 }
executed 1544 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
1544
1348 if (cnt != digest_bin_bytes
cnt != digest_bin_bytesDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
10-60
1349 ++
executed 10 times by 2 tests: ++n_mismatched_checksums;
Executed by:
  • md5sum
  • sha1sum
n_mismatched_checksums;
executed 10 times by 2 tests: ++n_mismatched_checksums;
Executed by:
  • md5sum
  • sha1sum
10
1350 else-
1351 matched_checksums =
executed 60 times by 3 tests: matched_checksums = 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
60
1352 1
executed 60 times by 3 tests: matched_checksums = 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
60
1353 ;
executed 60 times by 3 tests: matched_checksums = 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
60
1354-
1355 if (!status_only
!status_onlyDescription
TRUEevaluated 65 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
5-65
1356 {-
1357 if (cnt != digest_bin_bytes
cnt != digest_bin_bytesDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
|| ! quiet
! quietDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
)
2-60
1358 {-
1359 if (needs_escape
needs_escapeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 62 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
1-62
1360 putchar_unlocked ('\\');
executed 1 time by 1 test: putchar_unlocked ('\\');
Executed by:
  • md5sum
1
1361 print_filename (filename, needs_escape);-
1362 }
executed 63 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
63
1363-
1364 if (cnt != digest_bin_bytes
cnt != digest_bin_bytesDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
5-60
1365 printf (": %s\n",
executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );
Executed by:
  • md5sum
5
1366 dcgettext (((void *)0),
executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );
Executed by:
  • md5sum
5
1367 "FAILED"
executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );
Executed by:
  • md5sum
5
1368 , 5)
executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );
Executed by:
  • md5sum
5
1369 );
executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );
Executed by:
  • md5sum
5
1370 else if (!quiet
!quietDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 2 times by 1 test
Evaluated by:
  • md5sum
)
2-58
1371 printf (": %s\n",
executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
58
1372 dcgettext (((void *)0),
executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
58
1373 "OK"
executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
58
1374 , 5)
executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
58
1375 );
executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
58
1376 }
executed 65 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
65
1377 }
executed 70 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
70
1378 }-
1379 }-
1380 while (!feof_unlocked (checkfile_stream)
!feof_unlocked...ckfile_stream)Description
TRUEevaluated 93 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
&& !ferror_unlocked (checkfile_stream)
!ferror_unlock...ckfile_stream)Description
TRUEevaluated 93 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEnever evaluated
);
0-93
1381-
1382 free (line);-
1383-
1384 if (ferror_unlocked (checkfile_stream)
ferror_unlocke...ckfile_stream)Description
TRUEnever evaluated
FALSEevaluated 41 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-41
1385 {-
1386 error (0, 0, -
1387 dcgettext (((void *)0), -
1388 "%s: read error"-
1389 , 5)-
1390 , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));-
1391 return
never executed: return 0 ;
never executed: return 0 ;
0
1392 0
never executed: return 0 ;
0
1393 ;
never executed: return 0 ;
0
1394 }-
1395-
1396 if (!is_stdin
!is_stdinDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
&&
1-40
1397 rpl_fclose
rpl_fclose (ch...e_stream) != 0Description
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
0-40
1398 (checkfile_stream) != 0
rpl_fclose (ch...e_stream) != 0Description
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
0-40
1399 {-
1400 error (0, -
1401 (*__errno_location ())-
1402 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));-
1403 return
never executed: return 0 ;
never executed: return 0 ;
0
1404 0
never executed: return 0 ;
0
1405 ;
never executed: return 0 ;
0
1406 }-
1407-
1408 if (! properly_formatted_lines
! properly_formatted_linesDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
8-33
1409 {-
1410-
1411 error (0, 0, -
1412 dcgettext (((void *)0), -
1413 "%s: no properly formatted %s checksum lines found"-
1414 , 5)-
1415 ,-
1416 quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), "BLAKE2");-
1417 }
executed 8 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
8
1418 else-
1419 {-
1420 if (!status_only
!status_onlyDescription
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
5-28
1421 {-
1422 if (n_misformatted_lines != 0
n_misformatted_lines != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
6-22
1423 error (0, 0,
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1424 (
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1425 dcngettext (((void *)0),
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1426 "WARNING: %"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1427 "l" "u"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1428 " line is improperly formatted"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1429 ,
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1430 "WARNING: %"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1431 "l" "u"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1432 " lines are improperly formatted"
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1433 ,
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1434 select_plural (n_misformatted_lines)
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1435 , 5)
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
14366
14376
1438
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1439 ),
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1440 n_misformatted_lines);
executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines);
Executed by:
  • md5sum
6
1441-
1442 if (n_open_or_read_failures != 0
n_open_or_read_failures != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
1-27
1443 error (0, 0,
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1444 (
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1445 dcngettext (((void *)0),
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1446 "WARNING: %"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1447 "l" "u"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1448 " listed file could not be read"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1449 ,
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1450 "WARNING: %"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1451 "l" "u"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1452 " listed files could not be read"
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1453 ,
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1454 select_plural (n_open_or_read_failures)
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1455 , 5)
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
14561
14571
1458
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1459 ),
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1460 n_open_or_read_failures);
executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures);
Executed by:
  • md5sum
1
1461-
1462 if (n_mismatched_checksums != 0
n_mismatched_checksums != 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
)
3-25
1463 error (0, 0,
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1464 (
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1465 dcngettext (((void *)0),
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1466 "WARNING: %"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1467 "l" "u"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1468 " computed checksum did NOT match"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1469 ,
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1470 "WARNING: %"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1471 "l" "u"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1472 " computed checksums did NOT match"
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1473 ,
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1474 select_plural (n_mismatched_checksums)
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1475 , 5)
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
14763
14773
1478
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1479 ),
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1480 n_mismatched_checksums);
executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums);
Executed by:
  • md5sum
3
1481-
1482 if (ignore_missing
ignore_missingDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 23 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
&& ! matched_checksums
! matched_checksumsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
)
1-23
1483 error (0, 0,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1484 dcgettext (((void *)0),
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1485 "%s: no file was verified"
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1486 , 5)
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1487 ,
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1488 quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name));
Executed by:
  • md5sum
1
1489 }
executed 28 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
28
1490 }
executed 33 times by 3 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
33
1491-
1492 return
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
(properly_formatted_lines
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1493 && matched_checksums
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1494 && n_mismatched_checksums == 0
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1495 && n_open_or_read_failures == 0
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1496 && (!strict || n_improperly_formatted_lines == 0));
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0));
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1497}-
1498-
1499int-
1500main (int argc, char **argv)-
1501{-
1502 unsigned char bin_buffer_unaligned[(512 / 8) + 8];-
1503-
1504 unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 8);-
1505 -
1506 _Bool -
1507 do_check = -
1508 0-
1509 ;-
1510 int opt;-
1511 -
1512 _Bool -
1513 ok = -
1514 1-
1515 ;-
1516 int binary = -1;-
1517 -
1518 _Bool -
1519 prefix_tag = -
1520 0-
1521 ;-
1522-
1523-
1524 ;-
1525 set_program_name (argv[0]);-
1526 setlocale (-
1527 6-
1528 , "");-
1529 bindtextdomain ("coreutils", "/usr/local/share/locale");-
1530 textdomain ("coreutils");-
1531-
1532 atexit (close_stdout);-
1533-
1534-
1535-
1536 setvbuf (-
1537 stdout-
1538 , -
1539 ((void *)0)-
1540 , -
1541 1-
1542 , 0);-
1543-
1544-
1545 const char* short_opts = "l:bctw";-
1546 const char* b2_length_str = "";-
1547-
1548-
1549-
1550-
1551 while ((
(opt = getopt_... *)0) )) != -1Description
TRUEevaluated 634 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 357 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
opt = getopt_long (argc, argv, short_opts, long_options,
(opt = getopt_... *)0) )) != -1Description
TRUEevaluated 634 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 357 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
357-634
1552 ((void *)0)
(opt = getopt_... *)0) )) != -1Description
TRUEevaluated 634 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 357 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
357-634
1553 )) != -1
(opt = getopt_... *)0) )) != -1Description
TRUEevaluated 634 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 357 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
357-634
1554 switch (opt)-
1555 {-
1556-
1557 case
executed 17 times by 1 test: case 'l':
Executed by:
  • b2sum
'l':
executed 17 times by 1 test: case 'l':
Executed by:
  • b2sum
17
1558 b2_length = xdectoumax (optarg, 0, -
1559 (18446744073709551615UL)-
1560 , "",-
1561 -
1562 dcgettext (((void *)0), -
1563 "invalid length"-
1564 , 5)-
1565 , 0);-
1566 b2_length_str = optarg;-
1567 if (b2_length % 8 != 0
b2_length % 8 != 0Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • b2sum
)
0-15
1568 {-
1569 error (0, 0, -
1570 dcgettext (((void *)0), -
1571 "invalid length: %s"-
1572 , 5)-
1573 , quote (b2_length_str));-
1574 ((!!sizeof (struct { _Static_assert (-
1575 1-
1576 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"length is not a multiple of 8\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1577 1-
1578 , 0, -
1579 dcgettext (((void *)0), -
1580 "length is not a multiple of 8"-
1581 , 5)-
1582 ), ((-
1583 0-
1584 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1585 1-
1586 , 0, -
1587 dcgettext (((void *)0), -
1588 "length is not a multiple of 8"-
1589 , 5)-
1590 ), ((-
1591 0-
1592 ) ? (void) 0 : __builtin_unreachable ()))));-
1593 }
never executed: end of block
0
1594 break;
executed 15 times by 1 test: break;
Executed by:
  • b2sum
15
1595-
1596 case
executed 14 times by 7 tests: case 'b':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
'b':
executed 14 times by 7 tests: case 'b':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
14
1597 binary = 1;-
1598 break;
executed 14 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
14
1599 case
executed 56 times by 7 tests: case 'c':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
'c':
executed 56 times by 7 tests: case 'c':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
56
1600 do_check = -
1601 1-
1602 ;-
1603 break;
executed 56 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
56
1604 case
executed 12 times by 7 tests: case STATUS_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
STATUS_OPTION:
executed 12 times by 7 tests: case STATUS_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
12
1605 status_only = -
1606 1-
1607 ;-
1608 warn = -
1609 0-
1610 ;-
1611 quiet = -
1612 0-
1613 ;-
1614 break;
executed 12 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
12
1615 case
executed 283 times by 7 tests: case 't':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
't':
executed 283 times by 7 tests: case 't':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
283
1616 binary = 0;-
1617 break;
executed 283 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
283
1618 case
executed 15 times by 7 tests: case 'w':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
'w':
executed 15 times by 7 tests: case 'w':
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
15
1619 status_only = -
1620 0-
1621 ;-
1622 warn = -
1623 1-
1624 ;-
1625 quiet = -
1626 0-
1627 ;-
1628 break;
executed 15 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
15
1629 case
executed 13 times by 7 tests: case IGNORE_MISSING_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
IGNORE_MISSING_OPTION:
executed 13 times by 7 tests: case IGNORE_MISSING_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
13
1630 ignore_missing = -
1631 1-
1632 ;-
1633 break;
executed 13 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
13
1634 case
executed 10 times by 7 tests: case QUIET_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
QUIET_OPTION:
executed 10 times by 7 tests: case QUIET_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
10
1635 status_only = -
1636 0-
1637 ;-
1638 warn = -
1639 0-
1640 ;-
1641 quiet = -
1642 1-
1643 ;-
1644 break;
executed 10 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
10
1645 case
executed 20 times by 7 tests: case STRICT_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
STRICT_OPTION:
executed 20 times by 7 tests: case STRICT_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
20
1646 strict = -
1647 1-
1648 ;-
1649 break;
executed 20 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
20
1650 case
executed 29 times by 7 tests: case TAG_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
TAG_OPTION:
executed 29 times by 7 tests: case TAG_OPTION:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
29
1651 prefix_tag = -
1652 1-
1653 ;-
1654 binary = 1;-
1655 break;
executed 29 times by 7 tests: break;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
29
1656 case
executed 112 times by 7 tests: case GETOPT_HELP_CHAR:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
GETOPT_HELP_CHAR:
executed 112 times by 7 tests: case GETOPT_HELP_CHAR:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
usage (
112
1657 0-
1658 ); break;
never executed: break;
;
0
1659 case
executed 32 times by 7 tests: case GETOPT_VERSION_CHAR:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
GETOPT_VERSION_CHAR:
executed 32 times by 7 tests: case GETOPT_VERSION_CHAR:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
version_etc (
32
1660 stdout-
1661 , "b2sum", "GNU coreutils", Version, ("Padraig Brady"), ("Samuel Neves"), (char *) -
1662 ((void *)0)-
1663 ); exit (
executed 32 times by 7 tests: exit ( 0 );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
32
1664 0
executed 32 times by 7 tests: exit ( 0 );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
32
1665 );
executed 32 times by 7 tests: exit ( 0 );
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
break;
never executed: break;
;
0-32
1666 default
executed 21 times by 7 tests: default:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
:
executed 21 times by 7 tests: default:
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
21
1667 usage (-
1668 1-
1669 );-
1670 }
never executed: end of block
0
1671-
1672 min_digest_line_length = 3;-
1673-
1674 if (b2_length > blake2_max_len[b2_algorithm] * 8
b2_length > bl...algorithm] * 8Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • b2sum
)
0-21
1675 {-
1676 error (0, 0, -
1677 dcgettext (((void *)0), -
1678 "invalid length: %s"-
1679 , 5)-
1680 , quote (b2_length_str));-
1681 ((!!sizeof (struct { _Static_assert (-
1682 1-
1683 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"maximum digest length for %s is %\"\"l\" \"u\"\" bits\", 5), quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1684 1-
1685 , 0, -
1686 dcgettext (((void *)0), -
1687 "maximum digest length for %s is %"-
1688 "l" "u"-
1689 " bits"-
1690 , 5)-
1691 , quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), ((-
1692 0-
1693 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1694 1-
1695 , 0, -
1696 dcgettext (((void *)0), -
1697 "maximum digest length for %s is %"-
1698 "l" "u"-
1699 " bits"-
1700 , 5)-
1701 , quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), ((-
1702 0-
1703 ) ? (void) 0 : __builtin_unreachable ()))))-
1704-
1705-
1706 ;-
1707 }
never executed: end of block
0
1708 if (b2_length == 0
b2_length == 0Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 8 times by 1 test
Evaluated by:
  • b2sum
&& ! do_check
! do_checkDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 6 times by 1 test
Evaluated by:
  • b2sum
)
6-13
1709 b2_length = blake2_max_len[b2_algorithm] * 8;
executed 7 times by 1 test: b2_length = blake2_max_len[b2_algorithm] * 8;
Executed by:
  • b2sum
7
1710 digest_hex_bytes = b2_length / 4;-
1711-
1712-
1713-
1714-
1715 if (prefix_tag
prefix_tagDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 335 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& !binary
!binaryDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 21 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
1-335
1716 {-
1717-
1718-
1719-
1720-
1721-
1722 error (0, 0, -
1723 dcgettext (((void *)0), -
1724 "--tag does not support --text mode"-
1725 , 5)-
1726 );-
1727 usage (-
1728 1-
1729 );-
1730 }
never executed: end of block
0
1731-
1732 if (prefix_tag
prefix_tagDescription
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 335 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& do_check
do_checkDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
1-335
1733 {-
1734 error (0, 0, -
1735 dcgettext (((void *)0), -
1736 "the --tag option is meaningless when " "verifying checksums"-
1737 , 5)-
1738 -
1739 );-
1740 usage (-
1741 1-
1742 );-
1743 }
never executed: end of block
0
1744-
1745 if (0 <= binary
0 <= binaryDescription
TRUEevaluated 288 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 67 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& do_check
do_checkDescription
TRUEnever evaluated
FALSEevaluated 288 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
0-288
1746 {-
1747 error (0, 0, -
1748 dcgettext (((void *)0), -
1749 "the --binary and --text options are meaningless when " "verifying checksums"-
1750 , 5)-
1751 -
1752 );-
1753 usage (-
1754 1-
1755 );-
1756 }
never executed: end of block
0
1757-
1758 if (ignore_missing
ignore_missingDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 349 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& !do_check
!do_checkDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 5 times by 1 test
Evaluated by:
  • md5sum
)
1-349
1759 {-
1760 error (0, 0,-
1761 -
1762 dcgettext (((void *)0), -
1763 "the --ignore-missing option is meaningful only when " "verifying checksums"-
1764 , 5)-
1765 -
1766 );-
1767 usage (-
1768 1-
1769 );-
1770 }
never executed: end of block
0
1771-
1772 if (status_only
status_onlyDescription
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 349 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& !do_check
!do_checkDescription
TRUEnever evaluated
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
)
0-349
1773 {-
1774 error (0, 0,-
1775 -
1776 dcgettext (((void *)0), -
1777 "the --status option is meaningful only when verifying checksums"-
1778 , 5)-
1779 );-
1780 usage (-
1781 1-
1782 );-
1783 }
never executed: end of block
0
1784-
1785 if (warn
warnDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 353 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& !do_check
!do_checkDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • md5sum
)
0-353
1786 {-
1787 error (0, 0,-
1788 -
1789 dcgettext (((void *)0), -
1790 "the --warn option is meaningful only when verifying checksums"-
1791 , 5)-
1792 );-
1793 usage (-
1794 1-
1795 );-
1796 }
never executed: end of block
0
1797-
1798 if (quiet
quietDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 351 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&& !do_check
!do_checkDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • md5sum
)
0-351
1799 {-
1800 error (0, 0,-
1801 -
1802 dcgettext (((void *)0), -
1803 "the --quiet option is meaningful only when verifying checksums"-
1804 , 5)-
1805 );-
1806 usage (-
1807 1-
1808 );-
1809 }
never executed: end of block
0
1810-
1811 if (strict & !do_check
strict & !do_checkDescription
TRUEnever evaluated
FALSEevaluated 354 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
0-354
1812 {-
1813 error (0, 0,-
1814 -
1815 dcgettext (((void *)0), -
1816 "the --strict option is meaningful only when verifying checksums"-
1817 , 5)-
1818 );-
1819 usage (-
1820 1-
1821 );-
1822 }
never executed: end of block
0
1823-
1824 if (!-
1825 0 -
1826 && binary < 0
binary < 0Description
TRUEevaluated 67 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 287 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
67-287
1827 binary = 0;
executed 67 times by 7 tests: binary = 0;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
67
1828-
1829 char **operand_lim = argv + argc;-
1830 if (optind == argc
optind == argcDescription
TRUEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 340 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
14-340
1831 *
executed 14 times by 7 tests: *operand_lim++ = bad_cast ("-");
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
operand_lim++ = bad_cast ("-");
executed 14 times by 7 tests: *operand_lim++ = bad_cast ("-");
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
14
1832-
1833 for (char **operandp = argv + optind; operandp < operand_lim
operandp < operand_limDescription
TRUEevaluated 1851 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 354 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
; operandp++)
354-1851
1834 {-
1835 char *file = *operandp;-
1836-
1837 if (do_check
do_checkDescription
TRUEevaluated 41 times by 3 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
41-1810
1838 ok &= digest_check (file);
executed 41 times by 3 tests: ok &= digest_check (file);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
41
1839 else-
1840 {-
1841 int file_is_binary = binary;-
1842 -
1843 _Bool -
1844 missing;-
1845-
1846 if (! digest_file (file, &file_is_binary, bin_buffer, &missing)
! digest_file ...fer, &missing)Description
TRUEnever evaluated
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
0-1810
1847 ok =
never executed: ok = 0 ;
0
1848 0
never executed: ok = 0 ;
0
1849 ;
never executed: ok = 0 ;
0
1850 else-
1851 {-
1852-
1853-
1854-
1855-
1856-
1857-
1858-
1859 -
1860 _Bool -
1861 needs_escape = -
1862 (
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
__extension__ (__builtin_constant_p (
__builtin_constant_p ( '\\' )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1863 '\\'
__builtin_constant_p ( '\\' )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1864 )
__builtin_constant_p ( '\\' )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_constant_p ( file )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1865 file
!__builtin_constant_p ( file )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1866 )
!__builtin_constant_p ( file )Description
TRUEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
&& (
( '\\' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1867 '\\'
( '\\' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1868 ) == '\0'
( '\\' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
? (char *) __rawmemchr (
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1810
1869 file
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1870 ,
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1871 '\\'
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1872 ) : __builtin_strchr (
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1873 file
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1874 ,
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1875 '\\'
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1876 )))
(__extension__...ile , '\\' )))Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
5-1805
1877 || -
1878 (
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
__extension__ (__builtin_constant_p (
__builtin_constant_p ( '\n' )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1879 '\n'
__builtin_constant_p ( '\n' )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1880 )
__builtin_constant_p ( '\n' )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_constant_p ( file )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1881 file
!__builtin_constant_p ( file )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1882 )
!__builtin_constant_p ( file )Description
TRUEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEnever evaluated
&& (
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1883 '\n'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1884 ) == '\0'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 1805 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
? (char *) __rawmemchr (
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-1805
1885 file
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1886 ,
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1887 '\n'
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1888 ) : __builtin_strchr (
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1889 file
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1890 ,
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1891 '\n'
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1892 )))
(__extension__...ile , '\n' )))Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1801 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
4-1801
1893 ;-
1894-
1895 if (prefix_tag
prefix_tagDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
FALSEevaluated 1790 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
20-1790
1896 {-
1897 if (needs_escape
needs_escapeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • md5sum
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
4-16
1898 putchar_unlocked ('\\');
executed 4 times by 1 test: putchar_unlocked ('\\');
Executed by:
  • md5sum
4
1899-
1900-
1901 fputs_unlocked (algorithm_out_string[b2_algorithm],-
1902 stdout-
1903 );-
1904 if (b2_length < blake2_max_len[b2_algorithm] * 8
b2_length < bl...algorithm] * 8Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • b2sum
FALSEevaluated 5 times by 1 test
Evaluated by:
  • b2sum
)
5
1905 printf ("-%"
executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length);
Executed by:
  • b2sum
5
1906 "l" "u"
executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length);
Executed by:
  • b2sum
5
1907 , b2_length);
executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length);
Executed by:
  • b2sum
5
1908-
1909-
1910-
1911 fputs_unlocked (" (",-
1912 stdout-
1913 );-
1914 print_filename (file, needs_escape);-
1915 fputs_unlocked (") = ",-
1916 stdout-
1917 );-
1918 }
executed 20 times by 2 tests: end of block
Executed by:
  • b2sum
  • md5sum
20
1919-
1920-
1921-
1922 if (!prefix_tag
!prefix_tagDescription
TRUEevaluated 1790 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
&& needs_escape
needs_escapeDescription
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • md5sum
  • sha1sum
FALSEevaluated 1785 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
)
5-1790
1923 putchar_unlocked ('\\');
executed 5 times by 2 tests: putchar_unlocked ('\\');
Executed by:
  • md5sum
  • sha1sum
5
1924-
1925 for (size_t i = 0; i < (digest_hex_bytes / 2)
i < (digest_hex_bytes / 2)Description
TRUEevaluated 30992 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 1810 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
; ++i)
1810-30992
1926 printf ("%02x", bin_buffer[i]);
executed 30992 times by 7 tests: printf ("%02x", bin_buffer[i]);
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
30992
1927-
1928 if (!prefix_tag
!prefix_tagDescription
TRUEevaluated 1790 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • b2sum
  • md5sum
)
20-1790
1929 {-
1930 putchar_unlocked (' ');-
1931-
1932 putchar_unlocked (file_is_binary ? '*' : ' ');-
1933-
1934 print_filename (file, needs_escape);-
1935 }
executed 1790 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1790
1936-
1937 putchar_unlocked ('\n');-
1938 }
executed 1810 times by 7 tests: end of block
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
1810
1939 }-
1940 }-
1941-
1942 if (have_read_stdin
have_read_stdinDescription
TRUEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
FALSEevaluated 340 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
&&
14-340
1943 rpl_fclose
rpl_fclose ( stdin ) == (-1)Description
TRUEnever evaluated
FALSEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-14
1944 (
rpl_fclose ( stdin ) == (-1)Description
TRUEnever evaluated
FALSEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-14
1945 stdin
rpl_fclose ( stdin ) == (-1)Description
TRUEnever evaluated
FALSEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-14
1946 ) ==
rpl_fclose ( stdin ) == (-1)Description
TRUEnever evaluated
FALSEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-14
1947 (-1)
rpl_fclose ( stdin ) == (-1)Description
TRUEnever evaluated
FALSEevaluated 14 times by 7 tests
Evaluated by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
0-14
1948 )-
1949 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1950 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1951 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1952 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1953 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1954 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1955 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1956 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1957 "standard input"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1958 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1959 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1960 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1961 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1962 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1963 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1964 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1965 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1966 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1967 "standard input"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1968 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1969 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1970 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1971 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
1972-
1973 return
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
ok ?
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
354
1974 0
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
354
1975 :
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
354
1976 1
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
354
1977 ;
executed 354 times by 7 tests: return ok ? 0 : 1 ;
Executed by:
  • b2sum
  • md5sum
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
354
1978}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2