Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | static strtol_error | - |
11 | bkm_scale (long int *x, int scale_factor) | - |
12 | { | - |
13 | if ((TRUE | evaluated 37 times by 1 test | FALSE | evaluated 96 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
|
! ((long int) 0 < (long int) -1))TRUE | evaluated 37 times by 1 test | FALSE | evaluated 96 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
|
&& *TRUE | never evaluated | FALSE | evaluated 37 times by 1 test |
x < TRUE | never evaluated | FALSE | evaluated 37 times by 1 test |
| 0-96 |
14 | (-0x7fffffffffffffffL - 1L) TRUE | never evaluated | FALSE | evaluated 37 times by 1 test |
| 0-37 |
15 | / scale_factorTRUE | never evaluated | FALSE | evaluated 37 times by 1 test |
) | 0-37 |
16 | { | - |
17 | *x = | - |
18 | (-0x7fffffffffffffffL - 1L) | - |
19 | ; | - |
20 | return never executed: return LONGINT_OVERFLOW; LONGINT_OVERFLOW;never executed: return LONGINT_OVERFLOW; | 0 |
21 | } | - |
22 | if (0x7fffffffffffffffL / scale_factor < *xTRUE | never evaluated | FALSE | evaluated 133 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
) | 0-133 |
23 | { | - |
24 | *x = 0x7fffffffffffffffL; | - |
25 | return never executed: return LONGINT_OVERFLOW; LONGINT_OVERFLOW;never executed: return LONGINT_OVERFLOW; | 0 |
26 | } | - |
27 | *x *= scale_factor; | - |
28 | returnexecuted 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 | | - |
31 | static strtol_error | - |
32 | bkm_scale_by_power (long int *x, int base, int power) | - |
33 | { | - |
34 | strtol_error err = LONGINT_OK; | - |
35 | while (power--TRUE | evaluated 130 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | evaluated 76 times by 8 testsEvaluated 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 | returnexecuted 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 | | - |
42 | strtol_error | - |
43 | xstrtol (const char *s, char **ptr, int strtol_base, | - |
44 | long int *val, const char *valid_suffixes) | - |
45 | { | - |
46 | char *t_ptr; | - |
47 | char **p; | - |
48 | 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 = (ptrTRUE | evaluated 2548 times by 9 testsEvaluated by:- dd
- df
- dir
- du
- numfmt
- pr
- sort
- tr
- vdir
| FALSE | evaluated 14202 times by 30 testsEvaluated 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 (! (! ((long int) 0 < (long int) -1))TRUE | evaluated 6867 times by 28 testsEvaluated 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
- ...
| FALSE | evaluated 9883 times by 9 testsEvaluated 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 | ((*TRUE | evaluated 7 times by 3 tests | FALSE | evaluated 6867 times by 28 testsEvaluated 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) ((TRUE | evaluated 7 times by 3 tests | FALSE | evaluated 6867 times by 28 testsEvaluated 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 | chTRUE | evaluated 7 times by 3 tests | FALSE | evaluated 6867 times by 28 testsEvaluated 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)TRUE | evaluated 7 times by 3 tests | FALSE | evaluated 6867 times by 28 testsEvaluated 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; | 7 |
75 | if (ch == '-'TRUE | evaluated 85 times by 21 testsEvaluated by:- b2sum
- base32
- base64
- chown
- df
- dir
- du
- fold
- head
- nproc
- numfmt
- od
- pr
- shred
- shuf
- sort
- split
- stdbuf
- tail
- uniq
- vdir
| FALSE | evaluated 6782 times by 26 testsEvaluated 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 | returnexecuted 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 = strtol (s, p, strtol_base); | - |
80 | | - |
81 | if (*TRUE | evaluated 79 times by 18 testsEvaluated by:- b2sum
- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- ptx
- shuf
- sort
- split
- stdbuf
- tail
- truncate
| FALSE | evaluated 16586 times by 30 testsEvaluated 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 == sTRUE | evaluated 79 times by 18 testsEvaluated by:- b2sum
- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- ptx
- shuf
- sort
- split
- stdbuf
- tail
- truncate
| FALSE | evaluated 16586 times by 30 testsEvaluated 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_suffixesTRUE | evaluated 72 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
| FALSE | evaluated 7 times by 4 tests |
&& **TRUE | evaluated 67 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
| FALSE | evaluated 5 times by 3 tests |
pTRUE | evaluated 67 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
| FALSE | evaluated 5 times by 3 tests |
&& | 5-72 |
86 | (TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 67 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
|
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-67 |
87 | **pTRUE | never evaluated | FALSE | evaluated 67 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
|
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-67 |
88 | )TRUE | never evaluated | FALSE | evaluated 67 times by 16 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- split
- stdbuf
- tail
- truncate
|
&& !__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-67 |
89 | valid_suffixesTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-58 |
90 | )TRUE | never evaluated | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-58 |
91 | **pTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-58 |
92 | ) == '\0'TRUE | never evaluated | FALSE | never evaluated |
? (char *) __rawmemchr (TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 0-58 |
93 | valid_suffixesTRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
94 | , TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
95 | **pTRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
96 | ) : __builtin_strchr (TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
97 | valid_suffixesTRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
98 | , TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
99 | **pTRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated by:- chown
- csplit
- du
- id
- join
- nl
- nproc
- numfmt
- od
- pr
- shuf
- sort
- stdbuf
- tail
- truncate
|
| 9-58 |
100 | )))TRUE | evaluated 9 times by 2 tests | FALSE | evaluated 58 times by 15 testsEvaluated 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; | 9 |
103 | else | - |
104 | returnexecuted 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 | (*TRUE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
| FALSE | evaluated 16550 times by 30 testsEvaluated 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 ()) TRUE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
| FALSE | evaluated 16550 times by 30 testsEvaluated 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 | != 0TRUE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
| FALSE | evaluated 16550 times by 30 testsEvaluated 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 | (*TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
|
__errno_location ()) TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
|
| 0-36 |
112 | != TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
|
| 0-36 |
113 | 34TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated 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_suffixesTRUE | evaluated 8455 times by 7 tests | FALSE | evaluated 8140 times by 27 testsEvaluated 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 | returnexecuted 8455 times by 7 tests: return err; err;executed 8455 times by 7 tests: return err; | 8455 |
126 | } | - |
127 | | - |
128 | if (**TRUE | evaluated 693 times by 15 testsEvaluated by:- base32
- base64
- chown
- dd
- df
- du
- fmt
- head
- nice
- numfmt
- pr
- sort
- split
- tail
- truncate
| FALSE | evaluated 7447 times by 27 testsEvaluated 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'TRUE | evaluated 693 times by 15 testsEvaluated by:- base32
- base64
- chown
- dd
- df
- du
- fmt
- head
- nice
- numfmt
- pr
- sort
- split
- tail
- truncate
| FALSE | evaluated 7447 times by 27 testsEvaluated 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 (!TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
135 | (__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 693 times by 15 testsEvaluated by:- base32
- base64
- chown
- dd
- df
- du
- fmt
- head
- nice
- numfmt
- pr
- sort
- split
- tail
- truncate
|
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-693 |
136 | **pTRUE | never evaluated | FALSE | evaluated 693 times by 15 testsEvaluated by:- base32
- base64
- chown
- dd
- df
- du
- fmt
- head
- nice
- numfmt
- pr
- sort
- split
- tail
- truncate
|
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-693 |
137 | )TRUE | never evaluated | FALSE | evaluated 693 times by 15 testsEvaluated by:- base32
- base64
- chown
- dd
- df
- du
- fmt
- head
- nice
- numfmt
- pr
- sort
- split
- tail
- truncate
|
&& !__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-693 |
138 | valid_suffixesTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-614 |
139 | )TRUE | never evaluated | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-614 |
140 | **pTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-614 |
141 | ) == '\0'TRUE | never evaluated | FALSE | never evaluated |
? (char *) __rawmemchr (TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-614 |
142 | valid_suffixesTRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
143 | , TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
144 | **pTRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
145 | ) : __builtin_strchr (TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
146 | valid_suffixesTRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
147 | , TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
148 | **pTRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
149 | )))TRUE | evaluated 614 times by 11 testsEvaluated by:- base32
- base64
- chown
- dd
- fmt
- nice
- numfmt
- pr
- sort
- split
- tail
| FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 79-614 |
150 | ) | - |
151 | { | - |
152 | *val = tmp; | - |
153 | returnexecuted 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': caseexecuted 6 times by 4 tests: case 'G': 'G':executed 6 times by 4 tests: case 'G': casenever executed: case 'g': 'g':never executed: case 'g': caseexecuted 14 times by 3 tests: case 'k': 'k':executed 14 times by 3 tests: case 'k': caseexecuted 18 times by 6 tests: case 'K': 'K':executed 18 times by 6 tests: case 'K': caseexecuted 33 times by 3 tests: case 'M': 'M':executed 33 times by 3 tests: case 'M': caseexecuted 3 times by 1 test: case 'm': 'm':executed 3 times by 1 test: case 'm': | 0-33 |
159 | case never executed: case 'P': 'P':never executed: case 'P': caseexecuted 2 times by 1 test: case 'T': 'T':executed 2 times by 1 test: case 'T': casenever executed: case 't': 't':never executed: case 't': casenever executed: case 'Y': 'Y':never executed: case 'Y': casenever executed: case 'Z': 'Z':never executed: case 'Z': | 0-2 |
160 | if ( | - |
161 | (TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
__extension__ (__builtin_constant_p (TRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
162 | '0'TRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
163 | )TRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
164 | valid_suffixesTRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
165 | )TRUE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
| FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
166 | '0'TRUE | never evaluated | FALSE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
167 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 76 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
? (char *) __rawmemchr (TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 0-76 |
168 | valid_suffixesTRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
169 | , TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
170 | '0'TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
171 | ) : __builtin_strchr (TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
172 | valid_suffixesTRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
173 | , TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
174 | '0'TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
175 | )))TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
176 | ) | - |
177 | switch (p[0][1]) | - |
178 | { | - |
179 | caseexecuted 10 times by 1 test: case 'i': 'i':executed 10 times by 1 test: case 'i': | 10 |
180 | if (p[0][2] == 'B'TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
) | 0-10 |
181 | suffixes += 2;executed 10 times by 1 test: suffixes += 2; | 10 |
182 | break;executed 10 times by 1 test: break; | 10 |
183 | | - |
184 | caseexecuted 3 times by 1 test: case 'B': 'B':executed 3 times by 1 test: case 'B': | 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; | 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 | caseexecuted 3 times by 1 test: case 'b': 'b':executed 3 times by 1 test: case 'b': | 3 |
195 | overflow = bkm_scale (&tmp, 512); | - |
196 | break;executed 3 times by 1 test: break; | 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 | caseexecuted 6 times by 4 tests: case 'G': 'G':executed 6 times by 4 tests: case 'G': | 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; | 6 |
217 | | - |
218 | caseexecuted 14 times by 3 tests: case 'k': 'k':executed 14 times by 3 tests: case 'k': | 14 |
219 | caseexecuted 18 times by 6 tests: case 'K': 'K':executed 18 times by 6 tests: case 'K': | 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 | caseexecuted 33 times by 3 tests: case 'M': 'M':executed 33 times by 3 tests: case 'M': | 33 |
224 | caseexecuted 3 times by 1 test: case 'm': 'm':executed 3 times by 1 test: case 'm': | 3 |
225 | overflow = bkm_scale_by_power (&tmp, base, 2); | - |
226 | break;executed 36 times by 3 tests: break; | 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 | caseexecuted 2 times by 1 test: case 'T': 'T':executed 2 times by 1 test: case 'T': | 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; | 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 (**TRUE | never evaluated | FALSE | evaluated 79 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
pTRUE | never evaluated | FALSE | evaluated 79 times by 8 testsEvaluated 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 | returnexecuted 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 | } | - |
| | |