source: CIVL/examples/pthread/svcomp/reorder_2_false-unreach-call.i@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 64.7 KB
Line 
1extern void __VERIFIER_error() __attribute__ ((__noreturn__));
2
3# 1 "reorder.c"
4# 1 "<built-in>"
5# 1 "<command-line>"
6# 1 "reorder.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# 363 "/usr/include/features.h" 3 4
11# 1 "/usr/include/sys/cdefs.h" 1 3 4
12# 372 "/usr/include/sys/cdefs.h" 3 4
13# 1 "/usr/include/bits/wordsize.h" 1 3 4
14# 373 "/usr/include/sys/cdefs.h" 2 3 4
15# 364 "/usr/include/features.h" 2 3 4
16# 387 "/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# 1 "/usr/include/gnu/stubs-32.h" 1 3 4
26# 8 "/usr/include/gnu/stubs.h" 2 3 4
27# 388 "/usr/include/features.h" 2 3 4
28# 29 "/usr/include/stdio.h" 2 3 4
29
30
31
32
33
34# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
35# 212 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 3 4
36typedef unsigned int size_t;
37# 35 "/usr/include/stdio.h" 2 3 4
38
39# 1 "/usr/include/bits/types.h" 1 3 4
40# 28 "/usr/include/bits/types.h" 3 4
41# 1 "/usr/include/bits/wordsize.h" 1 3 4
42# 29 "/usr/include/bits/types.h" 2 3 4
43
44
45typedef unsigned char __u_char;
46typedef unsigned short int __u_short;
47typedef unsigned int __u_int;
48typedef unsigned long int __u_long;
49
50
51typedef signed char __int8_t;
52typedef unsigned char __uint8_t;
53typedef signed short int __int16_t;
54typedef unsigned short int __uint16_t;
55typedef signed int __int32_t;
56typedef unsigned int __uint32_t;
57
58
59
60
61__extension__ typedef signed long long int __int64_t;
62__extension__ typedef unsigned long long int __uint64_t;
63
64
65
66
67
68
69
70__extension__ typedef long long int __quad_t;
71__extension__ typedef unsigned long long int __u_quad_t;
72# 131 "/usr/include/bits/types.h" 3 4
73# 1 "/usr/include/bits/typesizes.h" 1 3 4
74# 132 "/usr/include/bits/types.h" 2 3 4
75
76
77__extension__ typedef __u_quad_t __dev_t;
78__extension__ typedef unsigned int __uid_t;
79__extension__ typedef unsigned int __gid_t;
80__extension__ typedef unsigned long int __ino_t;
81__extension__ typedef __u_quad_t __ino64_t;
82__extension__ typedef unsigned int __mode_t;
83__extension__ typedef unsigned int __nlink_t;
84__extension__ typedef long int __off_t;
85__extension__ typedef __quad_t __off64_t;
86__extension__ typedef int __pid_t;
87__extension__ typedef struct { int __val[2]; } __fsid_t;
88__extension__ typedef long int __clock_t;
89__extension__ typedef unsigned long int __rlim_t;
90__extension__ typedef __u_quad_t __rlim64_t;
91__extension__ typedef unsigned int __id_t;
92__extension__ typedef long int __time_t;
93__extension__ typedef unsigned int __useconds_t;
94__extension__ typedef long int __suseconds_t;
95
96__extension__ typedef int __daddr_t;
97__extension__ typedef long int __swblk_t;
98__extension__ typedef int __key_t;
99
100
101__extension__ typedef int __clockid_t;
102
103
104__extension__ typedef void * __timer_t;
105
106
107__extension__ typedef long int __blksize_t;
108
109
110
111
112__extension__ typedef long int __blkcnt_t;
113__extension__ typedef __quad_t __blkcnt64_t;
114
115
116__extension__ typedef unsigned long int __fsblkcnt_t;
117__extension__ typedef __u_quad_t __fsblkcnt64_t;
118
119
120__extension__ typedef unsigned long int __fsfilcnt_t;
121__extension__ typedef __u_quad_t __fsfilcnt64_t;
122
123__extension__ typedef int __ssize_t;
124
125
126
127typedef __off64_t __loff_t;
128typedef __quad_t *__qaddr_t;
129typedef char *__caddr_t;
130
131
132__extension__ typedef int __intptr_t;
133
134
135__extension__ typedef unsigned int __socklen_t;
136# 37 "/usr/include/stdio.h" 2 3 4
137# 45 "/usr/include/stdio.h" 3 4
138struct _IO_FILE;
139
140
141
142typedef struct _IO_FILE FILE;
143
144
145
146
147
148# 65 "/usr/include/stdio.h" 3 4
149typedef struct _IO_FILE __FILE;
150# 75 "/usr/include/stdio.h" 3 4
151# 1 "/usr/include/libio.h" 1 3 4
152# 32 "/usr/include/libio.h" 3 4
153# 1 "/usr/include/_G_config.h" 1 3 4
154# 15 "/usr/include/_G_config.h" 3 4
155# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
156# 16 "/usr/include/_G_config.h" 2 3 4
157
158
159
160
161# 1 "/usr/include/wchar.h" 1 3 4
162# 83 "/usr/include/wchar.h" 3 4
163typedef struct
164{
165 int __count;
166 union
167 {
168
169 unsigned int __wch;
170
171
172
173 char __wchb[4];
174 } __value;
175} __mbstate_t;
176# 21 "/usr/include/_G_config.h" 2 3 4
177
178typedef struct
179{
180 __off_t __pos;
181 __mbstate_t __state;
182} _G_fpos_t;
183typedef struct
184{
185 __off64_t __pos;
186 __mbstate_t __state;
187} _G_fpos64_t;
188# 53 "/usr/include/_G_config.h" 3 4
189typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
190typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
191typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
192typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
193# 33 "/usr/include/libio.h" 2 3 4
194# 53 "/usr/include/libio.h" 3 4
195# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stdarg.h" 1 3 4
196# 40 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stdarg.h" 3 4
197typedef __builtin_va_list __gnuc_va_list;
198# 54 "/usr/include/libio.h" 2 3 4
199# 172 "/usr/include/libio.h" 3 4
200struct _IO_jump_t; struct _IO_FILE;
201# 182 "/usr/include/libio.h" 3 4
202typedef void _IO_lock_t;
203
204
205
206
207
208struct _IO_marker {
209 struct _IO_marker *_next;
210 struct _IO_FILE *_sbuf;
211
212
213
214 int _pos;
215# 205 "/usr/include/libio.h" 3 4
216};
217
218
219enum __codecvt_result
220{
221 __codecvt_ok,
222 __codecvt_partial,
223 __codecvt_error,
224 __codecvt_noconv
225};
226# 273 "/usr/include/libio.h" 3 4
227struct _IO_FILE {
228 int _flags;
229
230
231
232
233 char* _IO_read_ptr;
234 char* _IO_read_end;
235 char* _IO_read_base;
236 char* _IO_write_base;
237 char* _IO_write_ptr;
238 char* _IO_write_end;
239 char* _IO_buf_base;
240 char* _IO_buf_end;
241
242 char *_IO_save_base;
243 char *_IO_backup_base;
244 char *_IO_save_end;
245
246 struct _IO_marker *_markers;
247
248 struct _IO_FILE *_chain;
249
250 int _fileno;
251
252
253
254 int _flags2;
255
256 __off_t _old_offset;
257
258
259
260 unsigned short _cur_column;
261 signed char _vtable_offset;
262 char _shortbuf[1];
263
264
265
266 _IO_lock_t *_lock;
267# 321 "/usr/include/libio.h" 3 4
268 __off64_t _offset;
269# 330 "/usr/include/libio.h" 3 4
270 void *__pad1;
271 void *__pad2;
272 void *__pad3;
273 void *__pad4;
274 size_t __pad5;
275
276 int _mode;
277
278 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
279
280};
281
282
283typedef struct _IO_FILE _IO_FILE;
284
285
286struct _IO_FILE_plus;
287
288extern struct _IO_FILE_plus _IO_2_1_stdin_;
289extern struct _IO_FILE_plus _IO_2_1_stdout_;
290extern struct _IO_FILE_plus _IO_2_1_stderr_;
291# 366 "/usr/include/libio.h" 3 4
292typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
293
294
295
296
297
298
299
300typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
301 size_t __n);
302
303
304
305
306
307
308
309typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
310
311
312typedef int __io_close_fn (void *__cookie);
313# 418 "/usr/include/libio.h" 3 4
314extern int __underflow (_IO_FILE *);
315extern int __uflow (_IO_FILE *);
316extern int __overflow (_IO_FILE *, int);
317# 462 "/usr/include/libio.h" 3 4
318extern int _IO_getc (_IO_FILE *__fp);
319extern int _IO_putc (int __c, _IO_FILE *__fp);
320extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
321extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
322
323extern int _IO_peekc_locked (_IO_FILE *__fp);
324
325
326
327
328
329extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
330extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
331extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
332# 492 "/usr/include/libio.h" 3 4
333extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
334 __gnuc_va_list, int *__restrict);
335extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
336 __gnuc_va_list);
337extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t);
338extern size_t _IO_sgetn (_IO_FILE *, void *, size_t);
339
340extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int);
341extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int);
342
343extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
344# 76 "/usr/include/stdio.h" 2 3 4
345
346
347
348
349typedef __gnuc_va_list va_list;
350# 91 "/usr/include/stdio.h" 3 4
351typedef __off_t off_t;
352# 103 "/usr/include/stdio.h" 3 4
353typedef __ssize_t ssize_t;
354
355
356
357
358
359
360
361typedef _G_fpos_t fpos_t;
362
363
364
365
366# 165 "/usr/include/stdio.h" 3 4
367# 1 "/usr/include/bits/stdio_lim.h" 1 3 4
368# 166 "/usr/include/stdio.h" 2 3 4
369
370
371
372extern struct _IO_FILE *stdin;
373extern struct _IO_FILE *stdout;
374extern struct _IO_FILE *stderr;
375
376
377
378
379
380
381
382
383
384extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
385
386extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
387
388
389
390
391extern int renameat (int __oldfd, __const char *__old, int __newfd,
392 __const char *__new) __attribute__ ((__nothrow__));
393
394
395
396
397
398
399
400
401extern FILE *tmpfile (void) ;
402# 212 "/usr/include/stdio.h" 3 4
403extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ;
404
405
406
407
408
409extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ;
410# 230 "/usr/include/stdio.h" 3 4
411extern char *tempnam (__const char *__dir, __const char *__pfx)
412 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
413
414
415
416
417
418
419
420
421extern int fclose (FILE *__stream);
422
423
424
425
426extern int fflush (FILE *__stream);
427
428# 255 "/usr/include/stdio.h" 3 4
429extern int fflush_unlocked (FILE *__stream);
430# 269 "/usr/include/stdio.h" 3 4
431
432
433
434
435
436
437extern FILE *fopen (__const char *__restrict __filename,
438 __const char *__restrict __modes) ;
439
440
441
442
443extern FILE *freopen (__const char *__restrict __filename,
444 __const char *__restrict __modes,
445 FILE *__restrict __stream) ;
446# 298 "/usr/include/stdio.h" 3 4
447
448# 309 "/usr/include/stdio.h" 3 4
449extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ;
450# 322 "/usr/include/stdio.h" 3 4
451extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
452 __attribute__ ((__nothrow__)) ;
453
454
455
456
457extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __attribute__ ((__nothrow__)) ;
458
459
460
461
462
463
464extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
465
466
467
468extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
469 int __modes, size_t __n) __attribute__ ((__nothrow__));
470
471
472
473
474
475extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
476 size_t __size) __attribute__ ((__nothrow__));
477
478
479extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
480
481
482
483
484
485
486
487
488extern int fprintf (FILE *__restrict __stream,
489 __const char *__restrict __format, ...);
490
491
492
493
494extern int printf (__const char *__restrict __format, ...);
495
496extern int sprintf (char *__restrict __s,
497 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
498
499
500
501
502
503extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
504 __gnuc_va_list __arg);
505
506
507
508
509extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
510
511extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
512 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
513
514
515
516
517
518extern int snprintf (char *__restrict __s, size_t __maxlen,
519 __const char *__restrict __format, ...)
520 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
521
522extern int vsnprintf (char *__restrict __s, size_t __maxlen,
523 __const char *__restrict __format, __gnuc_va_list __arg)
524 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
525
526# 420 "/usr/include/stdio.h" 3 4
527extern int vdprintf (int __fd, __const char *__restrict __fmt,
528 __gnuc_va_list __arg)
529 __attribute__ ((__format__ (__printf__, 2, 0)));
530extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
531 __attribute__ ((__format__ (__printf__, 2, 3)));
532
533
534
535
536
537
538
539
540extern int fscanf (FILE *__restrict __stream,
541 __const char *__restrict __format, ...) ;
542
543
544
545
546extern int scanf (__const char *__restrict __format, ...) ;
547
548extern int sscanf (__const char *__restrict __s,
549 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
550# 451 "/usr/include/stdio.h" 3 4
551extern int fscanf (FILE *__restrict __stream, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf")
552
553 ;
554extern int scanf (__const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf")
555 ;
556extern int sscanf (__const char *__restrict __s, __const char *__restrict __format, ...) __asm__ ("" "__isoc99_sscanf") __attribute__ ((__nothrow__))
557
558 ;
559# 471 "/usr/include/stdio.h" 3 4
560
561
562
563
564
565
566
567
568extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
569 __gnuc_va_list __arg)
570 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
571
572
573
574
575
576extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
577 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
578
579
580extern int vsscanf (__const char *__restrict __s,
581 __const char *__restrict __format, __gnuc_va_list __arg)
582 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__scanf__, 2, 0)));
583# 502 "/usr/include/stdio.h" 3 4
584extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf")
585
586
587
588 __attribute__ ((__format__ (__scanf__, 2, 0))) ;
589extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf")
590
591 __attribute__ ((__format__ (__scanf__, 1, 0))) ;
592extern int vsscanf (__const char *__restrict __s, __const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__nothrow__))
593
594
595
596 __attribute__ ((__format__ (__scanf__, 2, 0)));
597# 530 "/usr/include/stdio.h" 3 4
598
599
600
601
602
603
604
605
606
607extern int fgetc (FILE *__stream);
608extern int getc (FILE *__stream);
609
610
611
612
613
614extern int getchar (void);
615
616# 558 "/usr/include/stdio.h" 3 4
617extern int getc_unlocked (FILE *__stream);
618extern int getchar_unlocked (void);
619# 569 "/usr/include/stdio.h" 3 4
620extern int fgetc_unlocked (FILE *__stream);
621
622
623
624
625
626
627
628
629
630
631
632extern int fputc (int __c, FILE *__stream);
633extern int putc (int __c, FILE *__stream);
634
635
636
637
638
639extern int putchar (int __c);
640
641# 602 "/usr/include/stdio.h" 3 4
642extern int fputc_unlocked (int __c, FILE *__stream);
643
644
645
646
647
648
649
650extern int putc_unlocked (int __c, FILE *__stream);
651extern int putchar_unlocked (int __c);
652
653
654
655
656
657
658extern int getw (FILE *__stream);
659
660
661extern int putw (int __w, FILE *__stream);
662
663
664
665
666
667
668
669
670extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
671 ;
672
673
674
675
676
677
678extern char *gets (char *__s) ;
679
680# 664 "/usr/include/stdio.h" 3 4
681extern __ssize_t __getdelim (char **__restrict __lineptr,
682 size_t *__restrict __n, int __delimiter,
683 FILE *__restrict __stream) ;
684extern __ssize_t getdelim (char **__restrict __lineptr,
685 size_t *__restrict __n, int __delimiter,
686 FILE *__restrict __stream) ;
687
688
689
690
691
692
693
694extern __ssize_t getline (char **__restrict __lineptr,
695 size_t *__restrict __n,
696 FILE *__restrict __stream) ;
697
698
699
700
701
702
703
704
705extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
706
707
708
709
710
711extern int puts (__const char *__s);
712
713
714
715
716
717
718extern int ungetc (int __c, FILE *__stream);
719
720
721
722
723
724
725extern size_t fread (void *__restrict __ptr, size_t __size,
726 size_t __n, FILE *__restrict __stream) ;
727
728
729
730
731extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
732 size_t __n, FILE *__restrict __s) ;
733
734# 736 "/usr/include/stdio.h" 3 4
735extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
736 size_t __n, FILE *__restrict __stream) ;
737extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
738 size_t __n, FILE *__restrict __stream) ;
739
740
741
742
743
744
745
746
747extern int fseek (FILE *__stream, long int __off, int __whence);
748
749
750
751
752extern long int ftell (FILE *__stream) ;
753
754
755
756
757extern void rewind (FILE *__stream);
758
759# 772 "/usr/include/stdio.h" 3 4
760extern int fseeko (FILE *__stream, __off_t __off, int __whence);
761
762
763
764
765extern __off_t ftello (FILE *__stream) ;
766# 791 "/usr/include/stdio.h" 3 4
767
768
769
770
771
772
773extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
774
775
776
777
778extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
779# 814 "/usr/include/stdio.h" 3 4
780
781# 823 "/usr/include/stdio.h" 3 4
782
783
784extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
785
786extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
787
788extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
789
790
791
792
793extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
794extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
795extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
796
797
798
799
800
801
802
803
804extern void perror (__const char *__s);
805
806
807
808
809
810
811# 1 "/usr/include/bits/sys_errlist.h" 1 3 4
812# 27 "/usr/include/bits/sys_errlist.h" 3 4
813extern int sys_nerr;
814extern __const char *__const sys_errlist[];
815# 853 "/usr/include/stdio.h" 2 3 4
816
817
818
819
820extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
821
822
823
824
825extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
826# 872 "/usr/include/stdio.h" 3 4
827extern FILE *popen (__const char *__command, __const char *__modes) ;
828
829
830
831
832
833extern int pclose (FILE *__stream);
834
835
836
837
838
839extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
840# 912 "/usr/include/stdio.h" 3 4
841extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
842
843
844
845extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
846
847
848extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
849# 942 "/usr/include/stdio.h" 3 4
850
851# 2 "reorder.c" 2
852# 1 "/usr/include/stdlib.h" 1 3 4
853# 33 "/usr/include/stdlib.h" 3 4
854# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
855# 324 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 3 4
856typedef long int wchar_t;
857# 34 "/usr/include/stdlib.h" 2 3 4
858
859
860
861
862
863
864
865
866# 1 "/usr/include/bits/waitflags.h" 1 3 4
867# 43 "/usr/include/stdlib.h" 2 3 4
868# 1 "/usr/include/bits/waitstatus.h" 1 3 4
869# 65 "/usr/include/bits/waitstatus.h" 3 4
870# 1 "/usr/include/endian.h" 1 3 4
871# 37 "/usr/include/endian.h" 3 4
872# 1 "/usr/include/bits/endian.h" 1 3 4
873# 38 "/usr/include/endian.h" 2 3 4
874# 61 "/usr/include/endian.h" 3 4
875# 1 "/usr/include/bits/byteswap.h" 1 3 4
876# 62 "/usr/include/endian.h" 2 3 4
877# 66 "/usr/include/bits/waitstatus.h" 2 3 4
878
879union wait
880 {
881 int w_status;
882 struct
883 {
884
885 unsigned int __w_termsig:7;
886 unsigned int __w_coredump:1;
887 unsigned int __w_retcode:8;
888 unsigned int:16;
889
890
891
892
893
894
895
896 } __wait_terminated;
897 struct
898 {
899
900 unsigned int __w_stopval:8;
901 unsigned int __w_stopsig:8;
902 unsigned int:16;
903
904
905
906
907
908
909 } __wait_stopped;
910 };
911# 44 "/usr/include/stdlib.h" 2 3 4
912# 68 "/usr/include/stdlib.h" 3 4
913typedef union
914 {
915 union wait *__uptr;
916 int *__iptr;
917 } __WAIT_STATUS __attribute__ ((__transparent_union__));
918# 96 "/usr/include/stdlib.h" 3 4
919
920
921typedef struct
922 {
923 int quot;
924 int rem;
925 } div_t;
926
927
928
929typedef struct
930 {
931 long int quot;
932 long int rem;
933 } ldiv_t;
934
935
936
937
938
939
940
941__extension__ typedef struct
942 {
943 long long int quot;
944 long long int rem;
945 } lldiv_t;
946
947
948# 140 "/usr/include/stdlib.h" 3 4
949extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
950
951
952
953
954extern double atof (__const char *__nptr)
955 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
956
957extern int atoi (__const char *__nptr)
958 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
959
960extern long int atol (__const char *__nptr)
961 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
962
963
964
965
966
967__extension__ extern long long int atoll (__const char *__nptr)
968 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
969
970
971
972
973
974extern double strtod (__const char *__restrict __nptr,
975 char **__restrict __endptr)
976 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
977
978
979
980
981
982extern float strtof (__const char *__restrict __nptr,
983 char **__restrict __endptr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
984
985extern long double strtold (__const char *__restrict __nptr,
986 char **__restrict __endptr)
987 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
988
989
990
991
992
993extern long int strtol (__const char *__restrict __nptr,
994 char **__restrict __endptr, int __base)
995 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
996
997extern unsigned long int strtoul (__const char *__restrict __nptr,
998 char **__restrict __endptr, int __base)
999 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1000
1001
1002
1003
1004__extension__
1005extern long long int strtoq (__const char *__restrict __nptr,
1006 char **__restrict __endptr, int __base)
1007 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1008
1009__extension__
1010extern unsigned long long int strtouq (__const char *__restrict __nptr,
1011 char **__restrict __endptr, int __base)
1012 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1013
1014
1015
1016
1017
1018__extension__
1019extern long long int strtoll (__const char *__restrict __nptr,
1020 char **__restrict __endptr, int __base)
1021 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1022
1023__extension__
1024extern unsigned long long int strtoull (__const char *__restrict __nptr,
1025 char **__restrict __endptr, int __base)
1026 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1027
1028# 311 "/usr/include/stdlib.h" 3 4
1029extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
1030
1031
1032extern long int a64l (__const char *__s)
1033 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1034
1035
1036
1037
1038# 1 "/usr/include/sys/types.h" 1 3 4
1039# 28 "/usr/include/sys/types.h" 3 4
1040
1041
1042
1043
1044
1045
1046typedef __u_char u_char;
1047typedef __u_short u_short;
1048typedef __u_int u_int;
1049typedef __u_long u_long;
1050typedef __quad_t quad_t;
1051typedef __u_quad_t u_quad_t;
1052typedef __fsid_t fsid_t;
1053
1054
1055
1056
1057typedef __loff_t loff_t;
1058
1059
1060
1061typedef __ino_t ino_t;
1062# 61 "/usr/include/sys/types.h" 3 4
1063typedef __dev_t dev_t;
1064
1065
1066
1067
1068typedef __gid_t gid_t;
1069
1070
1071
1072
1073typedef __mode_t mode_t;
1074
1075
1076
1077
1078typedef __nlink_t nlink_t;
1079
1080
1081
1082
1083typedef __uid_t uid_t;
1084# 99 "/usr/include/sys/types.h" 3 4
1085typedef __pid_t pid_t;
1086
1087
1088
1089
1090
1091typedef __id_t id_t;
1092# 116 "/usr/include/sys/types.h" 3 4
1093typedef __daddr_t daddr_t;
1094typedef __caddr_t caddr_t;
1095
1096
1097
1098
1099
1100typedef __key_t key_t;
1101# 133 "/usr/include/sys/types.h" 3 4
1102# 1 "/usr/include/time.h" 1 3 4
1103# 58 "/usr/include/time.h" 3 4
1104
1105
1106typedef __clock_t clock_t;
1107
1108
1109
1110# 74 "/usr/include/time.h" 3 4
1111
1112
1113typedef __time_t time_t;
1114
1115
1116
1117# 92 "/usr/include/time.h" 3 4
1118typedef __clockid_t clockid_t;
1119# 104 "/usr/include/time.h" 3 4
1120typedef __timer_t timer_t;
1121# 134 "/usr/include/sys/types.h" 2 3 4
1122# 147 "/usr/include/sys/types.h" 3 4
1123# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
1124# 148 "/usr/include/sys/types.h" 2 3 4
1125
1126
1127
1128typedef unsigned long int ulong;
1129typedef unsigned short int ushort;
1130typedef unsigned int uint;
1131# 195 "/usr/include/sys/types.h" 3 4
1132typedef int int8_t __attribute__ ((__mode__ (__QI__)));
1133typedef int int16_t __attribute__ ((__mode__ (__HI__)));
1134typedef int int32_t __attribute__ ((__mode__ (__SI__)));
1135typedef int int64_t __attribute__ ((__mode__ (__DI__)));
1136
1137
1138typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1139typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1140typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1141typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1142
1143typedef int register_t __attribute__ ((__mode__ (__word__)));
1144# 220 "/usr/include/sys/types.h" 3 4
1145# 1 "/usr/include/sys/select.h" 1 3 4
1146# 31 "/usr/include/sys/select.h" 3 4
1147# 1 "/usr/include/bits/select.h" 1 3 4
1148# 32 "/usr/include/sys/select.h" 2 3 4
1149
1150
1151# 1 "/usr/include/bits/sigset.h" 1 3 4
1152# 24 "/usr/include/bits/sigset.h" 3 4
1153typedef int __sig_atomic_t;
1154
1155
1156
1157
1158typedef struct
1159 {
1160 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1161 } __sigset_t;
1162# 35 "/usr/include/sys/select.h" 2 3 4
1163
1164
1165
1166typedef __sigset_t sigset_t;
1167
1168
1169
1170
1171
1172# 1 "/usr/include/time.h" 1 3 4
1173# 120 "/usr/include/time.h" 3 4
1174struct timespec
1175 {
1176 __time_t tv_sec;
1177 long int tv_nsec;
1178 };
1179# 45 "/usr/include/sys/select.h" 2 3 4
1180
1181# 1 "/usr/include/bits/time.h" 1 3 4
1182# 31 "/usr/include/bits/time.h" 3 4
1183struct timeval
1184 {
1185 __time_t tv_sec;
1186 __suseconds_t tv_usec;
1187 };
1188# 47 "/usr/include/sys/select.h" 2 3 4
1189
1190
1191typedef __suseconds_t suseconds_t;
1192
1193
1194
1195
1196
1197typedef long int __fd_mask;
1198# 65 "/usr/include/sys/select.h" 3 4
1199typedef struct
1200 {
1201
1202
1203
1204
1205
1206
1207 __fd_mask __fds_bits[1024 / (8 * (int) sizeof (__fd_mask))];
1208
1209
1210 } fd_set;
1211
1212
1213
1214
1215
1216
1217typedef __fd_mask fd_mask;
1218# 97 "/usr/include/sys/select.h" 3 4
1219
1220# 107 "/usr/include/sys/select.h" 3 4
1221extern int select (int __nfds, fd_set *__restrict __readfds,
1222 fd_set *__restrict __writefds,
1223 fd_set *__restrict __exceptfds,
1224 struct timeval *__restrict __timeout);
1225# 119 "/usr/include/sys/select.h" 3 4
1226extern int pselect (int __nfds, fd_set *__restrict __readfds,
1227 fd_set *__restrict __writefds,
1228 fd_set *__restrict __exceptfds,
1229 const struct timespec *__restrict __timeout,
1230 const __sigset_t *__restrict __sigmask);
1231# 132 "/usr/include/sys/select.h" 3 4
1232
1233# 221 "/usr/include/sys/types.h" 2 3 4
1234
1235
1236# 1 "/usr/include/sys/sysmacros.h" 1 3 4
1237# 30 "/usr/include/sys/sysmacros.h" 3 4
1238
1239
1240__extension__
1241extern unsigned int gnu_dev_major (unsigned long long int __dev)
1242 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1243__extension__
1244extern unsigned int gnu_dev_minor (unsigned long long int __dev)
1245 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1246__extension__
1247extern unsigned long long int gnu_dev_makedev (unsigned int __major,
1248 unsigned int __minor)
1249 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
1250# 64 "/usr/include/sys/sysmacros.h" 3 4
1251
1252# 224 "/usr/include/sys/types.h" 2 3 4
1253
1254
1255
1256
1257
1258typedef __blksize_t blksize_t;
1259
1260
1261
1262
1263
1264
1265typedef __blkcnt_t blkcnt_t;
1266
1267
1268
1269typedef __fsblkcnt_t fsblkcnt_t;
1270
1271
1272
1273typedef __fsfilcnt_t fsfilcnt_t;
1274# 271 "/usr/include/sys/types.h" 3 4
1275# 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1276# 36 "/usr/include/bits/pthreadtypes.h" 3 4
1277typedef unsigned long int pthread_t;
1278
1279
1280typedef union
1281{
1282 char __size[36];
1283 long int __align;
1284} pthread_attr_t;
1285
1286
1287typedef struct __pthread_internal_slist
1288{
1289 struct __pthread_internal_slist *__next;
1290} __pthread_slist_t;
1291
1292
1293
1294
1295typedef union
1296{
1297 struct __pthread_mutex_s
1298 {
1299 int __lock;
1300 unsigned int __count;
1301 int __owner;
1302
1303
1304 int __kind;
1305 unsigned int __nusers;
1306 __extension__ union
1307 {
1308 int __spins;
1309 __pthread_slist_t __list;
1310 };
1311 } __data;
1312 char __size[24];
1313 long int __align;
1314} pthread_mutex_t;
1315
1316typedef union
1317{
1318 char __size[4];
1319 long int __align;
1320} pthread_mutexattr_t;
1321
1322
1323
1324
1325typedef union
1326{
1327 struct
1328 {
1329 int __lock;
1330 unsigned int __futex;
1331 __extension__ unsigned long long int __total_seq;
1332 __extension__ unsigned long long int __wakeup_seq;
1333 __extension__ unsigned long long int __woken_seq;
1334 void *__mutex;
1335 unsigned int __nwaiters;
1336 unsigned int __broadcast_seq;
1337 } __data;
1338 char __size[48];
1339 __extension__ long long int __align;
1340} pthread_cond_t;
1341
1342typedef union
1343{
1344 char __size[4];
1345 long int __align;
1346} pthread_condattr_t;
1347
1348
1349
1350typedef unsigned int pthread_key_t;
1351
1352
1353
1354typedef int pthread_once_t;
1355
1356
1357
1358
1359
1360typedef union
1361{
1362 struct
1363 {
1364 int __lock;
1365 unsigned int __nr_readers;
1366 unsigned int __readers_wakeup;
1367 unsigned int __writer_wakeup;
1368 unsigned int __nr_readers_queued;
1369 unsigned int __nr_writers_queued;
1370
1371
1372 unsigned char __flags;
1373 unsigned char __shared;
1374 unsigned char __pad1;
1375 unsigned char __pad2;
1376 int __writer;
1377 } __data;
1378 char __size[32];
1379 long int __align;
1380} pthread_rwlock_t;
1381
1382typedef union
1383{
1384 char __size[8];
1385 long int __align;
1386} pthread_rwlockattr_t;
1387
1388
1389
1390
1391
1392typedef volatile int pthread_spinlock_t;
1393
1394
1395
1396
1397typedef union
1398{
1399 char __size[20];
1400 long int __align;
1401} pthread_barrier_t;
1402
1403typedef union
1404{
1405 char __size[4];
1406 int __align;
1407} pthread_barrierattr_t;
1408# 272 "/usr/include/sys/types.h" 2 3 4
1409
1410
1411
1412# 321 "/usr/include/stdlib.h" 2 3 4
1413
1414
1415
1416
1417
1418
1419extern long int random (void) __attribute__ ((__nothrow__));
1420
1421
1422extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
1423
1424
1425
1426
1427
1428extern char *initstate (unsigned int __seed, char *__statebuf,
1429 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1430
1431
1432
1433extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1434
1435
1436
1437
1438
1439
1440
1441struct random_data
1442 {
1443 int32_t *fptr;
1444 int32_t *rptr;
1445 int32_t *state;
1446 int rand_type;
1447 int rand_deg;
1448 int rand_sep;
1449 int32_t *end_ptr;
1450 };
1451
1452extern int random_r (struct random_data *__restrict __buf,
1453 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1454
1455extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1456 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1457
1458extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1459 size_t __statelen,
1460 struct random_data *__restrict __buf)
1461 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1462
1463extern int setstate_r (char *__restrict __statebuf,
1464 struct random_data *__restrict __buf)
1465 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1466
1467
1468
1469
1470
1471
1472extern int rand (void) __attribute__ ((__nothrow__));
1473
1474extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1475
1476
1477
1478
1479extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1480
1481
1482
1483
1484
1485
1486
1487extern double drand48 (void) __attribute__ ((__nothrow__));
1488extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1489
1490
1491extern long int lrand48 (void) __attribute__ ((__nothrow__));
1492extern long int nrand48 (unsigned short int __xsubi[3])
1493 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1494
1495
1496extern long int mrand48 (void) __attribute__ ((__nothrow__));
1497extern long int jrand48 (unsigned short int __xsubi[3])
1498 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1499
1500
1501extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1502extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1503 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1504extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1505
1506
1507
1508
1509
1510struct drand48_data
1511 {
1512 unsigned short int __x[3];
1513 unsigned short int __old_x[3];
1514 unsigned short int __c;
1515 unsigned short int __init;
1516 unsigned long long int __a;
1517 };
1518
1519
1520extern int drand48_r (struct drand48_data *__restrict __buffer,
1521 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1522extern int erand48_r (unsigned short int __xsubi[3],
1523 struct drand48_data *__restrict __buffer,
1524 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1525
1526
1527extern int lrand48_r (struct drand48_data *__restrict __buffer,
1528 long int *__restrict __result)
1529 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1530extern int nrand48_r (unsigned short int __xsubi[3],
1531 struct drand48_data *__restrict __buffer,
1532 long int *__restrict __result)
1533 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1534
1535
1536extern int mrand48_r (struct drand48_data *__restrict __buffer,
1537 long int *__restrict __result)
1538 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1539extern int jrand48_r (unsigned short int __xsubi[3],
1540 struct drand48_data *__restrict __buffer,
1541 long int *__restrict __result)
1542 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1543
1544
1545extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1546 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1547
1548extern int seed48_r (unsigned short int __seed16v[3],
1549 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1550
1551extern int lcong48_r (unsigned short int __param[7],
1552 struct drand48_data *__buffer)
1553 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1564
1565extern void *calloc (size_t __nmemb, size_t __size)
1566 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577extern void *realloc (void *__ptr, size_t __size)
1578 __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__));
1579
1580extern void free (void *__ptr) __attribute__ ((__nothrow__));
1581
1582
1583
1584
1585extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1586
1587
1588
1589# 1 "/usr/include/alloca.h" 1 3 4
1590# 25 "/usr/include/alloca.h" 3 4
1591# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
1592# 26 "/usr/include/alloca.h" 2 3 4
1593
1594
1595
1596
1597
1598
1599
1600extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1601
1602
1603
1604
1605
1606
1607# 498 "/usr/include/stdlib.h" 2 3 4
1608
1609
1610
1611
1612
1613extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1614
1615
1616
1617
1618extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
1619 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1620
1621
1622
1623
1624extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1625
1626
1627
1628extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1629# 531 "/usr/include/stdlib.h" 3 4
1630
1631
1632
1633
1634
1635extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1636 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1637
1638
1639
1640
1641
1642
1643extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1644# 554 "/usr/include/stdlib.h" 3 4
1645
1646
1647
1648
1649
1650
1651extern void _Exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1652
1653
1654
1655
1656
1657
1658extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1659
1660
1661
1662
1663extern char *__secure_getenv (__const char *__name)
1664 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1665
1666
1667
1668
1669
1670extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1671
1672
1673
1674
1675
1676extern int setenv (__const char *__name, __const char *__value, int __replace)
1677 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1678
1679
1680extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1681
1682
1683
1684
1685
1686
1687extern int clearenv (void) __attribute__ ((__nothrow__));
1688# 606 "/usr/include/stdlib.h" 3 4
1689extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1690# 620 "/usr/include/stdlib.h" 3 4
1691extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ;
1692# 642 "/usr/include/stdlib.h" 3 4
1693extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ;
1694# 663 "/usr/include/stdlib.h" 3 4
1695extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1696# 712 "/usr/include/stdlib.h" 3 4
1697
1698
1699
1700
1701
1702extern int system (__const char *__command) ;
1703
1704# 734 "/usr/include/stdlib.h" 3 4
1705extern char *realpath (__const char *__restrict __name,
1706 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
1707
1708
1709
1710
1711
1712
1713typedef int (*__compar_fn_t) (__const void *, __const void *);
1714# 752 "/usr/include/stdlib.h" 3 4
1715
1716
1717
1718extern void *bsearch (__const void *__key, __const void *__base,
1719 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1720 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1721
1722
1723
1724extern void qsort (void *__base, size_t __nmemb, size_t __size,
1725 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1726# 771 "/usr/include/stdlib.h" 3 4
1727extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1728extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1729
1730
1731
1732__extension__ extern long long int llabs (long long int __x)
1733 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1734
1735
1736
1737
1738
1739
1740
1741extern div_t div (int __numer, int __denom)
1742 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1743extern ldiv_t ldiv (long int __numer, long int __denom)
1744 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1745
1746
1747
1748
1749__extension__ extern lldiv_t lldiv (long long int __numer,
1750 long long int __denom)
1751 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1752
1753# 808 "/usr/include/stdlib.h" 3 4
1754extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
1755 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1756
1757
1758
1759
1760extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
1761 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1762
1763
1764
1765
1766extern char *gcvt (double __value, int __ndigit, char *__buf)
1767 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1768
1769
1770
1771
1772extern char *qecvt (long double __value, int __ndigit,
1773 int *__restrict __decpt, int *__restrict __sign)
1774 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1775extern char *qfcvt (long double __value, int __ndigit,
1776 int *__restrict __decpt, int *__restrict __sign)
1777 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1778extern char *qgcvt (long double __value, int __ndigit, char *__buf)
1779 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1780
1781
1782
1783
1784extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
1785 int *__restrict __sign, char *__restrict __buf,
1786 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1787extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
1788 int *__restrict __sign, char *__restrict __buf,
1789 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1790
1791extern int qecvt_r (long double __value, int __ndigit,
1792 int *__restrict __decpt, int *__restrict __sign,
1793 char *__restrict __buf, size_t __len)
1794 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1795extern int qfcvt_r (long double __value, int __ndigit,
1796 int *__restrict __decpt, int *__restrict __sign,
1797 char *__restrict __buf, size_t __len)
1798 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1799
1800
1801
1802
1803
1804
1805
1806extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
1807
1808
1809extern int mbtowc (wchar_t *__restrict __pwc,
1810 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
1811
1812
1813extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
1814
1815
1816
1817extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1818 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
1819
1820extern size_t wcstombs (char *__restrict __s,
1821 __const wchar_t *__restrict __pwcs, size_t __n)
1822 __attribute__ ((__nothrow__));
1823
1824
1825
1826
1827
1828
1829
1830
1831extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1832# 896 "/usr/include/stdlib.h" 3 4
1833extern int getsubopt (char **__restrict __optionp,
1834 char *__const *__restrict __tokens,
1835 char **__restrict __valuep)
1836 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ;
1837# 948 "/usr/include/stdlib.h" 3 4
1838extern int getloadavg (double __loadavg[], int __nelem)
1839 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1840# 964 "/usr/include/stdlib.h" 3 4
1841
1842# 3 "reorder.c" 2
1843# 1 "/usr/include/pthread.h" 1 3 4
1844# 25 "/usr/include/pthread.h" 3 4
1845# 1 "/usr/include/sched.h" 1 3 4
1846# 30 "/usr/include/sched.h" 3 4
1847# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
1848# 31 "/usr/include/sched.h" 2 3 4
1849
1850
1851
1852# 1 "/usr/include/time.h" 1 3 4
1853# 35 "/usr/include/sched.h" 2 3 4
1854# 43 "/usr/include/sched.h" 3 4
1855# 1 "/usr/include/bits/sched.h" 1 3 4
1856# 74 "/usr/include/bits/sched.h" 3 4
1857struct sched_param
1858 {
1859 int __sched_priority;
1860 };
1861
1862
1863# 97 "/usr/include/bits/sched.h" 3 4
1864
1865
1866
1867
1868
1869
1870
1871
1872struct __sched_param
1873 {
1874 int __sched_priority;
1875 };
1876# 120 "/usr/include/bits/sched.h" 3 4
1877typedef unsigned long int __cpu_mask;
1878
1879
1880
1881
1882
1883
1884typedef struct
1885{
1886 __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
1887} cpu_set_t;
1888# 203 "/usr/include/bits/sched.h" 3 4
1889
1890
1891extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
1892 __attribute__ ((__nothrow__));
1893extern cpu_set_t *__sched_cpualloc (size_t __count) __attribute__ ((__nothrow__)) ;
1894extern void __sched_cpufree (cpu_set_t *__set) __attribute__ ((__nothrow__));
1895
1896
1897# 44 "/usr/include/sched.h" 2 3 4
1898
1899
1900
1901
1902
1903
1904
1905extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
1906 __attribute__ ((__nothrow__));
1907
1908
1909extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__));
1910
1911
1912extern int sched_setscheduler (__pid_t __pid, int __policy,
1913 __const struct sched_param *__param) __attribute__ ((__nothrow__));
1914
1915
1916extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__));
1917
1918
1919extern int sched_yield (void) __attribute__ ((__nothrow__));
1920
1921
1922extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__));
1923
1924
1925extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__));
1926
1927
1928extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__));
1929# 126 "/usr/include/sched.h" 3 4
1930
1931# 26 "/usr/include/pthread.h" 2 3 4
1932# 1 "/usr/include/time.h" 1 3 4
1933# 30 "/usr/include/time.h" 3 4
1934
1935
1936
1937
1938
1939
1940
1941
1942# 1 "/usr/lib/gcc/i686-redhat-linux/4.6.3/include/stddef.h" 1 3 4
1943# 39 "/usr/include/time.h" 2 3 4
1944
1945
1946
1947# 1 "/usr/include/bits/time.h" 1 3 4
1948# 43 "/usr/include/time.h" 2 3 4
1949# 131 "/usr/include/time.h" 3 4
1950
1951
1952struct tm
1953{
1954 int tm_sec;
1955 int tm_min;
1956 int tm_hour;
1957 int tm_mday;
1958 int tm_mon;
1959 int tm_year;
1960 int tm_wday;
1961 int tm_yday;
1962 int tm_isdst;
1963
1964
1965 long int tm_gmtoff;
1966 __const char *tm_zone;
1967
1968
1969
1970
1971};
1972
1973
1974
1975
1976
1977
1978
1979
1980struct itimerspec
1981 {
1982 struct timespec it_interval;
1983 struct timespec it_value;
1984 };
1985
1986
1987struct sigevent;
1988# 180 "/usr/include/time.h" 3 4
1989
1990
1991
1992extern clock_t clock (void) __attribute__ ((__nothrow__));
1993
1994
1995extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
1996
1997
1998extern double difftime (time_t __time1, time_t __time0)
1999 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2000
2001
2002extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
2003
2004
2005
2006
2007
2008extern size_t strftime (char *__restrict __s, size_t __maxsize,
2009 __const char *__restrict __format,
2010 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2011
2012# 215 "/usr/include/time.h" 3 4
2013# 1 "/usr/include/xlocale.h" 1 3 4
2014# 28 "/usr/include/xlocale.h" 3 4
2015typedef struct __locale_struct
2016{
2017
2018 struct __locale_data *__locales[13];
2019
2020
2021 const unsigned short int *__ctype_b;
2022 const int *__ctype_tolower;
2023 const int *__ctype_toupper;
2024
2025
2026 const char *__names[13];
2027} *__locale_t;
2028
2029
2030typedef __locale_t locale_t;
2031# 216 "/usr/include/time.h" 2 3 4
2032
2033extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
2034 __const char *__restrict __format,
2035 __const struct tm *__restrict __tp,
2036 __locale_t __loc) __attribute__ ((__nothrow__));
2037# 230 "/usr/include/time.h" 3 4
2038
2039
2040
2041extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2042
2043
2044
2045extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
2046
2047
2048
2049
2050
2051extern struct tm *gmtime_r (__const time_t *__restrict __timer,
2052 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2053
2054
2055
2056extern struct tm *localtime_r (__const time_t *__restrict __timer,
2057 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
2058
2059
2060
2061
2062
2063extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
2064
2065
2066extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
2067
2068
2069
2070
2071
2072
2073
2074extern char *asctime_r (__const struct tm *__restrict __tp,
2075 char *__restrict __buf) __attribute__ ((__nothrow__));
2076
2077
2078extern char *ctime_r (__const time_t *__restrict __timer,
2079 char *__restrict __buf) __attribute__ ((__nothrow__));
2080
2081
2082
2083
2084extern char *__tzname[2];
2085extern int __daylight;
2086extern long int __timezone;
2087
2088
2089
2090
2091extern char *tzname[2];
2092
2093
2094
2095extern void tzset (void) __attribute__ ((__nothrow__));
2096
2097
2098
2099extern int daylight;
2100extern long int timezone;
2101
2102
2103
2104
2105
2106extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
2107# 313 "/usr/include/time.h" 3 4
2108extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
2109
2110
2111extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
2112
2113
2114extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2115# 328 "/usr/include/time.h" 3 4
2116extern int nanosleep (__const struct timespec *__requested_time,
2117 struct timespec *__remaining);
2118
2119
2120
2121extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
2122
2123
2124extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
2125
2126
2127extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
2128 __attribute__ ((__nothrow__));
2129
2130
2131
2132
2133
2134
2135extern int clock_nanosleep (clockid_t __clock_id, int __flags,
2136 __const struct timespec *__req,
2137 struct timespec *__rem);
2138
2139
2140extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
2141
2142
2143
2144
2145extern int timer_create (clockid_t __clock_id,
2146 struct sigevent *__restrict __evp,
2147 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
2148
2149
2150extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
2151
2152
2153extern int timer_settime (timer_t __timerid, int __flags,
2154 __const struct itimerspec *__restrict __value,
2155 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
2156
2157
2158extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
2159 __attribute__ ((__nothrow__));
2160
2161
2162extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
2163# 417 "/usr/include/time.h" 3 4
2164
2165# 27 "/usr/include/pthread.h" 2 3 4
2166
2167
2168# 1 "/usr/include/bits/setjmp.h" 1 3 4
2169# 29 "/usr/include/bits/setjmp.h" 3 4
2170typedef int __jmp_buf[6];
2171# 30 "/usr/include/pthread.h" 2 3 4
2172# 1 "/usr/include/bits/wordsize.h" 1 3 4
2173# 31 "/usr/include/pthread.h" 2 3 4
2174
2175
2176
2177enum
2178{
2179 PTHREAD_CREATE_JOINABLE,
2180
2181 PTHREAD_CREATE_DETACHED
2182
2183};
2184
2185
2186
2187enum
2188{
2189 PTHREAD_MUTEX_TIMED_NP,
2190 PTHREAD_MUTEX_RECURSIVE_NP,
2191 PTHREAD_MUTEX_ERRORCHECK_NP,
2192 PTHREAD_MUTEX_ADAPTIVE_NP
2193
2194 ,
2195 PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
2196 PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
2197 PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
2198 PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
2199
2200
2201
2202
2203
2204};
2205
2206
2207
2208
2209enum
2210{
2211 PTHREAD_MUTEX_STALLED,
2212 PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
2213 PTHREAD_MUTEX_ROBUST,
2214 PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
2215};
2216# 115 "/usr/include/pthread.h" 3 4
2217enum
2218{
2219 PTHREAD_RWLOCK_PREFER_READER_NP,
2220 PTHREAD_RWLOCK_PREFER_WRITER_NP,
2221 PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
2222 PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
2223};
2224# 147 "/usr/include/pthread.h" 3 4
2225enum
2226{
2227 PTHREAD_INHERIT_SCHED,
2228
2229 PTHREAD_EXPLICIT_SCHED
2230
2231};
2232
2233
2234
2235enum
2236{
2237 PTHREAD_SCOPE_SYSTEM,
2238
2239 PTHREAD_SCOPE_PROCESS
2240
2241};
2242
2243
2244
2245enum
2246{
2247 PTHREAD_PROCESS_PRIVATE,
2248
2249 PTHREAD_PROCESS_SHARED
2250
2251};
2252# 182 "/usr/include/pthread.h" 3 4
2253struct _pthread_cleanup_buffer
2254{
2255 void (*__routine) (void *);
2256 void *__arg;
2257 int __canceltype;
2258 struct _pthread_cleanup_buffer *__prev;
2259};
2260
2261
2262enum
2263{
2264 PTHREAD_CANCEL_ENABLE,
2265
2266 PTHREAD_CANCEL_DISABLE
2267
2268};
2269enum
2270{
2271 PTHREAD_CANCEL_DEFERRED,
2272
2273 PTHREAD_CANCEL_ASYNCHRONOUS
2274
2275};
2276# 220 "/usr/include/pthread.h" 3 4
2277
2278
2279
2280
2281
2282extern int pthread_create (pthread_t *__restrict __newthread,
2283 __const pthread_attr_t *__restrict __attr,
2284 void *(*__start_routine) (void *),
2285 void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
2286
2287
2288
2289
2290
2291extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
2292
2293
2294
2295
2296
2297
2298
2299extern int pthread_join (pthread_t __th, void **__thread_return);
2300# 263 "/usr/include/pthread.h" 3 4
2301extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__));
2302
2303
2304
2305extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
2306
2307
2308extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__));
2309
2310
2311
2312
2313
2314
2315
2316extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2317
2318
2319extern int pthread_attr_destroy (pthread_attr_t *__attr)
2320 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2321
2322
2323extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
2324 int *__detachstate)
2325 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2326
2327
2328extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
2329 int __detachstate)
2330 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2331
2332
2333
2334extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
2335 size_t *__guardsize)
2336 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2337
2338
2339extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
2340 size_t __guardsize)
2341 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2342
2343
2344
2345extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
2346 __attr,
2347 struct sched_param *__restrict __param)
2348 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2349
2350
2351extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
2352 __const struct sched_param *__restrict
2353 __param) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2354
2355
2356extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
2357 __attr, int *__restrict __policy)
2358 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2359
2360
2361extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
2362 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2363
2364
2365extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
2366 __attr, int *__restrict __inherit)
2367 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2368
2369
2370extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
2371 int __inherit)
2372 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2373
2374
2375
2376extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
2377 int *__restrict __scope)
2378 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2379
2380
2381extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
2382 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2383
2384
2385extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
2386 __attr, void **__restrict __stackaddr)
2387 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
2388
2389
2390
2391
2392
2393extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
2394 void *__stackaddr)
2395 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
2396
2397
2398extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
2399 __attr, size_t *__restrict __stacksize)
2400 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2401
2402
2403
2404
2405extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
2406 size_t __stacksize)
2407 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2408
2409
2410
2411extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
2412 void **__restrict __stackaddr,
2413 size_t *__restrict __stacksize)
2414 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3)));
2415
2416
2417
2418
2419extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
2420 size_t __stacksize) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2421# 413 "/usr/include/pthread.h" 3 4
2422extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
2423 __const struct sched_param *__param)
2424 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3)));
2425
2426
2427extern int pthread_getschedparam (pthread_t __target_thread,
2428 int *__restrict __policy,
2429 struct sched_param *__restrict __param)
2430 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3)));
2431
2432
2433extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
2434 __attribute__ ((__nothrow__));
2435# 478 "/usr/include/pthread.h" 3 4
2436extern int pthread_once (pthread_once_t *__once_control,
2437 void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
2438# 490 "/usr/include/pthread.h" 3 4
2439extern int pthread_setcancelstate (int __state, int *__oldstate);
2440
2441
2442
2443extern int pthread_setcanceltype (int __type, int *__oldtype);
2444
2445
2446extern int pthread_cancel (pthread_t __th);
2447
2448
2449
2450
2451extern void pthread_testcancel (void);
2452
2453
2454
2455
2456typedef struct
2457{
2458 struct
2459 {
2460 __jmp_buf __cancel_jmp_buf;
2461 int __mask_was_saved;
2462 } __cancel_jmp_buf[1];
2463 void *__pad[4];
2464} __pthread_unwind_buf_t __attribute__ ((__aligned__));
2465# 524 "/usr/include/pthread.h" 3 4
2466struct __pthread_cleanup_frame
2467{
2468 void (*__cancel_routine) (void *);
2469 void *__cancel_arg;
2470 int __do_it;
2471 int __cancel_type;
2472};
2473# 664 "/usr/include/pthread.h" 3 4
2474extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
2475 __attribute__ ((__regparm__ (1)));
2476# 676 "/usr/include/pthread.h" 3 4
2477extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
2478 __attribute__ ((__regparm__ (1)));
2479# 717 "/usr/include/pthread.h" 3 4
2480extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
2481 __attribute__ ((__regparm__ (1))) __attribute__ ((__noreturn__))
2482
2483 __attribute__ ((__weak__))
2484
2485 ;
2486
2487
2488
2489struct __jmp_buf_tag;
2490extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__));
2491
2492
2493
2494
2495
2496extern int pthread_mutex_init (pthread_mutex_t *__mutex,
2497 __const pthread_mutexattr_t *__mutexattr)
2498 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2499
2500
2501extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
2502 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2503
2504
2505extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
2506 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2507
2508
2509extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
2510 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2511
2512
2513
2514extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
2515 __const struct timespec *__restrict
2516 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2517
2518
2519
2520extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
2521 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2522
2523
2524
2525extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
2526 __restrict __mutex,
2527 int *__restrict __prioceiling)
2528 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2529
2530
2531
2532extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
2533 int __prioceiling,
2534 int *__restrict __old_ceiling)
2535 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
2536
2537
2538
2539
2540extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
2541 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2542# 790 "/usr/include/pthread.h" 3 4
2543extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
2544 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2545
2546
2547extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
2548 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2549
2550
2551extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
2552 __restrict __attr,
2553 int *__restrict __pshared)
2554 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2555
2556
2557extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
2558 int __pshared)
2559 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2560
2561
2562
2563extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
2564 __attr, int *__restrict __kind)
2565 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2566
2567
2568
2569
2570extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
2571 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2572
2573
2574
2575extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
2576 __restrict __attr,
2577 int *__restrict __protocol)
2578 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2579
2580
2581
2582extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
2583 int __protocol)
2584 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2585
2586
2587extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
2588 __restrict __attr,
2589 int *__restrict __prioceiling)
2590 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2591
2592
2593extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
2594 int __prioceiling)
2595 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2596
2597
2598
2599extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
2600 int *__robustness)
2601 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2602
2603
2604
2605
2606
2607
2608
2609extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
2610 int __robustness)
2611 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2612# 872 "/usr/include/pthread.h" 3 4
2613extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
2614 __const pthread_rwlockattr_t *__restrict
2615 __attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2616
2617
2618extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
2619 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2620
2621
2622extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
2623 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2624
2625
2626extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
2627 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2628
2629
2630
2631extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
2632 __const struct timespec *__restrict
2633 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2634
2635
2636
2637extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
2638 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2639
2640
2641extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
2642 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2643
2644
2645
2646extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
2647 __const struct timespec *__restrict
2648 __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2649
2650
2651
2652extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
2653 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2654
2655
2656
2657
2658
2659extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
2660 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2661
2662
2663extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
2664 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2665
2666
2667extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
2668 __restrict __attr,
2669 int *__restrict __pshared)
2670 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2671
2672
2673extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
2674 int __pshared)
2675 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2676
2677
2678extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
2679 __restrict __attr,
2680 int *__restrict __pref)
2681 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2682
2683
2684extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
2685 int __pref) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2686
2687
2688
2689
2690
2691
2692
2693extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
2694 __const pthread_condattr_t *__restrict
2695 __cond_attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2696
2697
2698extern int pthread_cond_destroy (pthread_cond_t *__cond)
2699 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2700
2701
2702extern int pthread_cond_signal (pthread_cond_t *__cond)
2703 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2704
2705
2706extern int pthread_cond_broadcast (pthread_cond_t *__cond)
2707 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2708
2709
2710
2711
2712
2713
2714extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
2715 pthread_mutex_t *__restrict __mutex)
2716 __attribute__ ((__nonnull__ (1, 2)));
2717# 984 "/usr/include/pthread.h" 3 4
2718extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
2719 pthread_mutex_t *__restrict __mutex,
2720 __const struct timespec *__restrict
2721 __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
2722
2723
2724
2725
2726extern int pthread_condattr_init (pthread_condattr_t *__attr)
2727 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2728
2729
2730extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
2731 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2732
2733
2734extern int pthread_condattr_getpshared (__const pthread_condattr_t *
2735 __restrict __attr,
2736 int *__restrict __pshared)
2737 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2738
2739
2740extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
2741 int __pshared) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2742
2743
2744
2745extern int pthread_condattr_getclock (__const pthread_condattr_t *
2746 __restrict __attr,
2747 __clockid_t *__restrict __clock_id)
2748 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2749
2750
2751extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
2752 __clockid_t __clock_id)
2753 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2754# 1028 "/usr/include/pthread.h" 3 4
2755extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
2756 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2757
2758
2759extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
2760 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2761
2762
2763extern int pthread_spin_lock (pthread_spinlock_t *__lock)
2764 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2765
2766
2767extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
2768 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2769
2770
2771extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
2772 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2773
2774
2775
2776
2777
2778
2779extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
2780 __const pthread_barrierattr_t *__restrict
2781 __attr, unsigned int __count)
2782 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2783
2784
2785extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
2786 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2787
2788
2789extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
2790 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2791
2792
2793
2794extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
2795 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2796
2797
2798extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
2799 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2800
2801
2802extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
2803 __restrict __attr,
2804 int *__restrict __pshared)
2805 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
2806
2807
2808extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
2809 int __pshared)
2810 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2811# 1095 "/usr/include/pthread.h" 3 4
2812extern int pthread_key_create (pthread_key_t *__key,
2813 void (*__destr_function) (void *))
2814 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
2815
2816
2817extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__));
2818
2819
2820extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__));
2821
2822
2823extern int pthread_setspecific (pthread_key_t __key,
2824 __const void *__pointer) __attribute__ ((__nothrow__)) ;
2825
2826
2827
2828
2829extern int pthread_getcpuclockid (pthread_t __thread_id,
2830 __clockid_t *__clock_id)
2831 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
2832# 1129 "/usr/include/pthread.h" 3 4
2833extern int pthread_atfork (void (*__prepare) (void),
2834 void (*__parent) (void),
2835 void (*__child) (void)) __attribute__ ((__nothrow__));
2836# 1143 "/usr/include/pthread.h" 3 4
2837
2838# 4 "reorder.c" 2
2839
2840
2841
2842static int iSet = 2;
2843static int iCheck = 2;
2844
2845static int a = 0;
2846static int b = 0;
2847
2848void *setThread(void *param);
2849void *checkThread(void *param);
2850void set();
2851int check();
2852
2853int main(int argc, char *argv[]) {
2854 int i, err;
2855
2856 if (argc != 1) {
2857 if (argc != 3) {
2858 fprintf(stderr, "./reorder <param1> <param2>\n");
2859 exit(-1);
2860 } else {
2861 sscanf(argv[1], "%d", &iSet);
2862 sscanf(argv[2], "%d", &iCheck);
2863 }
2864 }
2865
2866
2867
2868 pthread_t setPool[iSet];
2869 pthread_t checkPool[iCheck];
2870
2871 for (i = 0; i < iSet; i++) {
2872 if (0 != (err = pthread_create(&setPool[i], ((void *)0), &setThread, ((void *)0)))) {
2873 fprintf(stderr, "Error [%d] found creating set thread.\n", err);
2874 exit(-1);
2875 }
2876 }
2877
2878 for (i = 0; i < iCheck; i++) {
2879 if (0 != (err = pthread_create(&checkPool[i], ((void *)0), &checkThread,
2880 ((void *)0)))) {
2881 fprintf(stderr, "Error [%d] found creating check thread.\n", err);
2882 exit(-1);
2883 }
2884 }
2885
2886 for (i = 0; i < iSet; i++) {
2887 if (0 != (err = pthread_join(setPool[i], ((void *)0)))) {
2888 fprintf(stderr, "pthread join error: %d\n", err);
2889 exit(-1);
2890 }
2891 }
2892
2893 for (i = 0; i < iCheck; i++) {
2894 if (0 != (err = pthread_join(checkPool[i], ((void *)0)))) {
2895 fprintf(stderr, "pthread join error: %d\n", err);
2896 exit(-1);
2897 }
2898 }
2899
2900 return 0;
2901}
2902
2903void *setThread(void *param) {
2904 a = 1;
2905 b = -1;
2906
2907 return ((void *)0);
2908}
2909
2910void *checkThread(void *param) {
2911 if (! ((a == 0 && b == 0) || (a == 1 && b == -1))) {
2912 fprintf(stderr, "Bug found!\n");
2913 ERROR: __VERIFIER_error();
2914 }
2915
2916 return ((void *)0);
2917}
Note: See TracBrowser for help on using the repository browser.