OpenCoverage

xstrtol.c #2

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/xstrtol.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10static strtol_error-
11bkm_scale (intmax_t *x, int scale_factor)-
12{-
13 if ((
(! ((intmax_t)...intmax_t) -1))Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • truncate
FALSEevaluated 96 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
! ((intmax_t) 0 < (intmax_t) -1))
(! ((intmax_t)...intmax_t) -1))Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • truncate
FALSEevaluated 96 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
&& *
*x < (-9223372.../ scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
x <
*x < (-9223372.../ scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
0-96
14 (-9223372036854775807L -1)
*x < (-9223372.../ scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
0-37
15 / scale_factor
*x < (-9223372.../ scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
)
0-37
16 {-
17 *x = -
18 (-9223372036854775807L -1)-
19 ;-
20 return
never executed: return LONGINT_OVERFLOW;
LONGINT_OVERFLOW;
never executed: return LONGINT_OVERFLOW;
0
21 }-
22 if (-
23 (
(9223372036854...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
9223372036854775807L)
(9223372036854...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-133
24 / scale_factor < *x
(9223372036854...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
)
0-133
25 {-
26 *x = -
27 (9223372036854775807L)-
28 ;-
29 return
never executed: return LONGINT_OVERFLOW;
LONGINT_OVERFLOW;
never executed: return LONGINT_OVERFLOW;
0
30 }-
31 *x *= scale_factor;-
32 return
executed 133 times by 8 tests: return LONGINT_OK;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
LONGINT_OK;
executed 133 times by 8 tests: return LONGINT_OK;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
133
33}-
34-
35static strtol_error-
36bkm_scale_by_power (intmax_t *x, int base, int power)-
37{-
38 strtol_error err = LONGINT_OK;-
39 while (power--
power--Description
TRUEevaluated 130 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
)
76-130
40 err |= bkm_scale (x, base);
executed 130 times by 8 tests: err |= bkm_scale (x, base);
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
130
41 return
executed 76 times by 8 tests: return err;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
err;
executed 76 times by 8 tests: return err;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
76
42}-
43-
44-
45-
46strtol_error-
47xstrtoimax (const char *s, char **ptr, int strtol_base,-
48 intmax_t *val, const char *valid_suffixes)-
49{-
50 char *t_ptr;-
51 char **p;-
52 intmax_t tmp;-
53 strtol_error err = LONGINT_OK;-
54-
55 -
56 ((-
57 0 <= strtol_base && strtol_base <= 36-
58 ) ? (void) (0) : __assert_fail (-
59 "0 <= strtol_base && strtol_base <= 36"-
60 , "lib/xstrtol.c", 96, __PRETTY_FUNCTION__))-
61 ;-
62-
63 p = (ptr
ptrDescription
TRUEevaluated 2548 times by 9 tests
Evaluated by:
  • dd
  • df
  • dir
  • du
  • numfmt
  • pr
  • sort
  • tr
  • vdir
FALSEevaluated 14202 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dir
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
? ptr : &t_ptr);
2548-14202
64-
65 -
66 (*__errno_location ()) -
67 = 0;-
68-
69 if (! (! ((intmax_t) 0 < (intmax_t) -1))
! (! ((intmax_...intmax_t) -1))Description
TRUEevaluated 6867 times by 28 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • dir
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
FALSEevaluated 9883 times by 9 tests
Evaluated by:
  • csplit
  • du
  • expr
  • nice
  • nl
  • numfmt
  • pr
  • ptx
  • truncate
)
6867-9883
70 {-
71 const char *q = s;-
72 unsigned char ch = *q;-
73 while (-
74 ((*
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • join
  • nproc
  • od
FALSEevaluated 6867 times by 28 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • dir
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • join
  • nproc
  • od
FALSEevaluated 6867 times by 28 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • dir
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
7-6867
75 ch
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • join
  • nproc
  • od
FALSEevaluated 6867 times by 28 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • dir
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
7-6867
76 ))] & (unsigned short int) _ISspace)
((*__ctype_b_l...int) _ISspace)Description
TRUEevaluated 7 times by 3 tests
Evaluated by:
  • join
  • nproc
  • od
FALSEevaluated 6867 times by 28 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • dir
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
7-6867
77 )-
78 ch = *++q;
executed 7 times by 3 tests: ch = *++q;
Executed by:
  • join
  • nproc
  • od
7
79 if (ch == '-'
ch == '-'Description
TRUEevaluated 85 times by 21 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chown
  • df
  • dir
  • du
  • fold
  • head
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • uniq
  • vdir
FALSEevaluated 6782 times by 26 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • tr
  • ...
)
85-6782
80 return
executed 85 times by 21 tests: return LONGINT_INVALID;
Executed by:
  • b2sum
  • base32
  • base64
  • chown
  • df
  • dir
  • du
  • fold
  • head
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • uniq
  • vdir
LONGINT_INVALID;
executed 85 times by 21 tests: return LONGINT_INVALID;
Executed by:
  • b2sum
  • base32
  • base64
  • chown
  • df
  • dir
  • du
  • fold
  • head
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • uniq
  • vdir
85
81 }
executed 6782 times by 26 tests: end of block
Executed by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • tr
  • ...
6782
82-
83 tmp = strtoimax (s, p, strtol_base);-
84-
85 if (*
*p == sDescription
TRUEevaluated 79 times by 18 tests
Evaluated by:
  • b2sum
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
FALSEevaluated 16586 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
p == s
*p == sDescription
TRUEevaluated 79 times by 18 tests
Evaluated by:
  • b2sum
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
FALSEevaluated 16586 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
)
79-16586
86 {-
87-
88-
89 if (valid_suffixes
valid_suffixesDescription
TRUEevaluated 72 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • b2sum
  • ptx
  • shuf
  • sort
&& **
**pDescription
TRUEevaluated 67 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • du
  • shuf
  • sort
p
**pDescription
TRUEevaluated 67 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • du
  • shuf
  • sort
&&
5-72
90 (
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
__extension__ (__builtin_constant_p (
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 67 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-67
91 **p
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 67 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-67
92 )
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 67 times by 16 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • truncate
&& !__builtin_constant_p (
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-67
93 valid_suffixes
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-58
94 )
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-58
95 **p
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-58
96 ) == '\0'
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
0-58
97 valid_suffixes
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
98 ,
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
99 **p
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
100 ) : __builtin_strchr (
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
101 valid_suffixes
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
102 ,
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
103 **p
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
104 )))
(__extension__...ixes , **p )))Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • numfmt
  • split
FALSEevaluated 58 times by 15 tests
Evaluated by:
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
9-58
105 )-
106 tmp = 1;
executed 9 times by 2 tests: tmp = 1;
Executed by:
  • numfmt
  • split
9
107 else-
108 return
executed 70 times by 17 tests: return LONGINT_INVALID;
Executed by:
  • b2sum
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
LONGINT_INVALID;
executed 70 times by 17 tests: return LONGINT_INVALID;
Executed by:
  • b2sum
  • chown
  • csplit
  • du
  • id
  • join
  • nl
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shuf
  • sort
  • stdbuf
  • tail
  • truncate
70
109 }-
110 else if (-
111 (*
(*__errno_location ()) != 0Description
TRUEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
FALSEevaluated 16550 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
__errno_location ())
(*__errno_location ()) != 0Description
TRUEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
FALSEevaluated 16550 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
36-16550
112 != 0
(*__errno_location ()) != 0Description
TRUEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
FALSEevaluated 16550 times by 30 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • expr
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • ptx
  • shred
  • shuf
  • sort
  • split
  • ...
)
36-16550
113 {-
114 if (-
115 (*
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
__errno_location ())
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
0-36
116 !=
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
0-36
117 34
(*__errno_location ()) != 34Description
TRUEnever evaluated
FALSEevaluated 36 times by 10 tests
Evaluated by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
0-36
118 )-
119 return
never executed: return LONGINT_INVALID;
LONGINT_INVALID;
never executed: return LONGINT_INVALID;
0
120 err = LONGINT_OVERFLOW;-
121 }
executed 36 times by 10 tests: end of block
Executed by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
36
122-
123-
124-
125-
126 if (!valid_suffixes
!valid_suffixesDescription
TRUEevaluated 8455 times by 7 tests
Evaluated by:
  • b2sum
  • du
  • expr
  • ptx
  • shuf
  • sort
  • tr
FALSEevaluated 8140 times by 27 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
)
8140-8455
127 {-
128 *val = tmp;-
129 return
executed 8455 times by 7 tests: return err;
Executed by:
  • b2sum
  • du
  • expr
  • ptx
  • shuf
  • sort
  • tr
err;
executed 8455 times by 7 tests: return err;
Executed by:
  • b2sum
  • du
  • expr
  • ptx
  • shuf
  • sort
  • tr
8455
130 }-
131-
132 if (**
**p != '\0'Description
TRUEevaluated 693 times by 15 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • df
  • du
  • fmt
  • head
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
  • truncate
FALSEevaluated 7447 times by 27 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
p != '\0'
**p != '\0'Description
TRUEevaluated 693 times by 15 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • df
  • du
  • fmt
  • head
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
  • truncate
FALSEevaluated 7447 times by 27 tests
Evaluated by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
)
693-7447
133 {-
134 int base = 1024;-
135 int suffixes = 1;-
136 strtol_error overflow;-
137-
138 if (!
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
139 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 693 times by 15 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • df
  • du
  • fmt
  • head
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
  • truncate
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-693
140 **p
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 693 times by 15 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • df
  • du
  • fmt
  • head
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
  • truncate
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-693
141 )
__builtin_constant_p ( **p )Description
TRUEnever evaluated
FALSEevaluated 693 times by 15 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • df
  • du
  • fmt
  • head
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
  • truncate
&& !__builtin_constant_p (
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-693
142 valid_suffixes
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-614
143 )
!__builtin_con...lid_suffixes )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-614
144 **p
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-614
145 ) == '\0'
( **p ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-614
146 valid_suffixes
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
147 ,
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
148 **p
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
149 ) : __builtin_strchr (
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
150 valid_suffixes
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
151 ,
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
152 **p
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
153 )))
! (__extension...ixes , **p )))Description
TRUEevaluated 614 times by 11 tests
Evaluated by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79-614
154 )-
155 {-
156 *val = tmp;-
157 return
executed 614 times by 11 tests: return err | LONGINT_INVALID_SUFFIX_CHAR;
Executed by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
err | LONGINT_INVALID_SUFFIX_CHAR;
executed 614 times by 11 tests: return err | LONGINT_INVALID_SUFFIX_CHAR;
Executed by:
  • base32
  • base64
  • chown
  • dd
  • fmt
  • nice
  • numfmt
  • pr
  • sort
  • split
  • tail
614
158 }-
159-
160 switch (**p)-
161 {-
162 case
never executed: case 'E':
'E':
never executed: case 'E':
case
executed 6 times by 4 tests: case 'G':
Executed by:
  • dd
  • numfmt
  • split
  • truncate
'G':
executed 6 times by 4 tests: case 'G':
Executed by:
  • dd
  • numfmt
  • split
  • truncate
case
never executed: case 'g':
'g':
never executed: case 'g':
case
executed 14 times by 3 tests: case 'k':
Executed by:
  • dd
  • head
  • sort
'k':
executed 14 times by 3 tests: case 'k':
Executed by:
  • dd
  • head
  • sort
case
executed 18 times by 6 tests: case 'K':
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
'K':
executed 18 times by 6 tests: case 'K':
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
case
executed 33 times by 3 tests: case 'M':
Executed by:
  • dd
  • head
  • truncate
'M':
executed 33 times by 3 tests: case 'M':
Executed by:
  • dd
  • head
  • truncate
case
executed 3 times by 1 test: case 'm':
Executed by:
  • head
'm':
executed 3 times by 1 test: case 'm':
Executed by:
  • head
0-33
163 case
never executed: case 'P':
'P':
never executed: case 'P':
case
executed 2 times by 1 test: case 'T':
Executed by:
  • truncate
'T':
executed 2 times by 1 test: case 'T':
Executed by:
  • truncate
case
never executed: case 't':
't':
never executed: case 't':
case
never executed: case 'Y':
'Y':
never executed: case 'Y':
case
never executed: case 'Z':
'Z':
never executed: case 'Z':
0-2
164 if (-
165 (
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
__extension__ (__builtin_constant_p (
__builtin_constant_p ( '0' )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
166 '0'
__builtin_constant_p ( '0' )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
167 )
__builtin_constant_p ( '0' )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con...lid_suffixes )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
168 valid_suffixes
!__builtin_con...lid_suffixes )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
169 )
!__builtin_con...lid_suffixes )Description
TRUEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
FALSEnever evaluated
&& (
( '0' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
170 '0'
( '0' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
171 ) == '\0'
( '0' ) == '\0'Description
TRUEnever evaluated
FALSEevaluated 76 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
? (char *) __rawmemchr (
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
0-76
172 valid_suffixes
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
173 ,
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
174 '0'
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
175 ) : __builtin_strchr (
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
176 valid_suffixes
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
177 ,
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
178 '0'
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
179 )))
(__extension__...ixes , '0' )))Description
TRUEevaluated 66 times by 7 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
  • truncate
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • numfmt
  • sort
