| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/nstrftime.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | fwrite_lowcase (FILE *fp, const char *src, size_t len) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | while (len-- > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | fputc ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | (__extension__ ({ int __res; if (sizeof (
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | (unsigned char) *src
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | ) > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | (unsigned char) *src
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | (unsigned char) *src | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | ); __res = __c < -128
never executed: else __res = tolower (end of blocknever executed: __res = tolower ( (unsigned char) *src ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | (unsigned char) *src never executed: __res = tolower ( (unsigned char) *src ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | ); never executed: } else __res = (*__ctype_tolower_loc ())[(int) (__res = tolower ( (unsigned char) *src );never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char) *src )]; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | (unsigned char) *src never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char) *src )]; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | )]; never executed: __res; }))__res = (*__ctype_tolower_loc ())[(int) ( (unsigned char) *src )]; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | , fp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | ++src; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | static void | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | fwrite_uppcase (FILE *fp, const char *src, size_t len) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | while (len-- > 0
| 2-48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | fputc ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | (__extension__ ({ int __res; if (sizeof (
| 0-48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | (unsigned char) *src
| 0-48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | ) > 1
| 0-48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | (unsigned char) *src
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | )
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | (unsigned char) *src | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | ); __res = __c < -128
never executed: else __res = toupper (end of blocknever executed: __res = toupper ( (unsigned char) *src ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | (unsigned char) *src never executed: __res = toupper ( (unsigned char) *src ); | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | ); never executed: } else __res = (*__ctype_toupper_loc ())[(int) (__res = toupper ( (unsigned char) *src );executed 48 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( (unsigned char) *src )];Executed by:
| 0-48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | (unsigned char) *src executed 48 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( (unsigned char) *src )];Executed by:
| 48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | )]; executed 48 times by 1 test: __res; }))__res = (*__ctype_toupper_loc ())[(int) ( (unsigned char) *src )];Executed by:
| 48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | , fp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | ++src; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | } executed 48 times by 1 test: end of blockExecuted by:
| 48 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | static int iso_week_days (int, int); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | __inline__ | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | static int | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | iso_week_days (int yday, int wday) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | int big_enough_multiple_of_7 = (-(-366) / 7 + 2) * 7; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | return executed 16 times by 1 test: (ydayreturn (yday - (yday - wday + 4 + big_enough_multiple_of_7) % 7 + 4 - 1);Executed by:
executed 16 times by 1 test: return (yday - (yday - wday + 4 + big_enough_multiple_of_7) % 7 + 4 - 1);Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | - (yday - wday + 4 + big_enough_multiple_of_7) % 7 executed 16 times by 1 test: return (yday - (yday - wday + 4 + big_enough_multiple_of_7) % 7 + 4 - 1);Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | + 4 - 1); executed 16 times by 1 test: return (yday - (yday - wday + 4 + big_enough_multiple_of_7) % 7 + 4 - 1);Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | static size_t __strftime_internal (FILE *, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | const char *, const struct tm *, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | * | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | , timezone_t tz, int ns ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | size_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | fprintftime (FILE *s, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | const char *format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | const struct tm *tp , timezone_t tz, int ns ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | tzset_called = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | return executed 4796 times by 6 tests: __strftime_internal (s, format, tp,return __strftime_internal (s, format, tp, 0 , &tzset_called , tz, ns );Executed by:
executed 4796 times by 6 tests: return __strftime_internal (s, format, tp, 0 , &tzset_called , tz, ns );Executed by:
| 4796 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | executed 4796 times by 6 tests: return __strftime_internal (s, format, tp, 0 , &tzset_called , tz, ns );Executed by:
| 4796 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 0 executed 4796 times by 6 tests: return __strftime_internal (s, format, tp, 0 , &tzset_called , tz, ns );Executed by:
| 4796 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | , &tzset_called , tz, ns ); executed 4796 times by 6 tests: return __strftime_internal (s, format, tp, 0 , &tzset_called , tz, ns );Executed by:
| 4796 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | __strftime_internal (FILE *s, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | const char *format, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | const struct tm *tp, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | upcase, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | *tzset_called | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | , timezone_t tz, int ns ) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | size_t maxsize = (size_t) -1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | int hour12 = tp->tm_hour; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | const char *zone; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | size_t i = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | FILE *p = s; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | const char *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | zone = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | zone = (const char *) tp->tm_zone; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | if (! zone
| 0-4964 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | zone = ""; never executed: zone = ""; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | if (hour12 > 12
| 2029-2935 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | hour12 -= 12; executed 2029 times by 6 tests: hour12 -= 12;Executed by:
| 2029 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | if (hour12 == 0
| 455-2480 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | hour12 = 12; executed 2480 times by 2 tests: hour12 = 12;Executed by:
| 2480 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | for (f = format; *
| 4964-68232 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | int pad = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | int modifier; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | int digits = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | int number_value; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | unsigned int u_number_value; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | negative_number; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | always_output_a_sign; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | int tz_colon_mask; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | const char *subfmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | char sign_char; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | char *bufp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | char buf[1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | + 2 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | + (sizeof (int) < sizeof (time_t) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | ? ((sizeof (time_t) * 8 - 1) * 146 / 485 + 2) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | : ((sizeof (int) * 8 - 1) * 146 / 485 + 2))]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | int width = -1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | to_uppcase = upcase; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | size_t colons; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | change_case = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | int format_char; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | if (*
| 16006-52226 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
executed 40570 times by 5 tests: }fputc (' ', p);Executed by:
never executed: while (0); } fputc (*f, p); ; }end of blockexecuted 725 times by 2 tests: i += _incr; } while (0);end of blockExecuted by:
| 0-52226 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | continue; executed 52226 times by 6 tests: continue;Executed by:
| 52226 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | while (1) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | switch (*++f) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | case executed 4 times by 1 test: '_':case '_':Executed by:
executed 4 times by 1 test: case '_':Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | case never executed: '-':case '-':never executed: case '-': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | case executed 4 times by 1 test: '0':case '0':Executed by:
executed 4 times by 1 test: case '0':Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | pad = *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | continue; executed 8 times by 1 test: continue;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | case executed 2 times by 1 test: '^':case '^':Executed by:
executed 2 times by 1 test: case '^':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | case never executed: '#':case '#':never executed: case '#': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | change_case = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | default executed 16006 times by 6 tests: :default:Executed by:
executed 16006 times by 6 tests: default:Executed by:
| 16006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | break; executed 16006 times by 6 tests: break;Executed by:
| 16006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | break; executed 16006 times by 6 tests: break;Executed by:
| 16006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | if (((
| 12-15994 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | width = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | if (width > 0x7fffffff / 10
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | || (width == 0x7fffffff / 10
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | width = 0x7fffffff; never executed: width = 0x7fffffff; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | width *= 10; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | width += *f - '0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | } executed 18 times by 1 test: end of blockExecuted by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | ++f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | } executed 18 times by 1 test: end of blockExecuted by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | while (((
| 6-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | switch (*f) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | case never executed: 'E':case 'E':never executed: case 'E': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | case never executed: 'O':case 'O':never executed: case 'O': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | modifier = *f++; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | default executed 16006 times by 6 tests: :default:Executed by:
executed 16006 times by 6 tests: default:Executed by:
| 16006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | modifier = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | break; executed 16006 times by 6 tests: break;Executed by:
| 16006 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | format_char = *f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | switch (format_char) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | case executed 26 times by 3 tests: '%':case '%':Executed by:
executed 26 times by 3 tests: case '%':Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | if (modifier != 0
| 0-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
executed 8 times by 1 test: }fputc (' ', p);Executed by:
never executed: while (0); } fputc (*f, p); ; }end of blockexecuted 10 times by 2 tests: i += _incr; } while (0);end of blockExecuted by:
| 0-26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | break; executed 26 times by 3 tests: break;Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | case executed 15 times by 1 test: 'a':case 'a':Executed by:
executed 15 times by 1 test: case 'a':Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | if (modifier != 0
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | if (change_case
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | goto executed 15 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 15 times by 1 test: goto underlying_strftime;Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | case executed 2 times by 1 test: 'A':case 'A':Executed by:
executed 2 times by 1 test: case 'A':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | if (modifier != 0
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | if (change_case
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | case executed 38 times by 3 tests: 'b':case 'b':Executed by:
executed 38 times by 3 tests: case 'b':Executed by:
| 38 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | case executed 4 times by 1 test: 'h':case 'h':Executed by:
executed 4 times by 1 test: case 'h':Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | if (change_case
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | if (modifier == 'E'
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | goto executed 42 times by 3 tests: underlying_strftime;goto underlying_strftime;Executed by:
executed 42 times by 3 tests: goto underlying_strftime;Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | case executed 2 times by 1 test: 'B':case 'B':Executed by:
executed 2 times by 1 test: case 'B':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | if (change_case
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | case executed 2 times by 1 test: 'c':case 'c':Executed by:
executed 2 times by 1 test: case 'c':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | if (modifier == 'O'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | subformat: | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | size_t len = __strftime_internal ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | , | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | subfmt, | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | tp, to_uppcase, tzset_called | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | , tz, ns ); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | do { size_t _n = (len); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } __strftime_internal (p, subfmt, tp, to_uppcase, tzset_called , tz, ns ); ; }end of blockexecuted 84 times by 1 test: i += _incr; } while (0)end of blockExecuted by:
| 0-84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | break; executed 84 times by 1 test: break;Executed by:
| 84 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | underlying_strftime: | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | char ufmt[5]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | char *u = ufmt; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | char ubuf[1024]; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | size_t len; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | *u++ = ' '; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | *u++ = '%'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | if (modifier != 0
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | * never executed: u++ = modifier;*u++ = modifier;never executed: *u++ = modifier; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | *u++ = format_char; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | *u = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | len = strftime (ubuf, sizeof ubuf, ufmt, tp); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | if (len != 0
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | do { size_t _n = ((len - 1)); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } do { if (to_lowcaseend of block
executed 8 times by 1 test: else if (to_uppcasefwrite_lowcase (p, (ubuf + 1), _n);Executed by:
executed 10 times by 2 tests: else { fwrite (ubuf + 1, _n, 1, p); }fwrite_uppcase (p, (ubuf + 1), _n);Executed by:
executed 69 times by 3 tests: } while (0); ; }end of blockExecuted by:
executed 55 times by 2 tests: i += _incr; }end of blockExecuted by:
executed 55 times by 2 tests: while (0);end of blockExecuted by:
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | break; executed 71 times by 3 tests: break;Executed by:
| 71 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | case never executed: 'C':case 'C':never executed: case 'C': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | if (modifier == 'E'
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | goto never executed: underlying_strftime;goto underlying_strftime;never executed: goto underlying_strftime; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | int century = tp->tm_year / 100 + 1900 / 100; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | century -= tp->tm_year % 100 < 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | do { digits = 2; negative_number = tp->tm_year < - 1900; u_number_value = century; goto never executed: do_signed_number;goto do_signed_number;never executed: } while (0);goto do_signed_number; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | case executed 2 times by 1 test: 'x':case 'x':Executed by:
executed 2 times by 1 test: case 'x':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | if (modifier == 'O'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | case executed 8 times by 1 test: 'D':case 'D':Executed by:
executed 8 times by 1 test: case 'D':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | if (modifier != 0
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | subfmt = "%m/%d/%y"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | goto executed 8 times by 1 test: subformat;goto subformat;Executed by:
executed 8 times by 1 test: goto subformat;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | case executed 2389 times by 5 tests: 'd':case 'd':Executed by:
executed 2389 times by 5 tests: case 'd':Executed by:
| 2389 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | if (modifier == 'E'
| 0-2389 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | do { digits = 2; number_value = tp->tm_mday; goto executed 2389 times by 5 tests: do_number;goto do_number;Executed by:
executed 2389 times by 5 tests: } while (0);goto do_number;Executed by:
| 2389 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | case executed 164 times by 3 tests: 'e':case 'e':Executed by:
executed 164 times by 3 tests: case 'e':Executed by:
| 164 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | if (modifier == 'E'
| 0-164 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | do { digits = 2; number_value = tp->tm_mday; goto executed 164 times by 3 tests: do_number_spacepad;goto do_number_spacepad;Executed by:
executed 164 times by 3 tests: } while (0);goto do_number_spacepad;Executed by:
| 164 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | do_tz_offset: | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | always_output_a_sign = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | goto executed 67 times by 5 tests: do_number_body;goto do_number_body;Executed by:
executed 67 times by 5 tests: goto do_number_body;Executed by:
| 67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | do_number_spacepad: | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | if (pad != '0'
| 0-168 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | pad = '_'; executed 168 times by 3 tests: pad = '_';Executed by:
| 168 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | do_number: code before this statement executed 168 times by 3 tests: do_number:Executed by:
| 168 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | negative_number = number_value < 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | u_number_value = number_value; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | do_signed_number: code before this statement executed 10207 times by 6 tests: do_signed_number:Executed by:
| 10207 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | always_output_a_sign = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | tz_colon_mask = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | do_number_body: code before this statement executed 15712 times by 6 tests: do_number_body:Executed by:
| 15712 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | if (modifier == 'O'
| 0-15779 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | goto never executed: underlying_strftime;goto underlying_strftime;never executed: goto underlying_strftime; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | bufp = buf + sizeof (buf) / sizeof (buf[0]); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | if (negative_number
| 17-15762 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | u_number_value = - u_number_value; executed 17 times by 3 tests: u_number_value = - u_number_value;Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | if (tz_colon_mask & 1
| 32-28707 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | *-- executed 32 times by 1 test: bufp = ':';*--bufp = ':';Executed by:
executed 32 times by 1 test: *--bufp = ':';Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | tz_colon_mask >>= 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | *--bufp = u_number_value % 10 + '0'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | u_number_value /= 10; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | } executed 28739 times by 6 tests: end of blockExecuted by:
| 28739 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | while (u_number_value != 0
| 40-15819 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | do_number_sign_and_padding: code before this statement executed 15779 times by 6 tests: do_number_sign_and_padding:Executed by:
| 15779 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | if (digits < width
| 12-15782 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | digits = width; executed 12 times by 1 test: digits = width;Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | sign_char = (negative_number
| 21-15773 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | : always_output_a_sign
| 50-15723 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | : 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | if (pad == '-'
| 0-15794 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | if (sign_char
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } fputc (sign_char, p); ; }end of blocknever executed: i += _incr; }end of blocknever executed: while (0);end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | int padding = digits - (buf + (sizeof (buf) / sizeof (buf[0])) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | - bufp) - !!sign_char; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | if (padding > 0
| 6515-9279 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | if (pad == '_'
| 10-9269 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | if ((
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | if (p
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | do { size_t _i; for (_i = 0; _i < padding
executed 14 times by 1 test: }fputc (' ', p);Executed by:
executed 10 times by 1 test: while (0);end of blockExecuted by:
| 10-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | i += padding; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | width = width > padding
| 4-6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | if (sign_char
| 2-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } fputc (sign_char, p); ; }end of blockexecuted 2 times by 1 test: i += _incr; }end of blockExecuted by:
executed 2 times by 1 test: while (0);end of blockExecuted by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | if ((
| 0-9269 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | if (sign_char
| 59-9210 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
executed 18 times by 3 tests: }fputc (' ', p);Executed by:
executed 21 times by 3 tests: while (0); } fputc (sign_char, p); ; }end of blockExecuted by:
executed 38 times by 2 tests: i += _incr; }end of blockExecuted by:
executed 38 times by 2 tests: while (0);end of blockExecuted by:
| 0-59 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | if (p
| 127-9142 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | do { size_t _i; for (_i = 0; _i < padding
executed 15214 times by 6 tests: }fputc ('0', p);Executed by:
executed 404 times by 2 tests: while (0);end of blockExecuted by:
| 404-15214 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | i += padding; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | width = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | } executed 9269 times by 6 tests: end of blockExecuted by:
| 9269 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | if (sign_char
| 10-6505 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
executed 1 time by 1 test: }fputc (' ', p);Executed by:
executed 2 times by 1 test: while (0); } fputc (sign_char, p); ; }end of blockExecuted by:
executed 8 times by 2 tests: i += _incr; }end of blockExecuted by:
executed 8 times by 2 tests: while (0);end of blockExecuted by:
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | } executed 6515 times by 6 tests: end of blockExecuted by:
| 6515 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | do { size_t _n = ((buf + sizeof (buf) / sizeof (buf[0]) - bufp)); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } do { if (to_lowcaseend of block
executed 13891 times by 5 tests: else if (to_uppcasefwrite_lowcase (p, (bufp), _n);Executed by:
executed 13891 times by 5 tests: else { fwrite (bufp, _n, 1, p); }fwrite_uppcase (p, (bufp), _n);Executed by:
executed 1603 times by 2 tests: } while (0); ; }end of blockExecuted by:
executed 1603 times by 2 tests: i += _incr; } while (0);end of blockExecuted by:
| 0-15794 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | break; executed 15794 times by 6 tests: break;Executed by:
| 15794 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | case executed 6 times by 1 test: 'F':case 'F':Executed by:
executed 6 times by 1 test: case 'F':Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | if (modifier != 0
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | subfmt = "%Y-%m-%d"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | goto executed 6 times by 1 test: subformat;goto subformat;Executed by:
executed 6 times by 1 test: goto subformat;Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | case executed 2578 times by 6 tests: 'H':case 'H':Executed by:
executed 2578 times by 6 tests: case 'H':Executed by:
| 2578 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | if (modifier == 'E'
| 0-2578 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | do { digits = 2; number_value = tp->tm_hour; goto executed 2578 times by 6 tests: do_number;goto do_number;Executed by:
executed 2578 times by 6 tests: } while (0);goto do_number;Executed by:
| 2578 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | case executed 2 times by 1 test: 'I':case 'I':Executed by:
executed 2 times by 1 test: case 'I':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | do { digits = 2; number_value = hour12; goto executed 2 times by 1 test: do_number;goto do_number;Executed by:
executed 2 times by 1 test: } while (0);goto do_number;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | case executed 2 times by 1 test: 'k':case 'k':Executed by:
executed 2 times by 1 test: case 'k':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | do { digits = 2; number_value = tp->tm_hour; goto executed 2 times by 1 test: do_number_spacepad;goto do_number_spacepad;Executed by:
executed 2 times by 1 test: } while (0);goto do_number_spacepad;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | case executed 2 times by 1 test: 'l':case 'l':Executed by:
executed 2 times by 1 test: case 'l':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | do { digits = 2; number_value = hour12; goto executed 2 times by 1 test: do_number_spacepad;goto do_number_spacepad;Executed by:
executed 2 times by 1 test: } while (0);goto do_number_spacepad;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | case executed 2 times by 1 test: 'j':case 'j':Executed by:
executed 2 times by 1 test: case 'j':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | do { digits = 3; negative_number = tp->tm_yday < -1; u_number_value = tp->tm_yday + 1U; goto executed 2 times by 1 test: do_signed_number;goto do_signed_number;Executed by:
executed 2 times by 1 test: } while (0);goto do_signed_number;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | case executed 2576 times by 6 tests: 'M':case 'M':Executed by:
executed 2576 times by 6 tests: case 'M':Executed by:
| 2576 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | if (modifier == 'E'
| 0-2576 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | do { digits = 2; number_value = tp->tm_min; goto executed 2576 times by 6 tests: do_number;goto do_number;Executed by:
executed 2576 times by 6 tests: } while (0);goto do_number;Executed by:
| 2576 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | case executed 2382 times by 5 tests: 'm':case 'm':Executed by:
executed 2382 times by 5 tests: case 'm':Executed by:
| 2382 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | if (modifier == 'E'
| 0-2382 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | do { digits = 2; negative_number = tp->tm_mon < -1; u_number_value = tp->tm_mon + 1U; goto executed 2382 times by 5 tests: do_signed_number;goto do_signed_number;Executed by:
executed 2382 times by 5 tests: } while (0);goto do_signed_number;Executed by:
| 2382 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | case executed 31 times by 4 tests: 'N':case 'N':Executed by:
executed 31 times by 4 tests: case 'N':Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | if (modifier == 'E'
| 0-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | number_value = ns; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | if (width == -1
| 0-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | width = 9; executed 31 times by 4 tests: width = 9;Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | int j; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | for (j = width; j < 9
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | number_value /= 10; never executed: number_value /= 10; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | do { digits = width; number_value = number_value; goto executed 31 times by 4 tests: do_number;goto do_number;Executed by:
executed 31 times by 4 tests: } while (0);goto do_number;Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 600 | case executed 2 times by 1 test: 'n':case 'n':Executed by:
executed 2 times by 1 test: case 'n':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 601 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } fputc ('\n', p); ; }end of blockexecuted 2 times by 1 test: i += _incr; } while (0);end of blockExecuted by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 602 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 603 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 604 | case never executed: 'P':case 'P':never executed: case 'P': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 605 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 606 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 607 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 608 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 609 | format_char = 'p'; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 610 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 611 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 612 | case executed 2 times by 1 test: case 'p':Executed by:
code before this statement never executed: case 'p':executed 2 times by 1 test: 'p':case 'p':Executed by:
code before this statement never executed: case 'p':executed 2 times by 1 test: case 'p':Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 613 | if (change_case
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 614 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 620 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 621 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 622 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 623 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 624 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 628 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 629 | case executed 8 times by 1 test: 'q':case 'q':Executed by:
executed 8 times by 1 test: case 'q':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 630 | do { digits = 1; negative_number = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632 | ; u_number_value = ((tp->tm_mon * 11) >> 5) + 1; goto executed 8 times by 1 test: do_signed_number;goto do_signed_number;Executed by:
executed 8 times by 1 test: } while (0);goto do_signed_number;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 633 | break; dead code: break; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 634 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 635 | case never executed: 'R':case 'R':never executed: case 'R': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 636 | subfmt = "%H:%M"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 637 | goto never executed: subformat;goto subformat;never executed: goto subformat; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 638 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 639 | case executed 2 times by 1 test: 'r':case 'r':Executed by:
executed 2 times by 1 test: case 'r':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 640 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 641 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 642 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 643 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 644 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 645 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 646 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 647 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 648 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 649 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 650 | case executed 2413 times by 5 tests: 'S':case 'S':Executed by:
executed 2413 times by 5 tests: case 'S':Executed by:
| 2413 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 651 | if (modifier == 'E'
| 0-2413 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 652 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 653 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 654 | do { digits = 2; number_value = tp->tm_sec; goto executed 2413 times by 5 tests: do_number;goto do_number;Executed by:
executed 2413 times by 5 tests: } while (0);goto do_number;Executed by:
| 2413 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 655 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 656 | case executed 15 times by 1 test: 's':case 's':Executed by:
executed 15 times by 1 test: case 's':Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 657 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 658 | struct tm ltm; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 659 | time_t t; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 660 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 661 | ltm = *tp; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 662 | t = mktime_z (tz, <m); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 663 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 664 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 665 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 666 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 667 | bufp = buf + sizeof (buf) / sizeof (buf[0]); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 668 | negative_number = t < 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 669 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 670 | do | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 671 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 672 | int d = t % 10; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 673 | t /= 10; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 674 | *--bufp = (negative_number
| 8-82 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 675 | } executed 90 times by 1 test: end of blockExecuted by:
| 90 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 676 | while (t != 0
| 15-75 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 677 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 678 | digits = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 679 | always_output_a_sign = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 680 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 681 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 682 | goto executed 15 times by 1 test: do_number_sign_and_padding;goto do_number_sign_and_padding;Executed by:
executed 15 times by 1 test: goto do_number_sign_and_padding;Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 683 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 684 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 685 | case executed 2 times by 1 test: 'X':case 'X':Executed by:
executed 2 times by 1 test: case 'X':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 686 | if (modifier == 'O'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 687 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 688 | goto executed 2 times by 1 test: underlying_strftime;goto underlying_strftime;Executed by:
executed 2 times by 1 test: goto underlying_strftime;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 689 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 690 | case executed 70 times by 1 test: 'T':case 'T':Executed by:
executed 70 times by 1 test: case 'T':Executed by:
| 70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 691 | subfmt = "%H:%M:%S"; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 692 | goto executed 70 times by 1 test: subformat;goto subformat;Executed by:
executed 70 times by 1 test: goto subformat;Executed by:
| 70 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 693 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 694 | case executed 2 times by 1 test: 't':case 't':Executed by:
executed 2 times by 1 test: case 't':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 695 | do { size_t _n = (1); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } fputc ('\t', p); ; }end of blockexecuted 2 times by 1 test: i += _incr; } while (0);end of blockExecuted by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 696 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 697 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 698 | case never executed: 'u':case 'u':never executed: case 'u': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 699 | do { digits = 1; number_value = (tp->tm_wday - 1 + 7) % 7 + 1; goto never executed: do_number;goto do_number;never executed: } while (0);goto do_number; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 700 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 701 | case executed 14 times by 1 test: 'U':case 'U':Executed by:
executed 14 times by 1 test: case 'U':Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 702 | if (modifier == 'E'
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 703 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 704 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 705 | do { digits = 2; number_value = (tp->tm_yday - tp->tm_wday + 7) / 7; goto executed 14 times by 1 test: do_number;goto do_number;Executed by:
executed 14 times by 1 test: } while (0);goto do_number;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 706 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 707 | case executed 8 times by 1 test: 'V':case 'V':Executed by:
executed 8 times by 1 test: case 'V':Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 708 | case never executed: 'g':case 'g':never executed: case 'g': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 709 | case never executed: 'G':case 'G':never executed: case 'G': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 710 | if (modifier == 'E'
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 711 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 712 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 713 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 714 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 715 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 716 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 717 | int year = (tp->tm_year | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 718 | + (tp->tm_year < 0
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 719 | ? 1900 % 400 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 720 | : 1900 % 400 - 400)); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 721 | int year_adjust = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 722 | int days = iso_week_days (tp->tm_yday, tp->tm_wday); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 723 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 724 | if (days < 0
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 725 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 726 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 727 | year_adjust = -1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 728 | days = iso_week_days (tp->tm_yday + (365 + | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 729 | (( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 730 | year - 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 731 | ) % 4 == 0 && (( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 732 | year - 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 733 | ) % 100 != 0 || ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 734 | year - 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 735 | ) % 400 == 0)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 736 | ), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 737 | tp->tm_wday); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 738 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 739 | else | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 740 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 741 | int d = iso_week_days (tp->tm_yday - (365 + | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 742 | (( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 743 | year | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 744 | ) % 4 == 0 && (( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 745 | year | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 746 | ) % 100 != 0 || ( | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 747 | year | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 748 | ) % 400 == 0)) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 749 | ), | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 750 | tp->tm_wday); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 751 | if (0 <= d
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 752 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 753 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 754 | year_adjust = 1; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 755 | days = d; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 756 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 757 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 758 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 759 | switch (*f) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 760 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 761 | case never executed: 'g':case 'g':never executed: case 'g': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 762 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 763 | int yy = (tp->tm_year % 100 + year_adjust) % 100; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 764 | do { digits = 2; number_value = (0 <= yy
never executed: do_number;goto do_number;never executed: } while (0)goto do_number; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 765 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 766 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 767 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 768 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 769 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 770 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 771 | case never executed: 'G':case 'G':never executed: case 'G': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 772 | do { digits = 4; negative_number = tp->tm_year < -1900 - year_adjust; u_number_value = (tp->tm_year + (unsigned int) 1900 + year_adjust); goto never executed: do_signed_number;goto do_signed_number;never executed: } while (0)goto do_signed_number; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 773 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 774 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 775 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 776 | default executed 8 times by 1 test: :default:Executed by:
executed 8 times by 1 test: default:Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 777 | do { digits = 2; number_value = days / 7 + 1; goto executed 8 times by 1 test: do_number;goto do_number;Executed by:
executed 8 times by 1 test: } while (0);goto do_number;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 778 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 779 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 780 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 781 | case executed 8 times by 1 test: case 'W':Executed by:
code before this statement never executed: case 'W':executed 8 times by 1 test: 'W':case 'W':Executed by:
code before this statement never executed: case 'W':executed 8 times by 1 test: case 'W':Executed by:
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 782 | if (modifier == 'E'
| 0-8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 783 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 784 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 785 | do { digits = 2; number_value = (tp->tm_yday - (tp->tm_wday - 1 + 7) % 7 + 7) / 7; goto executed 8 times by 1 test: do_number;goto do_number;Executed by:
executed 8 times by 1 test: } while (0);goto do_number;Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 786 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 787 | case executed 2 times by 1 test: 'w':case 'w':Executed by:
executed 2 times by 1 test: case 'w':Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 788 | if (modifier == 'E'
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 789 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 790 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 791 | do { digits = 1; number_value = tp->tm_wday; goto executed 2 times by 1 test: do_number;goto do_number;Executed by:
executed 2 times by 1 test: } while (0);goto do_number;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 792 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 793 | case executed 3113 times by 5 tests: 'Y':case 'Y':Executed by:
executed 3113 times by 5 tests: case 'Y':Executed by:
| 3113 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 794 | if (modifier == 'E'
| 0-3113 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 795 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 796 | goto never executed: underlying_strftime;goto underlying_strftime;never executed: goto underlying_strftime; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 797 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 798 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 799 | if (modifier == 'O'
| 0-3113 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 800 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 801 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 802 | do { digits = 4; negative_number = tp->tm_year < -1900; u_number_value = tp->tm_year + (unsigned int) 1900; goto executed 3113 times by 5 tests: do_signed_number;goto do_signed_number;Executed by:
executed 3113 times by 5 tests: } while (0)goto do_signed_number;Executed by:
| 3113 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 803 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 804 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 805 | case executed 18 times by 1 test: 'y':case 'y':Executed by:
executed 18 times by 1 test: case 'y':Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 806 | if (modifier == 'E'
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 807 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 808 | goto never executed: underlying_strftime;goto underlying_strftime;never executed: goto underlying_strftime; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 809 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 810 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 811 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 812 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 813 | int yy = tp->tm_year % 100; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 814 | if (yy < 0
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 815 | yy = tp->tm_year < - 1900
never executed: yy = tp->tm_year < - 1900 ? -yy : yy + 100; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 816 | do { digits = 2; number_value = yy; goto executed 18 times by 1 test: do_number;goto do_number;Executed by:
executed 18 times by 1 test: } while (0);goto do_number;Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 817 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 818 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 819 | case executed 25 times by 3 tests: 'Z':case 'Z':Executed by:
executed 25 times by 3 tests: case 'Z':Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 820 | if (change_case
| 0-25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 821 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 822 | to_uppcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 823 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 824 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 825 | to_lowcase = | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 826 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 827 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 828 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 829 | do { size_t _n = ((strlen (zone))); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } do { if (to_lowcaseend of block
executed 4 times by 1 test: else if (to_uppcasefwrite_lowcase (p, (zone), _n);Executed by:
executed 4 times by 1 test: else { fwrite (zone, _n, 1, p); }fwrite_uppcase (p, (zone), _n);Executed by:
executed 17 times by 2 tests: } while (0); ; }end of blockExecuted by:
executed 17 times by 2 tests: i += _incr; } while (0);end of blockExecuted by:
| 0-25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 830 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 831 | break; executed 25 times by 3 tests: break;Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 832 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 833 | case executed 30 times by 1 test: ':':case ':':Executed by:
executed 30 times by 1 test: case ':':Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 834 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 835 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 836 | for (colons = 1; f[colons] == ':'
| 14-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 837 | continue; executed 14 times by 1 test: continue;Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 838 | if (f[colons] != 'z'
| 2-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 839 | goto executed 2 times by 1 test: bad_format;goto bad_format;Executed by:
executed 2 times by 1 test: goto bad_format;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 840 | f += colons; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 841 | goto executed 28 times by 1 test: do_z_conversion;goto do_z_conversion;Executed by:
executed 28 times by 1 test: goto do_z_conversion;Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 842 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 843 | case executed 39 times by 5 tests: 'z':case 'z':Executed by:
executed 39 times by 5 tests: case 'z':Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 844 | colons = 0; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 845 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 846 | do_z_conversion: code before this statement executed 39 times by 5 tests: do_z_conversion:Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 847 | if (tp->tm_isdst < 0
| 0-67 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 848 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 849 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 850 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 851 | int diff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 852 | int hour_diff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 853 | int min_diff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 854 | int sec_diff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 855 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 856 | diff = tp->tm_gmtoff; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 857 | negative_number = diff < 0
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 858 | hour_diff = diff / 60 / 60; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 859 | min_diff = diff / 60 % 60; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 860 | sec_diff = diff % 60; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 861 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 862 | switch (colons) | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 863 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 864 | case executed 39 times by 5 tests: 0:case 0:Executed by:
executed 39 times by 5 tests: case 0:Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 865 | do { digits = 5; tz_colon_mask = 0; u_number_value = hour_diff * 100 + min_diff; goto executed 39 times by 5 tests: do_tz_offset;goto do_tz_offset;Executed by:
executed 39 times by 5 tests: } while (0);goto do_tz_offset;Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 866 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 867 | case executed 20 times by 1 test: 1:case 1:Executed by:
executed 20 times by 1 test: tz_hh_mm:case 1:Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 868 | do { digits = 6; tz_colon_mask = 04; u_number_value = hour_diff * 100 + min_diff; goto executed 20 times by 1 test: do_tz_offset;goto do_tz_offset;Executed by:
executed 20 times by 1 test: } while (0);goto do_tz_offset;Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 869 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 870 | case executed 2 times by 1 test: 2:case 2:Executed by:
executed 2 times by 1 test: tz_hh_mm_ss:case 2:Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 871 | do { digits = 9; tz_colon_mask = 024; u_number_value = hour_diff * 10000 + min_diff * 100 + sec_diff; goto executed 6 times by 1 test: do_tz_offset;goto do_tz_offset;Executed by:
executed 6 times by 1 test: } while (0)goto do_tz_offset;Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 872 | ; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 873 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 874 | case executed 6 times by 1 test: 3:case 3:Executed by:
executed 6 times by 1 test: case 3:Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 875 | if (sec_diff != 0
| 2-4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 876 | goto executed 4 times by 1 test: tz_hh_mm_ss;goto tz_hh_mm_ss;Executed by:
executed 4 times by 1 test: goto tz_hh_mm_ss;Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 877 | if (min_diff != 0
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 878 | goto never executed: tz_hh_mm;goto tz_hh_mm;never executed: goto tz_hh_mm; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 879 | do { digits = 3; tz_colon_mask = 0; u_number_value = hour_diff; goto executed 2 times by 1 test: do_tz_offset;goto do_tz_offset;Executed by:
executed 2 times by 1 test: } while (0);goto do_tz_offset;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 880 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 881 | default never executed: :default:never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 882 | goto never executed: bad_format;goto bad_format;never executed: goto bad_format; | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 883 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 884 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 885 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 886 | case never executed: '\0':case '\0':never executed: case '\0':code before this statement never executed: case '\0': | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 887 | --f; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 888 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 889 | default never executed: :default:never executed: default:code before this statement never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 890 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 891 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 892 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 893 | bad_format: | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 894 | { | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 895 | int flen; | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 896 | for (flen = 1; f[1 - flen] != '%'
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 897 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 898 | do { size_t _n = ((flen)); size_t _w = (width < 0
never executed: 0;return 0;never executed: if (preturn 0;
never executed: }fputc ('0', p);never executed: while (0); else do { size_t _i; for (_i = 0; _i < _deltaend of block
never executed: }fputc (' ', p);never executed: while (0); } do { if (to_lowcaseend of block
never executed: else if (to_uppcasefwrite_lowcase (p, (&f[1 - flen]), _n);
never executed: else { fwrite (&f[1 - flen], _n, 1, p); }fwrite_uppcase (p, (&f[1 - flen]), _n);executed 2 times by 1 test: } while (0); ; }end of blockExecuted by:
executed 2 times by 1 test: i += _incr; } while (0);end of blockExecuted by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 899 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 900 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 901 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 902 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 903 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 904 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 905 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 906 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 907 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 908 | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 909 | return executed 4964 times by 6 tests: i;return i;Executed by:
executed 4964 times by 6 tests: return i;Executed by:
| 4964 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 910 | } | - | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |