; LLVM IR from Lakhankumawat/LearnCPP :: S-SortingAlgorithms/BucketSort.ll (Z10BucketSortPd)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Node = type { double, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10BucketSortPd(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %11 = call noalias ptr @malloc(i64 noundef 48) #8
  store ptr %11, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %20, %1
  %13 = load i32, ptr %3, align 4, !tbaa !9
  %14 = icmp slt i32 %13, 6
  br i1 %14, label %15, label %23

15:                                               ; preds = %12
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds ptr, ptr %16, i64 %18
  store ptr null, ptr %19, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %15
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %3, align 4, !tbaa !9
  br label %12, !llvm.loop !11

23:                                               ; preds = %12
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %55, %23
  %25 = load i32, ptr %3, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 10
  br i1 %26, label %27, label %58

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds double, ptr %28, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !13
  %33 = fptosi double %32 to i32
  %34 = call noundef i32 @_Z14getBucketIndexi(i32 noundef %33)
  store i32 %34, ptr %7, align 4, !tbaa !9
  %35 = call noalias ptr @malloc(i64 noundef 16) #8
  store ptr %35, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = load i32, ptr %3, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !13
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Node, ptr %41, i32 0, i32 0
  store double %40, ptr %42, align 8, !tbaa !15
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Node, ptr %48, i32 0, i32 1
  store ptr %47, ptr %49, align 8, !tbaa !17
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds ptr, ptr %51, i64 %53
  store ptr %50, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %55

55:                                               ; preds = %27
  %56 = load i32, ptr %3, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %3, align 4, !tbaa !9
  br label %24, !llvm.loop !18

58:                                               ; preds = %24
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %73, %58
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = icmp slt i32 %60, 6
  br i1 %61, label %62, label %76

62:                                               ; preds = %59
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %64 = load i32, ptr %3, align 4, !tbaa !9
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.1)
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i32, ptr %3, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds ptr, ptr %67, i64 %69
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  call void @_Z12printBucketsP4Node(ptr noundef %71)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %73

73:                                               ; preds = %62
  %74 = load i32, ptr %3, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %3, align 4, !tbaa !9
  br label %59, !llvm.loop !19

76:                                               ; preds = %59
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %91, %76
  %78 = load i32, ptr %3, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 6
  br i1 %79, label %80, label %94

80:                                               ; preds = %77
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load i32, ptr %3, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds ptr, ptr %81, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %85)
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = load i32, ptr %3, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds ptr, ptr %87, i64 %89
  store ptr %86, ptr %90, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %80
  %92 = load i32, ptr %3, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %3, align 4, !tbaa !9
  br label %77, !llvm.loop !20

94:                                               ; preds = %77
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %95, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %113, %94
  %100 = load i32, ptr %3, align 4, !tbaa !9
  %101 = icmp slt i32 %100, 6
  br i1 %101, label %102, label %116

102:                                              ; preds = %99
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %104 = load i32, ptr %3, align 4, !tbaa !9
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %103, i32 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.1)
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load i32, ptr %3, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  call void @_Z12printBucketsP4Node(ptr noundef %111)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %113

113:                                              ; preds = %102
  %114 = load i32, ptr %3, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %3, align 4, !tbaa !9
  br label %99, !llvm.loop !21

116:                                              ; preds = %99
  store i32 0, ptr %4, align 4, !tbaa !9
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %142, %116
  %118 = load i32, ptr %3, align 4, !tbaa !9
  %119 = icmp slt i32 %118, 6
  br i1 %119, label %120, label %145

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = load i32, ptr %3, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  store ptr %125, ptr %8, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %129, %120
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %141

129:                                              ; preds = %126
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Node, ptr %130, i32 0, i32 0
  %132 = load double, ptr %131, align 8, !tbaa !15
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  %134 = load i32, ptr %4, align 4, !tbaa !9
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %4, align 4, !tbaa !9
  %136 = sext i32 %134 to i64
  %137 = getelementptr inbounds double, ptr %133, i64 %136
  store double %132, ptr %137, align 8, !tbaa !13
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.Node, ptr %138, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  store ptr %140, ptr %8, align 8, !tbaa !5
  br label %126, !llvm.loop !22

141:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %3, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %3, align 4, !tbaa !9
  br label %117, !llvm.loop !23

145:                                              ; preds = %117
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %165, %145
  %147 = load i32, ptr %3, align 4, !tbaa !9
  %148 = icmp slt i32 %147, 6
  br i1 %148, label %149, label %168

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i32, ptr %3, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  store ptr %154, ptr %9, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %158, %149
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %164

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %159, ptr %10, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.Node, ptr %160, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !17
  store ptr %162, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %163) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %155, !llvm.loop !24

164:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %3, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %3, align 4, !tbaa !9
  br label %146, !llvm.loop !25

168:                                              ; preds = %146
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %169) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14getBucketIndexi(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12printBucketsP4Node(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z13InsertionSortP4Node(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"_ZTS4Node", !14, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10BucketSortPd(ptr nocapture noundef %0) local_unnamed_addr #0 {
.preheader58.preheader:
  %calloc = tail call dereferenceable_or_null(48) ptr @calloc(i64 1, i64 48)
  %1 = load double, ptr %0, align 8, !tbaa !5
  %2 = fptosi double %1 to i32
  %3 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %2)
  %4 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %5 = load double, ptr %0, align 8, !tbaa !5
  store double %5, ptr %4, align 8, !tbaa !9
  %6 = sext i32 %3 to i64
  %7 = getelementptr inbounds ptr, ptr %calloc, i64 %6
  %8 = load ptr, ptr %7, align 8, !tbaa !12
  %9 = getelementptr inbounds i8, ptr %4, i64 8
  store ptr %8, ptr %9, align 8, !tbaa !13
  store ptr %4, ptr %7, align 8, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = load double, ptr %10, align 8, !tbaa !5
  %12 = fptosi double %11 to i32
  %13 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %12)
  %14 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %15 = load double, ptr %10, align 8, !tbaa !5
  store double %15, ptr %14, align 8, !tbaa !9
  %16 = sext i32 %13 to i64
  %17 = getelementptr inbounds ptr, ptr %calloc, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %18, ptr %19, align 8, !tbaa !13
  store ptr %14, ptr %17, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load double, ptr %20, align 8, !tbaa !5
  %22 = fptosi double %21 to i32
  %23 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %22)
  %24 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %25 = load double, ptr %20, align 8, !tbaa !5
  store double %25, ptr %24, align 8, !tbaa !9
  %26 = sext i32 %23 to i64
  %27 = getelementptr inbounds ptr, ptr %calloc, i64 %26
  %28 = load ptr, ptr %27, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %24, i64 8
  store ptr %28, ptr %29, align 8, !tbaa !13
  store ptr %24, ptr %27, align 8, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %0, i64 24
  %31 = load double, ptr %30, align 8, !tbaa !5
  %32 = fptosi double %31 to i32
  %33 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %32)
  %34 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %35 = load double, ptr %30, align 8, !tbaa !5
  store double %35, ptr %34, align 8, !tbaa !9
  %36 = sext i32 %33 to i64
  %37 = getelementptr inbounds ptr, ptr %calloc, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  %39 = getelementptr inbounds i8, ptr %34, i64 8
  store ptr %38, ptr %39, align 8, !tbaa !13
  store ptr %34, ptr %37, align 8, !tbaa !12
  %40 = getelementptr inbounds i8, ptr %0, i64 32
  %41 = load double, ptr %40, align 8, !tbaa !5
  %42 = fptosi double %41 to i32
  %43 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %42)
  %44 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %45 = load double, ptr %40, align 8, !tbaa !5
  store double %45, ptr %44, align 8, !tbaa !9
  %46 = sext i32 %43 to i64
  %47 = getelementptr inbounds ptr, ptr %calloc, i64 %46
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  %49 = getelementptr inbounds i8, ptr %44, i64 8
  store ptr %48, ptr %49, align 8, !tbaa !13
  store ptr %44, ptr %47, align 8, !tbaa !12
  %50 = getelementptr inbounds i8, ptr %0, i64 40
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = fptosi double %51 to i32
  %53 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %52)
  %54 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %55 = load double, ptr %50, align 8, !tbaa !5
  store double %55, ptr %54, align 8, !tbaa !9
  %56 = sext i32 %53 to i64
  %57 = getelementptr inbounds ptr, ptr %calloc, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %58, ptr %59, align 8, !tbaa !13
  store ptr %54, ptr %57, align 8, !tbaa !12
  %60 = getelementptr inbounds i8, ptr %0, i64 48
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fptosi double %61 to i32
  %63 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %62)
  %64 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %65 = load double, ptr %60, align 8, !tbaa !5
  store double %65, ptr %64, align 8, !tbaa !9
  %66 = sext i32 %63 to i64
  %67 = getelementptr inbounds ptr, ptr %calloc, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = getelementptr inbounds i8, ptr %64, i64 8
  store ptr %68, ptr %69, align 8, !tbaa !13
  store ptr %64, ptr %67, align 8, !tbaa !12
  %70 = getelementptr inbounds i8, ptr %0, i64 56
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = fptosi double %71 to i32
  %73 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %72)
  %74 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %75 = load double, ptr %70, align 8, !tbaa !5
  store double %75, ptr %74, align 8, !tbaa !9
  %76 = sext i32 %73 to i64
  %77 = getelementptr inbounds ptr, ptr %calloc, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !12
  %79 = getelementptr inbounds i8, ptr %74, i64 8
  store ptr %78, ptr %79, align 8, !tbaa !13
  store ptr %74, ptr %77, align 8, !tbaa !12
  %80 = getelementptr inbounds i8, ptr %0, i64 64
  %81 = load double, ptr %80, align 8, !tbaa !5
  %82 = fptosi double %81 to i32
  %83 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %82)
  %84 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %85 = load double, ptr %80, align 8, !tbaa !5
  store double %85, ptr %84, align 8, !tbaa !9
  %86 = sext i32 %83 to i64
  %87 = getelementptr inbounds ptr, ptr %calloc, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = getelementptr inbounds i8, ptr %84, i64 8
  store ptr %88, ptr %89, align 8, !tbaa !13
  store ptr %84, ptr %87, align 8, !tbaa !12
  %90 = getelementptr inbounds i8, ptr %0, i64 72
  %91 = load double, ptr %90, align 8, !tbaa !5
  %92 = fptosi double %91 to i32
  %93 = tail call noundef i32 @_Z14getBucketIndexi(i32 noundef %92)
  %94 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  %95 = load double, ptr %90, align 8, !tbaa !5
  store double %95, ptr %94, align 8, !tbaa !9
  %96 = sext i32 %93 to i64
  %97 = getelementptr inbounds ptr, ptr %calloc, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  %99 = getelementptr inbounds i8, ptr %94, i64 8
  store ptr %98, ptr %99, align 8, !tbaa !13
  store ptr %94, ptr %97, align 8, !tbaa !12
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %101 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %100, i32 noundef 0)
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @.str.1)
  %103 = load ptr, ptr %calloc, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %103)
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %106 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef 1)
  %107 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %106, ptr noundef nonnull @.str.1)
  %108 = getelementptr inbounds i8, ptr %calloc, i64 8
  %109 = load ptr, ptr %108, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %109)
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %111 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %112 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %111, i32 noundef 2)
  %113 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.1)
  %114 = getelementptr inbounds i8, ptr %calloc, i64 16
  %115 = load ptr, ptr %114, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %115)
  %116 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %117 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %118 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %117, i32 noundef 3)
  %119 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef nonnull @.str.1)
  %120 = getelementptr inbounds i8, ptr %calloc, i64 24
  %121 = load ptr, ptr %120, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %121)
  %122 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %123 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %124 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %123, i32 noundef 4)
  %125 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @.str.1)
  %126 = getelementptr inbounds i8, ptr %calloc, i64 32
  %127 = load ptr, ptr %126, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %127)
  %128 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %129 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %130 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %129, i32 noundef 5)
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef nonnull @.str.1)
  %132 = getelementptr inbounds i8, ptr %calloc, i64 40
  %133 = load ptr, ptr %132, align 8, !tbaa !12
  tail call void @_Z12printBucketsP4Node(ptr noundef %133)
  %134 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %135 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %103)
  store ptr %135, ptr %calloc, align 8, !tbaa !12
  %136 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %109)
  store ptr %136, ptr %108, align 8, !tbaa !12
  %137 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %115)
  store ptr %137, ptr %114, align 8, !tbaa !12
  %138 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %121)
  store ptr %138, ptr %120, align 8, !tbaa !12
  %139 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %127)
  store ptr %139, ptr %126, align 8, !tbaa !12
  %140 = tail call noundef ptr @_Z13InsertionSortP4Node(ptr noundef %133)
  store ptr %140, ptr %132, align 8, !tbaa !12
  %141 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %142 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %143 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %144 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %145 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %146 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %145, i32 noundef 0)
  %147 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %135)
  %148 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %149 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %150 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %149, i32 noundef 1)
  %151 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %136)
  %152 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %153 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %154 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %153, i32 noundef 2)
  %155 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %137)
  %156 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %157 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %158 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %157, i32 noundef 3)
  %159 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %138)
  %160 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %161 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %162 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %161, i32 noundef 4)
  %163 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %139)
  %164 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %165 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %166 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %165, i32 noundef 5)
  %167 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull @.str.1)
  tail call void @_Z12printBucketsP4Node(ptr noundef %140)
  %168 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.not5465 = icmp eq ptr %135, null
  br i1 %.not5465, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader58.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader58.preheader ]
  %.05167 = phi ptr [ %.051, %.lr.ph ], [ %135, %.preheader58.preheader ]
  %169 = load double, ptr %.05167, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %170 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  store double %169, ptr %170, align 8, !tbaa !5
  %171 = getelementptr inbounds i8, ptr %.05167, i64 8
  %.051 = load ptr, ptr %171, align 8, !tbaa !12
  %.not54 = icmp eq ptr %.051, null
  br i1 %.not54, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %172 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader58.preheader
  %.153.lcssa = phi i32 [ 0, %.preheader58.preheader ], [ %172, %._crit_edge.loopexit ]
  %.not5465.1 = icmp eq ptr %136, null
  br i1 %.not5465.1, label %._crit_edge.1, label %.lr.ph.preheader.1

