forked from PrincetonUniversity/VST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcond.v
627 lines (613 loc) · 28.1 KB
/
cond.v
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
From Coq Require Import String List ZArith.
From compcert Require Import Coqlib Integers Floats AST Ctypes Cop Clight Clightdefs.
Import Clightdefs.ClightNotations.
Local Open Scope Z_scope.
Local Open Scope string_scope.
Local Open Scope clight_scope.
Module Info.
Definition version := "3.9".
Definition build_number := "".
Definition build_tag := "".
Definition build_branch := "".
Definition arch := "x86".
Definition model := "32sse2".
Definition abi := "standard".
Definition bitsize := 32.
Definition big_endian := false.
Definition source_file := "progs/cond.c".
Definition normalized := true.
End Info.
Definition ___builtin_annot : ident := 17%positive.
Definition ___builtin_annot_intval : ident := 18%positive.
Definition ___builtin_bswap : ident := 2%positive.
Definition ___builtin_bswap16 : ident := 4%positive.
Definition ___builtin_bswap32 : ident := 3%positive.
Definition ___builtin_bswap64 : ident := 1%positive.
Definition ___builtin_clz : ident := 5%positive.
Definition ___builtin_clzl : ident := 6%positive.
Definition ___builtin_clzll : ident := 7%positive.
Definition ___builtin_ctz : ident := 8%positive.
Definition ___builtin_ctzl : ident := 9%positive.
Definition ___builtin_ctzll : ident := 10%positive.
Definition ___builtin_debug : ident := 36%positive.
Definition ___builtin_expect : ident := 25%positive.
Definition ___builtin_fabs : ident := 11%positive.
Definition ___builtin_fabsf : ident := 12%positive.
Definition ___builtin_fmadd : ident := 28%positive.
Definition ___builtin_fmax : ident := 26%positive.
Definition ___builtin_fmin : ident := 27%positive.
Definition ___builtin_fmsub : ident := 29%positive.
Definition ___builtin_fnmadd : ident := 30%positive.
Definition ___builtin_fnmsub : ident := 31%positive.
Definition ___builtin_fsqrt : ident := 13%positive.
Definition ___builtin_membar : ident := 19%positive.
Definition ___builtin_memcpy_aligned : ident := 15%positive.
Definition ___builtin_read16_reversed : ident := 32%positive.
Definition ___builtin_read32_reversed : ident := 33%positive.
Definition ___builtin_sel : ident := 16%positive.
Definition ___builtin_sqrt : ident := 14%positive.
Definition ___builtin_unreachable : ident := 24%positive.
Definition ___builtin_va_arg : ident := 21%positive.
Definition ___builtin_va_copy : ident := 22%positive.
Definition ___builtin_va_end : ident := 23%positive.
Definition ___builtin_va_start : ident := 20%positive.
Definition ___builtin_write16_reversed : ident := 34%positive.
Definition ___builtin_write32_reversed : ident := 35%positive.
Definition ___compcert_i64_dtos : ident := 63%positive.
Definition ___compcert_i64_dtou : ident := 64%positive.
Definition ___compcert_i64_sar : ident := 75%positive.
Definition ___compcert_i64_sdiv : ident := 69%positive.
Definition ___compcert_i64_shl : ident := 73%positive.
Definition ___compcert_i64_shr : ident := 74%positive.
Definition ___compcert_i64_smod : ident := 71%positive.
Definition ___compcert_i64_smulh : ident := 76%positive.
Definition ___compcert_i64_stod : ident := 65%positive.
Definition ___compcert_i64_stof : ident := 67%positive.
Definition ___compcert_i64_udiv : ident := 70%positive.
Definition ___compcert_i64_umod : ident := 72%positive.
Definition ___compcert_i64_umulh : ident := 77%positive.
Definition ___compcert_i64_utod : ident := 66%positive.
Definition ___compcert_i64_utof : ident := 68%positive.
Definition ___compcert_va_composite : ident := 62%positive.
Definition ___compcert_va_float64 : ident := 61%positive.
Definition ___compcert_va_int32 : ident := 59%positive.
Definition ___compcert_va_int64 : ident := 60%positive.
Definition _acquire : ident := 39%positive.
Definition _args : ident := 52%positive.
Definition _c : ident := 55%positive.
Definition _cond : ident := 50%positive.
Definition _data : ident := 51%positive.
Definition _freecond : ident := 45%positive.
Definition _freelock : ident := 38%positive.
Definition _freelock2 : ident := 41%positive.
Definition _l : ident := 53%positive.
Definition _main : ident := 58%positive.
Definition _makecond : ident := 44%positive.
Definition _makelock : ident := 37%positive.
Definition _mutex : ident := 48%positive.
Definition _release : ident := 40%positive.
Definition _release2 : ident := 42%positive.
Definition _signalcond : ident := 47%positive.
Definition _spawn : ident := 43%positive.
Definition _t : ident := 54%positive.
Definition _thread_func : ident := 56%positive.
Definition _tlock : ident := 49%positive.
Definition _v : ident := 57%positive.
Definition _waitcond : ident := 46%positive.
Definition v_mutex := {|
gvar_info := (tarray (tptr tvoid) 2);
gvar_init := (Init_space 8 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition v_tlock := {|
gvar_info := (tarray (tptr tvoid) 2);
gvar_init := (Init_space 8 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition v_cond := {|
gvar_info := tint;
gvar_init := (Init_space 4 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition v_data := {|
gvar_info := tint;
gvar_init := (Init_space 4 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition f_thread_func := {|
fn_return := (tptr tvoid);
fn_callconv := cc_default;
fn_params := ((_args, (tptr tvoid)) :: nil);
fn_vars := nil;
fn_temps := ((_l, (tptr (tarray (tptr tvoid) 2))) ::
(_t, (tptr (tarray (tptr tvoid) 2))) :: (_c, (tptr tint)) ::
nil);
fn_body :=
(Ssequence
(Sset _l
(Eaddrof (Evar _mutex (tarray (tptr tvoid) 2))
(tptr (tarray (tptr tvoid) 2))))
(Ssequence
(Sset _t
(Eaddrof (Evar _tlock (tarray (tptr tvoid) 2))
(tptr (tarray (tptr tvoid) 2))))
(Ssequence
(Sset _c (Eaddrof (Evar _cond tint) (tptr tint)))
(Ssequence
(Scall None
(Evar _acquire (Tfunction (Tcons (tptr tvoid) Tnil) tvoid
cc_default))
((Ecast (Etempvar _l (tptr (tarray (tptr tvoid) 2))) (tptr tvoid)) ::
nil))
(Ssequence
(Sassign (Evar _data tint) (Econst_int (Int.repr 1) tint))
(Ssequence
(Scall None
(Evar _signalcond (Tfunction (Tcons (tptr tint) Tnil) tvoid
cc_default))
((Etempvar _c (tptr tint)) :: nil))
(Ssequence
(Scall None
(Evar _release (Tfunction (Tcons (tptr tvoid) Tnil) tvoid
cc_default))
((Ecast (Etempvar _l (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _release2 (Tfunction (Tcons (tptr tvoid) Tnil) tvoid
cc_default))
((Ecast (Etempvar _t (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Sreturn (Some (Ecast (Econst_int (Int.repr 0) tint)
(tptr tvoid))))))))))))
|}.
Definition f_main := {|
fn_return := tint;
fn_callconv := cc_default;
fn_params := nil;
fn_vars := nil;
fn_temps := ((_l, (tptr (tarray (tptr tvoid) 2))) ::
(_t, (tptr (tarray (tptr tvoid) 2))) :: (_c, (tptr tint)) ::
(_v, tint) :: nil);
fn_body :=
(Ssequence
(Ssequence
(Sassign (Evar _data tint) (Econst_int (Int.repr 0) tint))
(Ssequence
(Sset _l
(Eaddrof (Evar _mutex (tarray (tptr tvoid) 2))
(tptr (tarray (tptr tvoid) 2))))
(Ssequence
(Sset _t
(Eaddrof (Evar _tlock (tarray (tptr tvoid) 2))
(tptr (tarray (tptr tvoid) 2))))
(Ssequence
(Sset _c (Eaddrof (Evar _cond tint) (tptr tint)))
(Ssequence
(Scall None
(Evar _makecond (Tfunction (Tcons (tptr tint) Tnil) tvoid
cc_default))
((Etempvar _c (tptr tint)) :: nil))
(Ssequence
(Scall None
(Evar _makelock (Tfunction (Tcons (tptr tvoid) Tnil) tvoid
cc_default))
((Ecast (Etempvar _l (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _makelock (Tfunction (Tcons (tptr tvoid) Tnil) tvoid
cc_default))
((Ecast (Etempvar _t (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _spawn (Tfunction
(Tcons
(tptr (Tfunction
(Tcons (tptr tvoid) Tnil)
(tptr tvoid) cc_default))
(Tcons (tptr tvoid) Tnil)) tvoid
cc_default))
((Ecast
(Eaddrof
(Evar _thread_func (Tfunction
(Tcons (tptr tvoid) Tnil)
(tptr tvoid) cc_default))
(tptr (Tfunction (Tcons (tptr tvoid) Tnil)
(tptr tvoid) cc_default))) (tptr tvoid)) ::
(Ecast (Econst_int (Int.repr 0) tint) (tptr tvoid)) ::
nil))
(Ssequence
(Sset _v (Econst_int (Int.repr 0) tint))
(Ssequence
(Swhile
(Eunop Onotbool (Etempvar _v tint) tint)
(Ssequence
(Scall None
(Evar _waitcond (Tfunction
(Tcons (tptr tint)
(Tcons (tptr tvoid) Tnil))
tvoid cc_default))
((Etempvar _c (tptr tint)) ::
(Ecast
(Etempvar _l (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Sset _v (Evar _data tint))))
(Ssequence
(Scall None
(Evar _acquire (Tfunction (Tcons (tptr tvoid) Tnil)
tvoid cc_default))
((Ecast
(Etempvar _t (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _freelock2 (Tfunction
(Tcons (tptr tvoid) Tnil)
tvoid cc_default))
((Ecast
(Etempvar _t (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _freelock (Tfunction
(Tcons (tptr tvoid) Tnil)
tvoid cc_default))
((Ecast
(Etempvar _l (tptr (tarray (tptr tvoid) 2)))
(tptr tvoid)) :: nil))
(Ssequence
(Scall None
(Evar _freecond (Tfunction
(Tcons (tptr tint) Tnil)
tvoid cc_default))
((Etempvar _c (tptr tint)) :: nil))
(Sreturn (Some (Etempvar _v tint)))))))))))))))))
(Sreturn (Some (Econst_int (Int.repr 0) tint))))
|}.
Definition composites : list composite_definition :=
nil.
Definition global_definitions : list (ident * globdef fundef type) :=
((___compcert_va_int32,
Gfun(External (EF_runtime "__compcert_va_int32"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons (tptr tvoid) Tnil) tuint cc_default)) ::
(___compcert_va_int64,
Gfun(External (EF_runtime "__compcert_va_int64"
(mksignature (AST.Tint :: nil) AST.Tlong cc_default))
(Tcons (tptr tvoid) Tnil) tulong cc_default)) ::
(___compcert_va_float64,
Gfun(External (EF_runtime "__compcert_va_float64"
(mksignature (AST.Tint :: nil) AST.Tfloat cc_default))
(Tcons (tptr tvoid) Tnil) tdouble cc_default)) ::
(___compcert_va_composite,
Gfun(External (EF_runtime "__compcert_va_composite"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tint
cc_default)) (Tcons (tptr tvoid) (Tcons tuint Tnil))
(tptr tvoid) cc_default)) ::
(___compcert_i64_dtos,
Gfun(External (EF_runtime "__compcert_i64_dtos"
(mksignature (AST.Tfloat :: nil) AST.Tlong cc_default))
(Tcons tdouble Tnil) tlong cc_default)) ::
(___compcert_i64_dtou,
Gfun(External (EF_runtime "__compcert_i64_dtou"
(mksignature (AST.Tfloat :: nil) AST.Tlong cc_default))
(Tcons tdouble Tnil) tulong cc_default)) ::
(___compcert_i64_stod,
Gfun(External (EF_runtime "__compcert_i64_stod"
(mksignature (AST.Tlong :: nil) AST.Tfloat cc_default))
(Tcons tlong Tnil) tdouble cc_default)) ::
(___compcert_i64_utod,
Gfun(External (EF_runtime "__compcert_i64_utod"
(mksignature (AST.Tlong :: nil) AST.Tfloat cc_default))
(Tcons tulong Tnil) tdouble cc_default)) ::
(___compcert_i64_stof,
Gfun(External (EF_runtime "__compcert_i64_stof"
(mksignature (AST.Tlong :: nil) AST.Tsingle cc_default))
(Tcons tlong Tnil) tfloat cc_default)) ::
(___compcert_i64_utof,
Gfun(External (EF_runtime "__compcert_i64_utof"
(mksignature (AST.Tlong :: nil) AST.Tsingle cc_default))
(Tcons tulong Tnil) tfloat cc_default)) ::
(___compcert_i64_sdiv,
Gfun(External (EF_runtime "__compcert_i64_sdiv"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tlong (Tcons tlong Tnil)) tlong
cc_default)) ::
(___compcert_i64_udiv,
Gfun(External (EF_runtime "__compcert_i64_udiv"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tulong (Tcons tulong Tnil)) tulong
cc_default)) ::
(___compcert_i64_smod,
Gfun(External (EF_runtime "__compcert_i64_smod"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tlong (Tcons tlong Tnil)) tlong
cc_default)) ::
(___compcert_i64_umod,
Gfun(External (EF_runtime "__compcert_i64_umod"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tulong (Tcons tulong Tnil)) tulong
cc_default)) ::
(___compcert_i64_shl,
Gfun(External (EF_runtime "__compcert_i64_shl"
(mksignature (AST.Tlong :: AST.Tint :: nil) AST.Tlong
cc_default)) (Tcons tlong (Tcons tint Tnil)) tlong
cc_default)) ::
(___compcert_i64_shr,
Gfun(External (EF_runtime "__compcert_i64_shr"
(mksignature (AST.Tlong :: AST.Tint :: nil) AST.Tlong
cc_default)) (Tcons tulong (Tcons tint Tnil)) tulong
cc_default)) ::
(___compcert_i64_sar,
Gfun(External (EF_runtime "__compcert_i64_sar"
(mksignature (AST.Tlong :: AST.Tint :: nil) AST.Tlong
cc_default)) (Tcons tlong (Tcons tint Tnil)) tlong
cc_default)) ::
(___compcert_i64_smulh,
Gfun(External (EF_runtime "__compcert_i64_smulh"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tlong (Tcons tlong Tnil)) tlong
cc_default)) ::
(___compcert_i64_umulh,
Gfun(External (EF_runtime "__compcert_i64_umulh"
(mksignature (AST.Tlong :: AST.Tlong :: nil) AST.Tlong
cc_default)) (Tcons tulong (Tcons tulong Tnil)) tulong
cc_default)) ::
(___builtin_bswap64,
Gfun(External (EF_builtin "__builtin_bswap64"
(mksignature (AST.Tlong :: nil) AST.Tlong cc_default))
(Tcons tulong Tnil) tulong cc_default)) ::
(___builtin_bswap,
Gfun(External (EF_builtin "__builtin_bswap"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tuint cc_default)) ::
(___builtin_bswap32,
Gfun(External (EF_builtin "__builtin_bswap32"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tuint cc_default)) ::
(___builtin_bswap16,
Gfun(External (EF_builtin "__builtin_bswap16"
(mksignature (AST.Tint :: nil) AST.Tint16unsigned
cc_default)) (Tcons tushort Tnil) tushort cc_default)) ::
(___builtin_clz,
Gfun(External (EF_builtin "__builtin_clz"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tint cc_default)) ::
(___builtin_clzl,
Gfun(External (EF_builtin "__builtin_clzl"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tint cc_default)) ::
(___builtin_clzll,
Gfun(External (EF_builtin "__builtin_clzll"
(mksignature (AST.Tlong :: nil) AST.Tint cc_default))
(Tcons tulong Tnil) tint cc_default)) ::
(___builtin_ctz,
Gfun(External (EF_builtin "__builtin_ctz"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tint cc_default)) ::
(___builtin_ctzl,
Gfun(External (EF_builtin "__builtin_ctzl"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons tuint Tnil) tint cc_default)) ::
(___builtin_ctzll,
Gfun(External (EF_builtin "__builtin_ctzll"
(mksignature (AST.Tlong :: nil) AST.Tint cc_default))
(Tcons tulong Tnil) tint cc_default)) ::
(___builtin_fabs,
Gfun(External (EF_builtin "__builtin_fabs"
(mksignature (AST.Tfloat :: nil) AST.Tfloat cc_default))
(Tcons tdouble Tnil) tdouble cc_default)) ::
(___builtin_fabsf,
Gfun(External (EF_builtin "__builtin_fabsf"
(mksignature (AST.Tsingle :: nil) AST.Tsingle cc_default))
(Tcons tfloat Tnil) tfloat cc_default)) ::
(___builtin_fsqrt,
Gfun(External (EF_builtin "__builtin_fsqrt"
(mksignature (AST.Tfloat :: nil) AST.Tfloat cc_default))
(Tcons tdouble Tnil) tdouble cc_default)) ::
(___builtin_sqrt,
Gfun(External (EF_builtin "__builtin_sqrt"
(mksignature (AST.Tfloat :: nil) AST.Tfloat cc_default))
(Tcons tdouble Tnil) tdouble cc_default)) ::
(___builtin_memcpy_aligned,
Gfun(External (EF_builtin "__builtin_memcpy_aligned"
(mksignature
(AST.Tint :: AST.Tint :: AST.Tint :: AST.Tint :: nil)
AST.Tvoid cc_default))
(Tcons (tptr tvoid)
(Tcons (tptr tvoid) (Tcons tuint (Tcons tuint Tnil)))) tvoid
cc_default)) ::
(___builtin_sel,
Gfun(External (EF_builtin "__builtin_sel"
(mksignature (AST.Tint :: nil) AST.Tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
(Tcons tbool Tnil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(___builtin_annot,
Gfun(External (EF_builtin "__builtin_annot"
(mksignature (AST.Tint :: nil) AST.Tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
(Tcons (tptr tschar) Tnil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(___builtin_annot_intval,
Gfun(External (EF_builtin "__builtin_annot_intval"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tint
cc_default)) (Tcons (tptr tschar) (Tcons tint Tnil))
tint cc_default)) ::
(___builtin_membar,
Gfun(External (EF_builtin "__builtin_membar"
(mksignature nil AST.Tvoid cc_default)) Tnil tvoid
cc_default)) ::
(___builtin_va_start,
Gfun(External (EF_builtin "__builtin_va_start"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(___builtin_va_arg,
Gfun(External (EF_builtin "__builtin_va_arg"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default)) (Tcons (tptr tvoid) (Tcons tuint Tnil))
tvoid cc_default)) ::
(___builtin_va_copy,
Gfun(External (EF_builtin "__builtin_va_copy"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default))
(Tcons (tptr tvoid) (Tcons (tptr tvoid) Tnil)) tvoid cc_default)) ::
(___builtin_va_end,
Gfun(External (EF_builtin "__builtin_va_end"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(___builtin_unreachable,
Gfun(External (EF_builtin "__builtin_unreachable"
(mksignature nil AST.Tvoid cc_default)) Tnil tvoid
cc_default)) ::
(___builtin_expect,
Gfun(External (EF_builtin "__builtin_expect"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tint
cc_default)) (Tcons tint (Tcons tint Tnil)) tint
cc_default)) ::
(___builtin_fmax,
Gfun(External (EF_builtin "__builtin_fmax"
(mksignature (AST.Tfloat :: AST.Tfloat :: nil) AST.Tfloat
cc_default)) (Tcons tdouble (Tcons tdouble Tnil))
tdouble cc_default)) ::
(___builtin_fmin,
Gfun(External (EF_builtin "__builtin_fmin"
(mksignature (AST.Tfloat :: AST.Tfloat :: nil) AST.Tfloat
cc_default)) (Tcons tdouble (Tcons tdouble Tnil))
tdouble cc_default)) ::
(___builtin_fmadd,
Gfun(External (EF_builtin "__builtin_fmadd"
(mksignature
(AST.Tfloat :: AST.Tfloat :: AST.Tfloat :: nil)
AST.Tfloat cc_default))
(Tcons tdouble (Tcons tdouble (Tcons tdouble Tnil))) tdouble
cc_default)) ::
(___builtin_fmsub,
Gfun(External (EF_builtin "__builtin_fmsub"
(mksignature
(AST.Tfloat :: AST.Tfloat :: AST.Tfloat :: nil)
AST.Tfloat cc_default))
(Tcons tdouble (Tcons tdouble (Tcons tdouble Tnil))) tdouble
cc_default)) ::
(___builtin_fnmadd,
Gfun(External (EF_builtin "__builtin_fnmadd"
(mksignature
(AST.Tfloat :: AST.Tfloat :: AST.Tfloat :: nil)
AST.Tfloat cc_default))
(Tcons tdouble (Tcons tdouble (Tcons tdouble Tnil))) tdouble
cc_default)) ::
(___builtin_fnmsub,
Gfun(External (EF_builtin "__builtin_fnmsub"
(mksignature
(AST.Tfloat :: AST.Tfloat :: AST.Tfloat :: nil)
AST.Tfloat cc_default))
(Tcons tdouble (Tcons tdouble (Tcons tdouble Tnil))) tdouble
cc_default)) ::
(___builtin_read16_reversed,
Gfun(External (EF_builtin "__builtin_read16_reversed"
(mksignature (AST.Tint :: nil) AST.Tint16unsigned
cc_default)) (Tcons (tptr tushort) Tnil) tushort
cc_default)) ::
(___builtin_read32_reversed,
Gfun(External (EF_builtin "__builtin_read32_reversed"
(mksignature (AST.Tint :: nil) AST.Tint cc_default))
(Tcons (tptr tuint) Tnil) tuint cc_default)) ::
(___builtin_write16_reversed,
Gfun(External (EF_builtin "__builtin_write16_reversed"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default)) (Tcons (tptr tushort) (Tcons tushort Tnil))
tvoid cc_default)) ::
(___builtin_write32_reversed,
Gfun(External (EF_builtin "__builtin_write32_reversed"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default)) (Tcons (tptr tuint) (Tcons tuint Tnil))
tvoid cc_default)) ::
(___builtin_debug,
Gfun(External (EF_external "__builtin_debug"
(mksignature (AST.Tint :: nil) AST.Tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
(Tcons tint Tnil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(_makelock,
Gfun(External (EF_external "makelock"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_freelock,
Gfun(External (EF_external "freelock"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_acquire,
Gfun(External (EF_external "acquire"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_release,
Gfun(External (EF_external "release"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_freelock2,
Gfun(External (EF_external "freelock2"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_release2,
Gfun(External (EF_external "release2"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tvoid) Tnil) tvoid cc_default)) ::
(_spawn,
Gfun(External (EF_external "spawn"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default))
(Tcons
(tptr (Tfunction (Tcons (tptr tvoid) Tnil) (tptr tvoid) cc_default))
(Tcons (tptr tvoid) Tnil)) tvoid cc_default)) ::
(_makecond,
Gfun(External (EF_external "makecond"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tint) Tnil) tvoid cc_default)) ::
(_freecond,
Gfun(External (EF_external "freecond"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tint) Tnil) tvoid cc_default)) ::
(_waitcond,
Gfun(External (EF_external "waitcond"
(mksignature (AST.Tint :: AST.Tint :: nil) AST.Tvoid
cc_default))
(Tcons (tptr tint) (Tcons (tptr tvoid) Tnil)) tvoid cc_default)) ::
(_signalcond,
Gfun(External (EF_external "signalcond"
(mksignature (AST.Tint :: nil) AST.Tvoid cc_default))
(Tcons (tptr tint) Tnil) tvoid cc_default)) :: (_mutex, Gvar v_mutex) ::
(_tlock, Gvar v_tlock) :: (_cond, Gvar v_cond) :: (_data, Gvar v_data) ::
(_thread_func, Gfun(Internal f_thread_func)) ::
(_main, Gfun(Internal f_main)) :: nil).
Definition public_idents : list ident :=
(_main :: _thread_func :: _data :: _cond :: _tlock :: _mutex ::
_signalcond :: _waitcond :: _freecond :: _makecond :: _spawn :: _release2 ::
_freelock2 :: _release :: _acquire :: _freelock :: _makelock ::
___builtin_debug :: ___builtin_write32_reversed ::
___builtin_write16_reversed :: ___builtin_read32_reversed ::
___builtin_read16_reversed :: ___builtin_fnmsub :: ___builtin_fnmadd ::
___builtin_fmsub :: ___builtin_fmadd :: ___builtin_fmin ::
___builtin_fmax :: ___builtin_expect :: ___builtin_unreachable ::
___builtin_va_end :: ___builtin_va_copy :: ___builtin_va_arg ::
___builtin_va_start :: ___builtin_membar :: ___builtin_annot_intval ::
___builtin_annot :: ___builtin_sel :: ___builtin_memcpy_aligned ::
___builtin_sqrt :: ___builtin_fsqrt :: ___builtin_fabsf ::
___builtin_fabs :: ___builtin_ctzll :: ___builtin_ctzl :: ___builtin_ctz ::
___builtin_clzll :: ___builtin_clzl :: ___builtin_clz ::
___builtin_bswap16 :: ___builtin_bswap32 :: ___builtin_bswap ::
___builtin_bswap64 :: ___compcert_i64_umulh :: ___compcert_i64_smulh ::
___compcert_i64_sar :: ___compcert_i64_shr :: ___compcert_i64_shl ::
___compcert_i64_umod :: ___compcert_i64_smod :: ___compcert_i64_udiv ::
___compcert_i64_sdiv :: ___compcert_i64_utof :: ___compcert_i64_stof ::
___compcert_i64_utod :: ___compcert_i64_stod :: ___compcert_i64_dtou ::
___compcert_i64_dtos :: ___compcert_va_composite ::
___compcert_va_float64 :: ___compcert_va_int64 :: ___compcert_va_int32 ::
nil).
Definition prog : Clight.program :=
mkprogram composites global_definitions public_idents _main Logic.I.