-
Notifications
You must be signed in to change notification settings - Fork 0
/
max.test.c
678 lines (671 loc) · 25.6 KB
/
max.test.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
/* Generated by CIL v. 1.7.3 */
/* print_CIL_Input is false */
#include <stdio.h>
#include "klee/klee.h"
/* compiler builtin:
void __builtin_va_copy(__builtin_va_list , __builtin_va_list ) ; */
/* compiler builtin:
void *__builtin_frob_return_address(void * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_and_and_fetch(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_or(...) ; */
/* compiler builtin:
int __builtin_popcountll(unsigned long long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch(...) ; */
/* compiler builtin:
float __builtin_atanf(float ) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_addps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
unsigned long __builtin_strcspn(char const * , char const * ) ; */
/* compiler builtin:
float __builtin_asinf(float ) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_maxps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_unpckhps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
double __builtin_acos(double ) ; */
/* compiler builtin:
int __builtin___sprintf_chk(char * , int , unsigned long , char const * , ...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch_16(...) ; */
/* compiler builtin:
double __builtin_cosh(double ) ; */
/* compiler builtin:
float __builtin_tanhf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand_16(...) ; */
/* compiler builtin:
void *__builtin_mempcpy(void * , void const * , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch_1(...) ; */
/* compiler builtin:
long double __builtin_sqrtl(long double ) ; */
/* compiler builtin:
int __builtin_parity(unsigned int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or(...) ; */
/* compiler builtin:
long double __builtin_coshl(long double ) ; */
/* compiler builtin:
long double __builtin_cosl(long double ) ; */
/* compiler builtin:
float __builtin_cosf(float ) ; */
/* compiler builtin:
void __sync_synchronize(...) ; */
/* compiler builtin:
long double __builtin_acosl(long double ) ; */
/* compiler builtin:
void *__builtin___mempcpy_chk(void * , void const * , unsigned long , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_or_and_fetch(...) ; */
/* compiler builtin:
int __builtin_clz(unsigned int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch_4(...) ; */
/* compiler builtin:
double __builtin_log10(double ) ; */
/* compiler builtin:
char *__builtin___strcat_chk(char * , char const * , unsigned long ) ; */
/* compiler builtin:
float __builtin_modff(float , float * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch_4(...) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_n(...) ; */
/* compiler builtin:
double __builtin_sin(double ) ; */
/* compiler builtin:
double __builtin_frexp(double , int * ) ; */
/* compiler builtin:
float __builtin_acosf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_add_and_fetch(...) ; */
/* compiler builtin:
long double __builtin_sinhl(long double ) ; */
/* compiler builtin:
char *__builtin___stpcpy_chk(char * , char const * , unsigned long ) ; */
/* compiler builtin:
void __atomic_signal_fence(int ) ; */
/* compiler builtin:
double __builtin_fabs(double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch_16(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_nand(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch_2(...) ; */
/* compiler builtin:
void __atomic_thread_fence(int ) ; */
/* compiler builtin:
void __atomic_store_16(...) ; */
/* compiler builtin:
void __builtin_va_start(__builtin_va_list ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and_8(...) ; */
/* compiler builtin:
short __builtin_bswap16(short ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch_2(...) ; */
/* compiler builtin:
_Bool __atomic_test_and_set(void * , int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add_8(...) ; */
/* compiler builtin:
int __builtin_ctz(unsigned int ) ; */
/* compiler builtin:
char *__builtin_strpbrk(char const * , char const * ) ; */
/* compiler builtin:
char *__builtin_strcpy(char * , char const * ) ; */
/* compiler builtin:
double __builtin_sqrt(double ) ; */
/* compiler builtin:
__builtin_va_list __builtin_next_arg(void) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_16(...) ; */
/* compiler builtin:
void __atomic_clear(_Bool * , int ) ; */
/* compiler builtin:
void __atomic_store(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch_2(...) ; */
/* compiler builtin:
float __builtin_log10f(float ) ; */
/* compiler builtin:
long double __builtin_fabsl(long double ) ; */
/* compiler builtin:
long double __builtin_floorl(long double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch(...) ; */
/* compiler builtin:
float __builtin_floorf(float ) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_4(...) ; */
/* compiler builtin:
void *__builtin_memcpy(void * , void const * , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_sub_and_fetch(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_nand_and_fetch(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_16(...) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_subps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
int __builtin_parityll(unsigned long long ) ; */
/* compiler builtin:
void __builtin_va_end(__builtin_va_list ) ; */
/* compiler builtin:
void __builtin_bzero(void * , unsigned long ) ; */
/* compiler builtin:
_Bool __atomic_always_lock_free(unsigned long , void * ) ; */
/* compiler builtin:
int __builtin_strncmp(char const * , char const * , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch_16(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_xor_and_fetch(...) ; */
/* compiler builtin:
int __builtin___vsprintf_chk(char * , int , unsigned long , char const * ,
__builtin_va_list ) ; */
/* compiler builtin:
float __builtin_sqrtf(float ) ; */
/* compiler builtin:
double __builtin_nans(char const * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor_8(...) ; */
/* compiler builtin:
double __builtin_exp(double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_1(...) ; */
/* compiler builtin:
int __builtin_strcmp(char const * , char const * ) ; */
/* compiler builtin:
float __builtin_ldexpf(float , int ) ; */
/* compiler builtin:
float __builtin_powif(float , int ) ; */
/* compiler builtin:
long double __builtin_log10l(long double ) ; */
/* compiler builtin:
void *__builtin___memmove_chk(void * , void const * , unsigned long , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_and(...) ; */
/* compiler builtin:
void *__builtin_return_address(unsigned int ) ; */
/* compiler builtin:
void __atomic_feraiseexcept(int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch_4(...) ; */
/* compiler builtin:
float __builtin_fabsf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch_1(...) ; */
/* compiler builtin:
unsigned long __builtin_object_size(void * , int ) ; */
/* compiler builtin:
void *__builtin_alloca(unsigned long ) ; */
/* compiler builtin:
int __builtin_va_arg_pack_len(void) ; */
/* compiler builtin:
long double __builtin_tanl(long double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and_2(...) ; */
/* compiler builtin:
void __sync_lock_release(...) ; */
/* compiler builtin:
long double __builtin_modfl(long double , long double * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand_8(...) ; */
/* compiler builtin:
char *__builtin_stpcpy(char * , char const * ) ; */
/* compiler builtin:
long double __builtin_sinl(long double ) ; */
/* compiler builtin:
double __builtin_asin(double ) ; */
/* compiler builtin:
float __builtin_sinhf(float ) ; */
/* compiler builtin:
int __builtin_ctzl(unsigned long ) ; */
/* compiler builtin:
long double __builtin_tanhl(long double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add(...) ; */
/* compiler builtin:
long __builtin_bswap64(long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand_2(...) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_mulps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
double __builtin_tan(double ) ; */
/* compiler builtin:
char *__builtin_strncpy(char * , char const * , unsigned long ) ; */
/* compiler builtin:
float __builtin_inff(void) ; */
/* compiler builtin:
void *__builtin___memset_chk(void * , int , unsigned long , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_n(...) ; */
/* compiler builtin:
double __builtin_huge_val(void) ; */
/* compiler builtin:
int __builtin_clzl(unsigned long ) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_16(...) ; */
/* compiler builtin:
float __builtin_frexpf(float , int * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_n(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or_1(...) ; */
/* compiler builtin:
long double __builtin_fmodl(long double ) ; */
/* compiler builtin:
double __builtin_atan(double ) ; */
/* compiler builtin:
int __builtin___fprintf_chk(void * , int , char const * , ...) ; */
/* compiler builtin:
float __builtin_ceilf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add_1(...) ; */
/* compiler builtin:
void __builtin_return(void const * ) ; */
/* compiler builtin:
long double __builtin_asinl(long double ) ; */
/* compiler builtin:
int __builtin_ffsll(unsigned long long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub_1(...) ; */
/* compiler builtin:
int __builtin_va_arg_pack(void) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or_4(...) ; */
/* compiler builtin:
char *__builtin___strncpy_chk(char * , char const * , unsigned long , unsigned long ) ; */
/* compiler builtin:
double __builtin_powi(double , int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_2(...) ; */
/* compiler builtin:
char *__builtin_strchr(char * , int ) ; */
/* compiler builtin:
char *__builtin___strncat_chk(char * , char const * , unsigned long , unsigned long ) ; */
/* compiler builtin:
void __atomic_store_2(...) ; */
/* compiler builtin:
long double __builtin_huge_vall(void) ; */
/* compiler builtin:
int __builtin_ffsl(unsigned long ) ; */
/* compiler builtin:
int __builtin___vprintf_chk(int , char const * , __builtin_va_list ) ; */
/* compiler builtin:
float __attribute__((____vector_size____(16))) __builtin_ia32_unpcklps(float __attribute__((____vector_size____(16))) ,
float __attribute__((____vector_size____(16))) ) ; */
/* compiler builtin:
char *__builtin_strncat(char * , char const * , unsigned long ) ; */
/* compiler builtin:
int __builtin_ctzll(unsigned long long ) ; */
/* compiler builtin:
void __builtin_stdarg_start(__builtin_va_list ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_xor(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and_4(...) ; */
/* compiler builtin:
long double __builtin_frexpl(long double , int * ) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange(...) ; */
/* compiler builtin:
float __builtin_tanf(float ) ; */
/* compiler builtin:
long double __builtin_logl(long double ) ; */
/* compiler builtin:
void __builtin_va_arg(__builtin_va_list , unsigned long , void * ) ; */
/* compiler builtin:
long __builtin_expect(long , long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_1(...) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_1(...) ; */
/* compiler builtin:
int __builtin___printf_chk(int , char const * , ...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor_2(...) ; */
/* compiler builtin:
int __builtin___vfprintf_chk(void * , int , char const * , __builtin_va_list ) ; */
/* compiler builtin:
void __builtin_prefetch(void const * , ...) ; */
/* compiler builtin:
long double __builtin_nansl(char const * ) ; */
/* compiler builtin:
double __builtin_fmod(double ) ; */
/* compiler builtin:
void __atomic_load(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch_16(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch_16(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_val_compare_and_swap(...) ; */
/* compiler builtin:
void __atomic_store_4(...) ; */
/* compiler builtin:
double __builtin_tanh(double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_nand_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add_16(...) ; */
/* compiler builtin:
void __builtin_unreachable(void) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_2(...) ; */
/* compiler builtin:
long double __builtin_ldexpl(long double , int ) ; */
/* compiler builtin:
void *__builtin_apply(void (*)() , void * , unsigned long ) ; */
/* compiler builtin:
float __builtin_sinf(float ) ; */
/* compiler builtin:
double __builtin_ceil(double ) ; */
/* compiler builtin:
void __atomic_exchange(...) ; */
/* compiler builtin:
long double __builtin_powil(long double , int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch_8(...) ; */
/* compiler builtin:
long double __builtin_expl(long double ) ; */
/* compiler builtin:
int __builtin_constant_p(int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub_16(...) ; */
/* compiler builtin:
double __builtin_log(double ) ; */
/* compiler builtin:
float __builtin_expf(float ) ; */
/* compiler builtin:
int __builtin_types_compatible_p(unsigned long , unsigned long ) ; */
/* compiler builtin:
long double __builtin_atan2l(long double , long double ) ; */
/* compiler builtin:
void *__builtin_apply_args(void) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_exchange_2(...) ; */
/* compiler builtin:
float __builtin_logf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch_2(...) ; */
/* compiler builtin:
unsigned long __builtin_strlen(char const * ) ; */
/* compiler builtin:
int __builtin_ffs(unsigned int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor_16(...) ; */
/* compiler builtin:
double __builtin_inf(void) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or_16(...) ; */
/* compiler builtin:
void *__builtin___memcpy_chk(void * , void const * , unsigned long , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_4(...) ; */
/* compiler builtin:
void __atomic_store_n(...) ; */
/* compiler builtin:
void __builtin_trap(void) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add_4(...) ; */
/* compiler builtin:
int __builtin_parityl(unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch_2(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_lock_test_and_set(...) ; */
/* compiler builtin:
unsigned long __builtin_strspn(char const * , char const * ) ; */
/* compiler builtin:
void __builtin_varargs_start(__builtin_va_list ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_and_16(...) ; */
/* compiler builtin:
_Bool __atomic_compare_exchange_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_nand_fetch(...) ; */
/* compiler builtin:
double __builtin_nan(char const * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_load_8(...) ; */
/* compiler builtin:
int __builtin___snprintf_chk(char * , unsigned long , int , unsigned long ,
char const * , ...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub_2(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch(...) ; */
/* compiler builtin:
long double __builtin_atanl(long double ) ; */
/* compiler builtin:
int __builtin_clzll(unsigned long long ) ; */
/* compiler builtin:
float __builtin_huge_valf(void) ; */
/* compiler builtin:
float __builtin_coshf(float ) ; */
/* compiler builtin:
float __builtin_nansf(char const * ) ; */
/* compiler builtin:
void __atomic_store_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_add(...) ; */
/* compiler builtin:
int __builtin___vsnprintf_chk(char * , unsigned long , int , unsigned long ,
char const * , __builtin_va_list ) ; */
/* compiler builtin:
float __builtin_nanf(char const * ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_or_fetch_2(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_xor_4(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub_8(...) ; */
/* compiler builtin:
_Bool __sync_bool_compare_and_swap(...) ; */
/* compiler builtin:
double __builtin_atan2(double , double ) ; */
/* compiler builtin:
int __builtin_popcountl(unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch_1(...) ; */
/* compiler builtin:
long double __builtin_ceill(long double ) ; */
/* compiler builtin:
void __atomic_store_1(...) ; */
/* compiler builtin:
char *__builtin___strcpy_chk(char * , char const * , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_xor_fetch_1(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_or_2(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_sub_fetch_16(...) ; */
/* compiler builtin:
double __builtin_floor(double ) ; */
/* compiler builtin:
double __builtin_cos(double ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __sync_fetch_and_sub(...) ; */
/* compiler builtin:
void *__builtin_memset(void * , int , int ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_add_2(...) ; */
/* compiler builtin:
long double __builtin_nanl(char const * ) ; */
/* compiler builtin:
float __builtin_atan2f(float , float ) ; */
/* compiler builtin:
_Bool __atomic_is_lock_free(unsigned long , void * ) ; */
/* compiler builtin:
int __builtin_popcount(unsigned int ) ; */
/* compiler builtin:
double __builtin_sinh(double ) ; */
/* compiler builtin:
void __builtin_bcopy(void const * , void * , unsigned long ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_and_fetch_8(...) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_fetch_sub(...) ; */
/* compiler builtin:
void *__builtin_extract_return_addr(void * ) ; */
/* compiler builtin:
int __builtin_bswap32(int ) ; */
/* compiler builtin:
double __builtin_ldexp(double , int ) ; */
/* compiler builtin:
long double __builtin_infl(void) ; */
/* compiler builtin:
float __builtin_fmodf(float ) ; */
/* compiler builtin:
void __attribute__((__overloaded__)) __atomic_add_fetch_4(...) ; */
/* compiler builtin:
void *__builtin_frame_address(unsigned int ) ; */
int buggyQ(int x , int y , int z )
{
{
if (x > y) {
if (y > z) {
return (x);
} else
if (x > z) {
return (x);
} else {
return (z);
}
} else
if (x > z) {
return (y);
} else
if (y > z) {
return (y);
} else {
return (y);
}
}
}
int correctQ(int x , int y , int z )
{
{
if (x > y) {
if (y > z) {
return (x);
} else
if (x > z) {
return (x);
} else {
return (z);
}
} else
if (x > z) {
return (y);
} else
if (y > z) {
return (y);
} else {
return (z);
}
}
}
extern int ( /* missing proto */ printf)() ;
int mainQ(int x , int y , int z )
{
int rb ;
int tmp ;
int rc ;
int tmp___0 ;
int x_new ;
int y_new ;
int z_new ;
{
rb = buggyQ(x, y, z);
rc = correctQ(x, y, z);
if (rb != rc) {
x_new = (0 * x + 0 * y) + (1 * z + 0);
y_new = (0 * x + 0 * y) + (0 * z + -131);
z_new = (0 * x + 3 * y) + (-4 * z + -10);
if (rb != rc) {
printf("FAIL with inputs: x %d y %d z %d \n", x, y, z);
}
}
return(0);
}
}
extern int ( /* missing proto */ klee_make_symbolic)() ;
extern int ( /* missing proto */ klee_assume)() ;
int main(void)
{
int uk_0 ;
int uk_1 ;
int uk_2 ;
int rv ;
int tmp ;
{
klee_make_symbolic(& uk_0, sizeof(uk_0), "uk_0");
klee_assume(-100 <= uk_0);
klee_assume(uk_0 <= 100);
klee_make_symbolic(& uk_1, sizeof(uk_1), "uk_1");
klee_assume(-100 <= uk_1);
klee_assume(uk_1 <= 100);
klee_make_symbolic(& uk_2, sizeof(uk_2), "uk_2");
klee_assume(-100 <= uk_2);
klee_assume(uk_2 <= 100);
tmp = mainQ(uk_0, uk_1, uk_2);
rv = tmp;
return (0);
}
}