.lr.ph.preheader.1:                               ; preds = %._crit_edge
  %173 = sext i32 %.153.lcssa to i64
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph.1, %.lr.ph.preheader.1
  %indvars.iv.1 = phi i64 [ %173, %.lr.ph.preheader.1 ], [ %indvars.iv.next.1, %.lr.ph.1 ]
  %.05167.1 = phi ptr [ %136, %.lr.ph.preheader.1 ], [ %.051.1, %.lr.ph.1 ]
  %174 = load double, ptr %.05167.1, align 8, !tbaa !9
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %175 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.1
  store double %174, ptr %175, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %.05167.1, i64 8
  %.051.1 = load ptr, ptr %176, align 8, !tbaa !12
  %.not54.1 = icmp eq ptr %.051.1, null
  br i1 %.not54.1, label %._crit_edge.loopexit.1, label %.lr.ph.1, !llvm.loop !14

._crit_edge.loopexit.1:                           ; preds = %.lr.ph.1
  %177 = trunc nsw i64 %indvars.iv.next.1 to i32
  br label %._crit_edge.1

._crit_edge.1:                                    ; preds = %._crit_edge.loopexit.1, %._crit_edge
  %.153.lcssa.1 = phi i32 [ %.153.lcssa, %._crit_edge ], [ %177, %._crit_edge.loopexit.1 ]
  %.not5465.2 = icmp eq ptr %137, null
  br i1 %.not5465.2, label %._crit_edge.2, label %.lr.ph.preheader.2

