-
Notifications
You must be signed in to change notification settings - Fork 0
/
01B75D4185C03756.ll
6241 lines (5448 loc) · 410 KB
/
01B75D4185C03756.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-C++/stepanov_container.cpp'
source_filename = "/usr/local/google/home/aeubanks/repos/test-suite/SingleSource/Benchmarks/Misc-C++/stepanov_container.cpp"
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"
%"class.std::ios_base::Init" = type { i8 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl" = type { %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" }
%"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<double, std::allocator<double>>::_List_impl" }
%"struct.std::__cxx11::_List_base<double, std::allocator<double>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"struct.std::_List_node" = type { %"struct.std::__detail::_List_node_base", %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.__gnu_cxx::__aligned_membuf" = type { [8 x i8] }
%"struct.std::__detail::_Scratch_list" = type { %"struct.std::__detail::_List_node_base" }
%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<double, double, std::_Identity<double>, std::less<double>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<double, double, std::_Identity<double>, std::less<double>>::_Rb_tree_impl" = type { %"struct.std::_Rb_tree_key_compare", %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_key_compare" = type { %"struct.std::less" }
%"struct.std::less" = type { i8 }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_node" = type { %"struct.std::_Rb_tree_node_base", %"struct.__gnu_cxx::__aligned_membuf" }
%"struct.std::_Rb_tree<double, double, std::_Identity<double>, std::less<double>>::_Alloc_node" = type { ptr }
%"class.std::multiset" = type { %"class.std::_Rb_tree" }
%"struct.__gnu_cxx::__ops::_Iter_less_iter" = type { i8 }
$_ZNSt6vectorIdSaIdEED2Ev = comdat any
$_ZNSt5dequeIdSaIdEED2Ev = comdat any
$_ZNSt7__cxx114listIdSaIdEE4sortEv = comdat any
$_ZNSt3setIdSt4lessIdESaIdEEC2IPdEET_S6_ = comdat any
$__clang_call_terminate = comdat any
$_ZNSt8_Rb_treeIddSt9_IdentityIdESt4lessIdESaIdEED2Ev = comdat any
$_ZNSt8_Rb_treeIddSt9_IdentityIdESt4lessIdESaIdEE8_M_eraseEPSt13_Rb_tree_nodeIdE = comdat any
$_ZSt16__introsort_loopIPdlN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_T1_ = comdat any
$_ZSt22__final_insertion_sortIPdN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_ = comdat any
$_ZSt11__make_heapIPdN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_RT0_ = comdat any
$_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEElNS0_5__ops15_Iter_less_iterEEvT_S9_T0_T1_ = comdat any
$_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS0_5__ops15_Iter_less_iterEEvT_S9_T0_ = comdat any
$_ZSt11__make_heapIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS0_5__ops15_Iter_less_iterEEvT_S9_RT0_ = comdat any
$_ZNSt5dequeIdSaIdEE18_M_fill_initializeERKd = comdat any
$_ZNSt11_Deque_baseIdSaIdEED2Ev = comdat any
$_ZNSt11_Deque_baseIdSaIdEE17_M_initialize_mapEm = comdat any
$_ZSt16__introsort_loopISt15_Deque_iteratorIdRdPdElN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_T0_T1_ = comdat any
$_ZSt22__final_insertion_sortISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_T0_ = comdat any
$_ZSt14__partial_sortISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_S7_T0_ = comdat any
$_ZSt27__unguarded_partition_pivotISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEET_S7_S7_T0_ = comdat any
$_ZSt13__heap_selectISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_S7_T0_ = comdat any
$_ZSt13__adjust_heapISt15_Deque_iteratorIdRdPdEldN9__gnu_cxx5__ops15_Iter_less_iterEEvT_T0_S8_T1_T2_ = comdat any
$_ZSt16__insertion_sortISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_T0_ = comdat any
$_ZSt24__copy_move_backward_ditILb1EdRdPdSt15_Deque_iteratorIdS0_S1_EET3_S2_IT0_T1_T2_ES8_S4_ = comdat any
$_ZNSt8_Rb_treeIddSt9_IdentityIdESt4lessIdESaIdEE16_M_insert_equal_IRdNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorIdESt23_Rb_tree_const_iteratorIdEOT_RT0_ = comdat any
$_ZNSt8_Rb_treeIddSt9_IdentityIdESt4lessIdESaIdEE28_M_get_insert_hint_equal_posESt23_Rb_tree_const_iteratorIdERKd = comdat any
@_ZStL8__ioinit = internal global %"class.std::ios_base::Init" zeroinitializer, align 1
@__dso_handle = external hidden global i8
@result_times = dso_local global %"class.std::vector" zeroinitializer, align 8
@.str = private unnamed_addr constant [49 x i8] c"cannot create std::vector larger than max_size()\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"cannot create std::deque larger than max_size()\00", align 1
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__sub_I_stepanov_container.cpp, ptr null }]
declare void @_ZNSt8ios_base4InitC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0
; Function Attrs: nounwind
declare void @_ZNSt8ios_base4InitD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1
; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #2
; Function Attrs: nounwind uwtable
define linkonce_odr dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %this) unnamed_addr #3 comdat align 2 personality ptr @__gxx_personality_v0 {
entry:
%0 = load ptr, ptr %this, align 8, !tbaa !5
%tobool.not.i.i = icmp eq ptr %0, null
br i1 %tobool.not.i.i, label %_ZNSt12_Vector_baseIdSaIdEED2Ev.exit, label %if.then.i.i
if.then.i.i: ; preds = %entry
tail call void @_ZdlPv(ptr noundef nonnull %0) #22
br label %_ZNSt12_Vector_baseIdSaIdEED2Ev.exit
_ZNSt12_Vector_baseIdSaIdEED2Ev.exit: ; preds = %entry, %if.then.i.i
ret void
}
; Function Attrs: mustprogress uwtable
define dso_local void @_Z3runPFvPdS_iES_S_i(ptr nocapture noundef readonly %f, ptr noundef %first, ptr noundef %last, i32 noundef %number_of_times) local_unnamed_addr #4 {
entry:
%cmp2 = icmp sgt i32 %number_of_times, 0
br i1 %cmp2, label %while.body, label %while.end
while.body: ; preds = %entry, %while.body
%number_of_times.addr.03 = phi i32 [ %dec, %while.body ], [ %number_of_times, %entry ]
%dec = add nsw i32 %number_of_times.addr.03, -1
tail call void %f(ptr noundef %first, ptr noundef %last, i32 noundef %dec)
%cmp = icmp ugt i32 %number_of_times.addr.03, 1
br i1 %cmp, label %while.body, label %while.end, !llvm.loop !10
while.end: ; preds = %while.body, %entry
ret void
}
; Function Attrs: mustprogress uwtable
define dso_local void @_Z10array_testPdS_i(ptr noundef %first, ptr noundef %last, i32 noundef %number_of_times) local_unnamed_addr #4 {
entry:
%sub.ptr.lhs.cast = ptrtoint ptr %last to i64
%sub.ptr.rhs.cast = ptrtoint ptr %first to i64
%sub.ptr.sub = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast
%0 = tail call i64 @llvm.smax.i64(i64 %sub.ptr.sub, i64 -1)
%call = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %0) #23
%tobool.not.i.i.i.i.i = icmp eq ptr %last, %first
br i1 %tobool.not.i.i.i.i.i, label %delete.notnull, label %if.then.i.i
if.then.i.i: ; preds = %entry
%sub.ptr.div = ashr exact i64 %sub.ptr.sub, 3
tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %call, ptr align 8 %first, i64 %sub.ptr.sub, i1 false)
%add.ptr = getelementptr inbounds double, ptr %call, i64 %sub.ptr.div
%1 = tail call i64 @llvm.ctlz.i64(i64 %sub.ptr.div, i1 true), !range !12
%sub.i.i.i = shl nuw nsw i64 %1, 1
%mul.i.i = xor i64 %sub.i.i.i, 126
tail call void @_ZSt16__introsort_loopIPdlN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_T1_(ptr noundef nonnull %call, ptr noundef nonnull %add.ptr, i64 noundef %mul.i.i)
tail call void @_ZSt22__final_insertion_sortIPdN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_(ptr noundef nonnull %call, ptr noundef nonnull %add.ptr)
br label %while.cond.i.i.i
while.cond.i.i.i: ; preds = %if.then.i.i, %while.body.i.i.i
%__next.0.i.i.i = phi ptr [ %incdec.ptr.i.i.i, %while.body.i.i.i ], [ %call, %if.then.i.i ]
%incdec.ptr.i.i.i = getelementptr inbounds double, ptr %__next.0.i.i.i, i64 1
%cmp1.not.i.i.i = icmp eq ptr %incdec.ptr.i.i.i, %add.ptr
br i1 %cmp1.not.i.i.i, label %delete.notnull, label %while.body.i.i.i
while.body.i.i.i: ; preds = %while.cond.i.i.i
%2 = load double, ptr %__next.0.i.i.i, align 8, !tbaa !13
%3 = load double, ptr %incdec.ptr.i.i.i, align 8, !tbaa !13
%cmp.i.i.i.i = fcmp oeq double %2, %3
br i1 %cmp.i.i.i.i, label %if.end.i.i, label %while.cond.i.i.i, !llvm.loop !15
if.end.i.i: ; preds = %while.body.i.i.i
%incdec.ptr123.i.i = getelementptr inbounds double, ptr %__next.0.i.i.i, i64 2
%cmp2.not24.i.i = icmp eq ptr %incdec.ptr123.i.i, %add.ptr
br i1 %cmp2.not24.i.i, label %delete.notnull, label %while.body.i.i
while.body.i.i: ; preds = %if.end.i.i, %if.end6.i.i
%4 = phi double [ %6, %if.end6.i.i ], [ %2, %if.end.i.i ]
%incdec.ptr126.i.i = phi ptr [ %incdec.ptr1.i.i, %if.end6.i.i ], [ %incdec.ptr123.i.i, %if.end.i.i ]
%__dest.025.i.i = phi ptr [ %__dest.1.i.i, %if.end6.i.i ], [ %__next.0.i.i.i, %if.end.i.i ]
%5 = load double, ptr %incdec.ptr126.i.i, align 8, !tbaa !13
%cmp.i19.i.i = fcmp oeq double %4, %5
br i1 %cmp.i19.i.i, label %if.end6.i.i, label %if.then4.i.i
if.then4.i.i: ; preds = %while.body.i.i
%incdec.ptr5.i.i = getelementptr inbounds double, ptr %__dest.025.i.i, i64 1
store double %5, ptr %incdec.ptr5.i.i, align 8, !tbaa !13
br label %if.end6.i.i
if.end6.i.i: ; preds = %if.then4.i.i, %while.body.i.i
%6 = phi double [ %4, %while.body.i.i ], [ %5, %if.then4.i.i ]
%__dest.1.i.i = phi ptr [ %__dest.025.i.i, %while.body.i.i ], [ %incdec.ptr5.i.i, %if.then4.i.i ]
%incdec.ptr1.i.i = getelementptr inbounds double, ptr %incdec.ptr126.i.i, i64 1
%cmp2.not.i.i = icmp eq ptr %incdec.ptr1.i.i, %add.ptr
br i1 %cmp2.not.i.i, label %delete.notnull, label %while.body.i.i, !llvm.loop !16
delete.notnull: ; preds = %while.cond.i.i.i, %if.end6.i.i, %entry, %if.end.i.i
tail call void @_ZdaPv(ptr noundef nonnull %call) #22
ret void
}
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #6
; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #7
; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #5
; Function Attrs: uwtable
define dso_local void @_Z19vector_pointer_testPdS_i(ptr noundef %first, ptr noundef %last, i32 %number_of_times) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
entry:
%sub.ptr.lhs.cast.i.i.i.i = ptrtoint ptr %last to i64
%sub.ptr.rhs.cast.i.i.i.i = ptrtoint ptr %first to i64
%sub.ptr.sub.i.i.i.i = sub i64 %sub.ptr.lhs.cast.i.i.i.i, %sub.ptr.rhs.cast.i.i.i.i
%sub.ptr.div.i.i.i.i = ashr exact i64 %sub.ptr.sub.i.i.i.i, 3
%cmp.i.i.i = icmp ugt i64 %sub.ptr.sub.i.i.i.i, 9223372036854775800
br i1 %cmp.i.i.i, label %if.then.i.i.i, label %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i
if.then.i.i.i: ; preds = %entry
tail call void @_ZSt20__throw_length_errorPKc(ptr noundef nonnull @.str) #24
unreachable
_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i: ; preds = %entry
%cmp.not.i.i.i = icmp eq ptr %last, %first
br i1 %cmp.not.i.i.i, label %_ZNSt6vectorIdSaIdEED2Ev.exit, label %if.then.i.i
if.then.i.i: ; preds = %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i
%call5.i.i.i.i4.i = tail call noalias noundef nonnull ptr @_Znwm(i64 noundef %sub.ptr.sub.i.i.i.i) #23
tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %call5.i.i.i.i4.i, ptr align 8 %first, i64 %sub.ptr.sub.i.i.i.i, i1 false)
%add.ptr19.i.i = getelementptr inbounds double, ptr %call5.i.i.i.i4.i, i64 %sub.ptr.div.i.i.i.i
%sub.ptr.div.i.i = lshr exact i64 %sub.ptr.sub.i.i.i.i, 3
%0 = tail call i64 @llvm.ctlz.i64(i64 %sub.ptr.div.i.i, i1 true), !range !12
%sub.i.i.i = shl nuw nsw i64 %0, 1
%mul.i.i = xor i64 %sub.i.i.i, 126
invoke void @_ZSt16__introsort_loopIPdlN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_T1_(ptr noundef nonnull %call5.i.i.i.i4.i, ptr noundef nonnull %add.ptr19.i.i, i64 noundef %mul.i.i)
to label %.noexc unwind label %ehcleanup20
.noexc: ; preds = %if.then.i.i
invoke void @_ZSt22__final_insertion_sortIPdN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S4_T0_(ptr noundef nonnull %call5.i.i.i.i4.i, ptr noundef nonnull %add.ptr19.i.i)
to label %while.cond.i.i.i unwind label %ehcleanup20
while.cond.i.i.i: ; preds = %.noexc, %while.body.i.i.i
%__next.0.i.i.i = phi ptr [ %incdec.ptr.i.i.i, %while.body.i.i.i ], [ %call5.i.i.i.i4.i, %.noexc ]
%incdec.ptr.i.i.i = getelementptr inbounds double, ptr %__next.0.i.i.i, i64 1
%cmp1.not.i.i.i = icmp eq ptr %incdec.ptr.i.i.i, %add.ptr19.i.i
br i1 %cmp1.not.i.i.i, label %if.then.i.i.i26, label %while.body.i.i.i
while.body.i.i.i: ; preds = %while.cond.i.i.i
%1 = load double, ptr %__next.0.i.i.i, align 8, !tbaa !13
%2 = load double, ptr %incdec.ptr.i.i.i, align 8, !tbaa !13
%cmp.i.i.i.i = fcmp oeq double %1, %2
br i1 %cmp.i.i.i.i, label %if.end.i.i, label %while.cond.i.i.i, !llvm.loop !15
if.end.i.i: ; preds = %while.body.i.i.i
%incdec.ptr123.i.i = getelementptr inbounds double, ptr %__next.0.i.i.i, i64 2
%cmp2.not24.i.i = icmp eq ptr %incdec.ptr123.i.i, %add.ptr19.i.i
br i1 %cmp2.not24.i.i, label %if.then.i.i.i26, label %while.body.i.i
while.body.i.i: ; preds = %if.end.i.i, %if.end6.i.i
%3 = phi double [ %5, %if.end6.i.i ], [ %1, %if.end.i.i ]
%incdec.ptr126.i.i = phi ptr [ %incdec.ptr1.i.i, %if.end6.i.i ], [ %incdec.ptr123.i.i, %if.end.i.i ]
%__dest.025.i.i = phi ptr [ %__dest.1.i.i, %if.end6.i.i ], [ %__next.0.i.i.i, %if.end.i.i ]
%4 = load double, ptr %incdec.ptr126.i.i, align 8, !tbaa !13
%cmp.i19.i.i = fcmp oeq double %3, %4
br i1 %cmp.i19.i.i, label %if.end6.i.i, label %if.then4.i.i
if.then4.i.i: ; preds = %while.body.i.i
%incdec.ptr5.i.i = getelementptr inbounds double, ptr %__dest.025.i.i, i64 1
store double %4, ptr %incdec.ptr5.i.i, align 8, !tbaa !13
br label %if.end6.i.i
if.end6.i.i: ; preds = %if.then4.i.i, %while.body.i.i
%5 = phi double [ %3, %while.body.i.i ], [ %4, %if.then4.i.i ]
%__dest.1.i.i = phi ptr [ %__dest.025.i.i, %while.body.i.i ], [ %incdec.ptr5.i.i, %if.then4.i.i ]
%incdec.ptr1.i.i = getelementptr inbounds double, ptr %incdec.ptr126.i.i, i64 1
%cmp2.not.i.i = icmp eq ptr %incdec.ptr1.i.i, %add.ptr19.i.i
br i1 %cmp2.not.i.i, label %if.then.i.i.i26, label %while.body.i.i, !llvm.loop !16
if.then.i.i.i26: ; preds = %while.cond.i.i.i, %if.end6.i.i, %if.end.i.i
tail call void @_ZdlPv(ptr noundef nonnull %call5.i.i.i.i4.i) #22
br label %_ZNSt6vectorIdSaIdEED2Ev.exit
_ZNSt6vectorIdSaIdEED2Ev.exit: ; preds = %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i, %if.then.i.i.i26
ret void
ehcleanup20: ; preds = %.noexc, %if.then.i.i
%6 = landingpad { ptr, i32 }
cleanup
tail call void @_ZdlPv(ptr noundef nonnull %call5.i.i.i.i4.i) #22
resume { ptr, i32 } %6
}
declare i32 @__gxx_personality_v0(...)
; Function Attrs: uwtable
define dso_local void @_Z20vector_iterator_testPdS_i(ptr noundef %first, ptr noundef %last, i32 %number_of_times) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
entry:
%sub.ptr.lhs.cast.i.i.i.i = ptrtoint ptr %last to i64
%sub.ptr.rhs.cast.i.i.i.i = ptrtoint ptr %first to i64
%sub.ptr.sub.i.i.i.i = sub i64 %sub.ptr.lhs.cast.i.i.i.i, %sub.ptr.rhs.cast.i.i.i.i
%sub.ptr.div.i.i.i.i = ashr exact i64 %sub.ptr.sub.i.i.i.i, 3
%cmp.i.i.i = icmp ugt i64 %sub.ptr.sub.i.i.i.i, 9223372036854775800
br i1 %cmp.i.i.i, label %if.then.i.i.i, label %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i
if.then.i.i.i: ; preds = %entry
tail call void @_ZSt20__throw_length_errorPKc(ptr noundef nonnull @.str) #24
unreachable
_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i: ; preds = %entry
%cmp.not.i.i.i = icmp eq ptr %last, %first
br i1 %cmp.not.i.i.i, label %_ZNSt6vectorIdSaIdEED2Ev.exit, label %if.then.i.i
if.then.i.i: ; preds = %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i
%call5.i.i.i.i4.i = tail call noalias noundef nonnull ptr @_Znwm(i64 noundef %sub.ptr.sub.i.i.i.i) #23
tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %call5.i.i.i.i4.i, ptr align 8 %first, i64 %sub.ptr.sub.i.i.i.i, i1 false)
%add.ptr19.i.i = getelementptr inbounds double, ptr %call5.i.i.i.i4.i, i64 %sub.ptr.div.i.i.i.i
%sub.ptr.div.i.i.i = lshr exact i64 %sub.ptr.sub.i.i.i.i, 3
%0 = tail call i64 @llvm.ctlz.i64(i64 %sub.ptr.div.i.i.i, i1 true), !range !12
%sub.i.i.i = shl nuw nsw i64 %0, 1
%mul.i.i = xor i64 %sub.i.i.i, 126
invoke void @_ZSt16__introsort_loopIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEElNS0_5__ops15_Iter_less_iterEEvT_S9_T0_T1_(ptr nonnull %call5.i.i.i.i4.i, ptr nonnull %add.ptr19.i.i, i64 noundef %mul.i.i)
to label %.noexc unwind label %ehcleanup
.noexc: ; preds = %if.then.i.i
invoke void @_ZSt22__final_insertion_sortIN9__gnu_cxx17__normal_iteratorIPdSt6vectorIdSaIdEEEENS0_5__ops15_Iter_less_iterEEvT_S9_T0_(ptr nonnull %call5.i.i.i.i4.i, ptr nonnull %add.ptr19.i.i)
to label %while.cond.i.i.i unwind label %ehcleanup
while.cond.i.i.i: ; preds = %.noexc, %while.body.i.i.i
%__next.sroa.0.0.i.i.i = phi ptr [ %incdec.ptr.i.i.i.i, %while.body.i.i.i ], [ %call5.i.i.i.i4.i, %.noexc ]
%incdec.ptr.i.i.i.i = getelementptr inbounds double, ptr %__next.sroa.0.0.i.i.i, i64 1
%cmp.i13.not.i.i.i = icmp eq ptr %incdec.ptr.i.i.i.i, %add.ptr19.i.i
br i1 %cmp.i13.not.i.i.i, label %if.then.i.i.i23, label %while.body.i.i.i
while.body.i.i.i: ; preds = %while.cond.i.i.i
%1 = load double, ptr %__next.sroa.0.0.i.i.i, align 8, !tbaa !13
%2 = load double, ptr %incdec.ptr.i.i.i.i, align 8, !tbaa !13
%cmp.i14.i.i.i = fcmp oeq double %1, %2
br i1 %cmp.i14.i.i.i, label %if.end.i.i, label %while.cond.i.i.i, !llvm.loop !17
if.end.i.i: ; preds = %while.body.i.i.i
%incdec.ptr.i2439.i.i = getelementptr inbounds double, ptr %__next.sroa.0.0.i.i.i, i64 2
%cmp.i25.not40.i.i = icmp eq ptr %incdec.ptr.i2439.i.i, %add.ptr19.i.i
br i1 %cmp.i25.not40.i.i, label %if.then.i.i.i23, label %while.body.i.i
while.body.i.i: ; preds = %if.end.i.i, %if.end20.i.i
%3 = phi double [ %5, %if.end20.i.i ], [ %1, %if.end.i.i ]
%incdec.ptr.i2442.i.i = phi ptr [ %incdec.ptr.i24.i.i, %if.end20.i.i ], [ %incdec.ptr.i2439.i.i, %if.end.i.i ]
%__dest.sroa.0.041.i.i = phi ptr [ %__dest.sroa.0.1.i.i, %if.end20.i.i ], [ %__next.sroa.0.0.i.i.i, %if.end.i.i ]
%4 = load double, ptr %incdec.ptr.i2442.i.i, align 8, !tbaa !13
%cmp.i26.i.i = fcmp oeq double %3, %4
br i1 %cmp.i26.i.i, label %if.end20.i.i, label %if.then16.i.i
if.then16.i.i: ; preds = %while.body.i.i
%incdec.ptr.i27.i.i = getelementptr inbounds double, ptr %__dest.sroa.0.041.i.i, i64 1
store double %4, ptr %incdec.ptr.i27.i.i, align 8, !tbaa !13
br label %if.end20.i.i
if.end20.i.i: ; preds = %if.then16.i.i, %while.body.i.i
%5 = phi double [ %3, %while.body.i.i ], [ %4, %if.then16.i.i ]
%__dest.sroa.0.1.i.i = phi ptr [ %__dest.sroa.0.041.i.i, %while.body.i.i ], [ %incdec.ptr.i27.i.i, %if.then16.i.i ]
%incdec.ptr.i24.i.i = getelementptr inbounds double, ptr %incdec.ptr.i2442.i.i, i64 1
%cmp.i25.not.i.i = icmp eq ptr %incdec.ptr.i24.i.i, %add.ptr19.i.i
br i1 %cmp.i25.not.i.i, label %if.then.i.i.i23, label %while.body.i.i, !llvm.loop !18
if.then.i.i.i23: ; preds = %while.cond.i.i.i, %if.end20.i.i, %if.end.i.i
tail call void @_ZdlPv(ptr noundef nonnull %call5.i.i.i.i4.i) #22
br label %_ZNSt6vectorIdSaIdEED2Ev.exit
_ZNSt6vectorIdSaIdEED2Ev.exit: ; preds = %_ZNSt6vectorIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i.i, %if.then.i.i.i23
ret void
ehcleanup: ; preds = %.noexc, %if.then.i.i
%6 = landingpad { ptr, i32 }
cleanup
tail call void @_ZdlPv(ptr noundef nonnull %call5.i.i.i.i4.i) #22
resume { ptr, i32 } %6
}
; Function Attrs: uwtable
define dso_local void @_Z10deque_testPdS_i(ptr noundef %first, ptr noundef %last, i32 %number_of_times) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
entry:
%agg.tmp.i.i = alloca %"struct.std::_Deque_iterator", align 8
%agg.tmp1.i.i = alloca %"struct.std::_Deque_iterator", align 8
%agg.tmp5.i.i = alloca %"struct.std::_Deque_iterator", align 8
%agg.tmp6.i.i = alloca %"struct.std::_Deque_iterator", align 8
%container = alloca %"class.std::deque", align 8
%ref.tmp = alloca double, align 8
call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %container) #25
%sub.ptr.lhs.cast = ptrtoint ptr %last to i64
%sub.ptr.rhs.cast = ptrtoint ptr %first to i64
%sub.ptr.sub = sub i64 %sub.ptr.lhs.cast, %sub.ptr.rhs.cast
call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %ref.tmp) #25
store double 0.000000e+00, ptr %ref.tmp, align 8, !tbaa !13
%cmp.i.i = icmp ugt i64 %sub.ptr.sub, 9223372036854775800
br i1 %cmp.i.i, label %if.then.i.i, label %_ZNSt5dequeIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i
if.then.i.i: ; preds = %entry
invoke void @_ZSt20__throw_length_errorPKc(ptr noundef nonnull @.str.2) #24
to label %.noexc unwind label %lpad
.noexc: ; preds = %if.then.i.i
unreachable
_ZNSt5dequeIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i: ; preds = %entry
%sub.ptr.div = lshr exact i64 %sub.ptr.sub, 3
call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %container, i8 0, i64 80, i1 false)
invoke void @_ZNSt11_Deque_baseIdSaIdEE17_M_initialize_mapEm(ptr noundef nonnull align 8 dereferenceable(80) %container, i64 noundef %sub.ptr.div)
to label %.noexc17 unwind label %lpad
.noexc17: ; preds = %_ZNSt5dequeIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i
invoke void @_ZNSt5dequeIdSaIdEE18_M_fill_initializeERKd(ptr noundef nonnull align 8 dereferenceable(80) %container, ptr noundef nonnull align 8 dereferenceable(8) %ref.tmp)
to label %invoke.cont unwind label %lpad.i
lpad.i: ; preds = %.noexc17
%0 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt11_Deque_baseIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %container) #25
br label %lpad.body
invoke.cont: ; preds = %.noexc17
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %ref.tmp) #25
%_M_start.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 2
%_M_first3.i.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 2, i32 1
%_M_last4.i.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 2, i32 2
%_M_node5.i.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 2, i32 3
%cmp22.i.i.i.not = icmp eq ptr %last, %first
br i1 %cmp22.i.i.i.not, label %invoke.cont3, label %while.body.lr.ph.i.i.i
while.body.lr.ph.i.i.i: ; preds = %invoke.cont
%1 = load ptr, ptr %_M_node5.i.i, align 8, !tbaa !19, !noalias !21
%2 = load ptr, ptr %_M_last4.i.i, align 8, !tbaa !24, !noalias !21
%3 = load ptr, ptr %_M_first3.i.i, align 8, !tbaa !25, !noalias !21
%4 = load ptr, ptr %_M_start.i, align 8, !tbaa !26, !noalias !21
br label %while.body.i.i.i
while.body.i.i.i: ; preds = %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i, %while.body.lr.ph.i.i.i
%agg.tmp2.sroa.5.0.i.i = phi ptr [ %3, %while.body.lr.ph.i.i.i ], [ %agg.tmp2.sroa.5.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%agg.tmp2.sroa.9.0.i.i = phi ptr [ %2, %while.body.lr.ph.i.i.i ], [ %agg.tmp2.sroa.9.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%agg.tmp2.sroa.13.0.i.i = phi ptr [ %1, %while.body.lr.ph.i.i.i ], [ %agg.tmp2.sroa.13.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%5 = phi ptr [ %4, %while.body.lr.ph.i.i.i ], [ %storemerge.i.i.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%__first.addr.024.i.i.i = phi ptr [ %first, %while.body.lr.ph.i.i.i ], [ %add.ptr.i.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%__len.023.i.i.i = phi i64 [ %sub.ptr.div, %while.body.lr.ph.i.i.i ], [ %sub.i.i.i, %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i ]
%sub.ptr.lhs.cast1.i.i.i = ptrtoint ptr %agg.tmp2.sroa.9.0.i.i to i64
%sub.ptr.rhs.cast2.i.i.i = ptrtoint ptr %5 to i64
%sub.ptr.sub3.i.i.i = sub i64 %sub.ptr.lhs.cast1.i.i.i, %sub.ptr.rhs.cast2.i.i.i
%sub.ptr.div4.i.i.i = ashr exact i64 %sub.ptr.sub3.i.i.i, 3
%.sroa.speculated.i.i.i = call i64 @llvm.smin.i64(i64 %sub.ptr.div4.i.i.i, i64 %__len.023.i.i.i)
%add.ptr.i.i.i = getelementptr inbounds double, ptr %__first.addr.024.i.i.i, i64 %.sroa.speculated.i.i.i
%tobool.not.i.i.i.i.i.i = icmp eq i64 %.sroa.speculated.i.i.i, 0
br i1 %tobool.not.i.i.i.i.i.i, label %_ZSt14__copy_move_a1ILb0EPdS0_ET1_T0_S2_S1_.exit.i.i.i, label %if.then.i.i.i.i.i.i
if.then.i.i.i.i.i.i: ; preds = %while.body.i.i.i
%add.ptr.idx.i.i.i = shl nsw i64 %.sroa.speculated.i.i.i, 3
call void @llvm.memmove.p0.p0.i64(ptr align 8 %5, ptr align 8 %__first.addr.024.i.i.i, i64 %add.ptr.idx.i.i.i, i1 false), !noalias !27
br label %_ZSt14__copy_move_a1ILb0EPdS0_ET1_T0_S2_S1_.exit.i.i.i
_ZSt14__copy_move_a1ILb0EPdS0_ET1_T0_S2_S1_.exit.i.i.i: ; preds = %if.then.i.i.i.i.i.i, %while.body.i.i.i
%sub.ptr.rhs.cast.i.i.i.i = ptrtoint ptr %agg.tmp2.sroa.5.0.i.i to i64
%sub.ptr.sub.i.i.i.i = sub i64 %sub.ptr.rhs.cast2.i.i.i, %sub.ptr.rhs.cast.i.i.i.i
%sub.ptr.div.i.i.i.i = ashr exact i64 %sub.ptr.sub.i.i.i.i, 3
%add.i.i.i.i = add nsw i64 %.sroa.speculated.i.i.i, %sub.ptr.div.i.i.i.i
%or.cond.i.i.i.i = icmp ult i64 %add.i.i.i.i, 64
br i1 %or.cond.i.i.i.i, label %if.then.i.i.i.i, label %if.else.i.i.i.i
if.then.i.i.i.i: ; preds = %_ZSt14__copy_move_a1ILb0EPdS0_ET1_T0_S2_S1_.exit.i.i.i
%add.ptr.i.i.i.i = getelementptr inbounds double, ptr %5, i64 %.sroa.speculated.i.i.i
br label %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i
if.else.i.i.i.i: ; preds = %_ZSt14__copy_move_a1ILb0EPdS0_ET1_T0_S2_S1_.exit.i.i.i
%cmp4.i.i.i.i = icmp sgt i64 %add.i.i.i.i, 0
%div2627.i.i.i.i = lshr i64 %add.i.i.i.i, 6
%sub1025.i.i.i.i = or i64 %div2627.i.i.i.i, -288230376151711744
%cond.i.i.i.i = select i1 %cmp4.i.i.i.i, i64 %div2627.i.i.i.i, i64 %sub1025.i.i.i.i
%add.ptr11.i.i.i.i = getelementptr inbounds ptr, ptr %agg.tmp2.sroa.13.0.i.i, i64 %cond.i.i.i.i
%6 = load ptr, ptr %add.ptr11.i.i.i.i, align 8, !tbaa !34, !noalias !27
%add.ptr.i.i.i.i.i = getelementptr inbounds double, ptr %6, i64 64
%mul.i.i.i.i = shl nsw i64 %cond.i.i.i.i, 6
%sub14.i.i.i.i = sub nsw i64 %add.i.i.i.i, %mul.i.i.i.i
%add.ptr15.i.i.i.i = getelementptr inbounds double, ptr %6, i64 %sub14.i.i.i.i
br label %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i
_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i: ; preds = %if.else.i.i.i.i, %if.then.i.i.i.i
%agg.tmp2.sroa.5.1.i.i = phi ptr [ %agg.tmp2.sroa.5.0.i.i, %if.then.i.i.i.i ], [ %6, %if.else.i.i.i.i ]
%agg.tmp2.sroa.9.1.i.i = phi ptr [ %agg.tmp2.sroa.9.0.i.i, %if.then.i.i.i.i ], [ %add.ptr.i.i.i.i.i, %if.else.i.i.i.i ]
%agg.tmp2.sroa.13.1.i.i = phi ptr [ %agg.tmp2.sroa.13.0.i.i, %if.then.i.i.i.i ], [ %add.ptr11.i.i.i.i, %if.else.i.i.i.i ]
%storemerge.i.i.i.i = phi ptr [ %add.ptr.i.i.i.i, %if.then.i.i.i.i ], [ %add.ptr15.i.i.i.i, %if.else.i.i.i.i ]
%sub.i.i.i = sub nsw i64 %__len.023.i.i.i, %.sroa.speculated.i.i.i
%cmp.i.i.i = icmp sgt i64 %sub.i.i.i, 0
br i1 %cmp.i.i.i, label %while.body.i.i.i, label %invoke.cont3, !llvm.loop !35
invoke.cont3: ; preds = %_ZNSt15_Deque_iteratorIdRdPdEpLEl.exit.i.i.i, %invoke.cont
%7 = load ptr, ptr %_M_start.i, align 8, !tbaa !26, !noalias !36
%8 = load ptr, ptr %_M_first3.i.i, align 8, !tbaa !25, !noalias !36
%9 = load ptr, ptr %_M_last4.i.i, align 8, !tbaa !24, !noalias !36
%10 = load ptr, ptr %_M_node5.i.i, align 8, !tbaa !19
%_M_finish.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 3
%11 = load ptr, ptr %_M_finish.i, align 8, !tbaa !26, !noalias !36
%_M_first3.i.i29 = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 3, i32 1
%12 = load ptr, ptr %_M_first3.i.i29, align 8, !tbaa !25, !noalias !37
%_M_last4.i.i31 = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 3, i32 2
%13 = load ptr, ptr %_M_last4.i.i31, align 8, !tbaa !24, !noalias !37
%_M_node5.i.i33 = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %container, i64 0, i32 3, i32 3
%14 = load ptr, ptr %_M_node5.i.i33, align 8, !tbaa !19
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %agg.tmp.i.i)
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %agg.tmp1.i.i)
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %agg.tmp5.i.i)
call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %agg.tmp6.i.i)
%cmp.i.i.not.i.i = icmp eq ptr %7, %11
br i1 %cmp.i.i.not.i.i, label %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit.thread, label %if.then.i.i42
_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit.thread: ; preds = %invoke.cont3
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp1.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp5.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp6.i.i)
br label %invoke.cont12
if.then.i.i42: ; preds = %invoke.cont3
store ptr %7, ptr %agg.tmp.i.i, align 8, !tbaa !26
%_M_first.i.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp.i.i, i64 0, i32 1
store ptr %8, ptr %_M_first.i.i.i, align 8, !tbaa !25
%_M_last.i.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp.i.i, i64 0, i32 2
store ptr %9, ptr %_M_last.i.i.i, align 8, !tbaa !24
%_M_node.i.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp.i.i, i64 0, i32 3
store ptr %10, ptr %_M_node.i.i.i, align 8, !tbaa !19
store ptr %11, ptr %agg.tmp1.i.i, align 8, !tbaa !26
%_M_first.i8.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp1.i.i, i64 0, i32 1
store ptr %12, ptr %_M_first.i8.i.i, align 8, !tbaa !25
%_M_last.i10.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp1.i.i, i64 0, i32 2
store ptr %13, ptr %_M_last.i10.i.i, align 8, !tbaa !24
%_M_node.i12.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp1.i.i, i64 0, i32 3
store ptr %14, ptr %_M_node.i12.i.i, align 8, !tbaa !19
%sub.ptr.lhs.cast.i.i.i37 = ptrtoint ptr %14 to i64
%sub.ptr.rhs.cast.i.i.i38 = ptrtoint ptr %10 to i64
%sub.ptr.sub.i.i.i39 = sub i64 %sub.ptr.lhs.cast.i.i.i37, %sub.ptr.rhs.cast.i.i.i38
%sub.ptr.div.i.i.i40 = ashr exact i64 %sub.ptr.sub.i.i.i39, 3
%tobool.i.i.i = icmp ne ptr %14, null
%conv.neg.i.i.i = sext i1 %tobool.i.i.i to i64
%sub.i.i.i41 = add nsw i64 %sub.ptr.div.i.i.i40, %conv.neg.i.i.i
%mul.i.i.i = shl nsw i64 %sub.i.i.i41, 6
%sub.ptr.lhs.cast3.i.i.i = ptrtoint ptr %11 to i64
%sub.ptr.rhs.cast4.i.i.i = ptrtoint ptr %12 to i64
%sub.ptr.sub5.i.i.i = sub i64 %sub.ptr.lhs.cast3.i.i.i, %sub.ptr.rhs.cast4.i.i.i
%sub.ptr.div6.i.i.i = ashr exact i64 %sub.ptr.sub5.i.i.i, 3
%sub.ptr.lhs.cast8.i.i.i = ptrtoint ptr %9 to i64
%sub.ptr.rhs.cast9.i.i.i = ptrtoint ptr %7 to i64
%sub.ptr.sub10.i.i.i = sub i64 %sub.ptr.lhs.cast8.i.i.i, %sub.ptr.rhs.cast9.i.i.i
%sub.ptr.div11.i.i.i = ashr exact i64 %sub.ptr.sub10.i.i.i, 3
%add.i.i.i = add nsw i64 %sub.ptr.div6.i.i.i, %sub.ptr.div11.i.i.i
%add12.i.i.i = add i64 %add.i.i.i, %mul.i.i.i
%15 = call i64 @llvm.ctlz.i64(i64 %add12.i.i.i, i1 true), !range !12
%sub.i17.i.i = shl nuw nsw i64 %15, 1
%mul.i.i = xor i64 %sub.i17.i.i, 126
invoke void @_ZSt16__introsort_loopISt15_Deque_iteratorIdRdPdElN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_T0_T1_(ptr noundef nonnull %agg.tmp.i.i, ptr noundef nonnull %agg.tmp1.i.i, i64 noundef %mul.i.i)
to label %.noexc43 unwind label %lpad6
.noexc43: ; preds = %if.then.i.i42
store ptr %7, ptr %agg.tmp5.i.i, align 8, !tbaa !26
%_M_first.i18.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp5.i.i, i64 0, i32 1
store ptr %8, ptr %_M_first.i18.i.i, align 8, !tbaa !25
%_M_last.i20.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp5.i.i, i64 0, i32 2
store ptr %9, ptr %_M_last.i20.i.i, align 8, !tbaa !24
%_M_node.i22.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp5.i.i, i64 0, i32 3
store ptr %10, ptr %_M_node.i22.i.i, align 8, !tbaa !19
store ptr %11, ptr %agg.tmp6.i.i, align 8, !tbaa !26
%_M_first.i24.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp6.i.i, i64 0, i32 1
store ptr %12, ptr %_M_first.i24.i.i, align 8, !tbaa !25
%_M_last.i26.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp6.i.i, i64 0, i32 2
store ptr %13, ptr %_M_last.i26.i.i, align 8, !tbaa !24
%_M_node.i28.i.i = getelementptr inbounds %"struct.std::_Deque_iterator", ptr %agg.tmp6.i.i, i64 0, i32 3
store ptr %14, ptr %_M_node.i28.i.i, align 8, !tbaa !19
invoke void @_ZSt22__final_insertion_sortISt15_Deque_iteratorIdRdPdEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S7_T0_(ptr noundef nonnull %agg.tmp5.i.i, ptr noundef nonnull %agg.tmp6.i.i)
to label %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit unwind label %lpad6
_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit: ; preds = %.noexc43
%.pre = load ptr, ptr %_M_start.i, align 8, !tbaa !26, !noalias !40
%.pre95 = load ptr, ptr %_M_last4.i.i, align 8, !tbaa !24, !noalias !40
%.pre96 = load ptr, ptr %_M_node5.i.i, align 8, !tbaa !19
%.pre97 = load ptr, ptr %_M_finish.i, align 8, !tbaa !26, !noalias !43
%.pre98 = load ptr, ptr %_M_node5.i.i33, align 8, !tbaa !19
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp1.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp5.i.i)
call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %agg.tmp6.i.i)
%cmp.i.i.i.i = icmp eq ptr %.pre, %.pre97
br i1 %cmp.i.i.i.i, label %invoke.cont12, label %while.cond.i.i.i
while.cond.i.i.i: ; preds = %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit, %while.body.i.i.i68
%16 = phi ptr [ %__next.sroa.0.1.i.i.i, %while.body.i.i.i68 ], [ %.pre, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit ]
%17 = phi ptr [ %__next.sroa.12.1.i.i.i, %while.body.i.i.i68 ], [ %.pre95, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit ]
%18 = phi ptr [ %__next.sroa.16.1.i.i.i, %while.body.i.i.i68 ], [ %.pre96, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit ]
%incdec.ptr.i.i.i.i = getelementptr inbounds double, ptr %16, i64 1
%cmp.i14.i.i.i = icmp eq ptr %incdec.ptr.i.i.i.i, %17
br i1 %cmp.i14.i.i.i, label %if.then.i.i.i.i67, label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i
if.then.i.i.i.i67: ; preds = %while.cond.i.i.i
%add.ptr.i.i.i.i65 = getelementptr inbounds ptr, ptr %18, i64 1
%19 = load ptr, ptr %add.ptr.i.i.i.i65, align 8, !tbaa !34, !noalias !46
%add.ptr.i.i.i.i.i66 = getelementptr inbounds double, ptr %19, i64 64
br label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i
_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i: ; preds = %if.then.i.i.i.i67, %while.cond.i.i.i
%__next.sroa.0.1.i.i.i = phi ptr [ %19, %if.then.i.i.i.i67 ], [ %incdec.ptr.i.i.i.i, %while.cond.i.i.i ]
%__next.sroa.12.1.i.i.i = phi ptr [ %add.ptr.i.i.i.i.i66, %if.then.i.i.i.i67 ], [ %17, %while.cond.i.i.i ]
%__next.sroa.16.1.i.i.i = phi ptr [ %add.ptr.i.i.i.i65, %if.then.i.i.i.i67 ], [ %18, %while.cond.i.i.i ]
%cmp.i.i.not.i.i.i = icmp eq ptr %__next.sroa.0.1.i.i.i, %.pre97
br i1 %cmp.i.i.not.i.i.i, label %invoke.cont12, label %while.body.i.i.i68
while.body.i.i.i68: ; preds = %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i
%20 = load double, ptr %16, align 8, !tbaa !13, !noalias !53
%21 = load double, ptr %__next.sroa.0.1.i.i.i, align 8, !tbaa !13, !noalias !46
%cmp.i28.i.i.i = fcmp oeq double %20, %21
br i1 %cmp.i28.i.i.i, label %if.end.i.i, label %while.cond.i.i.i, !llvm.loop !54
if.end.i.i: ; preds = %while.body.i.i.i68
br i1 %cmp.i14.i.i.i, label %if.then.i38.i.i, label %while.cond.i.i.preheader
if.then.i38.i.i: ; preds = %if.end.i.i
%add.ptr.i.i.i69 = getelementptr inbounds ptr, ptr %18, i64 1
%22 = load ptr, ptr %add.ptr.i.i.i69, align 8, !tbaa !34, !noalias !53
%add.ptr.i.i37.i.i = getelementptr inbounds double, ptr %22, i64 64
br label %while.cond.i.i.preheader
while.cond.i.i.preheader: ; preds = %if.then.i38.i.i, %if.end.i.i
%.ph = phi ptr [ %18, %if.end.i.i ], [ %add.ptr.i.i.i69, %if.then.i38.i.i ]
%.ph118 = phi ptr [ %incdec.ptr.i.i.i.i, %if.end.i.i ], [ %22, %if.then.i38.i.i ]
%.ph119 = phi ptr [ %17, %if.end.i.i ], [ %add.ptr.i.i37.i.i, %if.then.i38.i.i ]
br label %while.cond.i.i.outer
while.cond.i.i.outer: ; preds = %while.cond.i.i.preheader, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i
%.ph120 = phi double [ %20, %while.cond.i.i.preheader ], [ %30, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%.ph121 = phi ptr [ %.ph, %while.cond.i.i.preheader ], [ %28, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%.ph122 = phi ptr [ %.ph118, %while.cond.i.i.preheader ], [ %27, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%.ph123 = phi ptr [ %.ph119, %while.cond.i.i.preheader ], [ %29, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%__dest.sroa.24.0.i.i.ph = phi ptr [ %18, %while.cond.i.i.preheader ], [ %__dest.sroa.24.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%__dest.sroa.17.0.i.i.ph = phi ptr [ %17, %while.cond.i.i.preheader ], [ %__dest.sroa.17.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
%__dest.sroa.0.0.i.i.ph = phi ptr [ %16, %while.cond.i.i.preheader ], [ %__dest.sroa.0.1.i.i, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i ]
br label %while.cond.i.i
while.cond.i.i: ; preds = %while.cond.i.i.outer, %while.body.i.i
%23 = phi ptr [ %28, %while.body.i.i ], [ %.ph121, %while.cond.i.i.outer ]
%24 = phi ptr [ %27, %while.body.i.i ], [ %.ph122, %while.cond.i.i.outer ]
%25 = phi ptr [ %29, %while.body.i.i ], [ %.ph123, %while.cond.i.i.outer ]
%incdec.ptr.i40.i.i = getelementptr inbounds double, ptr %24, i64 1
%cmp.i42.i.i = icmp eq ptr %incdec.ptr.i40.i.i, %25
br i1 %cmp.i42.i.i, label %if.then.i47.i.i, label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i
if.then.i47.i.i: ; preds = %while.cond.i.i
%add.ptr.i44.i.i = getelementptr inbounds ptr, ptr %23, i64 1
%26 = load ptr, ptr %add.ptr.i44.i.i, align 8, !tbaa !34, !noalias !53
%add.ptr.i.i46.i.i = getelementptr inbounds double, ptr %26, i64 64
br label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i
_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i: ; preds = %if.then.i47.i.i, %while.cond.i.i
%27 = phi ptr [ %incdec.ptr.i40.i.i, %while.cond.i.i ], [ %26, %if.then.i47.i.i ]
%28 = phi ptr [ %23, %while.cond.i.i ], [ %add.ptr.i44.i.i, %if.then.i47.i.i ]
%29 = phi ptr [ %25, %while.cond.i.i ], [ %add.ptr.i.i46.i.i, %if.then.i47.i.i ]
%cmp.i.i50.not.i.i = icmp eq ptr %27, %.pre97
br i1 %cmp.i.i50.not.i.i, label %invoke.cont12, label %while.body.i.i
while.body.i.i: ; preds = %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i
%30 = load double, ptr %27, align 8, !tbaa !13, !noalias !53
%cmp.i63.i.i = fcmp oeq double %.ph120, %30
br i1 %cmp.i63.i.i, label %while.cond.i.i, label %if.then9.i.i, !llvm.loop !55
if.then9.i.i: ; preds = %while.body.i.i
%incdec.ptr.i64.i.i = getelementptr inbounds double, ptr %__dest.sroa.0.0.i.i.ph, i64 1
%cmp.i66.i.i = icmp eq ptr %incdec.ptr.i64.i.i, %__dest.sroa.17.0.i.i.ph
br i1 %cmp.i66.i.i, label %if.then.i71.i.i, label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i
if.then.i71.i.i: ; preds = %if.then9.i.i
%add.ptr.i68.i.i = getelementptr inbounds ptr, ptr %__dest.sroa.24.0.i.i.ph, i64 1
%31 = load ptr, ptr %add.ptr.i68.i.i, align 8, !tbaa !34, !noalias !53
%add.ptr.i.i70.i.i = getelementptr inbounds double, ptr %31, i64 64
br label %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i
_ZNSt15_Deque_iteratorIdRdPdEppEv.exit73.i.i: ; preds = %if.then.i71.i.i, %if.then9.i.i
%__dest.sroa.24.1.i.i = phi ptr [ %add.ptr.i68.i.i, %if.then.i71.i.i ], [ %__dest.sroa.24.0.i.i.ph, %if.then9.i.i ]
%__dest.sroa.17.1.i.i = phi ptr [ %add.ptr.i.i70.i.i, %if.then.i71.i.i ], [ %__dest.sroa.17.0.i.i.ph, %if.then9.i.i ]
%__dest.sroa.0.1.i.i = phi ptr [ %31, %if.then.i71.i.i ], [ %incdec.ptr.i64.i.i, %if.then9.i.i ]
store double %30, ptr %__dest.sroa.0.1.i.i, align 8, !tbaa !13, !noalias !53
br label %while.cond.i.i.outer, !llvm.loop !55
invoke.cont12: ; preds = %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit.thread, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit
%32 = phi ptr [ %10, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit.thread ], [ %.pre96, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit ], [ %.pre96, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i ], [ %.pre96, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i ]
%33 = phi ptr [ %14, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit.thread ], [ %.pre98, %_ZSt4sortISt15_Deque_iteratorIdRdPdEEvT_S4_.exit ], [ %.pre98, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit49.i.i ], [ %.pre98, %_ZNSt15_Deque_iteratorIdRdPdEppEv.exit.i.i.i ]
%34 = load ptr, ptr %container, align 8, !tbaa !56
%tobool.not.i.i = icmp eq ptr %34, null
br i1 %tobool.not.i.i, label %_ZNSt5dequeIdSaIdEED2Ev.exit, label %if.then.i.i70
if.then.i.i70: ; preds = %invoke.cont12
%add.ptr.i.i = getelementptr inbounds ptr, ptr %33, i64 1
%cmp4.i.i.i = icmp ult ptr %32, %add.ptr.i.i
br i1 %cmp4.i.i.i, label %for.body.i.i.i, label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i.i
for.body.i.i.i: ; preds = %if.then.i.i70, %for.body.i.i.i
%__n.05.i.i.i = phi ptr [ %incdec.ptr.i.i.i71, %for.body.i.i.i ], [ %32, %if.then.i.i70 ]
%35 = load ptr, ptr %__n.05.i.i.i, align 8, !tbaa !34
call void @_ZdlPv(ptr noundef %35) #22
%incdec.ptr.i.i.i71 = getelementptr inbounds ptr, ptr %__n.05.i.i.i, i64 1
%cmp.i.i.i72 = icmp ult ptr %__n.05.i.i.i, %33
br i1 %cmp.i.i.i72, label %for.body.i.i.i, label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i.i, !llvm.loop !59
_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i.i: ; preds = %for.body.i.i.i
%.pre.i.i = load ptr, ptr %container, align 8, !tbaa !56
br label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i.i
_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i.i: ; preds = %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i.i, %if.then.i.i70
%36 = phi ptr [ %.pre.i.i, %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i.i ], [ %34, %if.then.i.i70 ]
call void @_ZdlPv(ptr noundef %36) #22
br label %_ZNSt5dequeIdSaIdEED2Ev.exit
_ZNSt5dequeIdSaIdEED2Ev.exit: ; preds = %invoke.cont12, %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i.i
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %container) #25
ret void
lpad: ; preds = %_ZNSt5dequeIdSaIdEE17_S_check_init_lenEmRKS0_.exit.i, %if.then.i.i
%37 = landingpad { ptr, i32 }
cleanup
br label %lpad.body
lpad.body: ; preds = %lpad.i, %lpad
%eh.lpad-body = phi { ptr, i32 } [ %37, %lpad ], [ %0, %lpad.i ]
call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %ref.tmp) #25
br label %ehcleanup13
lpad6: ; preds = %.noexc43, %if.then.i.i42
%38 = landingpad { ptr, i32 }
cleanup
call void @_ZNSt5dequeIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %container) #25
br label %ehcleanup13
ehcleanup13: ; preds = %lpad6, %lpad.body
%.pn = phi { ptr, i32 } [ %38, %lpad6 ], [ %eh.lpad-body, %lpad.body ]
call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %container) #25
resume { ptr, i32 } %.pn
}
; Function Attrs: nounwind uwtable
define linkonce_odr dso_local void @_ZNSt5dequeIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %this) unnamed_addr #3 comdat align 2 personality ptr @__gxx_personality_v0 {
entry:
%0 = load ptr, ptr %this, align 8, !tbaa !56
%tobool.not.i = icmp eq ptr %0, null
br i1 %tobool.not.i, label %_ZNSt11_Deque_baseIdSaIdEED2Ev.exit, label %if.then.i
if.then.i: ; preds = %entry
%_M_node5.i.i8 = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %this, i64 0, i32 3, i32 3
%_M_node5.i.i = getelementptr inbounds %"struct.std::_Deque_base<double, std::allocator<double>>::_Deque_impl_data", ptr %this, i64 0, i32 2, i32 3
%1 = load ptr, ptr %_M_node5.i.i, align 8, !tbaa !60
%2 = load ptr, ptr %_M_node5.i.i8, align 8, !tbaa !61
%add.ptr.i = getelementptr inbounds ptr, ptr %2, i64 1
%cmp4.i.i = icmp ult ptr %1, %add.ptr.i
br i1 %cmp4.i.i, label %for.body.i.i, label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i
for.body.i.i: ; preds = %if.then.i, %for.body.i.i
%__n.05.i.i = phi ptr [ %incdec.ptr.i.i, %for.body.i.i ], [ %1, %if.then.i ]
%3 = load ptr, ptr %__n.05.i.i, align 8, !tbaa !34
tail call void @_ZdlPv(ptr noundef %3) #22
%incdec.ptr.i.i = getelementptr inbounds ptr, ptr %__n.05.i.i, i64 1
%cmp.i.i = icmp ult ptr %__n.05.i.i, %2
br i1 %cmp.i.i, label %for.body.i.i, label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i, !llvm.loop !59
_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i: ; preds = %for.body.i.i
%.pre.i = load ptr, ptr %this, align 8, !tbaa !56
br label %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i
_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i: ; preds = %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i, %if.then.i
%4 = phi ptr [ %.pre.i, %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.loopexit.i ], [ %0, %if.then.i ]
tail call void @_ZdlPv(ptr noundef %4) #22
br label %_ZNSt11_Deque_baseIdSaIdEED2Ev.exit
_ZNSt11_Deque_baseIdSaIdEED2Ev.exit: ; preds = %entry, %_ZNSt11_Deque_baseIdSaIdEE16_M_destroy_nodesEPPdS3_.exit.i
ret void
}
; Function Attrs: uwtable
define dso_local void @_Z9list_testPdS_i(ptr noundef readonly %first, ptr noundef readnone %last, i32 %number_of_times) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
entry:
%__to_destroy.i = alloca %"class.std::__cxx11::list", align 8
%container = alloca %"class.std::__cxx11::list", align 8
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %container) #25
%_M_prev.i.i.i.i.i = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %container, i64 0, i32 1
store ptr %container, ptr %_M_prev.i.i.i.i.i, align 8, !tbaa !62
store ptr %container, ptr %container, align 8, !tbaa !64
%_M_size.i.i.i.i.i = getelementptr inbounds %"struct.std::__detail::_List_node_header", ptr %container, i64 0, i32 1
store i64 0, ptr %_M_size.i.i.i.i.i, align 8, !tbaa !65
%cmp.not4.i.i = icmp eq ptr %first, %last
br i1 %cmp.not4.i.i, label %invoke.cont, label %for.body.i.i
for.body.i.i: ; preds = %entry, %call5.i.i.i.i.i.i.i.noexc.i
%__first.addr.05.i.i = phi ptr [ %incdec.ptr.i.i, %call5.i.i.i.i.i.i.i.noexc.i ], [ %first, %entry ]
%call5.i.i.i.i.i.i.i6.i = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #23
to label %call5.i.i.i.i.i.i.i.noexc.i unwind label %lpad2.i
call5.i.i.i.i.i.i.i.noexc.i: ; preds = %for.body.i.i
%_M_storage.i.i.i.i.i.i = getelementptr inbounds %"struct.std::_List_node", ptr %call5.i.i.i.i.i.i.i6.i, i64 0, i32 1
%0 = load double, ptr %__first.addr.05.i.i, align 8, !tbaa !13
store double %0, ptr %_M_storage.i.i.i.i.i.i, align 8, !tbaa !13
call void @_ZNSt8__detail15_List_node_base7_M_hookEPS0_(ptr noundef nonnull align 8 dereferenceable(16) %call5.i.i.i.i.i.i.i6.i, ptr noundef nonnull %container) #25
%1 = load i64, ptr %_M_size.i.i.i.i.i, align 8, !tbaa !67
%add.i.i.i.i.i = add i64 %1, 1
store i64 %add.i.i.i.i.i, ptr %_M_size.i.i.i.i.i, align 8, !tbaa !67
%incdec.ptr.i.i = getelementptr inbounds double, ptr %__first.addr.05.i.i, i64 1
%cmp.not.i.i = icmp eq ptr %incdec.ptr.i.i, %last
br i1 %cmp.not.i.i, label %invoke.cont, label %for.body.i.i, !llvm.loop !70
lpad2.i: ; preds = %for.body.i.i
%2 = landingpad { ptr, i32 }
cleanup
%3 = load ptr, ptr %container, align 8, !tbaa !64
%cmp.not9.i.i.i = icmp eq ptr %3, %container
br i1 %cmp.not9.i.i.i, label %ehcleanup, label %while.body.i.i.i
while.body.i.i.i: ; preds = %lpad2.i, %while.body.i.i.i
%__cur.010.i.i.i = phi ptr [ %4, %while.body.i.i.i ], [ %3, %lpad2.i ]
%4 = load ptr, ptr %__cur.010.i.i.i, align 8, !tbaa !64
call void @_ZdlPv(ptr noundef %__cur.010.i.i.i) #22
%cmp.not.i.i.i = icmp eq ptr %4, %container
br i1 %cmp.not.i.i.i, label %ehcleanup, label %while.body.i.i.i, !llvm.loop !71
invoke.cont: ; preds = %call5.i.i.i.i.i.i.i.noexc.i, %entry
invoke void @_ZNSt7__cxx114listIdSaIdEE4sortEv(ptr noundef nonnull align 8 dereferenceable(24) %container)
to label %invoke.cont2 unwind label %lpad1
invoke.cont2: ; preds = %invoke.cont
%5 = load ptr, ptr %container, align 8, !tbaa !64
%cmp.i.i = icmp eq ptr %5, %container
br i1 %cmp.i.i, label %_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev.exit, label %if.end.i
if.end.i: ; preds = %invoke.cont2
call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %__to_destroy.i) #25
%_M_prev.i.i.i.i.i.i = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %__to_destroy.i, i64 0, i32 1
store ptr %__to_destroy.i, ptr %_M_prev.i.i.i.i.i.i, align 8, !tbaa !62
store ptr %__to_destroy.i, ptr %__to_destroy.i, align 8, !tbaa !64
%_M_size.i.i.i.i.i.i = getelementptr inbounds %"struct.std::__detail::_List_node_header", ptr %__to_destroy.i, i64 0, i32 1
store i64 0, ptr %_M_size.i.i.i.i.i.i, align 8, !tbaa !65
%6 = load ptr, ptr %5, align 8, !tbaa !64
%cmp.i18.not27.i = icmp eq ptr %6, %container
br i1 %cmp.i18.not27.i, label %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit, label %while.body.i
while.body.i: ; preds = %if.end.i, %if.end16.i
%7 = phi ptr [ %14, %if.end16.i ], [ %6, %if.end.i ]
%__first.sroa.0.028.i = phi ptr [ %__first.sroa.0.1.i, %if.end16.i ], [ %5, %if.end.i ]
%_M_storage.i.i.i = getelementptr inbounds %"struct.std::_List_node", ptr %__first.sroa.0.028.i, i64 0, i32 1
%8 = load double, ptr %_M_storage.i.i.i, align 8, !tbaa !13
%_M_storage.i.i19.i = getelementptr inbounds %"struct.std::_List_node", ptr %7, i64 0, i32 1
%9 = load double, ptr %_M_storage.i.i19.i, align 8, !tbaa !13
%cmp.i = fcmp oeq double %8, %9
br i1 %cmp.i, label %if.then9.i, label %if.end16.i
if.then9.i: ; preds = %while.body.i
%10 = load ptr, ptr %__to_destroy.i, align 8, !tbaa !64
%11 = load ptr, ptr %7, align 8, !tbaa !64
%cmp.i.i.i.i = icmp eq ptr %10, %7
%cmp.i21.i.i.i = icmp eq ptr %11, %10
%or.cond.i.i.i = select i1 %cmp.i.i.i.i, i1 true, i1 %cmp.i21.i.i.i
br i1 %or.cond.i.i.i, label %if.end16.i, label %if.end.i.i.i
if.end.i.i.i: ; preds = %if.then9.i
call void @_ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull %7, ptr noundef %11) #25
%12 = load i64, ptr %_M_size.i.i.i.i.i.i, align 8, !tbaa !67
%add.i.i.i.i = add i64 %12, 1
store i64 %add.i.i.i.i, ptr %_M_size.i.i.i.i.i.i, align 8, !tbaa !67
%13 = load i64, ptr %_M_size.i.i.i.i.i, align 8, !tbaa !67
%sub.i.i.i.i = add i64 %13, -1
store i64 %sub.i.i.i.i, ptr %_M_size.i.i.i.i.i, align 8, !tbaa !67
br label %if.end16.i
if.end16.i: ; preds = %if.end.i.i.i, %if.then9.i, %while.body.i
%__first.sroa.0.1.i = phi ptr [ %__first.sroa.0.028.i, %if.then9.i ], [ %__first.sroa.0.028.i, %if.end.i.i.i ], [ %7, %while.body.i ]
%14 = load ptr, ptr %__first.sroa.0.1.i, align 8, !tbaa !64
%cmp.i18.not.i = icmp eq ptr %14, %container
br i1 %cmp.i18.not.i, label %while.end.i, label %while.body.i, !llvm.loop !72
while.end.i: ; preds = %if.end16.i
%.pre.i = load ptr, ptr %__to_destroy.i, align 8, !tbaa !64
%cmp.not9.i.i.i5 = icmp eq ptr %.pre.i, %__to_destroy.i
br i1 %cmp.not9.i.i.i5, label %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit, label %while.body.i.i.i8
while.body.i.i.i8: ; preds = %while.end.i, %while.body.i.i.i8
%__cur.010.i.i.i6 = phi ptr [ %15, %while.body.i.i.i8 ], [ %.pre.i, %while.end.i ]
%15 = load ptr, ptr %__cur.010.i.i.i6, align 8, !tbaa !64
call void @_ZdlPv(ptr noundef %__cur.010.i.i.i6) #22
%cmp.not.i.i.i7 = icmp eq ptr %15, %__to_destroy.i
br i1 %cmp.not.i.i.i7, label %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit, label %while.body.i.i.i8, !llvm.loop !71
_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit: ; preds = %while.body.i.i.i8, %if.end.i, %while.end.i
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %__to_destroy.i) #25
%.pre = load ptr, ptr %container, align 8, !tbaa !64
%cmp.not9.i.i = icmp eq ptr %.pre, %container
br i1 %cmp.not9.i.i, label %_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev.exit, label %while.body.i.i
while.body.i.i: ; preds = %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit, %while.body.i.i
%__cur.010.i.i = phi ptr [ %16, %while.body.i.i ], [ %.pre, %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit ]
%16 = load ptr, ptr %__cur.010.i.i, align 8, !tbaa !64
call void @_ZdlPv(ptr noundef %__cur.010.i.i) #22
%cmp.not.i.i10 = icmp eq ptr %16, %container
br i1 %cmp.not.i.i10, label %_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev.exit, label %while.body.i.i, !llvm.loop !71
_ZNSt7__cxx1110_List_baseIdSaIdEED2Ev.exit: ; preds = %while.body.i.i, %invoke.cont2, %_ZNSt7__cxx114listIdSaIdEE6uniqueEv.exit
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %container) #25
ret void
lpad1: ; preds = %invoke.cont
%17 = landingpad { ptr, i32 }
cleanup
%18 = load ptr, ptr %container, align 8, !tbaa !64
%cmp.not9.i.i11 = icmp eq ptr %18, %container
br i1 %cmp.not9.i.i11, label %ehcleanup, label %while.body.i.i14
while.body.i.i14: ; preds = %lpad1, %while.body.i.i14
%__cur.010.i.i12 = phi ptr [ %19, %while.body.i.i14 ], [ %18, %lpad1 ]
%19 = load ptr, ptr %__cur.010.i.i12, align 8, !tbaa !64
call void @_ZdlPv(ptr noundef %__cur.010.i.i12) #22
%cmp.not.i.i13 = icmp eq ptr %19, %container
br i1 %cmp.not.i.i13, label %ehcleanup, label %while.body.i.i14, !llvm.loop !71
ehcleanup: ; preds = %while.body.i.i.i, %while.body.i.i14, %lpad1, %lpad2.i
%.pn = phi { ptr, i32 } [ %2, %lpad2.i ], [ %17, %lpad1 ], [ %17, %while.body.i.i14 ], [ %2, %while.body.i.i.i ]
call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %container) #25
resume { ptr, i32 } %.pn
}
; Function Attrs: uwtable
define linkonce_odr dso_local void @_ZNSt7__cxx114listIdSaIdEE4sortEv(ptr noundef nonnull align 8 dereferenceable(24) %this) local_unnamed_addr #8 comdat align 2 personality ptr @__gxx_personality_v0 {
entry:
%__carry = alloca %"struct.std::__detail::_Scratch_list", align 8
%__tmp = alloca [64 x %"struct.std::__detail::_Scratch_list"], align 16
%0 = load ptr, ptr %this, align 8, !tbaa !64
%cmp.not = icmp eq ptr %0, %this
br i1 %cmp.not, label %if.end63, label %land.lhs.true
land.lhs.true: ; preds = %entry
%1 = load ptr, ptr %0, align 8, !tbaa !64
%cmp10.not = icmp eq ptr %1, %this
br i1 %cmp10.not, label %if.end63, label %if.then
if.then: ; preds = %land.lhs.true
call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %__carry) #25
%_M_prev.i = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %__carry, i64 0, i32 1
store ptr %__carry, ptr %_M_prev.i, align 8, !tbaa !62
store ptr %__carry, ptr %__carry, align 8, !tbaa !64
call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %__tmp) #25
br label %arrayctor.loop
arrayctor.loop: ; preds = %arrayctor.loop, %if.then
%arrayctor.cur.idx = phi i64 [ 0, %if.then ], [ %arrayctor.cur.add.3, %arrayctor.loop ]
%arrayctor.cur.ptr = getelementptr inbounds %"struct.std::__detail::_Scratch_list", ptr %__tmp, i64 %arrayctor.cur.idx
%_M_prev.i82 = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %arrayctor.cur.ptr, i64 0, i32 1
store ptr %arrayctor.cur.ptr, ptr %_M_prev.i82, align 8, !tbaa !62
store ptr %arrayctor.cur.ptr, ptr %arrayctor.cur.ptr, align 16, !tbaa !64
%arrayctor.cur.add = or i64 %arrayctor.cur.idx, 1
%arrayctor.cur.ptr.1 = getelementptr inbounds %"struct.std::__detail::_Scratch_list", ptr %__tmp, i64 %arrayctor.cur.add
%_M_prev.i82.1 = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %arrayctor.cur.ptr.1, i64 0, i32 1
store ptr %arrayctor.cur.ptr.1, ptr %_M_prev.i82.1, align 8, !tbaa !62
store ptr %arrayctor.cur.ptr.1, ptr %arrayctor.cur.ptr.1, align 16, !tbaa !64
%arrayctor.cur.add.1 = or i64 %arrayctor.cur.idx, 2
%arrayctor.cur.ptr.2 = getelementptr inbounds %"struct.std::__detail::_Scratch_list", ptr %__tmp, i64 %arrayctor.cur.add.1
%_M_prev.i82.2 = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %arrayctor.cur.ptr.2, i64 0, i32 1
store ptr %arrayctor.cur.ptr.2, ptr %_M_prev.i82.2, align 8, !tbaa !62
store ptr %arrayctor.cur.ptr.2, ptr %arrayctor.cur.ptr.2, align 16, !tbaa !64
%arrayctor.cur.add.2 = or i64 %arrayctor.cur.idx, 3
%arrayctor.cur.ptr.3 = getelementptr inbounds %"struct.std::__detail::_Scratch_list", ptr %__tmp, i64 %arrayctor.cur.add.2
%_M_prev.i82.3 = getelementptr inbounds %"struct.std::__detail::_List_node_base", ptr %arrayctor.cur.ptr.3, i64 0, i32 1
store ptr %arrayctor.cur.ptr.3, ptr %_M_prev.i82.3, align 8, !tbaa !62
store ptr %arrayctor.cur.ptr.3, ptr %arrayctor.cur.ptr.3, align 16, !tbaa !64
%arrayctor.cur.add.3 = add nuw nsw i64 %arrayctor.cur.idx, 4
%arrayctor.done.3 = icmp eq i64 %arrayctor.cur.add.3, 64
br i1 %arrayctor.done.3, label %do.body, label %arrayctor.loop
do.body: ; preds = %arrayctor.loop, %for.end
%2 = phi ptr [ %11, %for.end ], [ %0, %arrayctor.loop ]
%__fill.0 = phi ptr [ %spec.select, %for.end ], [ %__tmp, %arrayctor.loop ]
%3 = load ptr, ptr %2, align 8, !tbaa !64
call void @_ZNSt8__detail15_List_node_base11_M_transferEPS0_S1_(ptr noundef nonnull align 8 dereferenceable(16) %__carry, ptr noundef nonnull %2, ptr noundef %3) #25
%cmp13.not114 = icmp eq ptr %__tmp, %__fill.0
br i1 %cmp13.not114, label %for.end, label %land.rhs
land.rhs: ; preds = %do.body, %invoke.cont17
%__counter.0115 = phi ptr [ %incdec.ptr, %invoke.cont17 ], [ %__tmp, %do.body ]
%4 = load ptr, ptr %__counter.0115, align 8, !tbaa !64
%cmp.i.not = icmp eq ptr %4, %__counter.0115
br i1 %cmp.i.not, label %for.end, label %for.body
for.body: ; preds = %land.rhs
%5 = load ptr, ptr %__carry, align 8, !tbaa !64
%cmp322.i.not = icmp eq ptr %5, %__carry
br i1 %cmp322.i.not, label %invoke.cont17, label %while.body.i
while.body.i: ; preds = %for.body, %if.end.i
%__first1.024.i = phi ptr [ %__first1.1.i, %if.end.i ], [ %4, %for.body ]
%__first2.023.i = phi ptr [ %__first2.1.i, %if.end.i ], [ %5, %for.body ]
%_M_storage.i.i.i.i = getelementptr inbounds %"struct.std::_List_node", ptr %__first2.023.i, i64 0, i32 1
%6 = load double, ptr %_M_storage.i.i.i.i, align 8, !tbaa !13
%_M_storage.i.i4.i.i = getelementptr inbounds %"struct.std::_List_node", ptr %__first1.024.i, i64 0, i32 1
%7 = load double, ptr %_M_storage.i.i4.i.i, align 8, !tbaa !13
%cmp.i.i = fcmp olt double %6, %7
br i1 %cmp.i.i, label %if.then.i, label %if.else.i