10-66
180 )-
181 switch (p[0][1])-
182 {-
183 case
executed 10 times by 1 test: case 'i':
Executed by:
  • truncate
'i':
executed 10 times by 1 test: case 'i':
Executed by:
  • truncate
10
184 if (p[0][2] == 'B'
p[0][2] == 'B'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • truncate
FALSEnever evaluated
)
0-10
185 suffixes += 2;
executed 10 times by 1 test: suffixes += 2;
Executed by:
  • truncate
10
186 break;
executed 10 times by 1 test: break;
Executed by:
  • truncate
10
187-
188 case
executed 3 times by 1 test: case 'B':
Executed by:
  • numfmt
'B':
executed 3 times by 1 test: case 'B':
Executed by:
  • numfmt
3
189 case
never executed: case 'D':
'D':
never executed: case 'D':
0
190 base = 1000;-
191 suffixes++;-
192 break;
executed 3 times by 1 test: break;
Executed by:
  • numfmt
3
193 }
never executed: end of block
0
194 }
executed 76 times by 8 tests: end of block
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
76
195-
196 switch (**p)-
197 {-
198 case
executed 3 times by 1 test: case 'b':
Executed by:
  • head
'b':
executed 3 times by 1 test: case 'b':
Executed by:
  • head
3
199 overflow = bkm_scale (&tmp, 512);-
200 break;
executed 3 times by 1 test: break;
Executed by:
  • head
3
201-
202 case
never executed: case 'B':
'B':
never executed: case 'B':
0
203-
204-
205-
206 overflow = bkm_scale (&tmp, 1024);-
207 break;
never executed: break;
0
208-
209 case
never executed: case 'c':
'c':
never executed: case 'c':
0
210 overflow = LONGINT_OK;-
211 break;
never executed: break;
0
212-
213 case
never executed: case 'E':
'E':
never executed: case 'E':
0
214 overflow = bkm_scale_by_power (&tmp, base, 6);-
215 break;
never executed: break;
0
216-
217 case
executed 6 times by 4 tests: case 'G':
Executed by:
  • dd
  • numfmt
  • split
  • truncate
'G':
executed 6 times by 4 tests: case 'G':
Executed by:
  • dd
  • numfmt
  • split
  • truncate
6
218 case
never executed: case 'g':
'g':
never executed: case 'g':
0
219 overflow = bkm_scale_by_power (&tmp, base, 3);-
220 break;
executed 6 times by 4 tests: break;
Executed by:
  • dd
  • numfmt
  • split
  • truncate
6
221-
222 case
executed 14 times by 3 tests: case 'k':
Executed by:
  • dd
  • head
  • sort
'k':
executed 14 times by 3 tests: case 'k':
Executed by:
  • dd
  • head
  • sort
14
223 case
executed 18 times by 6 tests: case 'K':
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
'K':
executed 18 times by 6 tests: case 'K':
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • split
18
224 overflow = bkm_scale_by_power (&tmp, base, 1);-
225 break;
executed 32 times by 7 tests: break;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
32
226-
227 case
executed 33 times by 3 tests: case 'M':
Executed by:
  • dd
  • head
  • truncate
'M':
executed 33 times by 3 tests: case 'M':
Executed by:
  • dd
  • head
  • truncate
33
228 case
executed 3 times by 1 test: case 'm':
Executed by:
  • head
'm':
executed 3 times by 1 test: case 'm':
Executed by:
  • head
3
229 overflow = bkm_scale_by_power (&tmp, base, 2);-
230 break;
executed 36 times by 3 tests: break;
Executed by:
  • dd
  • head
  • truncate
36
231-
232 case
never executed: case 'P':
'P':
never executed: case 'P':
0
233 overflow = bkm_scale_by_power (&tmp, base, 5);-
234 break;
never executed: break;
0
235-
236 case
executed 2 times by 1 test: case 'T':
Executed by:
  • truncate
'T':
executed 2 times by 1 test: case 'T':
Executed by:
  • truncate
2
237 case
never executed: case 't':
't':
never executed: case 't':
0
238 overflow = bkm_scale_by_power (&tmp, base, 4);-
239 break;
executed 2 times by 1 test: break;
Executed by:
  • truncate
2
240-
241 case
never executed: case 'w':
'w':
never executed: case 'w':
0
242 overflow = bkm_scale (&tmp, 2);-
243 break;
never executed: break;
0
244-
245 case
never executed: case 'Y':
'Y':
never executed: case 'Y':
0
246 overflow = bkm_scale_by_power (&tmp, base, 8);-
247 break;
never executed: break;
0
248-
249 case
never executed: case 'Z':
'Z':
never executed: case 'Z':
0
250 overflow = bkm_scale_by_power (&tmp, base, 7);-
251 break;
never executed: break;
0
252-
253 default
never executed: default:
:
never executed: default:
0
254 *val = tmp;-
255 return
never executed: return err | LONGINT_INVALID_SUFFIX_CHAR;
err | LONGINT_INVALID_SUFFIX_CHAR;
never executed: return err | LONGINT_INVALID_SUFFIX_CHAR;
0
256 }-
257-
258 err |= overflow;-
259 *p += suffixes;-
260 if (**
**pDescription
TRUEnever evaluated
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
p
**pDescription
TRUEnever evaluated
FALSEevaluated 79 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
)
0-79
261 err |= LONGINT_INVALID_SUFFIX_CHAR;
never executed: err |= LONGINT_INVALID_SUFFIX_CHAR;
0
262 }
executed 79 times by 8 tests: end of block
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79
263-
264 *val = tmp;-
265 return
executed 7526 times by 27 tests: return err;
Executed by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
err;
executed 7526 times by 27 tests: return err;
Executed by:
  • b2sum
  • base32
  • base64
  • chgrp
  • chown
  • csplit
  • dd
  • df
  • du
  • fmt
  • fold
  • head
  • id
  • join
  • nice
  • nproc
  • numfmt
  • od
  • pr
  • shred
  • shuf
  • sort
  • split
  • stdbuf
  • tail
  • ...
7526
266}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2