Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/anytostr.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | - | |
11 | char * __attribute__ ((__warn_unused_result__)) | - |
12 | imaxtostr (intmax_t i, char *buf) | - |
13 | { | - |
14 | char *p = buf + (((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))); | - |
15 | *p = 0; | - |
16 | - | |
17 | if (i < 0) | - |
18 | { | 5-1866996 |
19 | do | - |
20 | *--p = '0' - i % 10; | - |
21 | while executed 5 times by 1 test: ((i /= 10) != 0)ile ((i /= 10) != 0) Executed by:
executed 5 times by 1 test: ;ile ((i /= 10) != 0) Executed by:
| 5 |
22 | 0-5 | |
23 | *--p = '-'; | - |
24 | } | - |
25 | els executed 5 times by 1 test: es Executed by:
| 5 |
26 | { | - |
27 | do | - |
28 | *--p = '0' + i % 10; | - |
29 | while executed 6425605 times by 13 tests: ((i /= 10) != 0)ile ((i /= 10) != 0) Executed by:
executed 6425605 times by 13 tests: ;ile ((i /= 10) != 0) Executed by:
| 6425605 |
30 | } | 1866996-4558609 |
31 | 1866996 | |
32 | return p; | - |
33 | } | 1867001 |
Switch to Source code | Preprocessed file |