.lr.ph.preheader.2:                               ; preds = %._crit_edge.1
  %178 = sext i32 %.153.lcssa.1 to i64
  br label %.lr.ph.2

.lr.ph.2:                                         ; preds = %.lr.ph.2, %.lr.ph.preheader.2
  %indvars.iv.2 = phi i64 [ %178, %.lr.ph.preheader.2 ], [ %indvars.iv.next.2, %.lr.ph.2 ]
  %.05167.2 = phi ptr [ %137, %.lr.ph.preheader.2 ], [ %.051.2, %.lr.ph.2 ]
  %179 = load double, ptr %.05167.2, align 8, !tbaa !9
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %180 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.2
  store double %179, ptr %180, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %.05167.2, i64 8
  %.051.2 = load ptr, ptr %181, align 8, !tbaa !12
  %.not54.2 = icmp eq ptr %.051.2, null
  br i1 %.not54.2, label %._crit_edge.loopexit.2, label %.lr.ph.2, !llvm.loop !14

._crit_edge.loopexit.2:                           ; preds = %.lr.ph.2
  %182 = trunc nsw i64 %indvars.iv.next.2 to i32
  br label %._crit_edge.2

._crit_edge.2:                                    ; preds = %._crit_edge.loopexit.2, %._crit_edge.1
  %.153.lcssa.2 = phi i32 [ %.153.lcssa.1, %._crit_edge.1 ], [ %182, %._crit_edge.loopexit.2 ]
  %.not5465.3 = icmp eq ptr %138, null
  br i1 %.not5465.3, label %._crit_edge.3, label %.lr.ph.preheader.3

.lr.ph.preheader.3:                               ; preds = %._crit_edge.2
  %183 = sext i32 %.153.lcssa.2 to i64
  br label %.lr.ph.3

