OpenCoverage

anytostr.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/anytostr.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11char * __attribute__ ((__warn_unused_result__))-
12imaxtostr (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: ile ((i /= 10) != 0)
Executed by:
  • expr
((i /= 10) != 0)
executed 5 times by 1 test: ile ((i /= 10) != 0)
Executed by:
  • expr
;
5
220-5
23 *--p = '-';-
24 }-
25 els
executed 5 times by 1 test: s
Executed by:
  • expr
e
5
26 {-
27 do-
28 *--p = '0' + i % 10;-
29 while
executed 6425605 times by 13 tests: ile ((i /= 10) != 0)
Executed by:
  • cksum
  • comm
  • csplit
  • df
  • du
  • expr
  • factor
  • id
  • ls
  • sort
  • split
  • vdir
  • wc
((i /= 10) != 0)
executed 6425605 times by 13 tests: ile ((i /= 10) != 0)
Executed by:
  • cksum
  • comm
  • csplit
  • df
  • du
  • expr
  • factor
  • id
  • ls
  • sort
  • split
  • vdir
  • wc
;
6425605
30 }1866996-4558609
311866996
32 return p;-
33}1867001
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2