| 1 | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
|
|---|
| 2 |
|
|---|
| 3 | typedef unsigned char __u_char;
|
|---|
| 4 | typedef unsigned short int __u_short;
|
|---|
| 5 | typedef unsigned int __u_int;
|
|---|
| 6 | typedef unsigned long int __u_long;
|
|---|
| 7 | typedef signed char __int8_t;
|
|---|
| 8 | typedef unsigned char __uint8_t;
|
|---|
| 9 | typedef signed short int __int16_t;
|
|---|
| 10 | typedef unsigned short int __uint16_t;
|
|---|
| 11 | typedef signed int __int32_t;
|
|---|
| 12 | typedef unsigned int __uint32_t;
|
|---|
| 13 | typedef signed long int __int64_t;
|
|---|
| 14 | typedef unsigned long int __uint64_t;
|
|---|
| 15 | typedef long int __quad_t;
|
|---|
| 16 | typedef unsigned long int __u_quad_t;
|
|---|
| 17 | typedef unsigned long int __dev_t;
|
|---|
| 18 | typedef unsigned int __uid_t;
|
|---|
| 19 | typedef unsigned int __gid_t;
|
|---|
| 20 | typedef unsigned long int __ino_t;
|
|---|
| 21 | typedef unsigned long int __ino64_t;
|
|---|
| 22 | typedef unsigned int __mode_t;
|
|---|
| 23 | typedef unsigned long int __nlink_t;
|
|---|
| 24 | typedef long int __off_t;
|
|---|
| 25 | typedef long int __off64_t;
|
|---|
| 26 | typedef int __pid_t;
|
|---|
| 27 | typedef struct { int __val[2]; } __fsid_t;
|
|---|
| 28 | typedef long int __clock_t;
|
|---|
| 29 | typedef unsigned long int __rlim_t;
|
|---|
| 30 | typedef unsigned long int __rlim64_t;
|
|---|
| 31 | typedef unsigned int __id_t;
|
|---|
| 32 | typedef long int __time_t;
|
|---|
| 33 | typedef unsigned int __useconds_t;
|
|---|
| 34 | typedef long int __suseconds_t;
|
|---|
| 35 | typedef int __daddr_t;
|
|---|
| 36 | typedef long int __swblk_t;
|
|---|
| 37 | typedef int __key_t;
|
|---|
| 38 | typedef int __clockid_t;
|
|---|
| 39 | typedef void * __timer_t;
|
|---|
| 40 | typedef long int __blksize_t;
|
|---|
| 41 | typedef long int __blkcnt_t;
|
|---|
| 42 | typedef long int __blkcnt64_t;
|
|---|
| 43 | typedef unsigned long int __fsblkcnt_t;
|
|---|
| 44 | typedef unsigned long int __fsblkcnt64_t;
|
|---|
| 45 | typedef unsigned long int __fsfilcnt_t;
|
|---|
| 46 | typedef unsigned long int __fsfilcnt64_t;
|
|---|
| 47 | typedef long int __ssize_t;
|
|---|
| 48 | typedef __off64_t __loff_t;
|
|---|
| 49 | typedef __quad_t *__qaddr_t;
|
|---|
| 50 | typedef char *__caddr_t;
|
|---|
| 51 | typedef long int __intptr_t;
|
|---|
| 52 | typedef unsigned int __socklen_t;
|
|---|
| 53 | typedef long unsigned int size_t;
|
|---|
| 54 |
|
|---|
| 55 | typedef __time_t time_t;
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | struct timespec
|
|---|
| 59 | {
|
|---|
| 60 | __time_t tv_sec;
|
|---|
| 61 | long int tv_nsec;
|
|---|
| 62 | };
|
|---|
| 63 | typedef __pid_t pid_t;
|
|---|
| 64 | struct sched_param
|
|---|
| 65 | {
|
|---|
| 66 | int __sched_priority;
|
|---|
| 67 | };
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | struct __sched_param
|
|---|
| 71 | {
|
|---|
| 72 | int __sched_priority;
|
|---|
| 73 | };
|
|---|
| 74 | typedef unsigned long int __cpu_mask;
|
|---|
| 75 | typedef struct
|
|---|
| 76 | {
|
|---|
| 77 | __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))];
|
|---|
| 78 | } cpu_set_t;
|
|---|
| 79 |
|
|---|
| 80 | extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
|---|
| 81 | __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 82 | extern cpu_set_t *__sched_cpualloc (size_t __count) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 83 | extern void __sched_cpufree (cpu_set_t *__set) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 | extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param)
|
|---|
| 87 | __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 88 | extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 89 | extern int sched_setscheduler (__pid_t __pid, int __policy,
|
|---|
| 90 | __const struct sched_param *__param) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 91 | extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 92 | extern int sched_yield (void) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 93 | extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 94 | extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 95 | extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | typedef __clock_t clock_t;
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 | typedef __clockid_t clockid_t;
|
|---|
| 103 |
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | typedef __timer_t timer_t;
|
|---|
| 107 |
|
|---|
| 108 | struct tm
|
|---|
| 109 | {
|
|---|
| 110 | int tm_sec;
|
|---|
| 111 | int tm_min;
|
|---|
| 112 | int tm_hour;
|
|---|
| 113 | int tm_mday;
|
|---|
| 114 | int tm_mon;
|
|---|
| 115 | int tm_year;
|
|---|
| 116 | int tm_wday;
|
|---|
| 117 | int tm_yday;
|
|---|
| 118 | int tm_isdst;
|
|---|
| 119 | long int tm_gmtoff;
|
|---|
| 120 | __const char *tm_zone;
|
|---|
| 121 | };
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 | struct itimerspec
|
|---|
| 125 | {
|
|---|
| 126 | struct timespec it_interval;
|
|---|
| 127 | struct timespec it_value;
|
|---|
| 128 | };
|
|---|
| 129 | struct sigevent;
|
|---|
| 130 |
|
|---|
| 131 | extern clock_t clock (void) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 132 | extern time_t time (time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 133 | extern double difftime (time_t __time1, time_t __time0)
|
|---|
| 134 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
|
|---|
| 135 | extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 136 | extern size_t strftime (char *__restrict __s, size_t __maxsize,
|
|---|
| 137 | __const char *__restrict __format,
|
|---|
| 138 | __const struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 139 |
|
|---|
| 140 | typedef struct __locale_struct
|
|---|
| 141 | {
|
|---|
| 142 | struct __locale_data *__locales[13];
|
|---|
| 143 | const unsigned short int *__ctype_b;
|
|---|
| 144 | const int *__ctype_tolower;
|
|---|
| 145 | const int *__ctype_toupper;
|
|---|
| 146 | const char *__names[13];
|
|---|
| 147 | } *__locale_t;
|
|---|
| 148 | typedef __locale_t locale_t;
|
|---|
| 149 | extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
|
|---|
| 150 | __const char *__restrict __format,
|
|---|
| 151 | __const struct tm *__restrict __tp,
|
|---|
| 152 | __locale_t __loc) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 153 |
|
|---|
| 154 | extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 155 | extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 156 |
|
|---|
| 157 | extern struct tm *gmtime_r (__const time_t *__restrict __timer,
|
|---|
| 158 | struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 159 | extern struct tm *localtime_r (__const time_t *__restrict __timer,
|
|---|
| 160 | struct tm *__restrict __tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 161 |
|
|---|
| 162 | extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 163 | extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 164 |
|
|---|
| 165 | extern char *asctime_r (__const struct tm *__restrict __tp,
|
|---|
| 166 | char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 167 | extern char *ctime_r (__const time_t *__restrict __timer,
|
|---|
| 168 | char *__restrict __buf) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 169 | extern char *__tzname[2];
|
|---|
| 170 | extern int __daylight;
|
|---|
| 171 | extern long int __timezone;
|
|---|
| 172 | extern char *tzname[2];
|
|---|
| 173 | extern void tzset (void) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 174 | extern int daylight;
|
|---|
| 175 | extern long int timezone;
|
|---|
| 176 | extern int stime (__const time_t *__when) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 177 | extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 178 | extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 179 | extern int dysize (int __year) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
|
|---|
| 180 | extern int nanosleep (__const struct timespec *__requested_time,
|
|---|
| 181 | struct timespec *__remaining);
|
|---|
| 182 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 183 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 184 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
|
|---|
| 185 | __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 186 | extern int clock_nanosleep (clockid_t __clock_id, int __flags,
|
|---|
| 187 | __const struct timespec *__req,
|
|---|
| 188 | struct timespec *__rem);
|
|---|
| 189 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 190 | extern int timer_create (clockid_t __clock_id,
|
|---|
| 191 | struct sigevent *__restrict __evp,
|
|---|
| 192 | timer_t *__restrict __timerid) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 193 | extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 194 | extern int timer_settime (timer_t __timerid, int __flags,
|
|---|
| 195 | __const struct itimerspec *__restrict __value,
|
|---|
| 196 | struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 197 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
|
|---|
| 198 | __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 199 | extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 200 |
|
|---|
| 201 | typedef unsigned long int pthread_t;
|
|---|
| 202 | typedef union
|
|---|
| 203 | {
|
|---|
| 204 | char __size[56];
|
|---|
| 205 | long int __align;
|
|---|
| 206 | } pthread_attr_t;
|
|---|
| 207 | typedef struct __pthread_internal_list
|
|---|
| 208 | {
|
|---|
| 209 | struct __pthread_internal_list *__prev;
|
|---|
| 210 | struct __pthread_internal_list *__next;
|
|---|
| 211 | } __pthread_list_t;
|
|---|
| 212 | typedef union
|
|---|
| 213 | {
|
|---|
| 214 | struct __pthread_mutex_s
|
|---|
| 215 | {
|
|---|
| 216 | int __lock;
|
|---|
| 217 | unsigned int __count;
|
|---|
| 218 | int __owner;
|
|---|
| 219 | unsigned int __nusers;
|
|---|
| 220 | int __kind;
|
|---|
| 221 | int __spins;
|
|---|
| 222 | __pthread_list_t __list;
|
|---|
| 223 | } __data;
|
|---|
| 224 | char __size[40];
|
|---|
| 225 | long int __align;
|
|---|
| 226 | } pthread_mutex_t;
|
|---|
| 227 | typedef union
|
|---|
| 228 | {
|
|---|
| 229 | char __size[4];
|
|---|
| 230 | int __align;
|
|---|
| 231 | } pthread_mutexattr_t;
|
|---|
| 232 | typedef union
|
|---|
| 233 | {
|
|---|
| 234 | struct
|
|---|
| 235 | {
|
|---|
| 236 | int __lock;
|
|---|
| 237 | unsigned int __futex;
|
|---|
| 238 | __extension__ unsigned long long int __total_seq;
|
|---|
| 239 | __extension__ unsigned long long int __wakeup_seq;
|
|---|
| 240 | __extension__ unsigned long long int __woken_seq;
|
|---|
| 241 | void *__mutex;
|
|---|
| 242 | unsigned int __nwaiters;
|
|---|
| 243 | unsigned int __broadcast_seq;
|
|---|
| 244 | } __data;
|
|---|
| 245 | char __size[48];
|
|---|
| 246 | __extension__ long long int __align;
|
|---|
| 247 | } pthread_cond_t;
|
|---|
| 248 | typedef union
|
|---|
| 249 | {
|
|---|
| 250 | char __size[4];
|
|---|
| 251 | int __align;
|
|---|
| 252 | } pthread_condattr_t;
|
|---|
| 253 | typedef unsigned int pthread_key_t;
|
|---|
| 254 | typedef int pthread_once_t;
|
|---|
| 255 | typedef union
|
|---|
| 256 | {
|
|---|
| 257 | struct
|
|---|
| 258 | {
|
|---|
| 259 | int __lock;
|
|---|
| 260 | unsigned int __nr_readers;
|
|---|
| 261 | unsigned int __readers_wakeup;
|
|---|
| 262 | unsigned int __writer_wakeup;
|
|---|
| 263 | unsigned int __nr_readers_queued;
|
|---|
| 264 | unsigned int __nr_writers_queued;
|
|---|
| 265 | int __writer;
|
|---|
| 266 | int __shared;
|
|---|
| 267 | unsigned long int __pad1;
|
|---|
| 268 | unsigned long int __pad2;
|
|---|
| 269 | unsigned int __flags;
|
|---|
| 270 | } __data;
|
|---|
| 271 | char __size[56];
|
|---|
| 272 | long int __align;
|
|---|
| 273 | } pthread_rwlock_t;
|
|---|
| 274 | typedef union
|
|---|
| 275 | {
|
|---|
| 276 | char __size[8];
|
|---|
| 277 | long int __align;
|
|---|
| 278 | } pthread_rwlockattr_t;
|
|---|
| 279 | typedef volatile int pthread_spinlock_t;
|
|---|
| 280 | typedef union
|
|---|
| 281 | {
|
|---|
| 282 | char __size[32];
|
|---|
| 283 | long int __align;
|
|---|
| 284 | } pthread_barrier_t;
|
|---|
| 285 | typedef union
|
|---|
| 286 | {
|
|---|
| 287 | char __size[4];
|
|---|
| 288 | int __align;
|
|---|
| 289 | } pthread_barrierattr_t;
|
|---|
| 290 | typedef long int __jmp_buf[8];
|
|---|
| 291 | enum
|
|---|
| 292 | {
|
|---|
| 293 | PTHREAD_CREATE_JOINABLE,
|
|---|
| 294 | PTHREAD_CREATE_DETACHED
|
|---|
| 295 | };
|
|---|
| 296 | enum
|
|---|
| 297 | {
|
|---|
| 298 | PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 299 | PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 300 | PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 301 | PTHREAD_MUTEX_ADAPTIVE_NP
|
|---|
| 302 | ,
|
|---|
| 303 | PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
|
|---|
| 304 | PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
|
|---|
| 305 | PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
|
|---|
| 306 | PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
|
|---|
| 307 | };
|
|---|
| 308 | enum
|
|---|
| 309 | {
|
|---|
| 310 | PTHREAD_MUTEX_STALLED,
|
|---|
| 311 | PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED,
|
|---|
| 312 | PTHREAD_MUTEX_ROBUST,
|
|---|
| 313 | PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST
|
|---|
| 314 | };
|
|---|
| 315 | enum
|
|---|
| 316 | {
|
|---|
| 317 | PTHREAD_RWLOCK_PREFER_READER_NP,
|
|---|
| 318 | PTHREAD_RWLOCK_PREFER_WRITER_NP,
|
|---|
| 319 | PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,
|
|---|
| 320 | PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP
|
|---|
| 321 | };
|
|---|
| 322 | enum
|
|---|
| 323 | {
|
|---|
| 324 | PTHREAD_INHERIT_SCHED,
|
|---|
| 325 | PTHREAD_EXPLICIT_SCHED
|
|---|
| 326 | };
|
|---|
| 327 | enum
|
|---|
| 328 | {
|
|---|
| 329 | PTHREAD_SCOPE_SYSTEM,
|
|---|
| 330 | PTHREAD_SCOPE_PROCESS
|
|---|
| 331 | };
|
|---|
| 332 | enum
|
|---|
| 333 | {
|
|---|
| 334 | PTHREAD_PROCESS_PRIVATE,
|
|---|
| 335 | PTHREAD_PROCESS_SHARED
|
|---|
| 336 | };
|
|---|
| 337 | struct _pthread_cleanup_buffer
|
|---|
| 338 | {
|
|---|
| 339 | void (*__routine) (void *);
|
|---|
| 340 | void *__arg;
|
|---|
| 341 | int __canceltype;
|
|---|
| 342 | struct _pthread_cleanup_buffer *__prev;
|
|---|
| 343 | };
|
|---|
| 344 | enum
|
|---|
| 345 | {
|
|---|
| 346 | PTHREAD_CANCEL_ENABLE,
|
|---|
| 347 | PTHREAD_CANCEL_DISABLE
|
|---|
| 348 | };
|
|---|
| 349 | enum
|
|---|
| 350 | {
|
|---|
| 351 | PTHREAD_CANCEL_DEFERRED,
|
|---|
| 352 | PTHREAD_CANCEL_ASYNCHRONOUS
|
|---|
| 353 | };
|
|---|
| 354 |
|
|---|
| 355 | extern int pthread_create (pthread_t *__restrict __newthread,
|
|---|
| 356 | __const pthread_attr_t *__restrict __attr,
|
|---|
| 357 | void *(*__start_routine) (void *),
|
|---|
| 358 | void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 359 | extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__));
|
|---|
| 360 | extern int pthread_join (pthread_t __th, void **__thread_return);
|
|---|
| 361 | extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 362 | extern pthread_t pthread_self (void) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__const__));
|
|---|
| 363 | extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 364 | extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 365 | extern int pthread_attr_destroy (pthread_attr_t *__attr)
|
|---|
| 366 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 367 | extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr,
|
|---|
| 368 | int *__detachstate)
|
|---|
| 369 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 370 | extern int pthread_attr_setdetachstate (pthread_attr_t *__attr,
|
|---|
| 371 | int __detachstate)
|
|---|
| 372 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 373 | extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr,
|
|---|
| 374 | size_t *__guardsize)
|
|---|
| 375 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 376 | extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
|
|---|
| 377 | size_t __guardsize)
|
|---|
| 378 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 379 | extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict
|
|---|
| 380 | __attr,
|
|---|
| 381 | struct sched_param *__restrict __param)
|
|---|
| 382 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 383 | extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr,
|
|---|
| 384 | __const struct sched_param *__restrict
|
|---|
| 385 | __param) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 386 | extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict
|
|---|
| 387 | __attr, int *__restrict __policy)
|
|---|
| 388 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 389 | extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy)
|
|---|
| 390 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 391 | extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict
|
|---|
| 392 | __attr, int *__restrict __inherit)
|
|---|
| 393 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 394 | extern int pthread_attr_setinheritsched (pthread_attr_t *__attr,
|
|---|
| 395 | int __inherit)
|
|---|
| 396 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 397 | extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
|
|---|
| 398 | int *__restrict __scope)
|
|---|
| 399 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 400 | extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope)
|
|---|
| 401 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 402 | extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
|
|---|
| 403 | __attr, void **__restrict __stackaddr)
|
|---|
| 404 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__));
|
|---|
| 405 | extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
|
|---|
| 406 | void *__stackaddr)
|
|---|
| 407 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__));
|
|---|
| 408 | extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict
|
|---|
| 409 | __attr, size_t *__restrict __stacksize)
|
|---|
| 410 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 411 | extern int pthread_attr_setstacksize (pthread_attr_t *__attr,
|
|---|
| 412 | size_t __stacksize)
|
|---|
| 413 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 414 | extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr,
|
|---|
| 415 | void **__restrict __stackaddr,
|
|---|
| 416 | size_t *__restrict __stacksize)
|
|---|
| 417 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 418 | extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
|
|---|
| 419 | size_t __stacksize) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 420 | extern int pthread_setschedparam (pthread_t __target_thread, int __policy,
|
|---|
| 421 | __const struct sched_param *__param)
|
|---|
| 422 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (3)));
|
|---|
| 423 | extern int pthread_getschedparam (pthread_t __target_thread,
|
|---|
| 424 | int *__restrict __policy,
|
|---|
| 425 | struct sched_param *__restrict __param)
|
|---|
| 426 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2, 3)));
|
|---|
| 427 | extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
|
|---|
| 428 | __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 429 | extern int pthread_once (pthread_once_t *__once_control,
|
|---|
| 430 | void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 431 | extern int pthread_setcancelstate (int __state, int *__oldstate);
|
|---|
| 432 | extern int pthread_setcanceltype (int __type, int *__oldtype);
|
|---|
| 433 | extern int pthread_cancel (pthread_t __th);
|
|---|
| 434 | extern void pthread_testcancel (void);
|
|---|
| 435 | typedef struct
|
|---|
| 436 | {
|
|---|
| 437 | struct
|
|---|
| 438 | {
|
|---|
| 439 | __jmp_buf __cancel_jmp_buf;
|
|---|
| 440 | int __mask_was_saved;
|
|---|
| 441 | } __cancel_jmp_buf[1];
|
|---|
| 442 | void *__pad[4];
|
|---|
| 443 | } __pthread_unwind_buf_t __attribute__ ((__aligned__));
|
|---|
| 444 | struct __pthread_cleanup_frame
|
|---|
| 445 | {
|
|---|
| 446 | void (*__cancel_routine) (void *);
|
|---|
| 447 | void *__cancel_arg;
|
|---|
| 448 | int __do_it;
|
|---|
| 449 | int __cancel_type;
|
|---|
| 450 | };
|
|---|
| 451 | extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 452 | ;
|
|---|
| 453 | extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
|
|---|
| 454 | ;
|
|---|
| 455 | extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf)
|
|---|
| 456 | __attribute__ ((__noreturn__))
|
|---|
| 457 | __attribute__ ((__weak__))
|
|---|
| 458 | ;
|
|---|
| 459 | struct __jmp_buf_tag;
|
|---|
| 460 | extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 461 | extern int pthread_mutex_init (pthread_mutex_t *__mutex,
|
|---|
| 462 | __const pthread_mutexattr_t *__mutexattr)
|
|---|
| 463 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 464 | extern int pthread_mutex_destroy (pthread_mutex_t *__mutex)
|
|---|
| 465 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 466 | extern int pthread_mutex_trylock (pthread_mutex_t *__mutex)
|
|---|
| 467 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 468 | extern int pthread_mutex_lock (pthread_mutex_t *__mutex)
|
|---|
| 469 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 470 | extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
|
|---|
| 471 | __const struct timespec *__restrict
|
|---|
| 472 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 473 | extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
|
|---|
| 474 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 475 | extern int pthread_mutex_getprioceiling (__const pthread_mutex_t *
|
|---|
| 476 | __restrict __mutex,
|
|---|
| 477 | int *__restrict __prioceiling)
|
|---|
| 478 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 479 | extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex,
|
|---|
| 480 | int __prioceiling,
|
|---|
| 481 | int *__restrict __old_ceiling)
|
|---|
| 482 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 3)));
|
|---|
| 483 | extern int pthread_mutex_consistent (pthread_mutex_t *__mutex)
|
|---|
| 484 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 485 | extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr)
|
|---|
| 486 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 487 | extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr)
|
|---|
| 488 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 489 | extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t *
|
|---|
| 490 | __restrict __attr,
|
|---|
| 491 | int *__restrict __pshared)
|
|---|
| 492 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 493 | extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
|
|---|
| 494 | int __pshared)
|
|---|
| 495 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 496 | extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict
|
|---|
| 497 | __attr, int *__restrict __kind)
|
|---|
| 498 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 499 | extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind)
|
|---|
| 500 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 501 | extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t *
|
|---|
| 502 | __restrict __attr,
|
|---|
| 503 | int *__restrict __protocol)
|
|---|
| 504 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 505 | extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr,
|
|---|
| 506 | int __protocol)
|
|---|
| 507 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 508 | extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t *
|
|---|
| 509 | __restrict __attr,
|
|---|
| 510 | int *__restrict __prioceiling)
|
|---|
| 511 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 512 | extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr,
|
|---|
| 513 | int __prioceiling)
|
|---|
| 514 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 515 | extern int pthread_mutexattr_getrobust (__const pthread_mutexattr_t *__attr,
|
|---|
| 516 | int *__robustness)
|
|---|
| 517 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 518 | extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
|
|---|
| 519 | int __robustness)
|
|---|
| 520 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 521 | extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 522 | __const pthread_rwlockattr_t *__restrict
|
|---|
| 523 | __attr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 524 | extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock)
|
|---|
| 525 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 526 | extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 527 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 528 | extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock)
|
|---|
| 529 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 530 | extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 531 | __const struct timespec *__restrict
|
|---|
| 532 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 533 | extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 534 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 535 | extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock)
|
|---|
| 536 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 537 | extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
|
|---|
| 538 | __const struct timespec *__restrict
|
|---|
| 539 | __abstime) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 540 | extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock)
|
|---|
| 541 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 542 | extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr)
|
|---|
| 543 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 544 | extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr)
|
|---|
| 545 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 546 | extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t *
|
|---|
| 547 | __restrict __attr,
|
|---|
| 548 | int *__restrict __pshared)
|
|---|
| 549 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 550 | extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr,
|
|---|
| 551 | int __pshared)
|
|---|
| 552 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 553 | extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t *
|
|---|
| 554 | __restrict __attr,
|
|---|
| 555 | int *__restrict __pref)
|
|---|
| 556 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 557 | extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr,
|
|---|
| 558 | int __pref) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 559 | extern int pthread_cond_init (pthread_cond_t *__restrict __cond,
|
|---|
| 560 | __const pthread_condattr_t *__restrict
|
|---|
| 561 | __cond_attr) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 562 | extern int pthread_cond_destroy (pthread_cond_t *__cond)
|
|---|
| 563 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 564 | extern int pthread_cond_signal (pthread_cond_t *__cond)
|
|---|
| 565 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 566 | extern int pthread_cond_broadcast (pthread_cond_t *__cond)
|
|---|
| 567 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 568 | extern int pthread_cond_wait (pthread_cond_t *__restrict __cond,
|
|---|
| 569 | pthread_mutex_t *__restrict __mutex)
|
|---|
| 570 | __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 571 | extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
|
|---|
| 572 | pthread_mutex_t *__restrict __mutex,
|
|---|
| 573 | __const struct timespec *__restrict
|
|---|
| 574 | __abstime) __attribute__ ((__nonnull__ (1, 2, 3)));
|
|---|
| 575 | extern int pthread_condattr_init (pthread_condattr_t *__attr)
|
|---|
| 576 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 577 | extern int pthread_condattr_destroy (pthread_condattr_t *__attr)
|
|---|
| 578 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 579 | extern int pthread_condattr_getpshared (__const pthread_condattr_t *
|
|---|
| 580 | __restrict __attr,
|
|---|
| 581 | int *__restrict __pshared)
|
|---|
| 582 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 583 | extern int pthread_condattr_setpshared (pthread_condattr_t *__attr,
|
|---|
| 584 | int __pshared) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 585 | extern int pthread_condattr_getclock (__const pthread_condattr_t *
|
|---|
| 586 | __restrict __attr,
|
|---|
| 587 | __clockid_t *__restrict __clock_id)
|
|---|
| 588 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 589 | extern int pthread_condattr_setclock (pthread_condattr_t *__attr,
|
|---|
| 590 | __clockid_t __clock_id)
|
|---|
| 591 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 592 | extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared)
|
|---|
| 593 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 594 | extern int pthread_spin_destroy (pthread_spinlock_t *__lock)
|
|---|
| 595 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 596 | extern int pthread_spin_lock (pthread_spinlock_t *__lock)
|
|---|
| 597 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 598 | extern int pthread_spin_trylock (pthread_spinlock_t *__lock)
|
|---|
| 599 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 600 | extern int pthread_spin_unlock (pthread_spinlock_t *__lock)
|
|---|
| 601 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 602 | extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
|
|---|
| 603 | __const pthread_barrierattr_t *__restrict
|
|---|
| 604 | __attr, unsigned int __count)
|
|---|
| 605 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 606 | extern int pthread_barrier_destroy (pthread_barrier_t *__barrier)
|
|---|
| 607 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 608 | extern int pthread_barrier_wait (pthread_barrier_t *__barrier)
|
|---|
| 609 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 610 | extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr)
|
|---|
| 611 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 612 | extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr)
|
|---|
| 613 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 614 | extern int pthread_barrierattr_getpshared (__const pthread_barrierattr_t *
|
|---|
| 615 | __restrict __attr,
|
|---|
| 616 | int *__restrict __pshared)
|
|---|
| 617 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1, 2)));
|
|---|
| 618 | extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
|
|---|
| 619 | int __pshared)
|
|---|
| 620 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 621 | extern int pthread_key_create (pthread_key_t *__key,
|
|---|
| 622 | void (*__destr_function) (void *))
|
|---|
| 623 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1)));
|
|---|
| 624 | extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 625 | extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 626 | extern int pthread_setspecific (pthread_key_t __key,
|
|---|
| 627 | __const void *__pointer) __attribute__ ((__nothrow__ , __leaf__)) ;
|
|---|
| 628 | extern int pthread_getcpuclockid (pthread_t __thread_id,
|
|---|
| 629 | __clockid_t *__clock_id)
|
|---|
| 630 | __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (2)));
|
|---|
| 631 | extern int pthread_atfork (void (*__prepare) (void),
|
|---|
| 632 | void (*__parent) (void),
|
|---|
| 633 | void (*__child) (void)) __attribute__ ((__nothrow__ , __leaf__));
|
|---|
| 634 |
|
|---|
| 635 | int i=1, j=1;
|
|---|
| 636 | void *
|
|---|
| 637 | t1(void* arg)
|
|---|
| 638 | {
|
|---|
| 639 | int k = 0;
|
|---|
| 640 | for (k = 0; k < 3; k++)
|
|---|
| 641 | i+=j;
|
|---|
| 642 | pthread_exit(((void *)0));
|
|---|
| 643 | }
|
|---|
| 644 | void *
|
|---|
| 645 | t2(void* arg)
|
|---|
| 646 | {
|
|---|
| 647 | int k = 0;
|
|---|
| 648 | for (k = 0; k < 3; k++)
|
|---|
| 649 | j+=i;
|
|---|
| 650 | pthread_exit(((void *)0));
|
|---|
| 651 | }
|
|---|
| 652 | int
|
|---|
| 653 | main(int argc, char **argv)
|
|---|
| 654 | {
|
|---|
| 655 | pthread_t id1, id2;
|
|---|
| 656 | pthread_create(&id1, ((void *)0), t1, ((void *)0));
|
|---|
| 657 | pthread_create(&id2, ((void *)0), t2, ((void *)0));
|
|---|
| 658 | //if (i >= 144 || j >= 144) {
|
|---|
| 659 | //ERROR: __VERIFIER_error();
|
|---|
| 660 | //}
|
|---|
| 661 | return 0;
|
|---|
| 662 | }
|
|---|