OpenCoverage

xstrtol.c #1

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 (unsigned long int *x, int scale_factor)-
12{-
13 if ((
(! ((unsigned ...long int) -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
! ((unsigned long int) 0 < (unsigned long int) -1))
(! ((unsigned ...long int) -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 < 0 / scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
x < 0 / scale_factor
*x < 0 / scale_factorDescription
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • truncate
)
0-96
14 {-
15 *x = 0;-
16 return
never executed: return LONGINT_OVERFLOW;
LONGINT_OVERFLOW;
never executed: return LONGINT_OVERFLOW;
0
17 }-
18 if (-
19 (
(0x7ffffffffff...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0x7fffffffffffffffL * 2UL + 1UL)
(0x7ffffffffff...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
0-133
20 / scale_factor < *x
(0x7ffffffffff...le_factor < *xDescription
TRUEnever evaluated
FALSEevaluated 133 times by 8 tests
Evaluated by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
)
0-133
21 {-
22 *x = -
23 (0x7fffffffffffffffL * 2UL + 1UL)-
24 ;-
25 return
never executed: return LONGINT_OVERFLOW;
LONGINT_OVERFLOW;
never executed: return LONGINT_OVERFLOW;
0
26 }-
27 *x *= scale_factor;-
28 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
29}-
30-
31static strtol_error-
32bkm_scale_by_power (unsigned long int *x, int base, int power)-
33{-
34 strtol_error err = LONGINT_OK;-
35 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
36 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
37 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
38}-
39-
40-
41-
42strtol_error-
43xstrtoul (const char *s, char **ptr, int strtol_base,-
44 unsigned long int *val, const char *valid_suffixes)-
45{-
46 char *t_ptr;-
47 char **p;-
48 unsigned long int tmp;-
49 strtol_error err = LONGINT_OK;-
50-
51 -
52 ((-
53 0 <= strtol_base && strtol_base <= 36-
54 ) ? (void) (0) : __assert_fail (-
55 "0 <= strtol_base && strtol_base <= 36"-
56 , "lib/xstrtol.c", 96, __PRETTY_FUNCTION__))-
57 ;-
58-
59 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
60-
61 -
62 (*__errno_location ()) -
63 = 0;-
64-
65 if (! (! ((unsigned long int) 0 < (unsigned long int) -1))
! (! ((unsigne...long int) -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
66 {-
67 const char *q = s;-
68 unsigned char ch = *q;-
69 while (-
70 ((*
((*__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
71 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
72 ))] & (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
73 )-
74 ch = *++q;
executed 7 times by 3 tests: ch = *++q;
Executed by:
  • join
  • nproc
  • od
7
75 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
76 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
77 }
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
78-
79 tmp = strtoul (s, p, strtol_base);-
80-
81 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
82 {-
83-
84-
85 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
86 (
(__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
87 **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
88 )
__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
89 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
90 )
!__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
91 **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
92 ) == '\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
93 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
94 ,
(__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
95 **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
96 ) : __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
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 )))
(__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 )-
102 tmp = 1;
executed 9 times by 2 tests: tmp = 1;
Executed by:
  • numfmt
  • split
9
103 else-
104 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
105 }-
106 else if (-
107 (*
(*__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
108 != 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
109 {-
110 if (-
111 (*
(*__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
112 !=
(*__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
113 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
114 )-
115 return
never executed: return LONGINT_INVALID;
LONGINT_INVALID;
never executed: return LONGINT_INVALID;
0
116 err = LONGINT_OVERFLOW;-
117 }
executed 36 times by 10 tests: end of block
Executed by:
  • expr
  • join
  • numfmt
  • pr
  • sort
  • split
  • stdbuf
  • tail
  • truncate
  • uniq
36
118-
119-
120-
121-
122 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
123 {-
124 *val = tmp;-
125 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
126 }-
127-
128 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
129 {-
130 int base = 1024;-
131 int suffixes = 1;-
132 strtol_error overflow;-
133-
134 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
135 (__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
136 **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
137 )
__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
138 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
139 )
!__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
140 **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
141 ) == '\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
142 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
143 ,
! (__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
144 **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
145 ) : __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
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 )))
! (__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 )-
151 {-
152 *val = tmp;-
153 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
154 }-
155-
156 switch (**p)-
157 {-
158 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
159 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
160 if (-
161 (
(__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
162 '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
163 )
__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
164 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
165 )
!__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
166 '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
167 ) == '\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
168 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
169 ,
(__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
170 '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
171 ) : __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
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 )))
(__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 )-
177 switch (p[0][1])-
178 {-
179 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
180 if (p[0][2] == 'B'
p[0][2] == 'B'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • truncate
FALSEnever evaluated
)
0-10
181 suffixes += 2;
executed 10 times by 1 test: suffixes += 2;
Executed by:
  • truncate
10
182 break;
executed 10 times by 1 test: break;
Executed by:
  • truncate
10
183-
184 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
185 case
never executed: case 'D':
'D':
never executed: case 'D':
0
186 base = 1000;-
187 suffixes++;-
188 break;
executed 3 times by 1 test: break;
Executed by:
  • numfmt
3
189 }
never executed: end of block
0
190 }
executed 76 times by 8 tests: end of block
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
76
191-
192 switch (**p)-
193 {-
194 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
195 overflow = bkm_scale (&tmp, 512);-
196 break;
executed 3 times by 1 test: break;
Executed by:
  • head
3
197-
198 case
never executed: case 'B':
'B':
never executed: case 'B':
0
199-
200-
201-
202 overflow = bkm_scale (&tmp, 1024);-
203 break;
never executed: break;
0
204-
205 case
never executed: case 'c':
'c':
never executed: case 'c':
0
206 overflow = LONGINT_OK;-
207 break;
never executed: break;
0
208-
209 case
never executed: case 'E':
'E':
never executed: case 'E':
0
210 overflow = bkm_scale_by_power (&tmp, base, 6);-
211 break;
never executed: break;
0
212-
213 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
214 case
never executed: case 'g':
'g':
never executed: case 'g':
0
215 overflow = bkm_scale_by_power (&tmp, base, 3);-
216 break;
executed 6 times by 4 tests: break;
Executed by:
  • dd
  • numfmt
  • split
  • truncate
6
217-
218 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
219 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
220 overflow = bkm_scale_by_power (&tmp, base, 1);-
221 break;
executed 32 times by 7 tests: break;
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
32
222-
223 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
224 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
225 overflow = bkm_scale_by_power (&tmp, base, 2);-
226 break;
executed 36 times by 3 tests: break;
Executed by:
  • dd
  • head
  • truncate
36
227-
228 case
never executed: case 'P':
'P':
never executed: case 'P':
0
229 overflow = bkm_scale_by_power (&tmp, base, 5);-
230 break;
never executed: break;
0
231-
232 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
233 case
never executed: case 't':
't':
never executed: case 't':
0
234 overflow = bkm_scale_by_power (&tmp, base, 4);-
235 break;
executed 2 times by 1 test: break;
Executed by:
  • truncate
2
236-
237 case
never executed: case 'w':
'w':
never executed: case 'w':
0
238 overflow = bkm_scale (&tmp, 2);-
239 break;
never executed: break;
0
240-
241 case
never executed: case 'Y':
'Y':
never executed: case 'Y':
0
242 overflow = bkm_scale_by_power (&tmp, base, 8);-
243 break;
never executed: break;
0
244-
245 case
never executed: case 'Z':
'Z':
never executed: case 'Z':
0
246 overflow = bkm_scale_by_power (&tmp, base, 7);-
247 break;
never executed: break;
0
248-
249 default
never executed: default:
:
never executed: default:
0
250 *val = tmp;-
251 return
never executed: return err | LONGINT_INVALID_SUFFIX_CHAR;
err | LONGINT_INVALID_SUFFIX_CHAR;
never executed: return err | LONGINT_INVALID_SUFFIX_CHAR;
0
252 }-
253-
254 err |= overflow;-
255 *p += suffixes;-
256 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
257 err |= LONGINT_INVALID_SUFFIX_CHAR;
never executed: err |= LONGINT_INVALID_SUFFIX_CHAR;
0
258 }
executed 79 times by 8 tests: end of block
Executed by:
  • dd
  • df
  • du
  • head
  • numfmt
  • sort
  • split
  • truncate
79
259-
260 *val = tmp;-
261 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
262}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2