| 1 | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
|
|---|
| 2 |
|
|---|
| 3 | # 1 "./integerpromotion_unsafe.c"
|
|---|
| 4 | # 1 "<eingebaut>"
|
|---|
| 5 | # 1 "<Kommandozeile>"
|
|---|
| 6 | # 1 "./integerpromotion_unsafe.c"
|
|---|
| 7 | # 1 "/usr/include/stdio.h" 1 3 4
|
|---|
| 8 | # 28 "/usr/include/stdio.h" 3 4
|
|---|
| 9 | # 1 "/usr/include/features.h" 1 3 4
|
|---|
| 10 | # 358 "/usr/include/features.h" 3 4
|
|---|
| 11 | # 1 "/usr/include/sys/cdefs.h" 1 3 4
|
|---|
| 12 | # 378 "/usr/include/sys/cdefs.h" 3 4
|
|---|
| 13 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 14 | # 379 "/usr/include/sys/cdefs.h" 2 3 4
|
|---|
| 15 | # 359 "/usr/include/features.h" 2 3 4
|
|---|
| 16 | # 382 "/usr/include/features.h" 3 4
|
|---|
| 17 | # 1 "/usr/include/gnu/stubs.h" 1 3 4
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 22 | # 5 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | # 1 "/usr/include/gnu/stubs-64.h" 1 3 4
|
|---|
| 28 | # 10 "/usr/include/gnu/stubs.h" 2 3 4
|
|---|
| 29 | # 383 "/usr/include/features.h" 2 3 4
|
|---|
| 30 | # 29 "/usr/include/stdio.h" 2 3 4
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 37 | # 212 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stddef.h" 3 4
|
|---|
| 38 | typedef long unsigned int size_t;
|
|---|
| 39 | # 35 "/usr/include/stdio.h" 2 3 4
|
|---|
| 40 |
|
|---|
| 41 | # 1 "/usr/include/bits/types.h" 1 3 4
|
|---|
| 42 | # 28 "/usr/include/bits/types.h" 3 4
|
|---|
| 43 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 44 | # 29 "/usr/include/bits/types.h" 2 3 4
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | typedef unsigned char __u_char;
|
|---|
| 48 | typedef unsigned short int __u_short;
|
|---|
| 49 | typedef unsigned int __u_int;
|
|---|
| 50 | typedef unsigned long int __u_long;
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | typedef signed char __int8_t;
|
|---|
| 54 | typedef unsigned char __uint8_t;
|
|---|
| 55 | typedef signed short int __int16_t;
|
|---|
| 56 | typedef unsigned short int __uint16_t;
|
|---|
| 57 | typedef signed int __int32_t;
|
|---|
| 58 | typedef unsigned int __uint32_t;
|
|---|
| 59 |
|
|---|
| 60 | typedef signed long int __int64_t;
|
|---|
| 61 | typedef unsigned long int __uint64_t;
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | typedef long int __quad_t;
|
|---|
| 70 | typedef unsigned long int __u_quad_t;
|
|---|
| 71 | # 131 "/usr/include/bits/types.h" 3 4
|
|---|
| 72 | # 1 "/usr/include/bits/typesizes.h" 1 3 4
|
|---|
| 73 | # 132 "/usr/include/bits/types.h" 2 3 4
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | typedef unsigned long int __dev_t;
|
|---|
| 77 | typedef unsigned int __uid_t;
|
|---|
| 78 | typedef unsigned int __gid_t;
|
|---|
| 79 | typedef unsigned long int __ino_t;
|
|---|
| 80 | typedef unsigned long int __ino64_t;
|
|---|
| 81 | typedef unsigned int __mode_t;
|
|---|
| 82 | typedef unsigned long int __nlink_t;
|
|---|
| 83 | typedef long int __off_t;
|
|---|
| 84 | typedef long int __off64_t;
|
|---|
| 85 | typedef int __pid_t;
|
|---|
| 86 | typedef struct { int __val[2]; } __fsid_t;
|
|---|
| 87 | typedef long int __clock_t;
|
|---|
| 88 | typedef unsigned long int __rlim_t;
|
|---|
| 89 | typedef unsigned long int __rlim64_t;
|
|---|
| 90 | typedef unsigned int __id_t;
|
|---|
| 91 | typedef long int __time_t;
|
|---|
| 92 | typedef unsigned int __useconds_t;
|
|---|
| 93 | typedef long int __suseconds_t;
|
|---|
| 94 |
|
|---|
| 95 | typedef int __daddr_t;
|
|---|
| 96 | typedef long int __swblk_t;
|
|---|
| 97 | typedef int __key_t;
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 | typedef int __clockid_t;
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | typedef void * __timer_t;
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | typedef long int __blksize_t;
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 |
|
|---|
| 111 | typedef long int __blkcnt_t;
|
|---|
| 112 | typedef long int __blkcnt64_t;
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 | typedef unsigned long int __fsblkcnt_t;
|
|---|
| 116 | typedef unsigned long int __fsblkcnt64_t;
|
|---|
| 117 |
|
|---|
| 118 |
|
|---|
| 119 | typedef unsigned long int __fsfilcnt_t;
|
|---|
| 120 | typedef unsigned long int __fsfilcnt64_t;
|
|---|
| 121 |
|
|---|
| 122 | typedef long int __ssize_t;
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 | typedef __off64_t __loff_t;
|
|---|
| 127 | typedef __quad_t *__qaddr_t;
|
|---|
| 128 | typedef char *__caddr_t;
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 | typedef long int __intptr_t;
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 | typedef unsigned int __socklen_t;
|
|---|
| 135 | # 37 "/usr/include/stdio.h" 2 3 4
|
|---|
| 136 | # 45 "/usr/include/stdio.h" 3 4
|
|---|
| 137 | struct _IO_FILE;
|
|---|
| 138 |
|
|---|
| 139 |
|
|---|
| 140 |
|
|---|
| 141 | typedef struct _IO_FILE FILE;
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 |
|
|---|
| 147 | # 65 "/usr/include/stdio.h" 3 4
|
|---|
| 148 | typedef struct _IO_FILE __FILE;
|
|---|
| 149 | # 75 "/usr/include/stdio.h" 3 4
|
|---|
| 150 | # 1 "/usr/include/libio.h" 1 3 4
|
|---|
| 151 | # 32 "/usr/include/libio.h" 3 4
|
|---|
| 152 | # 1 "/usr/include/_G_config.h" 1 3 4
|
|---|
| 153 | # 15 "/usr/include/_G_config.h" 3 4
|
|---|
| 154 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stddef.h" 1 3 4
|
|---|
| 155 | # 16 "/usr/include/_G_config.h" 2 3 4
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 |
|
|---|
| 159 |
|
|---|
| 160 | # 1 "/usr/include/wchar.h" 1 3 4
|
|---|
| 161 | # 83 "/usr/include/wchar.h" 3 4
|
|---|
| 162 | typedef struct
|
|---|
| 163 | {
|
|---|
| 164 | int __count;
|
|---|
| 165 | union
|
|---|
| 166 | {
|
|---|
| 167 |
|
|---|
| 168 | unsigned int __wch;
|
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 |
|
|---|
| 172 | char __wchb[4];
|
|---|
| 173 | } __value;
|
|---|
| 174 | } __mbstate_t;
|
|---|
| 175 | # 21 "/usr/include/_G_config.h" 2 3 4
|
|---|
| 176 |
|
|---|
| 177 | typedef struct
|
|---|
| 178 | {
|
|---|
| 179 | __off_t __pos;
|
|---|
| 180 | __mbstate_t __state;
|
|---|
| 181 | } _G_fpos_t;
|
|---|
| 182 | typedef struct
|
|---|
| 183 | {
|
|---|
| 184 | __off64_t __pos;
|
|---|
| 185 | __mbstate_t __state;
|
|---|
| 186 | } _G_fpos64_t;
|
|---|
| 187 | # 53 "/usr/include/_G_config.h" 3 4
|
|---|
| 188 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 189 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 190 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 191 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 192 | # 33 "/usr/include/libio.h" 2 3 4
|
|---|
| 193 | # 53 "/usr/include/libio.h" 3 4
|
|---|
| 194 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stdarg.h" 1 3 4
|
|---|
| 195 | # 40 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stdarg.h" 3 4
|
|---|
| 196 | typedef __builtin_va_list __gnuc_va_list;
|
|---|
| 197 | # 54 "/usr/include/libio.h" 2 3 4
|
|---|
| 198 | # 172 "/usr/include/libio.h" 3 4
|
|---|
| 199 | struct _IO_jump_t; struct _IO_FILE;
|
|---|
| 200 | # 182 "/usr/include/libio.h" 3 4
|
|---|
| 201 | typedef void _IO_lock_t;
|
|---|
| 202 |
|
|---|
| 203 |
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 |
|
|---|
| 207 | struct _IO_marker {
|
|---|
| 208 | struct _IO_marker *_next;
|
|---|
| 209 | struct _IO_FILE *_sbuf;
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 |
|
|---|
| 213 | int _pos;
|
|---|
| 214 | # 205 "/usr/include/libio.h" 3 4
|
|---|
| 215 | };
|
|---|
| 216 |
|
|---|
| 217 |
|
|---|
| 218 | enum __codecvt_result
|
|---|
| 219 | {
|
|---|
| 220 | __codecvt_ok,
|
|---|
| 221 | __codecvt_partial,
|
|---|
| 222 | __codecvt_error,
|
|---|
| 223 | __codecvt_noconv
|
|---|
| 224 | };
|
|---|
| 225 | # 273 "/usr/include/libio.h" 3 4
|
|---|
| 226 | struct _IO_FILE {
|
|---|
| 227 | int _flags;
|
|---|
| 228 |
|
|---|
| 229 |
|
|---|
| 230 |
|
|---|
| 231 |
|
|---|
| 232 | char* _IO_read_ptr;
|
|---|
| 233 | char* _IO_read_end;
|
|---|
| 234 | char* _IO_read_base;
|
|---|
| 235 | char* _IO_write_base;
|
|---|
| 236 | char* _IO_write_ptr;
|
|---|
| 237 | char* _IO_write_end;
|
|---|
| 238 | char* _IO_buf_base;
|
|---|
| 239 | char* _IO_buf_end;
|
|---|
| 240 |
|
|---|
| 241 | char *_IO_save_base;
|
|---|
| 242 | char *_IO_backup_base;
|
|---|
| 243 | char *_IO_save_end;
|
|---|
| 244 |
|
|---|
| 245 | struct _IO_marker *_markers;
|
|---|
| 246 |
|
|---|
| 247 | struct _IO_FILE *_chain;
|
|---|
| 248 |
|
|---|
| 249 | int _fileno;
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 | int _flags2;
|
|---|
| 254 |
|
|---|
| 255 | __off_t _old_offset;
|
|---|
| 256 |
|
|---|
| 257 |
|
|---|
| 258 |
|
|---|
| 259 | unsigned short _cur_column;
|
|---|
| 260 | signed char _vtable_offset;
|
|---|
| 261 | char _shortbuf[1];
|
|---|
| 262 |
|
|---|
| 263 |
|
|---|
| 264 |
|
|---|
| 265 | _IO_lock_t *_lock;
|
|---|
| 266 | # 321 "/usr/include/libio.h" 3 4
|
|---|
| 267 | __off64_t _offset;
|
|---|
| 268 | # 330 "/usr/include/libio.h" 3 4
|
|---|
| 269 | void *__pad1;
|
|---|
| 270 | void *__pad2;
|
|---|
| 271 | void *__pad3;
|
|---|
| 272 | void *__pad4;
|
|---|
| 273 | size_t __pad5;
|
|---|
| 274 |
|
|---|
| 275 | int _mode;
|
|---|
| 276 |
|
|---|
| 277 | char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
|
|---|
| 278 |
|
|---|
| 279 | };
|
|---|
| 280 |
|
|---|
| 281 |
|
|---|
| 282 | typedef struct _IO_FILE _IO_FILE;
|
|---|
| 283 |
|
|---|
| 284 |
|
|---|
| 285 | struct _IO_FILE_plus;
|
|---|
| 286 |
|
|---|
| 287 | extern struct _IO_FILE_plus _IO_2_1_stdin_;
|
|---|
| 288 | extern struct _IO_FILE_plus _IO_2_1_stdout_;
|
|---|
| 289 | extern struct _IO_FILE_plus _IO_2_1_stderr_;
|
|---|
| 290 | # 366 "/usr/include/libio.h" 3 4
|
|---|
| 291 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
|
|---|
| 292 |
|
|---|
| 293 |
|
|---|
| 294 |
|
|---|
| 295 |
|
|---|
| 296 |
|
|---|
| 297 |
|
|---|
| 298 |
|
|---|
| 299 | typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
|
|---|
| 300 | size_t __n);
|
|---|
| 301 |
|
|---|
| 302 |
|
|---|
| 303 |
|
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
|
|---|
| 307 |
|
|---|
| 308 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
|
|---|
| 309 |
|
|---|
| 310 |
|
|---|
| 311 | typedef int __io_close_fn (void *__cookie);
|
|---|
| 312 | # 418 "/usr/include/libio.h" 3 4
|
|---|
| 313 | extern int __underflow (_IO_FILE *);
|
|---|
| 314 | extern int __uflow (_IO_FILE *);
|
|---|
| 315 | extern int __overflow (_IO_FILE *, int);
|
|---|
| 316 | # 462 "/usr/include/libio.h" 3 4
|
|---|
| 317 | extern int _IO_getc (_IO_FILE *__fp);
|
|---|
| 318 | extern int _IO_putc (int __c, _IO_FILE *__fp);
|
|---|
| 319 | extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 320 | extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 321 |
|
|---|
| 322 | extern int _IO_peekc_locked (_IO_FILE *__fp);
|
|---|
| 323 |
|
|---|
| 324 |
|
|---|
| 325 |
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 | extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 329 | extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 330 | extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 331 | # 492 "/usr/include/libio.h" 3 4
|
|---|
| 332 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
|
|---|
| 333 | __gnuc_va_list, int *__restrict);
|
|---|
| 334 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
|
|---|
| 335 | __gnuc_va_list);
|
|---|
| 336 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
|
|---|
| 337 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
|
|---|
| 338 |
|
|---|
| 339 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
|
|---|
| 340 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
|
|---|
| 341 |
|
|---|
| 342 | extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 343 | # 76 "/usr/include/stdio.h" 2 3 4
|
|---|
| 344 |
|
|---|
| 345 |
|
|---|
| 346 |
|
|---|
| 347 |
|
|---|
| 348 | typedef __gnuc_va_list va_list;
|
|---|
| 349 | # 91 "/usr/include/stdio.h" 3 4
|
|---|
| 350 | typedef __off_t off_t;
|
|---|
| 351 | # 103 "/usr/include/stdio.h" 3 4
|
|---|
| 352 | typedef __ssize_t ssize_t;
|
|---|
| 353 |
|
|---|
| 354 |
|
|---|
| 355 |
|
|---|
| 356 |
|
|---|
| 357 |
|
|---|
| 358 |
|
|---|
| 359 |
|
|---|
| 360 | typedef _G_fpos_t fpos_t;
|
|---|
| 361 |
|
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 |
|
|---|
| 365 | # 165 "/usr/include/stdio.h" 3 4
|
|---|
| 366 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
|
|---|
| 367 | # 166 "/usr/include/stdio.h" 2 3 4
|
|---|
| 368 |
|
|---|
| 369 |
|
|---|
| 370 |
|
|---|
| 371 | extern struct _IO_FILE *stdin;
|
|---|
| 372 | extern struct _IO_FILE *stdout;
|
|---|
| 373 | extern struct _IO_FILE *stderr;
|
|---|
| 374 |
|
|---|
| 375 |
|
|---|
| 376 |
|
|---|
| 377 |
|
|---|
| 378 |
|
|---|
| 379 |
|
|---|
| 380 |
|
|---|
| 381 | extern int remove (__const char *__filename) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 382 |
|
|---|
| 383 | extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 384 |
|
|---|
| 385 |
|
|---|
| 386 |
|
|---|
| 387 |
|
|---|
| 388 | extern int renameat (int __oldfd, __const char *__old, int __newfd,
|
|---|
| 389 | __const char *__new) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 390 |
|
|---|
| 391 |
|
|---|
| 392 |
|
|---|
| 393 |
|
|---|
| 394 |
|
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
|
|---|
| 398 | extern FILE *tmpfile (void) ;
|
|---|
| 399 | # 210 "/usr/include/stdio.h" 3 4
|
|---|
| 400 | extern char *tmpnam (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 |
|
|---|
| 405 |
|
|---|
| 406 | extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 407 | # 228 "/usr/include/stdio.h" 3 4
|
|---|
| 408 | extern char *tempnam (__const char *__dir, __const char *__pfx)
|
|---|
| 409 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__malloc__)) ;
|
|---|
| 410 |
|
|---|
| 411 |
|
|---|
| 412 |
|
|---|
| 413 |
|
|---|
| 414 |
|
|---|
| 415 |
|
|---|
| 416 |
|
|---|
| 417 |
|
|---|
| 418 | extern int fclose (FILE *__stream);
|
|---|
| 419 |
|
|---|
| 420 |
|
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 | extern int fflush (FILE *__stream);
|
|---|
| 424 |
|
|---|
| 425 | # 253 "/usr/include/stdio.h" 3 4
|
|---|
| 426 | extern int fflush_unlocked (FILE *__stream);
|
|---|
| 427 | # 267 "/usr/include/stdio.h" 3 4
|
|---|
| 428 |
|
|---|
| 429 |
|
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
|
|---|
| 434 | extern FILE *fopen (__const char *__restrict __filename,
|
|---|
| 435 | __const char *__restrict __modes) ;
|
|---|
| 436 |
|
|---|
| 437 |
|
|---|
| 438 |
|
|---|
| 439 |
|
|---|
| 440 | extern FILE *freopen (__const char *__restrict __filename,
|
|---|
| 441 | __const char *__restrict __modes,
|
|---|
| 442 | FILE *__restrict __stream) ;
|
|---|
| 443 | # 296 "/usr/include/stdio.h" 3 4
|
|---|
| 444 |
|
|---|
| 445 | # 307 "/usr/include/stdio.h" 3 4
|
|---|
| 446 | extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 447 | # 320 "/usr/include/stdio.h" 3 4
|
|---|
| 448 | extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
|
|---|
| 449 | __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 |
|
|---|
| 453 |
|
|---|
| 454 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 455 |
|
|---|
| 456 |
|
|---|
| 457 |
|
|---|
| 458 |
|
|---|
| 459 |
|
|---|
| 460 |
|
|---|
| 461 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 462 |
|
|---|
| 463 |
|
|---|
| 464 |
|
|---|
| 465 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
|
|---|
| 466 | int __modes, size_t __n) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 467 |
|
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
|
|---|
| 471 |
|
|---|
| 472 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
|
|---|
| 473 | size_t __size) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 474 |
|
|---|
| 475 |
|
|---|
| 476 | extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 477 |
|
|---|
| 478 |
|
|---|
| 479 |
|
|---|
| 480 |
|
|---|
| 481 |
|
|---|
| 482 |
|
|---|
| 483 |
|
|---|
| 484 |
|
|---|
| 485 | extern int fprintf (FILE *__restrict __stream,
|
|---|
| 486 | __const char *__restrict __format, ...);
|
|---|
| 487 |
|
|---|
| 488 |
|
|---|
| 489 |
|
|---|
| 490 |
|
|---|
| 491 | extern int printf (__const char *__restrict __format, ...);
|
|---|
| 492 |
|
|---|
| 493 | extern int sprintf (char *__restrict __s,
|
|---|
| 494 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
|
|---|
| 495 |
|
|---|
| 496 |
|
|---|
| 497 |
|
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 | extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
|
|---|
| 501 | __gnuc_va_list __arg);
|
|---|
| 502 |
|
|---|
| 503 |
|
|---|
| 504 |
|
|---|
| 505 |
|
|---|
| 506 | extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
|
|---|
| 507 |
|
|---|
| 508 | extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
|
|---|
| 509 | __gnuc_va_list __arg) __attribute__ ((__nothrow__));
|
|---|
| 510 |
|
|---|
| 511 |
|
|---|
| 512 |
|
|---|
| 513 |
|
|---|
| 514 |
|
|---|
| 515 | extern int snprintf (char *__restrict __s, size_t __maxlen,
|
|---|
| 516 | __const char *__restrict __format, ...)
|
|---|
| 517 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
|
|---|
| 518 |
|
|---|
| 519 | extern int vsnprintf (char *__restrict __s, size_t __maxlen,
|
|---|
| 520 | __const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 521 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
|
|---|
| 522 |
|
|---|
| 523 | # 418 "/usr/include/stdio.h" 3 4
|
|---|
| 524 | extern int vdprintf (int __fd, __const char *__restrict __fmt,
|
|---|
| 525 | __gnuc_va_list __arg)
|
|---|
| 526 | __attribute__ ((__format__ (__printf__, 2, 0)));
|
|---|
| 527 | extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
|
|---|
| 528 | __attribute__ ((__format__ (__printf__, 2, 3)));
|
|---|
| 529 |
|
|---|
| 530 |
|
|---|
| 531 |
|
|---|
| 532 |
|
|---|
| 533 |
|
|---|
| 534 |
|
|---|
| 535 |
|
|---|
| 536 |
|
|---|
| 537 | extern int fscanf (FILE *__restrict __stream,
|
|---|
| 538 | __const char *__restrict __format, ...) ;
|
|---|
| 539 |
|
|---|
| 540 |
|
|---|
| 541 |
|
|---|
| 542 |
|
|---|
| 543 | extern int scanf (__const char *__restrict __format, ...) ;
|
|---|
| 544 |
|
|---|
| 545 | extern int sscanf (__const char *__restrict __s,
|
|---|
| 546 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 547 | # 449 "/usr/include/stdio.h" 3 4
|
|---|
| 548 | extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
|
|---|
| 549 |
|
|---|
| 550 | ;
|
|---|
| 551 | extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
|
|---|
| 552 | ;
|
|---|
| 553 | extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__ , __leaf__))
|
|---|
| 554 |
|
|---|
| 555 | ;
|
|---|
| 556 | # 469 "/usr/include/stdio.h" 3 4
|
|---|
| 557 |
|
|---|
| 558 |
|
|---|
| 559 |
|
|---|
| 560 |
|
|---|
| 561 |
|
|---|
| 562 |
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 | extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
|
|---|
| 566 | __gnuc_va_list __arg)
|
|---|
| 567 | __attribute__ ((__format__ (__scanf__, 2, 0))) ;
|
|---|
| 568 |
|
|---|
| 569 |
|
|---|
| 570 |
|
|---|
| 571 |
|
|---|
| 572 |
|
|---|
| 573 | extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 574 | __attribute__ ((__format__ (__scanf__, 1, 0))) ;
|
|---|
| 575 |
|
|---|
| 576 |
|
|---|
| 577 | extern int vsscanf (__const char *__restrict __s,
|
|---|
| 578 | __const char *__restrict __format, __gnuc_va_list __arg)
|
|---|
| 579 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
|
|---|
| 580 | # 500 "/usr/include/stdio.h" 3 4
|
|---|
| 581 | extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
|
|---|
| 582 |
|
|---|
| 583 |
|
|---|
| 584 |
|
|---|
| 585 | __attribute__ ((__format__ (__scanf__, 2, 0))) ;
|
|---|
| 586 | extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
|
|---|
| 587 |
|
|---|
| 588 | __attribute__ ((__format__ (__scanf__, 1, 0))) ;
|
|---|
| 589 | extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__ , __leaf__))
|
|---|
| 590 |
|
|---|
| 591 |
|
|---|
| 592 |
|
|---|
| 593 | __attribute__ ((__format__ (__scanf__, 2, 0)));
|
|---|
| 594 | # 528 "/usr/include/stdio.h" 3 4
|
|---|
| 595 |
|
|---|
| 596 |
|
|---|
| 597 |
|
|---|
| 598 |
|
|---|
| 599 |
|
|---|
| 600 |
|
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 |
|
|---|
| 604 | extern int fgetc (FILE *__stream);
|
|---|
| 605 | extern int getc (FILE *__stream);
|
|---|
| 606 |
|
|---|
| 607 |
|
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 |
|
|---|
| 611 | extern int getchar (void);
|
|---|
| 612 |
|
|---|
| 613 | # 556 "/usr/include/stdio.h" 3 4
|
|---|
| 614 | extern int getc_unlocked (FILE *__stream);
|
|---|
| 615 | extern int getchar_unlocked (void);
|
|---|
| 616 | # 567 "/usr/include/stdio.h" 3 4
|
|---|
| 617 | extern int fgetc_unlocked (FILE *__stream);
|
|---|
| 618 |
|
|---|
| 619 |
|
|---|
| 620 |
|
|---|
| 621 |
|
|---|
| 622 |
|
|---|
| 623 |
|
|---|
| 624 |
|
|---|
| 625 |
|
|---|
| 626 |
|
|---|
| 627 |
|
|---|
| 628 |
|
|---|
| 629 | extern int fputc (int __c, FILE *__stream);
|
|---|
| 630 | extern int putc (int __c, FILE *__stream);
|
|---|
| 631 |
|
|---|
| 632 |
|
|---|
| 633 |
|
|---|
| 634 |
|
|---|
| 635 |
|
|---|
| 636 | extern int putchar (int __c);
|
|---|
| 637 |
|
|---|
| 638 | # 600 "/usr/include/stdio.h" 3 4
|
|---|
| 639 | extern int fputc_unlocked (int __c, FILE *__stream);
|
|---|
| 640 |
|
|---|
| 641 |
|
|---|
| 642 |
|
|---|
| 643 |
|
|---|
| 644 |
|
|---|
| 645 |
|
|---|
| 646 |
|
|---|
| 647 | extern int putc_unlocked (int __c, FILE *__stream);
|
|---|
| 648 | extern int putchar_unlocked (int __c);
|
|---|
| 649 |
|
|---|
| 650 |
|
|---|
| 651 |
|
|---|
| 652 |
|
|---|
| 653 |
|
|---|
| 654 |
|
|---|
| 655 | extern int getw (FILE *__stream);
|
|---|
| 656 |
|
|---|
| 657 |
|
|---|
| 658 | extern int putw (int __w, FILE *__stream);
|
|---|
| 659 |
|
|---|
| 660 |
|
|---|
| 661 |
|
|---|
| 662 |
|
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 |
|
|---|
| 667 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
|---|
| 668 | ;
|
|---|
| 669 |
|
|---|
| 670 |
|
|---|
| 671 |
|
|---|
| 672 |
|
|---|
| 673 |
|
|---|
| 674 |
|
|---|
| 675 | extern char *gets (char *__s) ;
|
|---|
| 676 |
|
|---|
| 677 | # 662 "/usr/include/stdio.h" 3 4
|
|---|
| 678 | extern __ssize_t __getdelim (char **__restrict __lineptr,
|
|---|
| 679 | size_t *__restrict __n, int __delimiter,
|
|---|
| 680 | FILE *__restrict __stream) ;
|
|---|
| 681 | extern __ssize_t getdelim (char **__restrict __lineptr,
|
|---|
| 682 | size_t *__restrict __n, int __delimiter,
|
|---|
| 683 | FILE *__restrict __stream) ;
|
|---|
| 684 |
|
|---|
| 685 |
|
|---|
| 686 |
|
|---|
| 687 |
|
|---|
| 688 |
|
|---|
| 689 |
|
|---|
| 690 |
|
|---|
| 691 | extern __ssize_t getline (char **__restrict __lineptr,
|
|---|
| 692 | size_t *__restrict __n,
|
|---|
| 693 | FILE *__restrict __stream) ;
|
|---|
| 694 |
|
|---|
| 695 |
|
|---|
| 696 |
|
|---|
| 697 |
|
|---|
| 698 |
|
|---|
| 699 |
|
|---|
| 700 |
|
|---|
| 701 |
|
|---|
| 702 | extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
|
|---|
| 703 |
|
|---|
| 704 |
|
|---|
| 705 |
|
|---|
| 706 |
|
|---|
| 707 |
|
|---|
| 708 | extern int puts (__const char *__s);
|
|---|
| 709 |
|
|---|
| 710 |
|
|---|
| 711 |
|
|---|
| 712 |
|
|---|
| 713 |
|
|---|
| 714 |
|
|---|
| 715 | extern int ungetc (int __c, FILE *__stream);
|
|---|
| 716 |
|
|---|
| 717 |
|
|---|
| 718 |
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 |
|
|---|
| 722 | extern size_t fread (void *__restrict __ptr, size_t __size,
|
|---|
| 723 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 724 |
|
|---|
| 725 |
|
|---|
| 726 |
|
|---|
| 727 |
|
|---|
| 728 | extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
|
|---|
| 729 | size_t __n, FILE *__restrict __s) ;
|
|---|
| 730 |
|
|---|
| 731 | # 734 "/usr/include/stdio.h" 3 4
|
|---|
| 732 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
|
|---|
| 733 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 734 | extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
|
|---|
| 735 | size_t __n, FILE *__restrict __stream) ;
|
|---|
| 736 |
|
|---|
| 737 |
|
|---|
| 738 |
|
|---|
| 739 |
|
|---|
| 740 |
|
|---|
| 741 |
|
|---|
| 742 |
|
|---|
| 743 |
|
|---|
| 744 | extern int fseek (FILE *__stream, long int __off, int __whence);
|
|---|
| 745 |
|
|---|
| 746 |
|
|---|
| 747 |
|
|---|
| 748 |
|
|---|
| 749 | extern long int ftell (FILE *__stream) ;
|
|---|
| 750 |
|
|---|
| 751 |
|
|---|
| 752 |
|
|---|
| 753 |
|
|---|
| 754 | extern void rewind (FILE *__stream);
|
|---|
| 755 |
|
|---|
| 756 | # 770 "/usr/include/stdio.h" 3 4
|
|---|
| 757 | extern int fseeko (FILE *__stream, __off_t __off, int __whence);
|
|---|
| 758 |
|
|---|
| 759 |
|
|---|
| 760 |
|
|---|
| 761 |
|
|---|
| 762 | extern __off_t ftello (FILE *__stream) ;
|
|---|
| 763 | # 789 "/usr/include/stdio.h" 3 4
|
|---|
| 764 |
|
|---|
| 765 |
|
|---|
| 766 |
|
|---|
| 767 |
|
|---|
| 768 |
|
|---|
| 769 |
|
|---|
| 770 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
|
|---|
| 771 |
|
|---|
| 772 |
|
|---|
| 773 |
|
|---|
| 774 |
|
|---|
| 775 | extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
|
|---|
| 776 | # 812 "/usr/include/stdio.h" 3 4
|
|---|
| 777 |
|
|---|
| 778 | # 821 "/usr/include/stdio.h" 3 4
|
|---|
| 779 |
|
|---|
| 780 |
|
|---|
| 781 | extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 782 |
|
|---|
| 783 | extern int feof (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 784 |
|
|---|
| 785 | extern int ferror (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 786 |
|
|---|
| 787 |
|
|---|
| 788 |
|
|---|
| 789 |
|
|---|
| 790 | extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 791 | extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 792 | extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 793 |
|
|---|
| 794 |
|
|---|
| 795 |
|
|---|
| 796 |
|
|---|
| 797 |
|
|---|
| 798 |
|
|---|
| 799 |
|
|---|
| 800 |
|
|---|
| 801 | extern void perror (__const char *__s);
|
|---|
| 802 |
|
|---|
| 803 |
|
|---|
| 804 |
|
|---|
| 805 |
|
|---|
| 806 |
|
|---|
| 807 |
|
|---|
| 808 | # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
|
|---|
| 809 | # 27 "/usr/include/bits/sys_errlist.h" 3 4
|
|---|
| 810 | extern int sys_nerr;
|
|---|
| 811 | extern __const char *__const sys_errlist[];
|
|---|
| 812 | # 851 "/usr/include/stdio.h" 2 3 4
|
|---|
| 813 |
|
|---|
| 814 |
|
|---|
| 815 |
|
|---|
| 816 |
|
|---|
| 817 | extern int fileno (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 818 |
|
|---|
| 819 |
|
|---|
| 820 |
|
|---|
| 821 |
|
|---|
| 822 | extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 823 | # 870 "/usr/include/stdio.h" 3 4
|
|---|
| 824 | extern FILE *popen (__const char *__command, __const char *__modes) ;
|
|---|
| 825 |
|
|---|
| 826 |
|
|---|
| 827 |
|
|---|
| 828 |
|
|---|
| 829 |
|
|---|
| 830 | extern int pclose (FILE *__stream);
|
|---|
| 831 |
|
|---|
| 832 |
|
|---|
| 833 |
|
|---|
| 834 |
|
|---|
| 835 |
|
|---|
| 836 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 837 | # 910 "/usr/include/stdio.h" 3 4
|
|---|
| 838 | extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 839 |
|
|---|
| 840 |
|
|---|
| 841 |
|
|---|
| 842 | extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 843 |
|
|---|
| 844 |
|
|---|
| 845 | extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 846 | # 940 "/usr/include/stdio.h" 3 4
|
|---|
| 847 |
|
|---|
| 848 | # 2 "./integerpromotion_unsafe.c" 2
|
|---|
| 849 | # 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stdint.h" 1 3 4
|
|---|
| 850 |
|
|---|
| 851 |
|
|---|
| 852 | # 1 "/usr/include/stdint.h" 1 3 4
|
|---|
| 853 | # 27 "/usr/include/stdint.h" 3 4
|
|---|
| 854 | # 1 "/usr/include/bits/wchar.h" 1 3 4
|
|---|
| 855 | # 28 "/usr/include/stdint.h" 2 3 4
|
|---|
| 856 | # 1 "/usr/include/bits/wordsize.h" 1 3 4
|
|---|
| 857 | # 29 "/usr/include/stdint.h" 2 3 4
|
|---|
| 858 | # 37 "/usr/include/stdint.h" 3 4
|
|---|
| 859 | typedef signed char int8_t;
|
|---|
| 860 | typedef short int int16_t;
|
|---|
| 861 | typedef int int32_t;
|
|---|
| 862 |
|
|---|
| 863 | typedef long int int64_t;
|
|---|
| 864 |
|
|---|
| 865 |
|
|---|
| 866 |
|
|---|
| 867 |
|
|---|
| 868 |
|
|---|
| 869 |
|
|---|
| 870 |
|
|---|
| 871 | typedef unsigned char uint8_t;
|
|---|
| 872 | typedef unsigned short int uint16_t;
|
|---|
| 873 |
|
|---|
| 874 | typedef unsigned int uint32_t;
|
|---|
| 875 |
|
|---|
| 876 |
|
|---|
| 877 |
|
|---|
| 878 | typedef unsigned long int uint64_t;
|
|---|
| 879 | # 66 "/usr/include/stdint.h" 3 4
|
|---|
| 880 | typedef signed char int_least8_t;
|
|---|
| 881 | typedef short int int_least16_t;
|
|---|
| 882 | typedef int int_least32_t;
|
|---|
| 883 |
|
|---|
| 884 | typedef long int int_least64_t;
|
|---|
| 885 |
|
|---|
| 886 |
|
|---|
| 887 |
|
|---|
| 888 |
|
|---|
| 889 |
|
|---|
| 890 |
|
|---|
| 891 | typedef unsigned char uint_least8_t;
|
|---|
| 892 | typedef unsigned short int uint_least16_t;
|
|---|
| 893 | typedef unsigned int uint_least32_t;
|
|---|
| 894 |
|
|---|
| 895 | typedef unsigned long int uint_least64_t;
|
|---|
| 896 | # 91 "/usr/include/stdint.h" 3 4
|
|---|
| 897 | typedef signed char int_fast8_t;
|
|---|
| 898 |
|
|---|
| 899 | typedef long int int_fast16_t;
|
|---|
| 900 | typedef long int int_fast32_t;
|
|---|
| 901 | typedef long int int_fast64_t;
|
|---|
| 902 | # 104 "/usr/include/stdint.h" 3 4
|
|---|
| 903 | typedef unsigned char uint_fast8_t;
|
|---|
| 904 |
|
|---|
| 905 | typedef unsigned long int uint_fast16_t;
|
|---|
| 906 | typedef unsigned long int uint_fast32_t;
|
|---|
| 907 | typedef unsigned long int uint_fast64_t;
|
|---|
| 908 | # 120 "/usr/include/stdint.h" 3 4
|
|---|
| 909 | typedef long int intptr_t;
|
|---|
| 910 |
|
|---|
| 911 |
|
|---|
| 912 | typedef unsigned long int uintptr_t;
|
|---|
| 913 | # 135 "/usr/include/stdint.h" 3 4
|
|---|
| 914 | typedef long int intmax_t;
|
|---|
| 915 | typedef unsigned long int uintmax_t;
|
|---|
| 916 | # 4 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/stdint.h" 2 3 4
|
|---|
| 917 | # 3 "./integerpromotion_unsafe.c" 2
|
|---|
| 918 |
|
|---|
| 919 | int main() {
|
|---|
| 920 |
|
|---|
| 921 | unsigned char port = 0x5a;
|
|---|
| 922 | unsigned char result_8 = ( ~port ) >> 4;
|
|---|
| 923 | if (result_8 == 0xfa) {
|
|---|
| 924 | printf ("UNSAFE\n");
|
|---|
| 925 | goto ERROR;
|
|---|
| 926 | }
|
|---|
| 927 |
|
|---|
| 928 |
|
|---|
| 929 | printf ("SAFE\n");
|
|---|
| 930 |
|
|---|
| 931 | return (0);
|
|---|
| 932 | ERROR: __VERIFIER_error();
|
|---|
| 933 | return (-1);
|
|---|
| 934 | }
|
|---|