-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04D349A94844CDF9.ll
3296 lines (3119 loc) · 174 KB
/
04D349A94844CDF9.ll
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
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; ModuleID = '/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Benchmarks/Misc/oourafft.c'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Benchmarks/Misc/oourafft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.timeval = type { i64, i64 }
@.str = private unnamed_addr constant [45 x i8] c"FFT sanity check failed! Difference is: %le\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%e %e\0A\00", align 1
; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
%tv.i204 = alloca %struct.timeval, align 8
%tv.i199 = alloca %struct.timeval, align 8
%tv.i154 = alloca %struct.timeval, align 8
%tv.i = alloca %struct.timeval, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %tv.i) #18
%call.i = call i32 @gettimeofday(ptr noundef nonnull %tv.i, ptr noundef null) #18
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %tv.i) #18
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %tv.i154) #18
%call.i155 = call i32 @gettimeofday(ptr noundef nonnull %tv.i154, ptr noundef null) #18
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %tv.i154) #18
%call3 = tail call noalias align 16 dereferenceable_or_null(128) ptr @memalign(i64 noundef 16, i64 noundef 128) #19
%call4 = tail call noalias align 16 dereferenceable_or_null(20480) ptr @memalign(i64 noundef 16, i64 noundef 20480) #19
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %call4, align 16, !tbaa !5
%arrayidx4.i = getelementptr inbounds double, ptr %call4, i64 256
store <2 x double> <double 0x3FE6A09E667F3BCD, double 0x3FE6A09E667F3BCD>, ptr %arrayidx4.i, align 16, !tbaa !5
br label %for.body.i
for.body.i: ; preds = %for.body.i, %entry
%indvars.iv.i = phi i64 [ 2, %entry ], [ %indvars.iv.next.i, %for.body.i ]
%0 = trunc i64 %indvars.iv.i to i32
%conv14.i = sitofp i32 %0 to double
%mul15.i = fmul double %conv14.i, 0x3F6921FB54442D18
%call16.i = tail call double @cos(double noundef %mul15.i) #18
%call19.i = tail call double @sin(double noundef %mul15.i) #18
%arrayidx21.i = getelementptr inbounds double, ptr %call4, i64 %indvars.iv.i
store double %call16.i, ptr %arrayidx21.i, align 16, !tbaa !5
%1 = or i64 %indvars.iv.i, 1
%arrayidx24.i = getelementptr inbounds double, ptr %call4, i64 %1
store double %call19.i, ptr %arrayidx24.i, align 8, !tbaa !5
%2 = sub nuw nsw i64 512, %indvars.iv.i
%arrayidx26.i = getelementptr inbounds double, ptr %call4, i64 %2
store double %call19.i, ptr %arrayidx26.i, align 16, !tbaa !5
%3 = sub nuw nsw i64 513, %indvars.iv.i
%arrayidx30.i = getelementptr inbounds double, ptr %call4, i64 %3
store double %call16.i, ptr %arrayidx30.i, align 8, !tbaa !5
%indvars.iv.next.i = add nuw nsw i64 %indvars.iv.i, 2
%cmp12.i = icmp ult i64 %indvars.iv.i, 254
br i1 %cmp12.i, label %for.body.i, label %makewt.exit, !llvm.loop !9
makewt.exit: ; preds = %for.body.i
tail call fastcc void @bitrv2(i32 noundef 512, ptr noundef %call3, ptr noundef nonnull %call4)
%call5 = tail call noalias align 16 dereferenceable_or_null(16384) ptr @memalign(i64 noundef 16, i64 noundef 16384) #19
%call6 = tail call noalias align 16 dereferenceable_or_null(16384) ptr @memalign(i64 noundef 16, i64 noundef 16384) #19
%call7 = tail call noalias align 16 dereferenceable_or_null(16384) ptr @memalign(i64 noundef 16, i64 noundef 16384) #19
br label %for.body.i162
for.body.i162: ; preds = %for.body.i162, %makewt.exit
%indvars.iv.i159 = phi i64 [ 0, %makewt.exit ], [ %indvars.iv.next.i161, %for.body.i162 ]
%seed.06.i = phi i32 [ 0, %makewt.exit ], [ %rem.i, %for.body.i162 ]
%mul.i = mul nuw nsw i32 %seed.06.i, 7141
%add.i = add nuw nsw i32 %mul.i, 54773
%rem.i = urem i32 %add.i, 259200
%conv.i160 = sitofp i32 %rem.i to double
%mul1.i = fmul double %conv.i160, 0x3ED02E85C0898B71
%arrayidx.i = getelementptr inbounds double, ptr %call5, i64 %indvars.iv.i159
store double %mul1.i, ptr %arrayidx.i, align 8, !tbaa !5
%indvars.iv.next.i161 = add nuw nsw i64 %indvars.iv.i159, 1
%4 = and i64 %indvars.iv.next.i161, 4294967295
%exitcond.not.i = icmp eq i64 %4, 2048
br i1 %exitcond.not.i, label %putdata.exit, label %for.body.i162, !llvm.loop !11
putdata.exit: ; preds = %for.body.i162
tail call fastcc void @bitrv2(i32 noundef 2048, ptr noundef %call3, ptr noundef nonnull %call5)
tail call fastcc void @cftfsub(i32 noundef 2048, ptr noundef nonnull %call5, ptr noundef nonnull %call4)
tail call void @cdft(i32 noundef 2048, i32 noundef -1, ptr noundef nonnull %call5, ptr noundef %call3, ptr noundef nonnull %call4)
br label %for.body.i172
for.body.i172: ; preds = %for.body.i172, %putdata.exit
%indvars.iv.i163 = phi i64 [ 0, %putdata.exit ], [ %indvars.iv.next.i169, %for.body.i172 ]
%err.012.i = phi double [ 0.000000e+00, %putdata.exit ], [ %cond.i, %for.body.i172 ]
%seed.011.i = phi i32 [ 0, %putdata.exit ], [ %rem.i166, %for.body.i172 ]
%mul.i164 = mul nuw nsw i32 %seed.011.i, 7141
%add.i165 = add nuw nsw i32 %mul.i164, 54773
%rem.i166 = urem i32 %add.i165, 259200
%conv.i167 = sitofp i32 %rem.i166 to double
%arrayidx.i168 = getelementptr inbounds double, ptr %call5, i64 %indvars.iv.i163
%5 = load double, ptr %arrayidx.i168, align 8, !tbaa !5
%neg.i = fmul double %5, 0xBF50000000000000
%6 = tail call double @llvm.fmuladd.f64(double %conv.i167, double 0x3ED02E85C0898B71, double %neg.i)
%7 = tail call double @llvm.fabs.f64(double %6)
%cmp3.i = fcmp ogt double %err.012.i, %7
%cond.i = select i1 %cmp3.i, double %err.012.i, double %7
%indvars.iv.next.i169 = add nuw nsw i64 %indvars.iv.i163, 1
%8 = and i64 %indvars.iv.next.i169, 4294967295
%exitcond.not.i171 = icmp eq i64 %8, 2048
br i1 %exitcond.not.i171, label %errorcheck.exit, label %for.body.i172, !llvm.loop !12
errorcheck.exit: ; preds = %for.body.i172
%9 = tail call double @llvm.fabs.f64(double %cond.i)
%cmp9 = fcmp ogt double %9, 1.000000e-10
br i1 %cmp9, label %if.then, label %if.end
if.then: ; preds = %errorcheck.exit
%call11 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %cond.i)
tail call void @abort() #20
unreachable
if.end: ; preds = %errorcheck.exit
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16384) %call5, i8 0, i64 16384, i1 false)
br label %for.body.i184
for.body.i184: ; preds = %for.body.i184, %if.end
%indvars.iv.i173 = phi i64 [ 0, %if.end ], [ %indvars.iv.next.i181, %for.body.i184 ]
%seed.06.i174 = phi i32 [ 0, %if.end ], [ %rem.i177, %for.body.i184 ]
%mul.i175 = mul nuw nsw i32 %seed.06.i174, 7141
%add.i176 = add nuw nsw i32 %mul.i175, 54773
%rem.i177 = urem i32 %add.i176, 259200
%conv.i178 = sitofp i32 %rem.i177 to double
%mul1.i179 = fmul double %conv.i178, 0x3ED02E85C0898B71
%arrayidx.i180 = getelementptr inbounds double, ptr %call5, i64 %indvars.iv.i173
store double %mul1.i179, ptr %arrayidx.i180, align 8, !tbaa !5
%indvars.iv.next.i181 = add nuw nsw i64 %indvars.iv.i173, 1
%10 = and i64 %indvars.iv.next.i181, 4294967295
%exitcond.not.i183 = icmp eq i64 %10, 1024
br i1 %exitcond.not.i183, label %putdata.exit185, label %for.body.i184, !llvm.loop !11
putdata.exit185: ; preds = %for.body.i184
tail call fastcc void @bitrv2(i32 noundef 2048, ptr noundef %call3, ptr noundef nonnull %call5)
tail call fastcc void @cftfsub(i32 noundef 2048, ptr noundef nonnull %call5, ptr noundef nonnull %call4)
br label %for.body
for.body: ; preds = %for.body, %putdata.exit185
%indvars.iv = phi i64 [ 0, %putdata.exit185 ], [ %indvars.iv.next.1, %for.body ]
%11 = shl nuw nsw i64 %indvars.iv, 1
%12 = or i64 %11, 1
%arrayidx = getelementptr inbounds double, ptr %call5, i64 %12
%13 = load double, ptr %arrayidx, align 8, !tbaa !5
%fneg = fneg double %13
store double %fneg, ptr %arrayidx, align 8, !tbaa !5
%indvars.iv.next = shl nuw i64 %indvars.iv, 1
%14 = or i64 %indvars.iv.next, 3
%arrayidx.1 = getelementptr inbounds double, ptr %call5, i64 %14
%15 = load double, ptr %arrayidx.1, align 8, !tbaa !5
%fneg.1 = fneg double %15
store double %fneg.1, ptr %arrayidx.1, align 8, !tbaa !5
%indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
%exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 1024
br i1 %exitcond.not.1, label %for.end, label %for.body, !llvm.loop !13
for.end: ; preds = %for.body
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16384) %call7, i8 0, i64 16384, i1 false)
br label %for.body.i197
for.body.i197: ; preds = %for.body.i197, %for.end
%indvars.iv.i186 = phi i64 [ 0, %for.end ], [ %indvars.iv.next.i194, %for.body.i197 ]
%seed.06.i187 = phi i32 [ 0, %for.end ], [ %rem.i190, %for.body.i197 ]
%mul.i188 = mul nuw nsw i32 %seed.06.i187, 7141
%add.i189 = add nuw nsw i32 %mul.i188, 54773
%rem.i190 = urem i32 %add.i189, 259200
%conv.i191 = sitofp i32 %rem.i190 to double
%mul1.i192 = fmul double %conv.i191, 0x3ED02E85C0898B71
%arrayidx.i193 = getelementptr inbounds double, ptr %call7, i64 %indvars.iv.i186
store double %mul1.i192, ptr %arrayidx.i193, align 8, !tbaa !5
%indvars.iv.next.i194 = add nuw nsw i64 %indvars.iv.i186, 1
%16 = and i64 %indvars.iv.next.i194, 4294967295
%exitcond.not.i196 = icmp eq i64 %16, 1024
br i1 %exitcond.not.i196, label %putdata.exit198, label %for.body.i197, !llvm.loop !11
putdata.exit198: ; preds = %for.body.i197
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %tv.i199) #18
%call.i200 = call i32 @gettimeofday(ptr noundef nonnull %tv.i199, ptr noundef null) #18
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %tv.i199) #18
%invariant.gep = getelementptr double, ptr %call6, i64 -1
br label %for.body23
for.body23: ; preds = %putdata.exit198, %for.end55
%i.0211 = phi i32 [ 0, %putdata.exit198 ], [ %inc57, %for.end55 ]
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16384) %call6, ptr noundef nonnull align 16 dereferenceable(16384) %call7, i64 16384, i1 false)
tail call fastcc void @bitrv2(i32 noundef 2048, ptr noundef %call3, ptr noundef %call6)
tail call fastcc void @cftfsub(i32 noundef 2048, ptr noundef %call6, ptr noundef nonnull %call4)
br label %vector.body
vector.body: ; preds = %vector.body, %for.body23
%index = phi i64 [ 0, %for.body23 ], [ %index.next, %vector.body ]
%17 = shl nuw nsw i64 %index, 1
%18 = getelementptr inbounds double, ptr %call6, i64 %17
%wide.vec = load <4 x double>, ptr %18, align 16, !tbaa !5
%strided.vec = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%strided.vec229 = shufflevector <4 x double> %wide.vec, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%19 = getelementptr inbounds double, ptr %call5, i64 %17
%wide.vec230 = load <4 x double>, ptr %19, align 16, !tbaa !5
%strided.vec231 = shufflevector <4 x double> %wide.vec230, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%strided.vec232 = shufflevector <4 x double> %wide.vec230, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%20 = or i64 %17, 1
%21 = fneg <2 x double> %strided.vec229
%22 = fmul <2 x double> %strided.vec232, %21
%23 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %strided.vec, <2 x double> %strided.vec231, <2 x double> %22)
%24 = fmul <2 x double> %strided.vec231, %strided.vec229
%25 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %strided.vec, <2 x double> %strided.vec232, <2 x double> %24)
%gep = getelementptr double, ptr %invariant.gep, i64 %20
%interleaved.vec = shufflevector <2 x double> %23, <2 x double> %25, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %interleaved.vec, ptr %gep, align 16, !tbaa !5
%index.next = add nuw i64 %index, 2
%26 = icmp eq i64 %index.next, 1024
br i1 %26, label %for.end55, label %vector.body, !llvm.loop !14
for.end55: ; preds = %vector.body
tail call void @cdft(i32 noundef 2048, i32 noundef -1, ptr noundef nonnull %call6, ptr noundef %call3, ptr noundef nonnull %call4)
%inc57 = add nuw nsw i32 %i.0211, 1
%exitcond222.not = icmp eq i32 %inc57, 150000
br i1 %exitcond222.not, label %for.end58, label %for.body23, !llvm.loop !17
for.end58: ; preds = %for.end55
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %tv.i204) #18
%call.i205 = call i32 @gettimeofday(ptr noundef nonnull %tv.i204, ptr noundef null) #18
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %tv.i204) #18
br label %for.body66
for.body66: ; preds = %for.end58, %for.body66
%indvars.iv223 = phi i64 [ 0, %for.end58 ], [ %indvars.iv.next224, %for.body66 ]
%27 = shl nuw nsw i64 %indvars.iv223, 1
%arrayidx69 = getelementptr inbounds double, ptr %call6, i64 %27
%28 = load double, ptr %arrayidx69, align 16, !tbaa !5
%29 = tail call double @llvm.fabs.f64(double %28)
%cmp70 = fcmp ogt double %29, 1.000000e-09
%cond = select i1 %cmp70, double %28, double 0.000000e+00
%30 = or i64 %27, 1
%arrayidx78 = getelementptr inbounds double, ptr %call6, i64 %30
%31 = load double, ptr %arrayidx78, align 8, !tbaa !5
%32 = tail call double @llvm.fabs.f64(double %31)
%cmp79 = fcmp ogt double %32, 1.000000e-09
%cond88 = select i1 %cmp79, double %31, double 0.000000e+00
%call89 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %cond, double noundef %cond88)
%indvars.iv.next224 = add nuw nsw i64 %indvars.iv223, 1
%exitcond228.not = icmp eq i64 %indvars.iv.next224, 1024
br i1 %exitcond228.not, label %for.end92, label %for.body66, !llvm.loop !18
for.end92: ; preds = %for.body66
tail call void @free(ptr noundef %call5) #18
tail call void @free(ptr noundef %call4) #18
tail call void @free(ptr noundef %call3) #18
tail call void @free(ptr noundef nonnull %call6) #18
tail call void @free(ptr noundef %call7) #18
ret i32 0
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: nofree nounwind uwtable
define dso_local double @get_time() local_unnamed_addr #2 {
entry:
%tv = alloca %struct.timeval, align 8
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %tv) #18
%call = call i32 @gettimeofday(ptr noundef nonnull %tv, ptr noundef null) #18
%0 = load i64, ptr %tv, align 8, !tbaa !19
%conv = sitofp i64 %0 to double
%tv_usec = getelementptr inbounds %struct.timeval, ptr %tv, i64 0, i32 1
%1 = load i64, ptr %tv_usec, align 8, !tbaa !22
%conv1 = sitofp i64 %1 to double
%2 = tail call double @llvm.fmuladd.f64(double %conv1, double 0x3EB0C6F7A0B5ED8D, double %conv)
call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %tv) #18
ret double %2
}
; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized,aligned") allocsize(1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @memalign(i64 allocalign noundef, i64 noundef) local_unnamed_addr #3
; Function Attrs: nofree nounwind memory(write, argmem: readwrite) uwtable
define dso_local void @makewt(i32 noundef %nw, ptr nocapture noundef %ip, ptr nocapture noundef %w) local_unnamed_addr #4 {
entry:
%cmp = icmp sgt i32 %nw, 2
br i1 %cmp, label %if.then, label %if.end32
if.then: ; preds = %entry
%shr = lshr i32 %nw, 1
%conv = sitofp i32 %shr to double
%div = fdiv double 0x3FE921FB54442D18, %conv
store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %w, align 8, !tbaa !5
%mul = fmul double %div, %conv
%call3 = tail call double @cos(double noundef %mul) #18
%idxprom = zext i32 %shr to i64
%arrayidx4 = getelementptr inbounds double, ptr %w, i64 %idxprom
store double %call3, ptr %arrayidx4, align 8, !tbaa !5
%add = add nuw nsw i32 %shr, 1
%idxprom7 = zext i32 %add to i64
%arrayidx8 = getelementptr inbounds double, ptr %w, i64 %idxprom7
store double %call3, ptr %arrayidx8, align 8, !tbaa !5
%cmp9 = icmp ugt i32 %nw, 5
br i1 %cmp9, label %for.body.preheader, label %if.end32
for.body.preheader: ; preds = %if.then
%0 = zext i32 %nw to i64
br label %for.body
for.body: ; preds = %for.body.preheader, %for.body
%indvars.iv = phi i64 [ 2, %for.body.preheader ], [ %indvars.iv.next, %for.body ]
%1 = trunc i64 %indvars.iv to i32
%conv14 = sitofp i32 %1 to double
%mul15 = fmul double %div, %conv14
%call16 = tail call double @cos(double noundef %mul15) #18
%call19 = tail call double @sin(double noundef %mul15) #18
%arrayidx21 = getelementptr inbounds double, ptr %w, i64 %indvars.iv
store double %call16, ptr %arrayidx21, align 8, !tbaa !5
%2 = or i64 %indvars.iv, 1
%arrayidx24 = getelementptr inbounds double, ptr %w, i64 %2
store double %call19, ptr %arrayidx24, align 8, !tbaa !5
%3 = sub nsw i64 %0, %indvars.iv
%arrayidx26 = getelementptr inbounds double, ptr %w, i64 %3
store double %call19, ptr %arrayidx26, align 8, !tbaa !5
%4 = add nsw i64 %3, 1
%arrayidx30 = getelementptr inbounds double, ptr %w, i64 %4
store double %call16, ptr %arrayidx30, align 8, !tbaa !5
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
%cmp12 = icmp ult i64 %indvars.iv.next, %idxprom
br i1 %cmp12, label %for.body, label %for.end, !llvm.loop !9
for.end: ; preds = %for.body
tail call fastcc void @bitrv2(i32 noundef %nw, ptr noundef %ip, ptr noundef nonnull %w)
br label %if.end32
if.end32: ; preds = %if.then, %for.end, %entry
ret void
}
; Function Attrs: nofree norecurse nosync nounwind memory(argmem: write) uwtable
define dso_local void @putdata(i32 noundef %nini, i32 noundef %nend, ptr nocapture noundef writeonly %a) local_unnamed_addr #5 {
entry:
%cmp.not4 = icmp slt i32 %nend, %nini
br i1 %cmp.not4, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %entry
%0 = sext i32 %nini to i64
%1 = add i32 %nend, 1
%2 = sub i32 %1, %nini
%xtraiter = and i32 %2, 1
%3 = icmp eq i32 %nend, %nini
br i1 %3, label %for.end.loopexit.unr-lcssa, label %for.body.preheader.new
for.body.preheader.new: ; preds = %for.body.preheader
%unroll_iter = and i32 %2, -2
br label %for.body
for.body: ; preds = %for.body, %for.body.preheader.new
%indvars.iv = phi i64 [ %0, %for.body.preheader.new ], [ %indvars.iv.next.1, %for.body ]
%seed.06 = phi i32 [ 0, %for.body.preheader.new ], [ %rem.1, %for.body ]
%niter = phi i32 [ 0, %for.body.preheader.new ], [ %niter.next.1, %for.body ]
%mul = mul nuw nsw i32 %seed.06, 7141
%add = add nuw nsw i32 %mul, 54773
%rem = urem i32 %add, 259200
%conv = sitofp i32 %rem to double
%mul1 = fmul double %conv, 0x3ED02E85C0898B71
%arrayidx = getelementptr inbounds double, ptr %a, i64 %indvars.iv
store double %mul1, ptr %arrayidx, align 8, !tbaa !5
%indvars.iv.next = add nsw i64 %indvars.iv, 1
%mul.1 = mul nuw nsw i32 %rem, 7141
%add.1 = add nuw nsw i32 %mul.1, 54773
%rem.1 = urem i32 %add.1, 259200
%conv.1 = sitofp i32 %rem.1 to double
%mul1.1 = fmul double %conv.1, 0x3ED02E85C0898B71
%arrayidx.1 = getelementptr inbounds double, ptr %a, i64 %indvars.iv.next
store double %mul1.1, ptr %arrayidx.1, align 8, !tbaa !5
%indvars.iv.next.1 = add nsw i64 %indvars.iv, 2
%niter.next.1 = add i32 %niter, 2
%niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
br i1 %niter.ncmp.1, label %for.end.loopexit.unr-lcssa.loopexit, label %for.body, !llvm.loop !11
for.end.loopexit.unr-lcssa.loopexit: ; preds = %for.body
%4 = mul nuw nsw i32 %rem.1, 7141
%5 = add nuw nsw i32 %4, 54773
%6 = urem i32 %5, 259200
%7 = sitofp i32 %6 to double
%8 = fmul double %7, 0x3ED02E85C0898B71
br label %for.end.loopexit.unr-lcssa
for.end.loopexit.unr-lcssa: ; preds = %for.end.loopexit.unr-lcssa.loopexit, %for.body.preheader
%indvars.iv.unr = phi i64 [ %0, %for.body.preheader ], [ %indvars.iv.next.1, %for.end.loopexit.unr-lcssa.loopexit ]
%seed.06.unr = phi double [ 0x3FCB0C639E67694F, %for.body.preheader ], [ %8, %for.end.loopexit.unr-lcssa.loopexit ]
%lcmp.mod.not = icmp eq i32 %xtraiter, 0
br i1 %lcmp.mod.not, label %for.end, label %for.body.epil
for.body.epil: ; preds = %for.end.loopexit.unr-lcssa
%arrayidx.epil = getelementptr inbounds double, ptr %a, i64 %indvars.iv.unr
store double %seed.06.unr, ptr %arrayidx.epil, align 8, !tbaa !5
br label %for.end
for.end: ; preds = %for.body.epil, %for.end.loopexit.unr-lcssa, %entry
ret void
}
; Function Attrs: nofree nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @cdft(i32 noundef %n, i32 noundef %isgn, ptr noundef %a, ptr nocapture noundef %ip, ptr nocapture noundef readonly %w) local_unnamed_addr #6 {
entry:
%cmp = icmp sgt i32 %n, 4
br i1 %cmp, label %if.then, label %if.else3
if.then: ; preds = %entry
%cmp1 = icmp sgt i32 %isgn, -1
br i1 %cmp1, label %if.then2, label %if.else
if.then2: ; preds = %if.then
tail call fastcc void @bitrv2(i32 noundef %n, ptr noundef %ip, ptr noundef %a)
br label %if.end7.sink.split
if.else: ; preds = %if.then
store i32 0, ptr %ip, align 4, !tbaa !23
%cmp485.i = icmp ugt i32 %n, 8
br i1 %cmp485.i, label %while.body.i, label %while.end.thread.i
while.body.i: ; preds = %if.else, %for.end.i
%m.0487.i = phi i32 [ %shl6.i, %for.end.i ], [ 1, %if.else ]
%l.0486.i = phi i32 [ %shr.i, %for.end.i ], [ %n, %if.else ]
%shr.i = ashr i32 %l.0486.i, 1
%cmp1483.i = icmp sgt i32 %m.0487.i, 0
br i1 %cmp1483.i, label %for.body.preheader.i, label %for.end.i
for.body.preheader.i: ; preds = %while.body.i
%0 = zext i32 %m.0487.i to i64
%min.iters.check = icmp ult i32 %m.0487.i, 8
br i1 %min.iters.check, label %for.body.i.preheader, label %vector.ph
vector.ph: ; preds = %for.body.preheader.i
%n.vec = and i64 %0, 4294967288
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %shr.i, i64 0
%broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splatinsert44 = insertelement <4 x i32> poison, i32 %shr.i, i64 0
%broadcast.splat45 = shufflevector <4 x i32> %broadcast.splatinsert44, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%1 = getelementptr inbounds i32, ptr %ip, i64 %index
%wide.load = load <4 x i32>, ptr %1, align 4, !tbaa !23
%2 = getelementptr inbounds i32, ptr %1, i64 4
%wide.load43 = load <4 x i32>, ptr %2, align 4, !tbaa !23
%3 = add nsw <4 x i32> %wide.load, %broadcast.splat
%4 = add nsw <4 x i32> %wide.load43, %broadcast.splat45
%5 = add nuw nsw i64 %index, %0
%6 = getelementptr inbounds i32, ptr %ip, i64 %5
store <4 x i32> %3, ptr %6, align 4, !tbaa !23
%7 = getelementptr inbounds i32, ptr %6, i64 4
store <4 x i32> %4, ptr %7, align 4, !tbaa !23
%index.next = add nuw i64 %index, 8
%8 = icmp eq i64 %index.next, %n.vec
br i1 %8, label %middle.block, label %vector.body, !llvm.loop !25
middle.block: ; preds = %vector.body
%cmp.n = icmp eq i64 %n.vec, %0
br i1 %cmp.n, label %for.end.i, label %for.body.i.preheader
for.body.i.preheader: ; preds = %for.body.preheader.i, %middle.block
%indvars.iv.i.ph = phi i64 [ 0, %for.body.preheader.i ], [ %n.vec, %middle.block ]
br label %for.body.i
for.body.i: ; preds = %for.body.i.preheader, %for.body.i
%indvars.iv.i = phi i64 [ %indvars.iv.next.i, %for.body.i ], [ %indvars.iv.i.ph, %for.body.i.preheader ]
%arrayidx2.i = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv.i
%9 = load i32, ptr %arrayidx2.i, align 4, !tbaa !23
%add.i = add nsw i32 %9, %shr.i
%10 = add nuw nsw i64 %indvars.iv.i, %0
%arrayidx5.i = getelementptr inbounds i32, ptr %ip, i64 %10
store i32 %add.i, ptr %arrayidx5.i, align 4, !tbaa !23
%indvars.iv.next.i = add nuw nsw i64 %indvars.iv.i, 1
%exitcond.not.i = icmp eq i64 %indvars.iv.next.i, %0
br i1 %exitcond.not.i, label %for.end.i, label %for.body.i, !llvm.loop !26
for.end.i: ; preds = %for.body.i, %middle.block, %while.body.i
%shl6.i = shl i32 %m.0487.i, 1
%shl.i = shl i32 %m.0487.i, 4
%cmp.i = icmp slt i32 %shl.i, %shr.i
br i1 %cmp.i, label %while.body.i, label %while.end.i, !llvm.loop !27
while.end.i: ; preds = %for.end.i
%mul.i = shl i32 %m.0487.i, 2
%cmp8.i = icmp eq i32 %shl.i, %shr.i
br i1 %cmp8.i, label %for.cond9.preheader.i, label %if.else.i
while.end.thread.i: ; preds = %if.else
%cmp8546.i = icmp eq i32 %n, 8
br i1 %cmp8546.i, label %for.cond12.preheader.lr.ph.i, label %if.else.i
for.cond9.preheader.i: ; preds = %while.end.i
%cmp10495.i = icmp sgt i32 %shl6.i, 0
br i1 %cmp10495.i, label %for.cond12.preheader.lr.ph.i, label %bitrv2conj.exit
for.cond12.preheader.lr.ph.i: ; preds = %for.cond9.preheader.i, %while.end.thread.i
%m.0.lcssa547555.i = phi i32 [ %shl6.i, %for.cond9.preheader.i ], [ 1, %while.end.thread.i ]
%mul549554.i = phi i32 [ %mul.i, %for.cond9.preheader.i ], [ 2, %while.end.thread.i ]
%mul45.i = shl nsw i32 %m.0.lcssa547555.i, 2
%add155.i = or i32 %mul549554.i, 1
%11 = sext i32 %mul549554.i to i64
%wide.trip.count537.i = zext i32 %m.0.lcssa547555.i to i64
br label %for.cond12.preheader.i
for.cond12.preheader.i: ; preds = %for.end119.i, %for.cond12.preheader.lr.ph.i
%indvars.iv532.i = phi i64 [ 0, %for.cond12.preheader.lr.ph.i ], [ %indvars.iv.next533.i, %for.end119.i ]
%cmp13493.not.i = icmp eq i64 %indvars.iv532.i, 0
br i1 %cmp13493.not.i, label %for.end119.i, label %for.body14.lr.ph.i
for.body14.lr.ph.i: ; preds = %for.cond12.preheader.i
%arrayidx17.i = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv532.i
%12 = load i32, ptr %arrayidx17.i, align 4, !tbaa !23
%13 = sext i32 %12 to i64
%indvars.iv532.tr.i = trunc i64 %indvars.iv532.i to i32
%14 = shl i32 %indvars.iv532.tr.i, 1
br label %for.body14.i
for.body14.i: ; preds = %for.body14.i, %for.body14.lr.ph.i
%indvars.iv518.i = phi i64 [ 0, %for.body14.lr.ph.i ], [ %indvars.iv.next519.i, %for.body14.i ]
%15 = shl nuw nsw i64 %indvars.iv518.i, 1
%16 = add nsw i64 %15, %13
%arrayidx21.i = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv518.i
%17 = load i32, ptr %arrayidx21.i, align 4, !tbaa !23
%add22.i = add nsw i32 %17, %14
%arrayidx24.i = getelementptr inbounds double, ptr %a, i64 %16
%18 = load double, ptr %arrayidx24.i, align 8, !tbaa !5
%19 = add nsw i64 %16, 1
%arrayidx27.i = getelementptr inbounds double, ptr %a, i64 %19
%20 = load double, ptr %arrayidx27.i, align 8, !tbaa !5
%fneg.i = fneg double %20
%idxprom28.i = sext i32 %add22.i to i64
%arrayidx29.i = getelementptr inbounds double, ptr %a, i64 %idxprom28.i
%21 = load double, ptr %arrayidx29.i, align 8, !tbaa !5
%add30.i = add nsw i32 %add22.i, 1
%idxprom31.i = sext i32 %add30.i to i64
%arrayidx32.i = getelementptr inbounds double, ptr %a, i64 %idxprom31.i
%22 = load double, ptr %arrayidx32.i, align 8, !tbaa !5
%fneg33.i = fneg double %22
store double %21, ptr %arrayidx24.i, align 8, !tbaa !5
store double %fneg33.i, ptr %arrayidx27.i, align 8, !tbaa !5
store double %18, ptr %arrayidx29.i, align 8, !tbaa !5
store double %fneg.i, ptr %arrayidx32.i, align 8, !tbaa !5
%23 = add nsw i64 %16, %11
%add46.i = add nsw i32 %add22.i, %mul45.i
%arrayidx48.i = getelementptr inbounds double, ptr %a, i64 %23
%24 = load double, ptr %arrayidx48.i, align 8, !tbaa !5
%25 = add nsw i64 %23, 1
%arrayidx51.i = getelementptr inbounds double, ptr %a, i64 %25
%26 = load double, ptr %arrayidx51.i, align 8, !tbaa !5
%fneg52.i = fneg double %26
%idxprom53.i = sext i32 %add46.i to i64
%arrayidx54.i = getelementptr inbounds double, ptr %a, i64 %idxprom53.i
%27 = load double, ptr %arrayidx54.i, align 8, !tbaa !5
%add55.i = add nsw i32 %add46.i, 1
%idxprom56.i = sext i32 %add55.i to i64
%arrayidx57.i = getelementptr inbounds double, ptr %a, i64 %idxprom56.i
%28 = load double, ptr %arrayidx57.i, align 8, !tbaa !5
%fneg58.i = fneg double %28
store double %27, ptr %arrayidx48.i, align 8, !tbaa !5
store double %fneg58.i, ptr %arrayidx51.i, align 8, !tbaa !5
store double %24, ptr %arrayidx54.i, align 8, !tbaa !5
store double %fneg52.i, ptr %arrayidx57.i, align 8, !tbaa !5
%29 = add nsw i64 %23, %11
%sub.i = sub nsw i32 %add46.i, %mul549554.i
%arrayidx71.i = getelementptr inbounds double, ptr %a, i64 %29
%30 = load double, ptr %arrayidx71.i, align 8, !tbaa !5
%31 = add nsw i64 %29, 1
%arrayidx74.i = getelementptr inbounds double, ptr %a, i64 %31
%32 = load double, ptr %arrayidx74.i, align 8, !tbaa !5
%fneg75.i = fneg double %32
%idxprom76.i = sext i32 %sub.i to i64
%arrayidx77.i = getelementptr inbounds double, ptr %a, i64 %idxprom76.i
%33 = load double, ptr %arrayidx77.i, align 8, !tbaa !5
%add78.i = add nsw i32 %sub.i, 1
%idxprom79.i = sext i32 %add78.i to i64
%arrayidx80.i = getelementptr inbounds double, ptr %a, i64 %idxprom79.i
%34 = load double, ptr %arrayidx80.i, align 8, !tbaa !5
%fneg81.i = fneg double %34
store double %33, ptr %arrayidx71.i, align 8, !tbaa !5
store double %fneg81.i, ptr %arrayidx74.i, align 8, !tbaa !5
store double %30, ptr %arrayidx77.i, align 8, !tbaa !5
store double %fneg75.i, ptr %arrayidx80.i, align 8, !tbaa !5
%35 = add nsw i64 %29, %11
%add94.i = add nsw i32 %sub.i, %mul45.i
%arrayidx96.i = getelementptr inbounds double, ptr %a, i64 %35
%36 = load double, ptr %arrayidx96.i, align 8, !tbaa !5
%37 = add nsw i64 %35, 1
%arrayidx99.i = getelementptr inbounds double, ptr %a, i64 %37
%38 = load double, ptr %arrayidx99.i, align 8, !tbaa !5
%fneg100.i = fneg double %38
%idxprom101.i = sext i32 %add94.i to i64
%arrayidx102.i = getelementptr inbounds double, ptr %a, i64 %idxprom101.i
%39 = load double, ptr %arrayidx102.i, align 8, !tbaa !5
%add103.i = add nsw i32 %add94.i, 1
%idxprom104.i = sext i32 %add103.i to i64
%arrayidx105.i = getelementptr inbounds double, ptr %a, i64 %idxprom104.i
%40 = load double, ptr %arrayidx105.i, align 8, !tbaa !5
%fneg106.i = fneg double %40
store double %39, ptr %arrayidx96.i, align 8, !tbaa !5
store double %fneg106.i, ptr %arrayidx99.i, align 8, !tbaa !5
store double %36, ptr %arrayidx102.i, align 8, !tbaa !5
store double %fneg100.i, ptr %arrayidx105.i, align 8, !tbaa !5
%indvars.iv.next519.i = add nuw nsw i64 %indvars.iv518.i, 1
%exitcond531.not.i = icmp eq i64 %indvars.iv.next519.i, %indvars.iv532.i
br i1 %exitcond531.not.i, label %for.end119.i.loopexit, label %for.body14.i, !llvm.loop !28
for.end119.i.loopexit: ; preds = %for.body14.i
%41 = add nsw i32 %12, %14
br label %for.end119.i
for.end119.i: ; preds = %for.end119.i.loopexit, %for.cond12.preheader.i
%add123.i = phi i32 [ %41, %for.end119.i.loopexit ], [ 0, %for.cond12.preheader.i ]
%add124.i = add nsw i32 %add123.i, 1
%idxprom125.i = sext i32 %add124.i to i64
%arrayidx126.i = getelementptr inbounds double, ptr %a, i64 %idxprom125.i
%42 = load double, ptr %arrayidx126.i, align 8, !tbaa !5
%fneg127.i = fneg double %42
store double %fneg127.i, ptr %arrayidx126.i, align 8, !tbaa !5
%add131.i = add nsw i32 %add123.i, %mul549554.i
%add132.i = add nsw i32 %add131.i, %mul549554.i
%idxprom133.i = sext i32 %add131.i to i64
%arrayidx134.i = getelementptr inbounds double, ptr %a, i64 %idxprom133.i
%43 = load double, ptr %arrayidx134.i, align 8, !tbaa !5
%add135.i = add nsw i32 %add131.i, 1
%idxprom136.i = sext i32 %add135.i to i64
%arrayidx137.i = getelementptr inbounds double, ptr %a, i64 %idxprom136.i
%44 = load double, ptr %arrayidx137.i, align 8, !tbaa !5
%fneg138.i = fneg double %44
%idxprom139.i = sext i32 %add132.i to i64
%arrayidx140.i = getelementptr inbounds double, ptr %a, i64 %idxprom139.i
%45 = load double, ptr %arrayidx140.i, align 8, !tbaa !5
%add141.i = add nsw i32 %add132.i, 1
%idxprom142.i = sext i32 %add141.i to i64
%arrayidx143.i = getelementptr inbounds double, ptr %a, i64 %idxprom142.i
%46 = load double, ptr %arrayidx143.i, align 8, !tbaa !5
%fneg144.i = fneg double %46
store double %45, ptr %arrayidx134.i, align 8, !tbaa !5
store double %fneg144.i, ptr %arrayidx137.i, align 8, !tbaa !5
store double %43, ptr %arrayidx140.i, align 8, !tbaa !5
store double %fneg138.i, ptr %arrayidx143.i, align 8, !tbaa !5
%add156.i = add i32 %add155.i, %add132.i
%idxprom157.i = sext i32 %add156.i to i64
%arrayidx158.i = getelementptr inbounds double, ptr %a, i64 %idxprom157.i
%47 = load double, ptr %arrayidx158.i, align 8, !tbaa !5
%fneg159.i = fneg double %47
store double %fneg159.i, ptr %arrayidx158.i, align 8, !tbaa !5
%indvars.iv.next533.i = add nuw nsw i64 %indvars.iv532.i, 1
%exitcond538.not.i = icmp eq i64 %indvars.iv.next533.i, %wide.trip.count537.i
br i1 %exitcond538.not.i, label %bitrv2conj.exit, label %for.cond12.preheader.i, !llvm.loop !29
if.else.i: ; preds = %while.end.thread.i, %while.end.i
%mul550.i = phi i32 [ 2, %while.end.thread.i ], [ %mul.i, %while.end.i ]
%m.0.lcssa548.i = phi i32 [ 1, %while.end.thread.i ], [ %shl6.i, %while.end.i ]
%arrayidx166.i = getelementptr inbounds double, ptr %a, i64 1
%48 = load double, ptr %arrayidx166.i, align 8, !tbaa !5
%fneg167.i = fneg double %48
store double %fneg167.i, ptr %arrayidx166.i, align 8, !tbaa !5
%add169.i = or i32 %mul550.i, 1
%idxprom170.i = sext i32 %add169.i to i64
%arrayidx171.i = getelementptr inbounds double, ptr %a, i64 %idxprom170.i
%49 = load double, ptr %arrayidx171.i, align 8, !tbaa !5
%fneg172.i = fneg double %49
store double %fneg172.i, ptr %arrayidx171.i, align 8, !tbaa !5
%cmp177491.i = icmp sgt i32 %m.0.lcssa548.i, 1
br i1 %cmp177491.i, label %for.cond179.preheader.lr.ph.i, label %bitrv2conj.exit
for.cond179.preheader.lr.ph.i: ; preds = %if.else.i
%50 = sext i32 %mul550.i to i64
%wide.trip.count516.i = zext i32 %m.0.lcssa548.i to i64
br label %for.cond179.preheader.i
for.cond179.preheader.i: ; preds = %for.end238.i, %for.cond179.preheader.lr.ph.i
%indvars.iv511.i = phi i64 [ 1, %for.cond179.preheader.lr.ph.i ], [ %indvars.iv.next512.i, %for.end238.i ]
%arrayidx184.i = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv511.i
%51 = load i32, ptr %arrayidx184.i, align 4, !tbaa !23
%52 = sext i32 %51 to i64
%indvars.iv511.tr.i = trunc i64 %indvars.iv511.i to i32
%53 = shl i32 %indvars.iv511.tr.i, 1
br label %for.body181.i
for.body181.i: ; preds = %for.body181.i, %for.cond179.preheader.i
%indvars.iv501.i = phi i64 [ 0, %for.cond179.preheader.i ], [ %indvars.iv.next502.i, %for.body181.i ]
%54 = shl nuw nsw i64 %indvars.iv501.i, 1
%55 = add nsw i64 %54, %52
%arrayidx188.i = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv501.i
%56 = load i32, ptr %arrayidx188.i, align 4, !tbaa !23
%add189.i = add nsw i32 %56, %53
%arrayidx191.i = getelementptr inbounds double, ptr %a, i64 %55
%57 = load double, ptr %arrayidx191.i, align 8, !tbaa !5
%58 = add nsw i64 %55, 1
%arrayidx194.i = getelementptr inbounds double, ptr %a, i64 %58
%59 = load double, ptr %arrayidx194.i, align 8, !tbaa !5
%fneg195.i = fneg double %59
%idxprom196.i = sext i32 %add189.i to i64
%arrayidx197.i = getelementptr inbounds double, ptr %a, i64 %idxprom196.i
%60 = load double, ptr %arrayidx197.i, align 8, !tbaa !5
%add198.i = add nsw i32 %add189.i, 1
%idxprom199.i = sext i32 %add198.i to i64
%arrayidx200.i = getelementptr inbounds double, ptr %a, i64 %idxprom199.i
%61 = load double, ptr %arrayidx200.i, align 8, !tbaa !5
%fneg201.i = fneg double %61
store double %60, ptr %arrayidx191.i, align 8, !tbaa !5
store double %fneg201.i, ptr %arrayidx194.i, align 8, !tbaa !5
store double %57, ptr %arrayidx197.i, align 8, !tbaa !5
store double %fneg195.i, ptr %arrayidx200.i, align 8, !tbaa !5
%62 = add nsw i64 %55, %50
%add213.i = add nsw i32 %add189.i, %mul550.i
%arrayidx215.i = getelementptr inbounds double, ptr %a, i64 %62
%63 = load double, ptr %arrayidx215.i, align 8, !tbaa !5
%64 = add nsw i64 %62, 1
%arrayidx218.i = getelementptr inbounds double, ptr %a, i64 %64
%65 = load double, ptr %arrayidx218.i, align 8, !tbaa !5
%fneg219.i = fneg double %65
%idxprom220.i = sext i32 %add213.i to i64
%arrayidx221.i = getelementptr inbounds double, ptr %a, i64 %idxprom220.i
%66 = load double, ptr %arrayidx221.i, align 8, !tbaa !5
%add222.i = add nsw i32 %add213.i, 1
%idxprom223.i = sext i32 %add222.i to i64
%arrayidx224.i = getelementptr inbounds double, ptr %a, i64 %idxprom223.i
%67 = load double, ptr %arrayidx224.i, align 8, !tbaa !5
%fneg225.i = fneg double %67
store double %66, ptr %arrayidx215.i, align 8, !tbaa !5
store double %fneg225.i, ptr %arrayidx218.i, align 8, !tbaa !5
store double %63, ptr %arrayidx221.i, align 8, !tbaa !5
store double %fneg219.i, ptr %arrayidx224.i, align 8, !tbaa !5
%indvars.iv.next502.i = add nuw nsw i64 %indvars.iv501.i, 1
%exitcond510.not.i = icmp eq i64 %indvars.iv.next502.i, %indvars.iv511.i
br i1 %exitcond510.not.i, label %for.end238.i, label %for.body181.i, !llvm.loop !30
for.end238.i: ; preds = %for.body181.i
%add242.i = add nsw i32 %53, %51
%add243.i = add nsw i32 %add242.i, 1
%idxprom244.i = sext i32 %add243.i to i64
%arrayidx245.i = getelementptr inbounds double, ptr %a, i64 %idxprom244.i
%68 = load double, ptr %arrayidx245.i, align 8, !tbaa !5
%fneg246.i = fneg double %68
store double %fneg246.i, ptr %arrayidx245.i, align 8, !tbaa !5
%add251.i = add i32 %add242.i, %add169.i
%idxprom252.i = sext i32 %add251.i to i64
%arrayidx253.i = getelementptr inbounds double, ptr %a, i64 %idxprom252.i
%69 = load double, ptr %arrayidx253.i, align 8, !tbaa !5
%fneg254.i = fneg double %69
store double %fneg254.i, ptr %arrayidx253.i, align 8, !tbaa !5
%indvars.iv.next512.i = add nuw nsw i64 %indvars.iv511.i, 1
%exitcond517.not.i = icmp eq i64 %indvars.iv.next512.i, %wide.trip.count516.i
br i1 %exitcond517.not.i, label %bitrv2conj.exit, label %for.cond179.preheader.i, !llvm.loop !31
bitrv2conj.exit: ; preds = %for.end238.i, %for.end119.i, %for.cond9.preheader.i, %if.else.i
br i1 %cmp485.i, label %if.then.i, label %if.end.i
if.then.i: ; preds = %bitrv2conj.exit
tail call fastcc void @cft1st(i32 noundef %n, ptr noundef %a, ptr noundef %w)
%cmp1226.i = icmp ugt i32 %n, 32
br i1 %cmp1226.i, label %while.body.i23, label %if.end.i
while.body.i23: ; preds = %if.then.i, %while.body.i23
%shl228.i = phi i32 [ %shl.i22, %while.body.i23 ], [ 32, %if.then.i ]
%l.0227.i = phi i32 [ %shl228.i, %while.body.i23 ], [ 8, %if.then.i ]
tail call fastcc void @cftmdl(i32 noundef %n, i32 noundef %l.0227.i, ptr noundef %a, ptr noundef %w)
%shl.i22 = shl i32 %shl228.i, 2
%cmp1.i = icmp slt i32 %shl.i22, %n
br i1 %cmp1.i, label %while.body.i23, label %if.end.i, !llvm.loop !32
if.end.i: ; preds = %while.body.i23, %if.then.i, %bitrv2conj.exit
%l.1.i = phi i32 [ 2, %bitrv2conj.exit ], [ 8, %if.then.i ], [ %shl228.i, %while.body.i23 ]
%shl3.i = shl i32 %l.1.i, 2
%cmp4.i = icmp eq i32 %shl3.i, %n
%cmp6231.i = icmp sgt i32 %l.1.i, 0
br i1 %cmp4.i, label %for.cond.preheader.i, label %for.cond84.preheader.i
for.cond84.preheader.i: ; preds = %if.end.i
br i1 %cmp6231.i, label %for.body86.preheader.i, label %if.end7
for.body86.preheader.i: ; preds = %for.cond84.preheader.i
%70 = zext i32 %l.1.i to i64
br label %for.body86.i
for.cond.preheader.i: ; preds = %if.end.i
br i1 %cmp6231.i, label %for.body.preheader.i24, label %if.end7
for.body.preheader.i24: ; preds = %for.cond.preheader.i
%71 = zext i32 %l.1.i to i64
br label %for.body.i31
for.body.i31: ; preds = %for.body.i31, %for.body.preheader.i24
%indvars.iv237.i = phi i64 [ 0, %for.body.preheader.i24 ], [ %indvars.iv.next238.i, %for.body.i31 ]
%72 = add nuw nsw i64 %indvars.iv237.i, %71
%73 = add nuw nsw i64 %72, %71
%74 = add nuw nsw i64 %73, %71
%arrayidx.i = getelementptr inbounds double, ptr %a, i64 %indvars.iv237.i
%75 = load double, ptr %arrayidx.i, align 8, !tbaa !5
%arrayidx10.i = getelementptr inbounds double, ptr %a, i64 %72
%76 = load double, ptr %arrayidx10.i, align 8, !tbaa !5
%add11.i = fadd double %75, %76
%77 = or i64 %indvars.iv237.i, 1
%arrayidx14.i = getelementptr inbounds double, ptr %a, i64 %77
%78 = load double, ptr %arrayidx14.i, align 8, !tbaa !5
%fneg.i25 = fneg double %78
%add15.i = shl i64 %72, 32
%sext244.i = ashr exact i64 %add15.i, 32
%idxprom16.i = or i64 %sext244.i, 1
%arrayidx17.i26 = getelementptr inbounds double, ptr %a, i64 %idxprom16.i
%79 = load double, ptr %arrayidx17.i26, align 8, !tbaa !5
%sub.i27 = fsub double %fneg.i25, %79
%sub22.i = fsub double %75, %76
%add30.i28 = fsub double %79, %78
%arrayidx32.i29 = getelementptr inbounds double, ptr %a, i64 %73
%80 = load double, ptr %arrayidx32.i29, align 8, !tbaa !5
%arrayidx34.i = getelementptr inbounds double, ptr %a, i64 %74
%81 = load double, ptr %arrayidx34.i, align 8, !tbaa !5
%add35.i = fadd double %80, %81
%add36.i = shl i64 %73, 32
%sext245.i = ashr exact i64 %add36.i, 32
%idxprom37.i = or i64 %sext245.i, 1
%arrayidx38.i = getelementptr inbounds double, ptr %a, i64 %idxprom37.i
%82 = load double, ptr %arrayidx38.i, align 8, !tbaa !5
%add39.i = shl i64 %74, 32
%sext246.i = ashr exact i64 %add39.i, 32
%idxprom40.i = or i64 %sext246.i, 1
%arrayidx41.i = getelementptr inbounds double, ptr %a, i64 %idxprom40.i
%83 = load double, ptr %arrayidx41.i, align 8, !tbaa !5
%add42.i = fadd double %82, %83
%sub47.i = fsub double %80, %81
%sub54.i = fsub double %82, %83
%add55.i30 = fadd double %add11.i, %add35.i
store double %add55.i30, ptr %arrayidx.i, align 8, !tbaa !5
%sub58.i = fsub double %sub.i27, %add42.i
store double %sub58.i, ptr %arrayidx14.i, align 8, !tbaa !5
%sub62.i = fsub double %add11.i, %add35.i
store double %sub62.i, ptr %arrayidx32.i29, align 8, !tbaa !5
%add65.i = fadd double %sub.i27, %add42.i
store double %add65.i, ptr %arrayidx38.i, align 8, !tbaa !5
%sub69.i = fsub double %sub22.i, %sub54.i
store double %sub69.i, ptr %arrayidx10.i, align 8, !tbaa !5
%sub72.i = fsub double %add30.i28, %sub47.i
store double %sub72.i, ptr %arrayidx17.i26, align 8, !tbaa !5
%add76.i = fadd double %sub22.i, %sub54.i
store double %add76.i, ptr %arrayidx34.i, align 8, !tbaa !5
%add79.i = fadd double %add30.i28, %sub47.i
store double %add79.i, ptr %arrayidx41.i, align 8, !tbaa !5
%indvars.iv.next238.i = add nuw nsw i64 %indvars.iv237.i, 2
%cmp6.i = icmp ult i64 %indvars.iv.next238.i, %71
br i1 %cmp6.i, label %for.body.i31, label %if.end7, !llvm.loop !33
for.body86.i: ; preds = %for.body86.i, %for.body86.preheader.i
%indvars.iv.i32 = phi i64 [ 0, %for.body86.preheader.i ], [ %indvars.iv.next.i34, %for.body86.i ]
%84 = add nuw nsw i64 %indvars.iv.i32, %70
%arrayidx89.i = getelementptr inbounds double, ptr %a, i64 %indvars.iv.i32
%85 = load double, ptr %arrayidx89.i, align 8, !tbaa !5
%arrayidx91.i = getelementptr inbounds double, ptr %a, i64 %84
%86 = load double, ptr %arrayidx91.i, align 8, !tbaa !5
%sub92.i = fsub double %85, %86
%87 = or i64 %indvars.iv.i32, 1
%arrayidx95.i = getelementptr inbounds double, ptr %a, i64 %87
%88 = load double, ptr %arrayidx95.i, align 8, !tbaa !5
%fneg96.i = fneg double %88
%add97.i = shl i64 %84, 32
%sext.i = ashr exact i64 %add97.i, 32
%idxprom98.i = or i64 %sext.i, 1
%arrayidx99.i33 = getelementptr inbounds double, ptr %a, i64 %idxprom98.i
%89 = load double, ptr %arrayidx99.i33, align 8, !tbaa !5
%add100.i = fsub double %89, %88
%add105.i = fadd double %85, %86
store double %add105.i, ptr %arrayidx89.i, align 8, !tbaa !5
%sub113.i = fsub double %fneg96.i, %89
store double %sub113.i, ptr %arrayidx95.i, align 8, !tbaa !5
store double %sub92.i, ptr %arrayidx91.i, align 8, !tbaa !5
store double %add100.i, ptr %arrayidx99.i33, align 8, !tbaa !5
%indvars.iv.next.i34 = add nuw nsw i64 %indvars.iv.i32, 2
%cmp85.i = icmp ult i64 %indvars.iv.next.i34, %70
br i1 %cmp85.i, label %for.body86.i, label %if.end7, !llvm.loop !34
if.else3: ; preds = %entry
%cmp4 = icmp eq i32 %n, 4
br i1 %cmp4, label %if.end7.sink.split, label %if.end7
if.end7.sink.split: ; preds = %if.else3, %if.then2
%.sink = phi i32 [ %n, %if.then2 ], [ 4, %if.else3 ]
tail call fastcc void @cftfsub(i32 noundef %.sink, ptr noundef %a, ptr noundef %w)
br label %if.end7
if.end7: ; preds = %for.body86.i, %for.body.i31, %if.end7.sink.split, %for.cond.preheader.i, %for.cond84.preheader.i, %if.else3
ret void
}
; Function Attrs: nofree nosync nounwind memory(argmem: read) uwtable
define dso_local double @errorcheck(i32 noundef %nini, i32 noundef %nend, double noundef %scale, ptr nocapture noundef readonly %a) local_unnamed_addr #7 {
entry:
%cmp.not10 = icmp sgt i32 %nini, %nend
br i1 %cmp.not10, label %for.end, label %for.body.preheader
for.body.preheader: ; preds = %entry
%0 = sext i32 %nini to i64
%1 = add i32 %nend, 1
br label %for.body
for.body: ; preds = %for.body.preheader, %for.body
%indvars.iv = phi i64 [ %0, %for.body.preheader ], [ %indvars.iv.next, %for.body ]
%err.012 = phi double [ 0.000000e+00, %for.body.preheader ], [ %cond, %for.body ]
%seed.011 = phi i32 [ 0, %for.body.preheader ], [ %rem, %for.body ]
%mul = mul nuw nsw i32 %seed.011, 7141
%add = add nuw nsw i32 %mul, 54773
%rem = urem i32 %add, 259200
%conv = sitofp i32 %rem to double
%arrayidx = getelementptr inbounds double, ptr %a, i64 %indvars.iv
%2 = load double, ptr %arrayidx, align 8, !tbaa !5
%3 = fneg double %2
%neg = fmul double %3, %scale
%4 = tail call double @llvm.fmuladd.f64(double %conv, double 0x3ED02E85C0898B71, double %neg)
%5 = tail call double @llvm.fabs.f64(double %4)
%cmp3 = fcmp ogt double %err.012, %5
%cond = select i1 %cmp3, double %err.012, double %5
%indvars.iv.next = add nsw i64 %indvars.iv, 1
%lftr.wideiv = trunc i64 %indvars.iv.next to i32
%exitcond.not = icmp eq i32 %1, %lftr.wideiv
br i1 %exitcond.not, label %for.end, label %for.body, !llvm.loop !12
for.end: ; preds = %for.body, %entry
%err.0.lcssa = phi double [ 0.000000e+00, %entry ], [ %cond, %for.body ]
ret double %err.0.lcssa
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #8
; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #9
; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #10
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11
; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #12
; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #8
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1
; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #13
; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #9
; Function Attrs: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define internal fastcc void @bitrv2(i32 noundef %n, ptr nocapture noundef %ip, ptr nocapture noundef %a) unnamed_addr #14 {
entry:
store i32 0, ptr %ip, align 4, !tbaa !23
%cmp398 = icmp sgt i32 %n, 8
br i1 %cmp398, label %while.body, label %while.end.thread
while.body: ; preds = %entry, %for.end
%m.0400 = phi i32 [ %shl6, %for.end ], [ 1, %entry ]
%l.0399 = phi i32 [ %shr, %for.end ], [ %n, %entry ]
%shr = ashr i32 %l.0399, 1
%cmp1396 = icmp sgt i32 %m.0400, 0
br i1 %cmp1396, label %for.body.preheader, label %for.end
for.body.preheader: ; preds = %while.body
%0 = zext i32 %m.0400 to i64
%wide.trip.count = zext i32 %m.0400 to i64
%min.iters.check = icmp ult i32 %m.0400, 8
br i1 %min.iters.check, label %for.body.preheader473, label %vector.ph
vector.ph: ; preds = %for.body.preheader
%n.vec = and i64 %wide.trip.count, 4294967288
%broadcast.splatinsert = insertelement <4 x i32> poison, i32 %shr, i64 0
%broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
%broadcast.splatinsert470 = insertelement <4 x i32> poison, i32 %shr, i64 0
%broadcast.splat471 = shufflevector <4 x i32> %broadcast.splatinsert470, <4 x i32> poison, <4 x i32> zeroinitializer
br label %vector.body
vector.body: ; preds = %vector.body, %vector.ph
%index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
%1 = getelementptr inbounds i32, ptr %ip, i64 %index
%wide.load = load <4 x i32>, ptr %1, align 4, !tbaa !23
%2 = getelementptr inbounds i32, ptr %1, i64 4
%wide.load469 = load <4 x i32>, ptr %2, align 4, !tbaa !23
%3 = add nsw <4 x i32> %wide.load, %broadcast.splat
%4 = add nsw <4 x i32> %wide.load469, %broadcast.splat471
%5 = add nuw nsw i64 %index, %0
%6 = getelementptr inbounds i32, ptr %ip, i64 %5
store <4 x i32> %3, ptr %6, align 4, !tbaa !23
%7 = getelementptr inbounds i32, ptr %6, i64 4
store <4 x i32> %4, ptr %7, align 4, !tbaa !23
%index.next = add nuw i64 %index, 8
%8 = icmp eq i64 %index.next, %n.vec
br i1 %8, label %middle.block, label %vector.body, !llvm.loop !35
middle.block: ; preds = %vector.body
%cmp.n = icmp eq i64 %n.vec, %wide.trip.count
br i1 %cmp.n, label %for.end, label %for.body.preheader473
for.body.preheader473: ; preds = %for.body.preheader, %middle.block
%indvars.iv.ph = phi i64 [ 0, %for.body.preheader ], [ %n.vec, %middle.block ]
br label %for.body
for.body: ; preds = %for.body.preheader473, %for.body
%indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ %indvars.iv.ph, %for.body.preheader473 ]
%arrayidx2 = getelementptr inbounds i32, ptr %ip, i64 %indvars.iv
%9 = load i32, ptr %arrayidx2, align 4, !tbaa !23
%add = add nsw i32 %9, %shr