-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdotprod.v
More file actions
686 lines (672 loc) · 31 KB
/
dotprod.v
File metadata and controls
686 lines (672 loc) · 31 KB
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
679
680
681
682
683
684
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.17".
Definition build_number := "".
Definition build_tag := "".
Definition build_branch := "".
Definition arch := "aarch64".
Definition model := "default".
Definition abi := "apple".
Definition bitsize := 64.
Definition big_endian := false.
Definition source_file := "dotprod.c".
Definition normalized := true.
End Info.
Definition _T : ident := $"T".
Definition ___builtin_annot : ident := $"__builtin_annot".
Definition ___builtin_annot_intval : ident := $"__builtin_annot_intval".
Definition ___builtin_bswap : ident := $"__builtin_bswap".
Definition ___builtin_bswap16 : ident := $"__builtin_bswap16".
Definition ___builtin_bswap32 : ident := $"__builtin_bswap32".
Definition ___builtin_bswap64 : ident := $"__builtin_bswap64".
Definition ___builtin_cls : ident := $"__builtin_cls".
Definition ___builtin_clsl : ident := $"__builtin_clsl".
Definition ___builtin_clsll : ident := $"__builtin_clsll".
Definition ___builtin_clz : ident := $"__builtin_clz".
Definition ___builtin_clzl : ident := $"__builtin_clzl".
Definition ___builtin_clzll : ident := $"__builtin_clzll".
Definition ___builtin_ctz : ident := $"__builtin_ctz".
Definition ___builtin_ctzl : ident := $"__builtin_ctzl".
Definition ___builtin_ctzll : ident := $"__builtin_ctzll".
Definition ___builtin_debug : ident := $"__builtin_debug".
Definition ___builtin_expect : ident := $"__builtin_expect".
Definition ___builtin_fabs : ident := $"__builtin_fabs".
Definition ___builtin_fabsf : ident := $"__builtin_fabsf".
Definition ___builtin_fmadd : ident := $"__builtin_fmadd".
Definition ___builtin_fmax : ident := $"__builtin_fmax".
Definition ___builtin_fmin : ident := $"__builtin_fmin".
Definition ___builtin_fmsub : ident := $"__builtin_fmsub".
Definition ___builtin_fnmadd : ident := $"__builtin_fnmadd".
Definition ___builtin_fnmsub : ident := $"__builtin_fnmsub".
Definition ___builtin_fsqrt : ident := $"__builtin_fsqrt".
Definition ___builtin_membar : ident := $"__builtin_membar".
Definition ___builtin_memcpy_aligned : ident := $"__builtin_memcpy_aligned".
Definition ___builtin_sel : ident := $"__builtin_sel".
Definition ___builtin_sqrt : ident := $"__builtin_sqrt".
Definition ___builtin_unreachable : ident := $"__builtin_unreachable".
Definition ___builtin_va_arg : ident := $"__builtin_va_arg".
Definition ___builtin_va_copy : ident := $"__builtin_va_copy".
Definition ___builtin_va_end : ident := $"__builtin_va_end".
Definition ___builtin_va_start : ident := $"__builtin_va_start".
Definition ___compcert_i64_dtos : ident := $"__compcert_i64_dtos".
Definition ___compcert_i64_dtou : ident := $"__compcert_i64_dtou".
Definition ___compcert_i64_sar : ident := $"__compcert_i64_sar".
Definition ___compcert_i64_sdiv : ident := $"__compcert_i64_sdiv".
Definition ___compcert_i64_shl : ident := $"__compcert_i64_shl".
Definition ___compcert_i64_shr : ident := $"__compcert_i64_shr".
Definition ___compcert_i64_smod : ident := $"__compcert_i64_smod".
Definition ___compcert_i64_smulh : ident := $"__compcert_i64_smulh".
Definition ___compcert_i64_stod : ident := $"__compcert_i64_stod".
Definition ___compcert_i64_stof : ident := $"__compcert_i64_stof".
Definition ___compcert_i64_udiv : ident := $"__compcert_i64_udiv".
Definition ___compcert_i64_umod : ident := $"__compcert_i64_umod".
Definition ___compcert_i64_umulh : ident := $"__compcert_i64_umulh".
Definition ___compcert_i64_utod : ident := $"__compcert_i64_utod".
Definition ___compcert_i64_utof : ident := $"__compcert_i64_utof".
Definition ___compcert_va_composite : ident := $"__compcert_va_composite".
Definition ___compcert_va_float64 : ident := $"__compcert_va_float64".
Definition ___compcert_va_int32 : ident := $"__compcert_va_int32".
Definition ___compcert_va_int64 : ident := $"__compcert_va_int64".
Definition _closure : ident := $"closure".
Definition _delta : ident := $"delta".
Definition _delta_next : ident := $"delta_next".
Definition _do_tasks : ident := $"do_tasks".
Definition _dotprod : ident := $"dotprod".
Definition _dotprod_task : ident := $"dotprod_task".
Definition _dotprod_worker : ident := $"dotprod_worker".
Definition _dtasks : ident := $"dtasks".
Definition _exit_thread : ident := $"exit_thread".
Definition _i : ident := $"i".
Definition _initialize_task : ident := $"initialize_task".
Definition _main : ident := $"main".
Definition _make_dotprod_tasks : ident := $"make_dotprod_tasks".
Definition _make_tasks : ident := $"make_tasks".
Definition _malloc : ident := $"malloc".
Definition _n : ident := $"n".
Definition _num_threads : ident := $"num_threads".
Definition _result : ident := $"result".
Definition _t : ident := $"t".
Definition _task : ident := $"task".
Definition _tasks : ident := $"tasks".
Definition _tp : ident := $"tp".
Definition _vec1 : ident := $"vec1".
Definition _vec2 : ident := $"vec2".
Definition _w : ident := $"w".
Definition _t'1 : ident := 128%positive.
Definition _t'2 : ident := 129%positive.
Definition _t'3 : ident := 130%positive.
Definition _t'4 : ident := 131%positive.
Definition _t'5 : ident := 132%positive.
Definition v_tasks := {|
gvar_info := (tptr (Tstruct _task noattr));
gvar_init := (Init_space 8 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition v_num_threads := {|
gvar_info := tuint;
gvar_init := (Init_space 4 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition v_dtasks := {|
gvar_info := (tptr (Tstruct _dotprod_task noattr));
gvar_init := (Init_space 8 :: nil);
gvar_readonly := false;
gvar_volatile := false
|}.
Definition f_dotprod_worker := {|
fn_return := tvoid;
fn_callconv := cc_default;
fn_params := ((_closure, (tptr tvoid)) :: nil);
fn_vars := nil;
fn_temps := ((_w, (tptr (Tstruct _dotprod_task noattr))) ::
(_result, tdouble) :: (_n, tulong) ::
(_vec1, (tptr tdouble)) :: (_vec2, (tptr tdouble)) ::
(_i, tulong) :: (_t'2, tdouble) :: (_t'1, tdouble) :: nil);
fn_body :=
(Ssequence
(Sset _w
(Ecast (Etempvar _closure (tptr tvoid))
(tptr (Tstruct _dotprod_task noattr))))
(Ssequence
(Sset _result (Econst_float (Float.of_bits (Int64.repr 0)) tdouble))
(Ssequence
(Sset _n
(Efield
(Ederef (Etempvar _w (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _n tulong))
(Ssequence
(Sset _vec1
(Efield
(Ederef (Etempvar _w (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _vec1 (tptr tdouble)))
(Ssequence
(Sset _vec2
(Efield
(Ederef (Etempvar _w (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _vec2 (tptr tdouble)))
(Ssequence
(Ssequence
(Sset _i (Ecast (Econst_int (Int.repr 0) tint) tulong))
(Sloop
(Ssequence
(Sifthenelse (Ebinop Olt (Etempvar _i tulong)
(Etempvar _n tulong) tint)
Sskip
Sbreak)
(Ssequence
(Sset _t'1
(Ederef
(Ebinop Oadd (Etempvar _vec1 (tptr tdouble))
(Etempvar _i tulong) (tptr tdouble)) tdouble))
(Ssequence
(Sset _t'2
(Ederef
(Ebinop Oadd (Etempvar _vec2 (tptr tdouble))
(Etempvar _i tulong) (tptr tdouble)) tdouble))
(Sset _result
(Ebinop Oadd (Etempvar _result tdouble)
(Ebinop Omul (Etempvar _t'1 tdouble)
(Etempvar _t'2 tdouble) tdouble) tdouble)))))
(Sset _i
(Ebinop Oadd (Etempvar _i tulong)
(Econst_int (Int.repr 1) tint) tulong))))
(Sassign
(Efield
(Ederef (Etempvar _w (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _result tdouble)
(Etempvar _result tdouble))))))))
|}.
Definition f_dotprod := {|
fn_return := tdouble;
fn_callconv := cc_default;
fn_params := ((_vec1, (tptr tdouble)) :: (_vec2, (tptr tdouble)) ::
(_n, tulong) :: nil);
fn_vars := nil;
fn_temps := ((_result, tdouble) :: (_T, tuint) :: (_t, tuint) ::
(_delta, tulong) :: (_delta_next, tulong) ::
(_tp, (tptr (Tstruct _dotprod_task noattr))) ::
(_t'4, (tptr (Tstruct _dotprod_task noattr))) ::
(_t'3, (tptr (Tstruct _task noattr))) :: (_t'2, tdouble) ::
(_t'1, (tptr (Tstruct _dotprod_task noattr))) :: nil);
fn_body :=
(Ssequence
(Sset _T (Evar _num_threads tuint))
(Ssequence
(Sset _delta (Ecast (Econst_int (Int.repr 0) tint) tulong))
(Ssequence
(Ssequence
(Sset _t (Econst_int (Int.repr 0) tint))
(Sloop
(Ssequence
(Sifthenelse (Ebinop Olt (Etempvar _t tuint) (Etempvar _T tuint)
tint)
Sskip
Sbreak)
(Ssequence
(Ssequence
(Sset _t'4
(Evar _dtasks (tptr (Tstruct _dotprod_task noattr))))
(Sset _tp
(Ebinop Oadd
(Etempvar _t'4 (tptr (Tstruct _dotprod_task noattr)))
(Etempvar _t tuint)
(tptr (Tstruct _dotprod_task noattr)))))
(Ssequence
(Sassign
(Efield
(Ederef
(Etempvar _tp (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _vec1 (tptr tdouble))
(Ebinop Oadd (Etempvar _vec1 (tptr tdouble))
(Etempvar _delta tulong) (tptr tdouble)))
(Ssequence
(Sassign
(Efield
(Ederef
(Etempvar _tp (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _vec2 (tptr tdouble))
(Ebinop Oadd (Etempvar _vec2 (tptr tdouble))
(Etempvar _delta tulong) (tptr tdouble)))
(Ssequence
(Sset _delta_next
(Ebinop Odiv
(Ebinop Omul
(Ecast
(Ebinop Oadd (Etempvar _t tuint)
(Econst_int (Int.repr 1) tint) tuint) tulong)
(Ecast (Etempvar _n tulong) tulong) tulong)
(Ecast (Etempvar _T tuint) tulong) tulong))
(Ssequence
(Sassign
(Efield
(Ederef
(Etempvar _tp (tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _n tulong)
(Ebinop Osub (Etempvar _delta_next tulong)
(Etempvar _delta tulong) tulong))
(Sset _delta (Etempvar _delta_next tulong))))))))
(Sset _t
(Ebinop Oadd (Etempvar _t tuint) (Econst_int (Int.repr 1) tint)
tuint))))
(Ssequence
(Ssequence
(Sset _t'3 (Evar _tasks (tptr (Tstruct _task noattr))))
(Scall None
(Evar _do_tasks (Tfunction
((tptr (Tstruct _task noattr)) :: tuint :: nil)
tvoid cc_default))
((Etempvar _t'3 (tptr (Tstruct _task noattr))) ::
(Etempvar _T tuint) :: nil)))
(Ssequence
(Sset _result
(Econst_float (Float.of_bits (Int64.repr 0)) tdouble))
(Ssequence
(Ssequence
(Sset _t (Econst_int (Int.repr 0) tint))
(Sloop
(Ssequence
(Sifthenelse (Ebinop Olt (Etempvar _t tuint)
(Etempvar _T tuint) tint)
Sskip
Sbreak)
(Ssequence
(Sset _t'1
(Evar _dtasks (tptr (Tstruct _dotprod_task noattr))))
(Ssequence
(Sset _t'2
(Efield
(Ederef
(Ebinop Oadd
(Etempvar _t'1 (tptr (Tstruct _dotprod_task noattr)))
(Etempvar _t tuint)
(tptr (Tstruct _dotprod_task noattr)))
(Tstruct _dotprod_task noattr)) _result tdouble))
(Sset _result
(Ebinop Oadd (Etempvar _result tdouble)
(Etempvar _t'2 tdouble) tdouble)))))
(Sset _t
(Ebinop Oadd (Etempvar _t tuint)
(Econst_int (Int.repr 1) tint) tuint))))
(Sreturn (Some (Etempvar _result tdouble)))))))))
|}.
Definition f_make_dotprod_tasks := {|
fn_return := tvoid;
fn_callconv := cc_default;
fn_params := ((_T, tuint) :: nil);
fn_vars := nil;
fn_temps := ((_t, tuint) :: (_t'2, (tptr tvoid)) ::
(_t'1, (tptr (Tstruct _task noattr))) ::
(_t'5, (tptr (Tstruct _dotprod_task noattr))) ::
(_t'4, (tptr (Tstruct _dotprod_task noattr))) ::
(_t'3, (tptr (Tstruct _task noattr))) :: nil);
fn_body :=
(Ssequence
(Ssequence
(Scall (Some _t'1)
(Evar _make_tasks (Tfunction (tuint :: nil)
(tptr (Tstruct _task noattr)) cc_default))
((Etempvar _T tuint) :: nil))
(Sassign (Evar _tasks (tptr (Tstruct _task noattr)))
(Etempvar _t'1 (tptr (Tstruct _task noattr)))))
(Ssequence
(Sassign (Evar _num_threads tuint) (Etempvar _T tuint))
(Ssequence
(Ssequence
(Scall (Some _t'2)
(Evar _malloc (Tfunction (tulong :: nil) (tptr tvoid) cc_default))
((Ebinop Omul (Etempvar _T tuint)
(Esizeof (Tstruct _dotprod_task noattr) tulong) tulong) :: nil))
(Sassign (Evar _dtasks (tptr (Tstruct _dotprod_task noattr)))
(Ecast (Etempvar _t'2 (tptr tvoid))
(tptr (Tstruct _dotprod_task noattr)))))
(Ssequence
(Ssequence
(Sset _t'5 (Evar _dtasks (tptr (Tstruct _dotprod_task noattr))))
(Sifthenelse (Eunop Onotbool
(Etempvar _t'5 (tptr (Tstruct _dotprod_task noattr)))
tint)
(Scall None
(Evar _exit_thread (Tfunction (tint :: nil) tvoid cc_default))
((Econst_int (Int.repr 1) tint) :: nil))
Sskip))
(Ssequence
(Sset _t (Econst_int (Int.repr 0) tint))
(Sloop
(Ssequence
(Sifthenelse (Ebinop Olt (Etempvar _t tuint)
(Etempvar _T tuint) tint)
Sskip
Sbreak)
(Ssequence
(Sset _t'3 (Evar _tasks (tptr (Tstruct _task noattr))))
(Ssequence
(Sset _t'4
(Evar _dtasks (tptr (Tstruct _dotprod_task noattr))))
(Scall None
(Evar _initialize_task (Tfunction
((tptr (Tstruct _task noattr)) ::
tuint ::
(tptr (Tfunction
((tptr tvoid) :: nil)
tvoid cc_default)) ::
(tptr tvoid) :: nil) tvoid
cc_default))
((Etempvar _t'3 (tptr (Tstruct _task noattr))) ::
(Etempvar _t tuint) ::
(Evar _dotprod_worker (Tfunction ((tptr tvoid) :: nil)
tvoid cc_default)) ::
(Ebinop Oadd
(Etempvar _t'4 (tptr (Tstruct _dotprod_task noattr)))
(Etempvar _t tuint)
(tptr (Tstruct _dotprod_task noattr))) :: nil)))))
(Sset _t
(Ebinop Oadd (Etempvar _t tuint) (Econst_int (Int.repr 1) tint)
tuint))))))))
|}.
Definition composites : list composite_definition :=
(Composite _dotprod_task Struct
(Member_plain _vec1 (tptr tdouble) :: Member_plain _vec2 (tptr tdouble) ::
Member_plain _n tulong :: Member_plain _result tdouble :: nil)
noattr :: nil).
Definition global_definitions : list (ident * globdef fundef type) :=
((___compcert_va_int32,
Gfun(External (EF_runtime "__compcert_va_int32"
(mksignature (AST.Xptr :: nil) AST.Xint cc_default))
((tptr tvoid) :: nil) tuint cc_default)) ::
(___compcert_va_int64,
Gfun(External (EF_runtime "__compcert_va_int64"
(mksignature (AST.Xptr :: nil) AST.Xlong cc_default))
((tptr tvoid) :: nil) tulong cc_default)) ::
(___compcert_va_float64,
Gfun(External (EF_runtime "__compcert_va_float64"
(mksignature (AST.Xptr :: nil) AST.Xfloat cc_default))
((tptr tvoid) :: nil) tdouble cc_default)) ::
(___compcert_va_composite,
Gfun(External (EF_runtime "__compcert_va_composite"
(mksignature (AST.Xptr :: AST.Xlong :: nil) AST.Xptr
cc_default)) ((tptr tvoid) :: tulong :: nil)
(tptr tvoid) cc_default)) ::
(___compcert_i64_dtos,
Gfun(External (EF_runtime "__compcert_i64_dtos"
(mksignature (AST.Xfloat :: nil) AST.Xlong cc_default))
(tdouble :: nil) tlong cc_default)) ::
(___compcert_i64_dtou,
Gfun(External (EF_runtime "__compcert_i64_dtou"
(mksignature (AST.Xfloat :: nil) AST.Xlong cc_default))
(tdouble :: nil) tulong cc_default)) ::
(___compcert_i64_stod,
Gfun(External (EF_runtime "__compcert_i64_stod"
(mksignature (AST.Xlong :: nil) AST.Xfloat cc_default))
(tlong :: nil) tdouble cc_default)) ::
(___compcert_i64_utod,
Gfun(External (EF_runtime "__compcert_i64_utod"
(mksignature (AST.Xlong :: nil) AST.Xfloat cc_default))
(tulong :: nil) tdouble cc_default)) ::
(___compcert_i64_stof,
Gfun(External (EF_runtime "__compcert_i64_stof"
(mksignature (AST.Xlong :: nil) AST.Xsingle cc_default))
(tlong :: nil) tfloat cc_default)) ::
(___compcert_i64_utof,
Gfun(External (EF_runtime "__compcert_i64_utof"
(mksignature (AST.Xlong :: nil) AST.Xsingle cc_default))
(tulong :: nil) tfloat cc_default)) ::
(___compcert_i64_sdiv,
Gfun(External (EF_runtime "__compcert_i64_sdiv"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tlong :: tlong :: nil) tlong cc_default)) ::
(___compcert_i64_udiv,
Gfun(External (EF_runtime "__compcert_i64_udiv"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tulong :: tulong :: nil) tulong
cc_default)) ::
(___compcert_i64_smod,
Gfun(External (EF_runtime "__compcert_i64_smod"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tlong :: tlong :: nil) tlong cc_default)) ::
(___compcert_i64_umod,
Gfun(External (EF_runtime "__compcert_i64_umod"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tulong :: tulong :: nil) tulong
cc_default)) ::
(___compcert_i64_shl,
Gfun(External (EF_runtime "__compcert_i64_shl"
(mksignature (AST.Xlong :: AST.Xint :: nil) AST.Xlong
cc_default)) (tlong :: tint :: nil) tlong cc_default)) ::
(___compcert_i64_shr,
Gfun(External (EF_runtime "__compcert_i64_shr"
(mksignature (AST.Xlong :: AST.Xint :: nil) AST.Xlong
cc_default)) (tulong :: tint :: nil) tulong cc_default)) ::
(___compcert_i64_sar,
Gfun(External (EF_runtime "__compcert_i64_sar"
(mksignature (AST.Xlong :: AST.Xint :: nil) AST.Xlong
cc_default)) (tlong :: tint :: nil) tlong cc_default)) ::
(___compcert_i64_smulh,
Gfun(External (EF_runtime "__compcert_i64_smulh"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tlong :: tlong :: nil) tlong cc_default)) ::
(___compcert_i64_umulh,
Gfun(External (EF_runtime "__compcert_i64_umulh"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tulong :: tulong :: nil) tulong
cc_default)) ::
(___builtin_bswap64,
Gfun(External (EF_builtin "__builtin_bswap64"
(mksignature (AST.Xlong :: nil) AST.Xlong cc_default))
(tulong :: nil) tulong cc_default)) ::
(___builtin_bswap,
Gfun(External (EF_builtin "__builtin_bswap"
(mksignature (AST.Xint :: nil) AST.Xint cc_default))
(tuint :: nil) tuint cc_default)) ::
(___builtin_bswap32,
Gfun(External (EF_builtin "__builtin_bswap32"
(mksignature (AST.Xint :: nil) AST.Xint cc_default))
(tuint :: nil) tuint cc_default)) ::
(___builtin_bswap16,
Gfun(External (EF_builtin "__builtin_bswap16"
(mksignature (AST.Xint16unsigned :: nil)
AST.Xint16unsigned cc_default)) (tushort :: nil) tushort
cc_default)) ::
(___builtin_clz,
Gfun(External (EF_builtin "__builtin_clz"
(mksignature (AST.Xint :: nil) AST.Xint cc_default))
(tuint :: nil) tint cc_default)) ::
(___builtin_clzl,
Gfun(External (EF_builtin "__builtin_clzl"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tulong :: nil) tint cc_default)) ::
(___builtin_clzll,
Gfun(External (EF_builtin "__builtin_clzll"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tulong :: nil) tint cc_default)) ::
(___builtin_ctz,
Gfun(External (EF_builtin "__builtin_ctz"
(mksignature (AST.Xint :: nil) AST.Xint cc_default))
(tuint :: nil) tint cc_default)) ::
(___builtin_ctzl,
Gfun(External (EF_builtin "__builtin_ctzl"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tulong :: nil) tint cc_default)) ::
(___builtin_ctzll,
Gfun(External (EF_builtin "__builtin_ctzll"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tulong :: nil) tint cc_default)) ::
(___builtin_fabs,
Gfun(External (EF_builtin "__builtin_fabs"
(mksignature (AST.Xfloat :: nil) AST.Xfloat cc_default))
(tdouble :: nil) tdouble cc_default)) ::
(___builtin_fabsf,
Gfun(External (EF_builtin "__builtin_fabsf"
(mksignature (AST.Xsingle :: nil) AST.Xsingle cc_default))
(tfloat :: nil) tfloat cc_default)) ::
(___builtin_fsqrt,
Gfun(External (EF_builtin "__builtin_fsqrt"
(mksignature (AST.Xfloat :: nil) AST.Xfloat cc_default))
(tdouble :: nil) tdouble cc_default)) ::
(___builtin_sqrt,
Gfun(External (EF_builtin "__builtin_sqrt"
(mksignature (AST.Xfloat :: nil) AST.Xfloat cc_default))
(tdouble :: nil) tdouble cc_default)) ::
(___builtin_memcpy_aligned,
Gfun(External (EF_builtin "__builtin_memcpy_aligned"
(mksignature
(AST.Xptr :: AST.Xptr :: AST.Xlong :: AST.Xlong :: nil)
AST.Xvoid cc_default))
((tptr tvoid) :: (tptr tvoid) :: tulong :: tulong :: nil) tvoid
cc_default)) ::
(___builtin_sel,
Gfun(External (EF_builtin "__builtin_sel"
(mksignature (AST.Xbool :: nil) AST.Xvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
(tbool :: nil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(___builtin_annot,
Gfun(External (EF_builtin "__builtin_annot"
(mksignature (AST.Xptr :: nil) AST.Xvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
((tptr tschar) :: nil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(___builtin_annot_intval,
Gfun(External (EF_builtin "__builtin_annot_intval"
(mksignature (AST.Xptr :: AST.Xint :: nil) AST.Xint
cc_default)) ((tptr tschar) :: tint :: nil) tint
cc_default)) ::
(___builtin_membar,
Gfun(External (EF_builtin "__builtin_membar"
(mksignature nil AST.Xvoid cc_default)) nil tvoid
cc_default)) ::
(___builtin_va_start,
Gfun(External (EF_builtin "__builtin_va_start"
(mksignature (AST.Xptr :: nil) AST.Xvoid cc_default))
((tptr tvoid) :: nil) tvoid cc_default)) ::
(___builtin_va_arg,
Gfun(External (EF_builtin "__builtin_va_arg"
(mksignature (AST.Xptr :: AST.Xint :: nil) AST.Xvoid
cc_default)) ((tptr tvoid) :: tuint :: nil) tvoid
cc_default)) ::
(___builtin_va_copy,
Gfun(External (EF_builtin "__builtin_va_copy"
(mksignature (AST.Xptr :: AST.Xptr :: nil) AST.Xvoid
cc_default)) ((tptr tvoid) :: (tptr tvoid) :: nil) tvoid
cc_default)) ::
(___builtin_va_end,
Gfun(External (EF_builtin "__builtin_va_end"
(mksignature (AST.Xptr :: nil) AST.Xvoid cc_default))
((tptr tvoid) :: nil) tvoid cc_default)) ::
(___builtin_unreachable,
Gfun(External (EF_builtin "__builtin_unreachable"
(mksignature nil AST.Xvoid cc_default)) nil tvoid
cc_default)) ::
(___builtin_expect,
Gfun(External (EF_builtin "__builtin_expect"
(mksignature (AST.Xlong :: AST.Xlong :: nil) AST.Xlong
cc_default)) (tlong :: tlong :: nil) tlong cc_default)) ::
(___builtin_cls,
Gfun(External (EF_builtin "__builtin_cls"
(mksignature (AST.Xint :: nil) AST.Xint cc_default))
(tint :: nil) tint cc_default)) ::
(___builtin_clsl,
Gfun(External (EF_builtin "__builtin_clsl"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tlong :: nil) tint cc_default)) ::
(___builtin_clsll,
Gfun(External (EF_builtin "__builtin_clsll"
(mksignature (AST.Xlong :: nil) AST.Xint cc_default))
(tlong :: nil) tint cc_default)) ::
(___builtin_fmadd,
Gfun(External (EF_builtin "__builtin_fmadd"
(mksignature
(AST.Xfloat :: AST.Xfloat :: AST.Xfloat :: nil)
AST.Xfloat cc_default))
(tdouble :: tdouble :: tdouble :: nil) tdouble cc_default)) ::
(___builtin_fmsub,
Gfun(External (EF_builtin "__builtin_fmsub"
(mksignature
(AST.Xfloat :: AST.Xfloat :: AST.Xfloat :: nil)
AST.Xfloat cc_default))
(tdouble :: tdouble :: tdouble :: nil) tdouble cc_default)) ::
(___builtin_fnmadd,
Gfun(External (EF_builtin "__builtin_fnmadd"
(mksignature
(AST.Xfloat :: AST.Xfloat :: AST.Xfloat :: nil)
AST.Xfloat cc_default))
(tdouble :: tdouble :: tdouble :: nil) tdouble cc_default)) ::
(___builtin_fnmsub,
Gfun(External (EF_builtin "__builtin_fnmsub"
(mksignature
(AST.Xfloat :: AST.Xfloat :: AST.Xfloat :: nil)
AST.Xfloat cc_default))
(tdouble :: tdouble :: tdouble :: nil) tdouble cc_default)) ::
(___builtin_fmax,
Gfun(External (EF_builtin "__builtin_fmax"
(mksignature (AST.Xfloat :: AST.Xfloat :: nil) AST.Xfloat
cc_default)) (tdouble :: tdouble :: nil) tdouble
cc_default)) ::
(___builtin_fmin,
Gfun(External (EF_builtin "__builtin_fmin"
(mksignature (AST.Xfloat :: AST.Xfloat :: nil) AST.Xfloat
cc_default)) (tdouble :: tdouble :: nil) tdouble
cc_default)) ::
(___builtin_debug,
Gfun(External (EF_external "__builtin_debug"
(mksignature (AST.Xint :: nil) AST.Xvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|}))
(tint :: nil) tvoid
{|cc_vararg:=(Some 1); cc_unproto:=false; cc_structret:=false|})) ::
(_malloc, Gfun(External EF_malloc (tulong :: nil) (tptr tvoid) cc_default)) ::
(_exit_thread,
Gfun(External (EF_external "exit_thread"
(mksignature (AST.Xint :: nil) AST.Xvoid cc_default))
(tint :: nil) tvoid cc_default)) ::
(_make_tasks,
Gfun(External (EF_external "make_tasks"
(mksignature (AST.Xint :: nil) AST.Xptr cc_default))
(tuint :: nil) (tptr (Tstruct _task noattr)) cc_default)) ::
(_initialize_task,
Gfun(External (EF_external "initialize_task"
(mksignature
(AST.Xptr :: AST.Xint :: AST.Xptr :: AST.Xptr :: nil)
AST.Xvoid cc_default))
((tptr (Tstruct _task noattr)) :: tuint ::
(tptr (Tfunction ((tptr tvoid) :: nil) tvoid cc_default)) ::
(tptr tvoid) :: nil) tvoid cc_default)) ::
(_do_tasks,
Gfun(External (EF_external "do_tasks"
(mksignature (AST.Xptr :: AST.Xint :: nil) AST.Xvoid
cc_default))
((tptr (Tstruct _task noattr)) :: tuint :: nil) tvoid cc_default)) ::
(_tasks, Gvar v_tasks) :: (_num_threads, Gvar v_num_threads) ::
(_dtasks, Gvar v_dtasks) ::
(_dotprod_worker, Gfun(Internal f_dotprod_worker)) ::
(_dotprod, Gfun(Internal f_dotprod)) ::
(_make_dotprod_tasks, Gfun(Internal f_make_dotprod_tasks)) :: nil).
Definition public_idents : list ident :=
(_make_dotprod_tasks :: _dotprod :: _dotprod_worker :: _dtasks ::
_num_threads :: _tasks :: _do_tasks :: _initialize_task :: _make_tasks ::
_exit_thread :: _malloc :: ___builtin_debug :: ___builtin_fmin ::
___builtin_fmax :: ___builtin_fnmsub :: ___builtin_fnmadd ::
___builtin_fmsub :: ___builtin_fmadd :: ___builtin_clsll ::
___builtin_clsl :: ___builtin_cls :: ___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.