.lr.ph.3:                                         ; preds = %.lr.ph.3, %.lr.ph.preheader.3
  %indvars.iv.3 = phi i64 [ %183, %.lr.ph.preheader.3 ], [ %indvars.iv.next.3, %.lr.ph.3 ]
  %.05167.3 = phi ptr [ %138, %.lr.ph.preheader.3 ], [ %.051.3, %.lr.ph.3 ]
  %184 = load double, ptr %.05167.3, align 8, !tbaa !9
  %indvars.iv.next.3 = add nsw i64 %indvars.iv.3, 1
  %185 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.3
  store double %184, ptr %185, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %.05167.3, i64 8
  %.051.3 = load ptr, ptr %186, align 8, !tbaa !12
  %.not54.3 = icmp eq ptr %.051.3, null
  br i1 %.not54.3, label %._crit_edge.loopexit.3, label %.lr.ph.3, !llvm.loop !14

._crit_edge.loopexit.3:                           ; preds = %.lr.ph.3
  %187 = trunc nsw i64 %indvars.iv.next.3 to i32
  br label %._crit_edge.3

._crit_edge.3:                                    ; preds = %._crit_edge.loopexit.3, %._crit_edge.2
  %.153.lcssa.3 = phi i32 [ %.153.lcssa.2, %._crit_edge.2 ], [ %187, %._crit_edge.loopexit.3 ]
  %.not5465.4 = icmp eq ptr %139, null
  br i1 %.not5465.4, label %._crit_edge.4, label %.lr.ph.preheader.4

.lr.ph.preheader.4:                               ; preds = %._crit_edge.3
  %188 = sext i32 %.153.lcssa.3 to i64
  br label %.lr.ph.4

.lr.ph.4:                                         ; preds = %.lr.ph.4, %.lr.ph.preheader.4
  %indvars.iv.4 = phi i64 [ %188, %.lr.ph.preheader.4 ], [ %indvars.iv.next.4, %.lr.ph.4 ]
  %.05167.4 = phi ptr [ %139, %.lr.ph.preheader.4 ], [ %.051.4, %.lr.ph.4 ]
  %189 = load double, ptr %.05167.4, align 8, !tbaa !9
  %indvars.iv.next.4 = add nsw i64 %indvars.iv.4, 1
  %190 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.4
  store double %189, ptr %190, align 8, !tbaa !5
  %191 = getelementptr inbounds i8, ptr %.05167.4, i64 8
  %.051.4 = load ptr, ptr %191, align 8, !tbaa !12
  %.not54.4 = icmp eq ptr %.051.4, null
  br i1 %.not54.4, label %._crit_edge.loopexit.4, label %.lr.ph.4, !llvm.loop !14

._crit_edge.loopexit.4:                           ; preds = %.lr.ph.4
  %192 = trunc nsw i64 %indvars.iv.next.4 to i32
  br label %._crit_edge.4

._crit_edge.4:                                    ; preds = %._crit_edge.loopexit.4, %._crit_edge.3
  %.153.lcssa.4 = phi i32 [ %.153.lcssa.3, %._crit_edge.3 ], [ %192, %._crit_edge.loopexit.4 ]
  %.not5465.5 = icmp eq ptr %140, null
  br i1 %.not5465.5, label %._crit_edge.5, label %.lr.ph.preheader.5

.lr.ph.preheader.5:                               ; preds = %._crit_edge.4
  %193 = sext i32 %.153.lcssa.4 to i64
  br label %.lr.ph.5

.lr.ph.5:                                         ; preds = %.lr.ph.5, %.lr.ph.preheader.5
  %indvars.iv.5 = phi i64 [ %193, %.lr.ph.preheader.5 ], [ %indvars.iv.next.5, %.lr.ph.5 ]
  %.05167.5 = phi ptr [ %140, %.lr.ph.preheader.5 ], [ %.051.5, %.lr.ph.5 ]
  %194 = load double, ptr %.05167.5, align 8, !tbaa !9
  %indvars.iv.next.5 = add nsw i64 %indvars.iv.5, 1
  %195 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.5
  store double %194, ptr %195, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %.05167.5, i64 8
  %.051.5 = load ptr, ptr %196, align 8, !tbaa !12
  %.not54.5 = icmp eq ptr %.051.5, null
  br i1 %.not54.5, label %._crit_edge.5, label %.lr.ph.5, !llvm.loop !14

._crit_edge.5:                                    ; preds = %.lr.ph.5, %._crit_edge.4
  br i1 %.not5465, label %._crit_edge74, label %.lr.ph73

