Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | static strtol_error | - |
11 | bkm_scale (intmax_t *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
|
! ((intmax_t) 0 < (intmax_t) -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 | (-9223372036854775807L -1) 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 | (-9223372036854775807L -1) | - |
19 | ; | - |
20 | return never executed: return LONGINT_OVERFLOW; LONGINT_OVERFLOW;never executed: return LONGINT_OVERFLOW; | 0 |
21 | } | - |
22 | if ( | - |
23 | (TRUE | never evaluated | FALSE | evaluated 133 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
9223372036854775807L) TRUE | never evaluated | FALSE | evaluated 133 times by 8 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- sort
- split
- truncate
|
| 0-133 |
24 | / scale_factor < *xTRUE | never evaluated | FALSE | evaluated 133 times by 8 testsEvaluated 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 | 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 |
33 | } | - |
34 | | - |
35 | static strtol_error | - |
36 | bkm_scale_by_power (intmax_t *x, int base, int power) | - |
37 | { | - |
38 | strtol_error err = LONGINT_OK; | - |
39 | 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 |
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 | 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 |
42 | } | - |
43 | | - |
44 | | - |
45 | | - |
46 | strtol_error | - |
47 | xstrtoimax (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 = (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 |
64 | | - |
65 | | - |
66 | (*__errno_location ()) | - |
67 | = 0; | - |
68 | | - |
69 | if (! (! ((intmax_t) 0 < (intmax_t) -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 |
70 | { | - |
71 | const char *q = s; | - |
72 | unsigned char ch = *q; | - |
73 | while ( | - |
74 | ((*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 |
75 | 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 |
76 | ))] & (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 |
77 | ) | - |
78 | ch = *++q;executed 7 times by 3 tests: ch = *++q; | 7 |
79 | 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 |
80 | 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 |
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 (*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 |
86 | { | - |
87 | | - |
88 | | - |
89 | 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 |
90 | (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 |
91 | **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 |
92 | )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 |
93 | 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 |
94 | )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 |
95 | **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 |
96 | ) == '\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 |
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 | ) : __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 |
101 | 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 |
102 | , 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 |
103 | **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 |
104 | )))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 |
105 | ) | - |
106 | tmp = 1;executed 9 times by 2 tests: tmp = 1; | 9 |
107 | else | - |
108 | 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 |
109 | } | - |
110 | else if ( | - |
111 | (*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 |
112 | != 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 |
113 | { | - |
114 | if ( | - |
115 | (*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 |
116 | != TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated by:- expr
- join
- numfmt
- pr
- sort
- split
- stdbuf
- tail
- truncate
- uniq
|
| 0-36 |
117 | 34TRUE | never evaluated | FALSE | evaluated 36 times by 10 testsEvaluated 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_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 |
127 | { | - |
128 | *val = tmp; | - |
129 | returnexecuted 8455 times by 7 tests: return err; err;executed 8455 times by 7 tests: return err; | 8455 |
130 | } | - |
131 | | - |
132 | 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 |
133 | { | - |
134 | int base = 1024; | - |
135 | int suffixes = 1; | - |
136 | strtol_error overflow; | - |
137 | | - |
138 | 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 |
139 | (__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 |
140 | **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 |
141 | )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 |
142 | 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 |
143 | )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 |
144 | **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 |
145 | ) == '\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 |
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 | ) : __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 |
150 | 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 |
151 | , 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 |
152 | **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 |
153 | )))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 |
154 | ) | - |
155 | { | - |
156 | *val = tmp; | - |
157 | 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 |
158 | } | - |
159 | | - |
160 | switch (**p) | - |
161 | { | - |
162 | 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 |
163 | 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 |
164 | if ( | - |
165 | (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 |
166 | '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 |
167 | )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 |
168 | 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 |
169 | )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 |
170 | '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 |
171 | ) == '\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 |
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 | ) : __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 |
176 | 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 |
177 | , TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
178 | '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 |
179 | )))TRUE | evaluated 66 times by 7 testsEvaluated by:- dd
- df
- du
- head
- numfmt
- split
- truncate
| FALSE | evaluated 10 times by 2 tests |
| 10-66 |
180 | ) | - |
181 | switch (p[0][1]) | - |
182 | { | - |
183 | caseexecuted 10 times by 1 test: case 'i': 'i':executed 10 times by 1 test: case 'i': | 10 |
184 | if (p[0][2] == 'B'TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
) | 0-10 |
185 | suffixes += 2;executed 10 times by 1 test: suffixes += 2; | 10 |
186 | break;executed 10 times by 1 test: break; | 10 |
187 | | - |
188 | caseexecuted 3 times by 1 test: case 'B': 'B':executed 3 times by 1 test: case 'B': | 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; | 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 | caseexecuted 3 times by 1 test: case 'b': 'b':executed 3 times by 1 test: case 'b': | 3 |
199 | overflow = bkm_scale (&tmp, 512); | - |
200 | break;executed 3 times by 1 test: break; | 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 | caseexecuted 6 times by 4 tests: case 'G': 'G':executed 6 times by 4 tests: case 'G': | 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; | 6 |
221 | | - |
222 | caseexecuted 14 times by 3 tests: case 'k': 'k':executed 14 times by 3 tests: case 'k': | 14 |
223 | caseexecuted 18 times by 6 tests: case 'K': 'K':executed 18 times by 6 tests: case 'K': | 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 | caseexecuted 33 times by 3 tests: case 'M': 'M':executed 33 times by 3 tests: case 'M': | 33 |
228 | caseexecuted 3 times by 1 test: case 'm': 'm':executed 3 times by 1 test: case 'm': | 3 |
229 | overflow = bkm_scale_by_power (&tmp, base, 2); | - |
230 | break;executed 36 times by 3 tests: break; | 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 | caseexecuted 2 times by 1 test: case 'T': 'T':executed 2 times by 1 test: case 'T': | 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; | 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 (**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 |
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 | 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 |
266 | } | - |
| | |