.lr.ph73:                                         ; preds = %._crit_edge.5, %.lr.ph73
  %.05071 = phi ptr [ %198, %.lr.ph73 ], [ %135, %._crit_edge.5 ]
  %197 = getelementptr inbounds i8, ptr %.05071, i64 8
  %198 = load ptr, ptr %197, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071) #8
  %.not = icmp eq ptr %198, null
  br i1 %.not, label %._crit_edge74, label %.lr.ph73, !llvm.loop !16

._crit_edge74:                                    ; preds = %.lr.ph73, %._crit_edge.5
  br i1 %.not5465.1, label %._crit_edge74.1, label %.lr.ph73.1

.lr.ph73.1:                                       ; preds = %._crit_edge74, %.lr.ph73.1
  %.05071.1 = phi ptr [ %200, %.lr.ph73.1 ], [ %136, %._crit_edge74 ]
  %199 = getelementptr inbounds i8, ptr %.05071.1, i64 8
  %200 = load ptr, ptr %199, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071.1) #8
  %.not.1 = icmp eq ptr %200, null
  br i1 %.not.1, label %._crit_edge74.1, label %.lr.ph73.1, !llvm.loop !16

._crit_edge74.1:                                  ; preds = %.lr.ph73.1, %._crit_edge74
  br i1 %.not5465.2, label %._crit_edge74.2, label %.lr.ph73.2

.lr.ph73.2:                                       ; preds = %._crit_edge74.1, %.lr.ph73.2
  %.05071.2 = phi ptr [ %202, %.lr.ph73.2 ], [ %137, %._crit_edge74.1 ]
  %201 = getelementptr inbounds i8, ptr %.05071.2, i64 8
  %202 = load ptr, ptr %201, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071.2) #8
  %.not.2 = icmp eq ptr %202, null
  br i1 %.not.2, label %._crit_edge74.2, label %.lr.ph73.2, !llvm.loop !16

._crit_edge74.2:                                  ; preds = %.lr.ph73.2, %._crit_edge74.1
  br i1 %.not5465.3, label %._crit_edge74.3, label %.lr.ph73.3

.lr.ph73.3:                                       ; preds = %._crit_edge74.2, %.lr.ph73.3
  %.05071.3 = phi ptr [ %204, %.lr.ph73.3 ], [ %138, %._crit_edge74.2 ]
  %203 = getelementptr inbounds i8, ptr %.05071.3, i64 8
  %204 = load ptr, ptr %203, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071.3) #8
  %.not.3 = icmp eq ptr %204, null
  br i1 %.not.3, label %._crit_edge74.3, label %.lr.ph73.3, !llvm.loop !16

._crit_edge74.3:                                  ; preds = %.lr.ph73.3, %._crit_edge74.2
  br i1 %.not5465.4, label %._crit_edge74.4, label %.lr.ph73.4

.lr.ph73.4:                                       ; preds = %._crit_edge74.3, %.lr.ph73.4
  %.05071.4 = phi ptr [ %206, %.lr.ph73.4 ], [ %139, %._crit_edge74.3 ]
  %205 = getelementptr inbounds i8, ptr %.05071.4, i64 8
  %206 = load ptr, ptr %205, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071.4) #8
  %.not.4 = icmp eq ptr %206, null
  br i1 %.not.4, label %._crit_edge74.4, label %.lr.ph73.4, !llvm.loop !16

._crit_edge74.4:                                  ; preds = %.lr.ph73.4, %._crit_edge74.3
  br i1 %.not5465.5, label %._crit_edge74.5, label %.lr.ph73.5

.lr.ph73.5:                                       ; preds = %._crit_edge74.4, %.lr.ph73.5
  %.05071.5 = phi ptr [ %208, %.lr.ph73.5 ], [ %140, %._crit_edge74.4 ]
  %207 = getelementptr inbounds i8, ptr %.05071.5, i64 8
  %208 = load ptr, ptr %207, align 8, !tbaa !13
  tail call void @free(ptr noundef nonnull %.05071.5) #8
  %.not.5 = icmp eq ptr %208, null
  br i1 %.not.5, label %._crit_edge74.5, label %.lr.ph73.5, !llvm.loop !16

._crit_edge74.5:                                  ; preds = %.lr.ph73.5, %._crit_edge74.4
  tail call void @free(ptr noundef %calloc) #8
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14getBucketIndexi(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12printBucketsP4Node(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z13InsertionSortP4Node(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS4Node", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass