; LLVM IR from siconos/siconos :: externals/sort/test (benchmark)

; 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"

@sizes = external dso_local global [1 x i64], align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_shell_sort(ptr noundef, i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_binary_insertion_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_merge_sort_in_place(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_merge_sort(ptr noundef, i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_quick_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_tim_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_heap_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @capitalize(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @platform_name(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca [128 x i8], align 16
  %8 = alloca [128 x i8], align 16
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %8) #6
  %33 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  call void @platform_name(ptr noundef %33)
  br label %34

34:                                               ; preds = %0
  %35 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.2, ptr noundef %35)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %79, %34
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 1
  br i1 %38, label %39, label %82

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !9
  store i64 %43, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %44 = load i64, ptr %9, align 8, !tbaa !9
  %45 = mul i64 8, %44
  %46 = call noalias ptr @malloc(i64 noundef %45) #7
  store ptr %46, ptr %10, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %66, %39
  br label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %10, align 8, !tbaa !11
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = trunc i64 %50 to i32
  call void @fill_random(ptr noundef %49, i32 noundef %51)
  %52 = call double @utime()
  store double %52, ptr %4, align 8, !tbaa !13
  %53 = load ptr, ptr %10, align 8, !tbaa !11
  %54 = load i64, ptr %9, align 8, !tbaa !9
  call void @qsort(ptr noundef %53, i64 noundef %54, i64 noundef 8, ptr noundef @simple_cmp)
  %55 = call double @utime()
  store double %55, ptr %5, align 8, !tbaa !13
  %56 = load double, ptr %5, align 8, !tbaa !13
  %57 = load double, ptr %4, align 8, !tbaa !13
  %58 = fsub double %56, %57
  %59 = load double, ptr %6, align 8, !tbaa !13
  %60 = fadd double %59, %58
  store double %60, ptr %6, align 8, !tbaa !13
  %61 = load i32, ptr %3, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %3, align 4, !tbaa !5
  %63 = load double, ptr %6, align 8, !tbaa !13
  %64 = fcmp oge double %63, 1.000000e+06
  br i1 %64, label %65, label %66

65:                                               ; preds = %48
  br label %67

66:                                               ; preds = %48
  br label %47

67:                                               ; preds = %65
  %68 = load ptr, ptr %10, align 8, !tbaa !11
  call void @free(ptr noundef %68) #6
  %69 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = load double, ptr %6, align 8, !tbaa !13
  %74 = fmul double %73, 1.000000e+03
  %75 = load i32, ptr %3, align 4, !tbaa !5
  %76 = sitofp i32 %75 to double
  %77 = fdiv double %74, %76
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %69, i64 noundef %70, ptr noundef %71, i32 noundef %72, double noundef %77)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %79

79:                                               ; preds = %67
  %80 = load i32, ptr %2, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %2, align 4, !tbaa !5
  br label %36, !llvm.loop !15

82:                                               ; preds = %36
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.4, ptr noundef %86)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %130, %85
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 1
  br i1 %89, label %90, label %133

90:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !9
  store i64 %94, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %95 = load i64, ptr %11, align 8, !tbaa !9
  %96 = mul i64 8, %95
  %97 = call noalias ptr @malloc(i64 noundef %96) #7
  store ptr %97, ptr %12, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %117, %90
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %12, align 8, !tbaa !11
  %101 = load i64, ptr %11, align 8, !tbaa !9
  %102 = trunc i64 %101 to i32
  call void @fill_random(ptr noundef %100, i32 noundef %102)
  %103 = call double @utime()
  store double %103, ptr %4, align 8, !tbaa !13
  %104 = load ptr, ptr %12, align 8, !tbaa !11
  %105 = load i64, ptr %11, align 8, !tbaa !9
  call void @sorter_binary_insertion_sort(ptr noundef %104, i64 noundef %105)
  %106 = call double @utime()
  store double %106, ptr %5, align 8, !tbaa !13
  %107 = load double, ptr %5, align 8, !tbaa !13
  %108 = load double, ptr %4, align 8, !tbaa !13
  %109 = fsub double %107, %108
  %110 = load double, ptr %6, align 8, !tbaa !13
  %111 = fadd double %110, %109
  store double %111, ptr %6, align 8, !tbaa !13
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %3, align 4, !tbaa !5
  %114 = load double, ptr %6, align 8, !tbaa !13
  %115 = fcmp oge double %114, 1.000000e+06
  br i1 %115, label %116, label %117

116:                                              ; preds = %99
  br label %118

117:                                              ; preds = %99
  br label %98

118:                                              ; preds = %116
  %119 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %119) #6
  %120 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %121 = load i64, ptr %11, align 8, !tbaa !9
  %122 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %123 = load i32, ptr %3, align 4, !tbaa !5
  %124 = load double, ptr %6, align 8, !tbaa !13
  %125 = fmul double %124, 1.000000e+03
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sitofp i32 %126 to double
  %128 = fdiv double %125, %127
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %120, i64 noundef %121, ptr noundef %122, i32 noundef %123, double noundef %128)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %130

130:                                              ; preds = %118
  %131 = load i32, ptr %2, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %2, align 4, !tbaa !5
  br label %87, !llvm.loop !17

133:                                              ; preds = %87
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.5, ptr noundef %137)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %138

138:                                              ; preds = %181, %136
  %139 = load i32, ptr %2, align 4, !tbaa !5
  %140 = icmp slt i32 %139, 1
  br i1 %140, label %141, label %184

141:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %142 = load i32, ptr %2, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %143
  %145 = load i64, ptr %144, align 8, !tbaa !9
  store i64 %145, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %146 = load i64, ptr %13, align 8, !tbaa !9
  %147 = mul i64 8, %146
  %148 = call noalias ptr @malloc(i64 noundef %147) #7
  store ptr %148, ptr %14, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %168, %141
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %14, align 8, !tbaa !11
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = trunc i64 %152 to i32
  call void @fill_random(ptr noundef %151, i32 noundef %153)
  %154 = call double @utime()
  store double %154, ptr %4, align 8, !tbaa !13
  %155 = load ptr, ptr %14, align 8, !tbaa !11
  %156 = load i64, ptr %13, align 8, !tbaa !9
  call void @sorter_quick_sort(ptr noundef %155, i64 noundef %156)
  %157 = call double @utime()
  store double %157, ptr %5, align 8, !tbaa !13
  %158 = load double, ptr %5, align 8, !tbaa !13
  %159 = load double, ptr %4, align 8, !tbaa !13
  %160 = fsub double %158, %159
  %161 = load double, ptr %6, align 8, !tbaa !13
  %162 = fadd double %161, %160
  store double %162, ptr %6, align 8, !tbaa !13
  %163 = load i32, ptr %3, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %3, align 4, !tbaa !5
  %165 = load double, ptr %6, align 8, !tbaa !13
  %166 = fcmp oge double %165, 1.000000e+06
  br i1 %166, label %167, label %168

167:                                              ; preds = %150
  br label %169

168:                                              ; preds = %150
  br label %149

169:                                              ; preds = %167
  %170 = load ptr, ptr %14, align 8, !tbaa !11
  call void @free(ptr noundef %170) #6
  %171 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %172 = load i64, ptr %13, align 8, !tbaa !9
  %173 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %174 = load i32, ptr %3, align 4, !tbaa !5
  %175 = load double, ptr %6, align 8, !tbaa !13
  %176 = fmul double %175, 1.000000e+03
  %177 = load i32, ptr %3, align 4, !tbaa !5
  %178 = sitofp i32 %177 to double
  %179 = fdiv double %176, %178
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %171, i64 noundef %172, ptr noundef %173, i32 noundef %174, double noundef %179)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %181

181:                                              ; preds = %169
  %182 = load i32, ptr %2, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %2, align 4, !tbaa !5
  br label %138, !llvm.loop !18

184:                                              ; preds = %138
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.6, ptr noundef %188)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %232, %187
  %190 = load i32, ptr %2, align 4, !tbaa !5
  %191 = icmp slt i32 %190, 1
  br i1 %191, label %192, label %235

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %193 = load i32, ptr %2, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %194
  %196 = load i64, ptr %195, align 8, !tbaa !9
  store i64 %196, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %197 = load i64, ptr %15, align 8, !tbaa !9
  %198 = mul i64 8, %197
  %199 = call noalias ptr @malloc(i64 noundef %198) #7
  store ptr %199, ptr %16, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %219, %192
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %16, align 8, !tbaa !11
  %203 = load i64, ptr %15, align 8, !tbaa !9
  %204 = trunc i64 %203 to i32
  call void @fill_random(ptr noundef %202, i32 noundef %204)
  %205 = call double @utime()
  store double %205, ptr %4, align 8, !tbaa !13
  %206 = load ptr, ptr %16, align 8, !tbaa !11
  %207 = load i64, ptr %15, align 8, !tbaa !9
  call void @sorter_merge_sort(ptr noundef %206, i64 noundef %207)
  %208 = call double @utime()
  store double %208, ptr %5, align 8, !tbaa !13
  %209 = load double, ptr %5, align 8, !tbaa !13
  %210 = load double, ptr %4, align 8, !tbaa !13
  %211 = fsub double %209, %210
  %212 = load double, ptr %6, align 8, !tbaa !13
  %213 = fadd double %212, %211
  store double %213, ptr %6, align 8, !tbaa !13
  %214 = load i32, ptr %3, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %3, align 4, !tbaa !5
  %216 = load double, ptr %6, align 8, !tbaa !13
  %217 = fcmp oge double %216, 1.000000e+06
  br i1 %217, label %218, label %219

218:                                              ; preds = %201
  br label %220

219:                                              ; preds = %201
  br label %200

220:                                              ; preds = %218
  %221 = load ptr, ptr %16, align 8, !tbaa !11
  call void @free(ptr noundef %221) #6
  %222 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %223 = load i64, ptr %15, align 8, !tbaa !9
  %224 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %225 = load i32, ptr %3, align 4, !tbaa !5
  %226 = load double, ptr %6, align 8, !tbaa !13
  %227 = fmul double %226, 1.000000e+03
  %228 = load i32, ptr %3, align 4, !tbaa !5
  %229 = sitofp i32 %228 to double
  %230 = fdiv double %227, %229
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %222, i64 noundef %223, ptr noundef %224, i32 noundef %225, double noundef %230)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %232

232:                                              ; preds = %220
  %233 = load i32, ptr %2, align 4, !tbaa !5
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %2, align 4, !tbaa !5
  br label %189, !llvm.loop !19

235:                                              ; preds = %189
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237
  %239 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.7, ptr noundef %239)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %283, %238
  %241 = load i32, ptr %2, align 4, !tbaa !5
  %242 = icmp slt i32 %241, 1
  br i1 %242, label %243, label %286

243:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %244 = load i32, ptr %2, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %245
  %247 = load i64, ptr %246, align 8, !tbaa !9
  store i64 %247, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %248 = load i64, ptr %17, align 8, !tbaa !9
  %249 = mul i64 8, %248
  %250 = call noalias ptr @malloc(i64 noundef %249) #7
  store ptr %250, ptr %18, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %270, %243
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %18, align 8, !tbaa !11
  %254 = load i64, ptr %17, align 8, !tbaa !9
  %255 = trunc i64 %254 to i32
  call void @fill_random(ptr noundef %253, i32 noundef %255)
  %256 = call double @utime()
  store double %256, ptr %4, align 8, !tbaa !13
  %257 = load ptr, ptr %18, align 8, !tbaa !11
  %258 = load i64, ptr %17, align 8, !tbaa !9
  call void @sorter_heap_sort(ptr noundef %257, i64 noundef %258)
  %259 = call double @utime()
  store double %259, ptr %5, align 8, !tbaa !13
  %260 = load double, ptr %5, align 8, !tbaa !13
  %261 = load double, ptr %4, align 8, !tbaa !13
  %262 = fsub double %260, %261
  %263 = load double, ptr %6, align 8, !tbaa !13
  %264 = fadd double %263, %262
  store double %264, ptr %6, align 8, !tbaa !13
  %265 = load i32, ptr %3, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %3, align 4, !tbaa !5
  %267 = load double, ptr %6, align 8, !tbaa !13
  %268 = fcmp oge double %267, 1.000000e+06
  br i1 %268, label %269, label %270

269:                                              ; preds = %252
  br label %271

270:                                              ; preds = %252
  br label %251

271:                                              ; preds = %269
  %272 = load ptr, ptr %18, align 8, !tbaa !11
  call void @free(ptr noundef %272) #6
  %273 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %274 = load i64, ptr %17, align 8, !tbaa !9
  %275 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %276 = load i32, ptr %3, align 4, !tbaa !5
  %277 = load double, ptr %6, align 8, !tbaa !13
  %278 = fmul double %277, 1.000000e+03
  %279 = load i32, ptr %3, align 4, !tbaa !5
  %280 = sitofp i32 %279 to double
  %281 = fdiv double %278, %280
  %282 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %273, i64 noundef %274, ptr noundef %275, i32 noundef %276, double noundef %281)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %283

283:                                              ; preds = %271
  %284 = load i32, ptr %2, align 4, !tbaa !5
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %2, align 4, !tbaa !5
  br label %240, !llvm.loop !20

286:                                              ; preds = %240
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  br label %289

289:                                              ; preds = %288
  %290 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.8, ptr noundef %290)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %334, %289
  %292 = load i32, ptr %2, align 4, !tbaa !5
  %293 = icmp slt i32 %292, 1
  br i1 %293, label %294, label %337

294:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %295 = load i32, ptr %2, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %296
  %298 = load i64, ptr %297, align 8, !tbaa !9
  store i64 %298, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %299 = load i64, ptr %19, align 8, !tbaa !9
  %300 = mul i64 8, %299
  %301 = call noalias ptr @malloc(i64 noundef %300) #7
  store ptr %301, ptr %20, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %302

302:                                              ; preds = %321, %294
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %20, align 8, !tbaa !11
  %305 = load i64, ptr %19, align 8, !tbaa !9
  %306 = trunc i64 %305 to i32
  call void @fill_random(ptr noundef %304, i32 noundef %306)
  %307 = call double @utime()
  store double %307, ptr %4, align 8, !tbaa !13
  %308 = load ptr, ptr %20, align 8, !tbaa !11
  %309 = load i64, ptr %19, align 8, !tbaa !9
  call void @sorter_shell_sort(ptr noundef %308, i64 noundef %309)
  %310 = call double @utime()
  store double %310, ptr %5, align 8, !tbaa !13
  %311 = load double, ptr %5, align 8, !tbaa !13
  %312 = load double, ptr %4, align 8, !tbaa !13
  %313 = fsub double %311, %312
  %314 = load double, ptr %6, align 8, !tbaa !13
  %315 = fadd double %314, %313
  store double %315, ptr %6, align 8, !tbaa !13
  %316 = load i32, ptr %3, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %3, align 4, !tbaa !5
  %318 = load double, ptr %6, align 8, !tbaa !13
  %319 = fcmp oge double %318, 1.000000e+06
  br i1 %319, label %320, label %321

320:                                              ; preds = %303
  br label %322

321:                                              ; preds = %303
  br label %302

322:                                              ; preds = %320
  %323 = load ptr, ptr %20, align 8, !tbaa !11
  call void @free(ptr noundef %323) #6
  %324 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %325 = load i64, ptr %19, align 8, !tbaa !9
  %326 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %327 = load i32, ptr %3, align 4, !tbaa !5
  %328 = load double, ptr %6, align 8, !tbaa !13
  %329 = fmul double %328, 1.000000e+03
  %330 = load i32, ptr %3, align 4, !tbaa !5
  %331 = sitofp i32 %330 to double
  %332 = fdiv double %329, %331
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %324, i64 noundef %325, ptr noundef %326, i32 noundef %327, double noundef %332)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %334

334:                                              ; preds = %322
  %335 = load i32, ptr %2, align 4, !tbaa !5
  %336 = add nsw i32 %335, 1
  store i32 %336, ptr %2, align 4, !tbaa !5
  br label %291, !llvm.loop !21

337:                                              ; preds = %291
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  %341 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.9, ptr noundef %341)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %342

342:                                              ; preds = %385, %340
  %343 = load i32, ptr %2, align 4, !tbaa !5
  %344 = icmp slt i32 %343, 1
  br i1 %344, label %345, label %388

345:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %346 = load i32, ptr %2, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %347
  %349 = load i64, ptr %348, align 8, !tbaa !9
  store i64 %349, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %350 = load i64, ptr %21, align 8, !tbaa !9
  %351 = mul i64 8, %350
  %352 = call noalias ptr @malloc(i64 noundef %351) #7
  store ptr %352, ptr %22, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %353

353:                                              ; preds = %372, %345
  br label %354

354:                                              ; preds = %353
  %355 = load ptr, ptr %22, align 8, !tbaa !11
  %356 = load i64, ptr %21, align 8, !tbaa !9
  %357 = trunc i64 %356 to i32
  call void @fill_random(ptr noundef %355, i32 noundef %357)
  %358 = call double @utime()
  store double %358, ptr %4, align 8, !tbaa !13
  %359 = load ptr, ptr %22, align 8, !tbaa !11
  %360 = load i64, ptr %21, align 8, !tbaa !9
  call void @sorter_tim_sort(ptr noundef %359, i64 noundef %360)
  %361 = call double @utime()
  store double %361, ptr %5, align 8, !tbaa !13
  %362 = load double, ptr %5, align 8, !tbaa !13
  %363 = load double, ptr %4, align 8, !tbaa !13
  %364 = fsub double %362, %363
  %365 = load double, ptr %6, align 8, !tbaa !13
  %366 = fadd double %365, %364
  store double %366, ptr %6, align 8, !tbaa !13
  %367 = load i32, ptr %3, align 4, !tbaa !5
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %3, align 4, !tbaa !5
  %369 = load double, ptr %6, align 8, !tbaa !13
  %370 = fcmp oge double %369, 1.000000e+06
  br i1 %370, label %371, label %372

371:                                              ; preds = %354
  br label %373

372:                                              ; preds = %354
  br label %353

373:                                              ; preds = %371
  %374 = load ptr, ptr %22, align 8, !tbaa !11
  call void @free(ptr noundef %374) #6
  %375 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %376 = load i64, ptr %21, align 8, !tbaa !9
  %377 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %378 = load i32, ptr %3, align 4, !tbaa !5
  %379 = load double, ptr %6, align 8, !tbaa !13
  %380 = fmul double %379, 1.000000e+03
  %381 = load i32, ptr %3, align 4, !tbaa !5
  %382 = sitofp i32 %381 to double
  %383 = fdiv double %380, %382
  %384 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %375, i64 noundef %376, ptr noundef %377, i32 noundef %378, double noundef %383)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %385

385:                                              ; preds = %373
  %386 = load i32, ptr %2, align 4, !tbaa !5
  %387 = add nsw i32 %386, 1
  store i32 %387, ptr %2, align 4, !tbaa !5
  br label %342, !llvm.loop !22

388:                                              ; preds = %342
  br label %389

389:                                              ; preds = %388
  br label %390

390:                                              ; preds = %389
  br label %391

391:                                              ; preds = %390
  %392 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.10, ptr noundef %392)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %393

393:                                              ; preds = %436, %391
  %394 = load i32, ptr %2, align 4, !tbaa !5
  %395 = icmp slt i32 %394, 1
  br i1 %395, label %396, label %439

396:                                              ; preds = %393
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %397 = load i32, ptr %2, align 4, !tbaa !5
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %398
  %400 = load i64, ptr %399, align 8, !tbaa !9
  store i64 %400, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %401 = load i64, ptr %23, align 8, !tbaa !9
  %402 = mul i64 8, %401
  %403 = call noalias ptr @malloc(i64 noundef %402) #7
  store ptr %403, ptr %24, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %404

404:                                              ; preds = %423, %396
  br label %405

405:                                              ; preds = %404
  %406 = load ptr, ptr %24, align 8, !tbaa !11
  %407 = load i64, ptr %23, align 8, !tbaa !9
  %408 = trunc i64 %407 to i32
  call void @fill_random(ptr noundef %406, i32 noundef %408)
  %409 = call double @utime()
  store double %409, ptr %4, align 8, !tbaa !13
  %410 = load ptr, ptr %24, align 8, !tbaa !11
  %411 = load i64, ptr %23, align 8, !tbaa !9
  call void @sorter_merge_sort_in_place(ptr noundef %410, i64 noundef %411)
  %412 = call double @utime()
  store double %412, ptr %5, align 8, !tbaa !13
  %413 = load double, ptr %5, align 8, !tbaa !13
  %414 = load double, ptr %4, align 8, !tbaa !13
  %415 = fsub double %413, %414
  %416 = load double, ptr %6, align 8, !tbaa !13
  %417 = fadd double %416, %415
  store double %417, ptr %6, align 8, !tbaa !13
  %418 = load i32, ptr %3, align 4, !tbaa !5
  %419 = add nsw i32 %418, 1
  store i32 %419, ptr %3, align 4, !tbaa !5
  %420 = load double, ptr %6, align 8, !tbaa !13
  %421 = fcmp oge double %420, 1.000000e+06
  br i1 %421, label %422, label %423

422:                                              ; preds = %405
  br label %424

423:                                              ; preds = %405
  br label %404

424:                                              ; preds = %422
  %425 = load ptr, ptr %24, align 8, !tbaa !11
  call void @free(ptr noundef %425) #6
  %426 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %427 = load i64, ptr %23, align 8, !tbaa !9
  %428 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %429 = load i32, ptr %3, align 4, !tbaa !5
  %430 = load double, ptr %6, align 8, !tbaa !13
  %431 = fmul double %430, 1.000000e+03
  %432 = load i32, ptr %3, align 4, !tbaa !5
  %433 = sitofp i32 %432 to double
  %434 = fdiv double %431, %433
  %435 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %426, i64 noundef %427, ptr noundef %428, i32 noundef %429, double noundef %434)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %436

436:                                              ; preds = %424
  %437 = load i32, ptr %2, align 4, !tbaa !5
  %438 = add nsw i32 %437, 1
  store i32 %438, ptr %2, align 4, !tbaa !5
  br label %393, !llvm.loop !23

439:                                              ; preds = %393
  br label %440

440:                                              ; preds = %439
  br label %441

441:                                              ; preds = %440
  br label %442

442:                                              ; preds = %441
  %443 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.11, ptr noundef %443)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %444

444:                                              ; preds = %487, %442
  %445 = load i32, ptr %2, align 4, !tbaa !5
  %446 = icmp slt i32 %445, 1
  br i1 %446, label %447, label %490

447:                                              ; preds = %444
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %448 = load i32, ptr %2, align 4, !tbaa !5
  %449 = sext i32 %448 to i64
  %450 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %449
  %451 = load i64, ptr %450, align 8, !tbaa !9
  store i64 %451, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %452 = load i64, ptr %25, align 8, !tbaa !9
  %453 = mul i64 8, %452
  %454 = call noalias ptr @malloc(i64 noundef %453) #7
  store ptr %454, ptr %26, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %455

455:                                              ; preds = %474, %447
  br label %456

456:                                              ; preds = %455
  %457 = load ptr, ptr %26, align 8, !tbaa !11
  %458 = load i64, ptr %25, align 8, !tbaa !9
  %459 = trunc i64 %458 to i32
  call void @fill_random(ptr noundef %457, i32 noundef %459)
  %460 = call double @utime()
  store double %460, ptr %4, align 8, !tbaa !13
  %461 = load ptr, ptr %26, align 8, !tbaa !11
  %462 = load i64, ptr %25, align 8, !tbaa !9
  call void @sorter_grail_sort(ptr noundef %461, i64 noundef %462)
  %463 = call double @utime()
  store double %463, ptr %5, align 8, !tbaa !13
  %464 = load double, ptr %5, align 8, !tbaa !13
  %465 = load double, ptr %4, align 8, !tbaa !13
  %466 = fsub double %464, %465
  %467 = load double, ptr %6, align 8, !tbaa !13
  %468 = fadd double %467, %466
  store double %468, ptr %6, align 8, !tbaa !13
  %469 = load i32, ptr %3, align 4, !tbaa !5
  %470 = add nsw i32 %469, 1
  store i32 %470, ptr %3, align 4, !tbaa !5
  %471 = load double, ptr %6, align 8, !tbaa !13
  %472 = fcmp oge double %471, 1.000000e+06
  br i1 %472, label %473, label %474

473:                                              ; preds = %456
  br label %475

474:                                              ; preds = %456
  br label %455

475:                                              ; preds = %473
  %476 = load ptr, ptr %26, align 8, !tbaa !11
  call void @free(ptr noundef %476) #6
  %477 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %478 = load i64, ptr %25, align 8, !tbaa !9
  %479 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %480 = load i32, ptr %3, align 4, !tbaa !5
  %481 = load double, ptr %6, align 8, !tbaa !13
  %482 = fmul double %481, 1.000000e+03
  %483 = load i32, ptr %3, align 4, !tbaa !5
  %484 = sitofp i32 %483 to double
  %485 = fdiv double %482, %484
  %486 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %477, i64 noundef %478, ptr noundef %479, i32 noundef %480, double noundef %485)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %487

487:                                              ; preds = %475
  %488 = load i32, ptr %2, align 4, !tbaa !5
  %489 = add nsw i32 %488, 1
  store i32 %489, ptr %2, align 4, !tbaa !5
  br label %444, !llvm.loop !24

490:                                              ; preds = %444
  br label %491

491:                                              ; preds = %490
  br label %492

492:                                              ; preds = %491
  br label %493

493:                                              ; preds = %492
  %494 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.12, ptr noundef %494)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %495

495:                                              ; preds = %538, %493
  %496 = load i32, ptr %2, align 4, !tbaa !5
  %497 = icmp slt i32 %496, 1
  br i1 %497, label %498, label %541

498:                                              ; preds = %495
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %499 = load i32, ptr %2, align 4, !tbaa !5
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %500
  %502 = load i64, ptr %501, align 8, !tbaa !9
  store i64 %502, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %503 = load i64, ptr %27, align 8, !tbaa !9
  %504 = mul i64 8, %503
  %505 = call noalias ptr @malloc(i64 noundef %504) #7
  store ptr %505, ptr %28, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %506

506:                                              ; preds = %525, %498
  br label %507

507:                                              ; preds = %506
  %508 = load ptr, ptr %28, align 8, !tbaa !11
  %509 = load i64, ptr %27, align 8, !tbaa !9
  %510 = trunc i64 %509 to i32
  call void @fill_random(ptr noundef %508, i32 noundef %510)
  %511 = call double @utime()
  store double %511, ptr %4, align 8, !tbaa !13
  %512 = load ptr, ptr %28, align 8, !tbaa !11
  %513 = load i64, ptr %27, align 8, !tbaa !9
  call void @sorter_sqrt_sort(ptr noundef %512, i64 noundef %513)
  %514 = call double @utime()
  store double %514, ptr %5, align 8, !tbaa !13
  %515 = load double, ptr %5, align 8, !tbaa !13
  %516 = load double, ptr %4, align 8, !tbaa !13
  %517 = fsub double %515, %516
  %518 = load double, ptr %6, align 8, !tbaa !13
  %519 = fadd double %518, %517
  store double %519, ptr %6, align 8, !tbaa !13
  %520 = load i32, ptr %3, align 4, !tbaa !5
  %521 = add nsw i32 %520, 1
  store i32 %521, ptr %3, align 4, !tbaa !5
  %522 = load double, ptr %6, align 8, !tbaa !13
  %523 = fcmp oge double %522, 1.000000e+06
  br i1 %523, label %524, label %525

524:                                              ; preds = %507
  br label %526

525:                                              ; preds = %507
  br label %506

526:                                              ; preds = %524
  %527 = load ptr, ptr %28, align 8, !tbaa !11
  call void @free(ptr noundef %527) #6
  %528 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %529 = load i64, ptr %27, align 8, !tbaa !9
  %530 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %531 = load i32, ptr %3, align 4, !tbaa !5
  %532 = load double, ptr %6, align 8, !tbaa !13
  %533 = fmul double %532, 1.000000e+03
  %534 = load i32, ptr %3, align 4, !tbaa !5
  %535 = sitofp i32 %534 to double
  %536 = fdiv double %533, %535
  %537 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %528, i64 noundef %529, ptr noundef %530, i32 noundef %531, double noundef %536)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %538

538:                                              ; preds = %526
  %539 = load i32, ptr %2, align 4, !tbaa !5
  %540 = add nsw i32 %539, 1
  store i32 %540, ptr %2, align 4, !tbaa !5
  br label %495, !llvm.loop !25

541:                                              ; preds = %495
  br label %542

542:                                              ; preds = %541
  br label %543

543:                                              ; preds = %542
  br label %544

544:                                              ; preds = %543
  %545 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.13, ptr noundef %545)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %546

546:                                              ; preds = %589, %544
  %547 = load i32, ptr %2, align 4, !tbaa !5
  %548 = icmp slt i32 %547, 1
  br i1 %548, label %549, label %592

549:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %550 = load i32, ptr %2, align 4, !tbaa !5
  %551 = sext i32 %550 to i64
  %552 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %551
  %553 = load i64, ptr %552, align 8, !tbaa !9
  store i64 %553, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %554 = load i64, ptr %29, align 8, !tbaa !9
  %555 = mul i64 8, %554
  %556 = call noalias ptr @malloc(i64 noundef %555) #7
  store ptr %556, ptr %30, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %557

557:                                              ; preds = %576, %549
  br label %558

558:                                              ; preds = %557
  %559 = load ptr, ptr %30, align 8, !tbaa !11
  %560 = load i64, ptr %29, align 8, !tbaa !9
  %561 = trunc i64 %560 to i32
  call void @fill_random(ptr noundef %559, i32 noundef %561)
  %562 = call double @utime()
  store double %562, ptr %4, align 8, !tbaa !13
  %563 = load ptr, ptr %30, align 8, !tbaa !11
  %564 = load i64, ptr %29, align 8, !tbaa !9
  call void @sorter_rec_stable_sort(ptr noundef %563, i64 noundef %564)
  %565 = call double @utime()
  store double %565, ptr %5, align 8, !tbaa !13
  %566 = load double, ptr %5, align 8, !tbaa !13
  %567 = load double, ptr %4, align 8, !tbaa !13
  %568 = fsub double %566, %567
  %569 = load double, ptr %6, align 8, !tbaa !13
  %570 = fadd double %569, %568
  store double %570, ptr %6, align 8, !tbaa !13
  %571 = load i32, ptr %3, align 4, !tbaa !5
  %572 = add nsw i32 %571, 1
  store i32 %572, ptr %3, align 4, !tbaa !5
  %573 = load double, ptr %6, align 8, !tbaa !13
  %574 = fcmp oge double %573, 1.000000e+06
  br i1 %574, label %575, label %576

575:                                              ; preds = %558
  br label %577

576:                                              ; preds = %558
  br label %557

577:                                              ; preds = %575
  %578 = load ptr, ptr %30, align 8, !tbaa !11
  call void @free(ptr noundef %578) #6
  %579 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %580 = load i64, ptr %29, align 8, !tbaa !9
  %581 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %582 = load i32, ptr %3, align 4, !tbaa !5
  %583 = load double, ptr %6, align 8, !tbaa !13
  %584 = fmul double %583, 1.000000e+03
  %585 = load i32, ptr %3, align 4, !tbaa !5
  %586 = sitofp i32 %585 to double
  %587 = fdiv double %584, %586
  %588 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %579, i64 noundef %580, ptr noundef %581, i32 noundef %582, double noundef %587)
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %589

589:                                              ; preds = %577
  %590 = load i32, ptr %2, align 4, !tbaa !5
  %591 = add nsw i32 %590, 1
  store i32 %591, ptr %2, align 4, !tbaa !5
  br label %546, !llvm.loop !26

592:                                              ; preds = %546
  br label %593

593:                                              ; preds = %592
  br label %594

594:                                              ; preds = %593
  br label %595

595:                                              ; preds = %594
  %596 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  call void @capitalize(ptr noundef @.str.14, ptr noundef %596)
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %597

597:                                              ; preds = %640, %595
  %598 = load i32, ptr %2, align 4, !tbaa !5
  %599 = icmp slt i32 %598, 1
  br i1 %599, label %600, label %643

600:                                              ; preds = %597
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %601 = load i32, ptr %2, align 4, !tbaa !5
  %602 = sext i32 %601 to i64
  %603 = getelementptr inbounds [1 x i64], ptr @sizes, i64 0, i64 %602
  %604 = load i64, ptr %603, align 8, !tbaa !9
  store i64 %604, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %605 = load i64, ptr %31, align 8, !tbaa !9
  %606 = mul i64 8, %605
  %607 = call noalias ptr @malloc(i64 noundef %606) #7
  store ptr %607, ptr %32, align 8, !tbaa !11
  store double 0.000000e+00, ptr %6, align 8, !tbaa !13
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %608

608:                                              ; preds = %627, %600
  br label %609

609:                                              ; preds = %608
  %610 = load ptr, ptr %32, align 8, !tbaa !11
  %611 = load i64, ptr %31, align 8, !tbaa !9
  %612 = trunc i64 %611 to i32
  call void @fill_random(ptr noundef %610, i32 noundef %612)
  %613 = call double @utime()
  store double %613, ptr %4, align 8, !tbaa !13
  %614 = load ptr, ptr %32, align 8, !tbaa !11
  %615 = load i64, ptr %31, align 8, !tbaa !9
  call void @sorter_grail_sort_dyn_buffer(ptr noundef %614, i64 noundef %615)
  %616 = call double @utime()
  store double %616, ptr %5, align 8, !tbaa !13
  %617 = load double, ptr %5, align 8, !tbaa !13
  %618 = load double, ptr %4, align 8, !tbaa !13
  %619 = fsub double %617, %618
  %620 = load double, ptr %6, align 8, !tbaa !13
  %621 = fadd double %620, %619
  store double %621, ptr %6, align 8, !tbaa !13
  %622 = load i32, ptr %3, align 4, !tbaa !5
  %623 = add nsw i32 %622, 1
  store i32 %623, ptr %3, align 4, !tbaa !5
  %624 = load double, ptr %6, align 8, !tbaa !13
  %625 = fcmp oge double %624, 1.000000e+06
  br i1 %625, label %626, label %627

626:                                              ; preds = %609
  br label %628

627:                                              ; preds = %609
  br label %608

628:                                              ; preds = %626
  %629 = load ptr, ptr %32, align 8, !tbaa !11
  call void @free(ptr noundef %629) #6
  %630 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
  %631 = load i64, ptr %31, align 8, !tbaa !9
  %632 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 0
  %633 = load i32, ptr %3, align 4, !tbaa !5
  %634 = load double, ptr %6, align 8, !tbaa !13
  %635 = fmul double %634, 1.000000e+03
  %636 = load i32, ptr %3, align 4, !tbaa !5
  %637 = sitofp i32 %636 to double
  %638 = fdiv double %635, %637
  %639 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %630, i64 noundef %631, ptr noundef %632, i32 noundef %633, double noundef %638)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %640

640:                                              ; preds = %628
  %641 = load i32, ptr %2, align 4, !tbaa !5
  %642 = add nsw i32 %641, 1
  store i32 %642, ptr %2, align 4, !tbaa !5
  br label %597, !llvm.loop !27

643:                                              ; preds = %597
  br label %644

644:                                              ; preds = %643
  br label %645

645:                                              ; preds = %644
  call void @llvm.lifetime.end.p0(i64 128, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

; Function Attrs: nounwind uwtable
declare hidden void @fill_random(ptr noundef, i32 noundef) #0

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @simple_cmp(ptr noundef, ptr noundef) #5

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
declare hidden void @sorter_grail_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_sqrt_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_rec_stable_sort(ptr noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_grail_sort_dyn_buffer(ptr noundef, i64 noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @utime() #5

attributes #0 = { 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 #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 = { 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 #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 = { inlinehint 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


; 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"

@sizes = external dso_local local_unnamed_addr global [1 x i64], align 8
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_shell_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_binary_insertion_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_merge_sort_in_place(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_merge_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 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 #3

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_quick_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_tim_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @sorter_heap_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @capitalize(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.critedge:
  %0 = alloca [128 x i8], align 16
  %1 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %0) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %1) #7
  call void @platform_name(ptr noundef nonnull %1)
  call void @capitalize(ptr noundef nonnull @.str.2, ptr noundef nonnull %0)
  %2 = load i64, ptr @sizes, align 8, !tbaa !5
  %3 = shl i64 %2, 3
  %4 = call noalias ptr @malloc(i64 noundef %3) #8
  %5 = trunc i64 %2 to i32
  br label %6

6:                                                ; preds = %6, %.critedge
  %.0227 = phi double [ 0.000000e+00, %.critedge ], [ %10, %6 ]
  %.0215 = phi i32 [ 0, %.critedge ], [ %11, %6 ]
  call void @fill_random(ptr noundef %4, i32 noundef %5)
  %7 = call double @utime()
  call void @qsort(ptr noundef %4, i64 noundef %2, i64 noundef 8, ptr noundef nonnull @simple_cmp) #7
  %8 = call double @utime()
  %9 = fsub double %8, %7
  %10 = fadd double %.0227, %9
  %11 = add nuw nsw i32 %.0215, 1
  %12 = fcmp ult double %10, 1.000000e+06
  br i1 %12, label %6, label %.critedge252

.critedge252:                                     ; preds = %6
  call void @free(ptr noundef %4) #7
  %13 = fmul double %10, 1.000000e+03
  %14 = uitofp nneg i32 %11 to double
  %15 = fdiv double %13, %14
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %2, ptr noundef nonnull %1, i32 noundef %11, double noundef %15)
  call void @capitalize(ptr noundef nonnull @.str.4, ptr noundef nonnull %0)
  %17 = load i64, ptr @sizes, align 8, !tbaa !5
  %18 = shl i64 %17, 3
  %19 = call noalias ptr @malloc(i64 noundef %18) #8
  %20 = trunc i64 %17 to i32
  br label %21

21:                                               ; preds = %21, %.critedge252
  %.1228 = phi double [ 0.000000e+00, %.critedge252 ], [ %25, %21 ]
  %.1216 = phi i32 [ 0, %.critedge252 ], [ %26, %21 ]
  call void @fill_random(ptr noundef %19, i32 noundef %20)
  %22 = call double @utime()
  call void @sorter_binary_insertion_sort(ptr noundef %19, i64 noundef %17)
  %23 = call double @utime()
  %24 = fsub double %23, %22
  %25 = fadd double %.1228, %24
  %26 = add nuw nsw i32 %.1216, 1
  %27 = fcmp ult double %25, 1.000000e+06
  br i1 %27, label %21, label %.critedge254

.critedge254:                                     ; preds = %21
  call void @free(ptr noundef %19) #7
  %28 = fmul double %25, 1.000000e+03
  %29 = uitofp nneg i32 %26 to double
  %30 = fdiv double %28, %29
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %17, ptr noundef nonnull %1, i32 noundef %26, double noundef %30)
  call void @capitalize(ptr noundef nonnull @.str.5, ptr noundef nonnull %0)
  %32 = load i64, ptr @sizes, align 8, !tbaa !5
  %33 = shl i64 %32, 3
  %34 = call noalias ptr @malloc(i64 noundef %33) #8
  %35 = trunc i64 %32 to i32
  br label %36

36:                                               ; preds = %36, %.critedge254
  %.2229 = phi double [ 0.000000e+00, %.critedge254 ], [ %40, %36 ]
  %.2217 = phi i32 [ 0, %.critedge254 ], [ %41, %36 ]
  call void @fill_random(ptr noundef %34, i32 noundef %35)
  %37 = call double @utime()
  call void @sorter_quick_sort(ptr noundef %34, i64 noundef %32)
  %38 = call double @utime()
  %39 = fsub double %38, %37
  %40 = fadd double %.2229, %39
  %41 = add nuw nsw i32 %.2217, 1
  %42 = fcmp ult double %40, 1.000000e+06
  br i1 %42, label %36, label %.critedge256

.critedge256:                                     ; preds = %36
  call void @free(ptr noundef %34) #7
  %43 = fmul double %40, 1.000000e+03
  %44 = uitofp nneg i32 %41 to double
  %45 = fdiv double %43, %44
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %32, ptr noundef nonnull %1, i32 noundef %41, double noundef %45)
  call void @capitalize(ptr noundef nonnull @.str.6, ptr noundef nonnull %0)
  %47 = load i64, ptr @sizes, align 8, !tbaa !5
  %48 = shl i64 %47, 3
  %49 = call noalias ptr @malloc(i64 noundef %48) #8
  %50 = trunc i64 %47 to i32
  br label %51

51:                                               ; preds = %51, %.critedge256
  %.3230 = phi double [ 0.000000e+00, %.critedge256 ], [ %55, %51 ]
  %.3218 = phi i32 [ 0, %.critedge256 ], [ %56, %51 ]
  call void @fill_random(ptr noundef %49, i32 noundef %50)
  %52 = call double @utime()
  call void @sorter_merge_sort(ptr noundef %49, i64 noundef %47)
  %53 = call double @utime()
  %54 = fsub double %53, %52
  %55 = fadd double %.3230, %54
  %56 = add nuw nsw i32 %.3218, 1
  %57 = fcmp ult double %55, 1.000000e+06
  br i1 %57, label %51, label %.critedge258

.critedge258:                                     ; preds = %51
  call void @free(ptr noundef %49) #7
  %58 = fmul double %55, 1.000000e+03
  %59 = uitofp nneg i32 %56 to double
  %60 = fdiv double %58, %59
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %47, ptr noundef nonnull %1, i32 noundef %56, double noundef %60)
  call void @capitalize(ptr noundef nonnull @.str.7, ptr noundef nonnull %0)
  %62 = load i64, ptr @sizes, align 8, !tbaa !5
  %63 = shl i64 %62, 3
  %64 = call noalias ptr @malloc(i64 noundef %63) #8
  %65 = trunc i64 %62 to i32
  br label %66

66:                                               ; preds = %66, %.critedge258
  %.4231 = phi double [ 0.000000e+00, %.critedge258 ], [ %70, %66 ]
  %.4219 = phi i32 [ 0, %.critedge258 ], [ %71, %66 ]
  call void @fill_random(ptr noundef %64, i32 noundef %65)
  %67 = call double @utime()
  call void @sorter_heap_sort(ptr noundef %64, i64 noundef %62)
  %68 = call double @utime()
  %69 = fsub double %68, %67
  %70 = fadd double %.4231, %69
  %71 = add nuw nsw i32 %.4219, 1
  %72 = fcmp ult double %70, 1.000000e+06
  br i1 %72, label %66, label %.critedge260

.critedge260:                                     ; preds = %66
  call void @free(ptr noundef %64) #7
  %73 = fmul double %70, 1.000000e+03
  %74 = uitofp nneg i32 %71 to double
  %75 = fdiv double %73, %74
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %62, ptr noundef nonnull %1, i32 noundef %71, double noundef %75)
  call void @capitalize(ptr noundef nonnull @.str.8, ptr noundef nonnull %0)
  %77 = load i64, ptr @sizes, align 8, !tbaa !5
  %78 = shl i64 %77, 3
  %79 = call noalias ptr @malloc(i64 noundef %78) #8
  %80 = trunc i64 %77 to i32
  br label %81

81:                                               ; preds = %81, %.critedge260
  %.5232 = phi double [ 0.000000e+00, %.critedge260 ], [ %85, %81 ]
  %.5220 = phi i32 [ 0, %.critedge260 ], [ %86, %81 ]
  call void @fill_random(ptr noundef %79, i32 noundef %80)
  %82 = call double @utime()
  call void @sorter_shell_sort(ptr noundef %79, i64 noundef %77)
  %83 = call double @utime()
  %84 = fsub double %83, %82
  %85 = fadd double %.5232, %84
  %86 = add nuw nsw i32 %.5220, 1
  %87 = fcmp ult double %85, 1.000000e+06
  br i1 %87, label %81, label %.critedge262

.critedge262:                                     ; preds = %81
  call void @free(ptr noundef %79) #7
  %88 = fmul double %85, 1.000000e+03
  %89 = uitofp nneg i32 %86 to double
  %90 = fdiv double %88, %89
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %77, ptr noundef nonnull %1, i32 noundef %86, double noundef %90)
  call void @capitalize(ptr noundef nonnull @.str.9, ptr noundef nonnull %0)
  %92 = load i64, ptr @sizes, align 8, !tbaa !5
  %93 = shl i64 %92, 3
  %94 = call noalias ptr @malloc(i64 noundef %93) #8
  %95 = trunc i64 %92 to i32
  br label %96

96:                                               ; preds = %96, %.critedge262
  %.6233 = phi double [ 0.000000e+00, %.critedge262 ], [ %100, %96 ]
  %.6221 = phi i32 [ 0, %.critedge262 ], [ %101, %96 ]
  call void @fill_random(ptr noundef %94, i32 noundef %95)
  %97 = call double @utime()
  call void @sorter_tim_sort(ptr noundef %94, i64 noundef %92)
  %98 = call double @utime()
  %99 = fsub double %98, %97
  %100 = fadd double %.6233, %99
  %101 = add nuw nsw i32 %.6221, 1
  %102 = fcmp ult double %100, 1.000000e+06
  br i1 %102, label %96, label %.critedge264

.critedge264:                                     ; preds = %96
  call void @free(ptr noundef %94) #7
  %103 = fmul double %100, 1.000000e+03
  %104 = uitofp nneg i32 %101 to double
  %105 = fdiv double %103, %104
  %106 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %92, ptr noundef nonnull %1, i32 noundef %101, double noundef %105)
  call void @capitalize(ptr noundef nonnull @.str.10, ptr noundef nonnull %0)
  %107 = load i64, ptr @sizes, align 8, !tbaa !5
  %108 = shl i64 %107, 3
  %109 = call noalias ptr @malloc(i64 noundef %108) #8
  %110 = trunc i64 %107 to i32
  br label %111

111:                                              ; preds = %111, %.critedge264
  %.7234 = phi double [ 0.000000e+00, %.critedge264 ], [ %115, %111 ]
  %.7222 = phi i32 [ 0, %.critedge264 ], [ %116, %111 ]
  call void @fill_random(ptr noundef %109, i32 noundef %110)
  %112 = call double @utime()
  call void @sorter_merge_sort_in_place(ptr noundef %109, i64 noundef %107)
  %113 = call double @utime()
  %114 = fsub double %113, %112
  %115 = fadd double %.7234, %114
  %116 = add nuw nsw i32 %.7222, 1
  %117 = fcmp ult double %115, 1.000000e+06
  br i1 %117, label %111, label %.critedge266

.critedge266:                                     ; preds = %111
  call void @free(ptr noundef %109) #7
  %118 = fmul double %115, 1.000000e+03
  %119 = uitofp nneg i32 %116 to double
  %120 = fdiv double %118, %119
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %107, ptr noundef nonnull %1, i32 noundef %116, double noundef %120)
  call void @capitalize(ptr noundef nonnull @.str.11, ptr noundef nonnull %0)
  %122 = load i64, ptr @sizes, align 8, !tbaa !5
  %123 = shl i64 %122, 3
  %124 = call noalias ptr @malloc(i64 noundef %123) #8
  %125 = trunc i64 %122 to i32
  br label %126

126:                                              ; preds = %126, %.critedge266
  %.8235 = phi double [ 0.000000e+00, %.critedge266 ], [ %130, %126 ]
  %.8223 = phi i32 [ 0, %.critedge266 ], [ %131, %126 ]
  call void @fill_random(ptr noundef %124, i32 noundef %125)
  %127 = call double @utime()
  call void @sorter_grail_sort(ptr noundef %124, i64 noundef %122)
  %128 = call double @utime()
  %129 = fsub double %128, %127
  %130 = fadd double %.8235, %129
  %131 = add nuw nsw i32 %.8223, 1
  %132 = fcmp ult double %130, 1.000000e+06
  br i1 %132, label %126, label %.critedge268

.critedge268:                                     ; preds = %126
  call void @free(ptr noundef %124) #7
  %133 = fmul double %130, 1.000000e+03
  %134 = uitofp nneg i32 %131 to double
  %135 = fdiv double %133, %134
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %122, ptr noundef nonnull %1, i32 noundef %131, double noundef %135)
  call void @capitalize(ptr noundef nonnull @.str.12, ptr noundef nonnull %0)
  %137 = load i64, ptr @sizes, align 8, !tbaa !5
  %138 = shl i64 %137, 3
  %139 = call noalias ptr @malloc(i64 noundef %138) #8
  %140 = trunc i64 %137 to i32
  br label %141

141:                                              ; preds = %141, %.critedge268
  %.9236 = phi double [ 0.000000e+00, %.critedge268 ], [ %145, %141 ]
  %.9224 = phi i32 [ 0, %.critedge268 ], [ %146, %141 ]
  call void @fill_random(ptr noundef %139, i32 noundef %140)
  %142 = call double @utime()
  call void @sorter_sqrt_sort(ptr noundef %139, i64 noundef %137)
  %143 = call double @utime()
  %144 = fsub double %143, %142
  %145 = fadd double %.9236, %144
  %146 = add nuw nsw i32 %.9224, 1
  %147 = fcmp ult double %145, 1.000000e+06
  br i1 %147, label %141, label %.critedge270

.critedge270:                                     ; preds = %141
  call void @free(ptr noundef %139) #7
  %148 = fmul double %145, 1.000000e+03
  %149 = uitofp nneg i32 %146 to double
  %150 = fdiv double %148, %149
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %137, ptr noundef nonnull %1, i32 noundef %146, double noundef %150)
  call void @capitalize(ptr noundef nonnull @.str.13, ptr noundef nonnull %0)
  %152 = load i64, ptr @sizes, align 8, !tbaa !5
  %153 = shl i64 %152, 3
  %154 = call noalias ptr @malloc(i64 noundef %153) #8
  %155 = trunc i64 %152 to i32
  br label %156

156:                                              ; preds = %156, %.critedge270
  %.10237 = phi double [ 0.000000e+00, %.critedge270 ], [ %160, %156 ]
  %.10225 = phi i32 [ 0, %.critedge270 ], [ %161, %156 ]
  call void @fill_random(ptr noundef %154, i32 noundef %155)
  %157 = call double @utime()
  call void @sorter_rec_stable_sort(ptr noundef %154, i64 noundef %152)
  %158 = call double @utime()
  %159 = fsub double %158, %157
  %160 = fadd double %.10237, %159
  %161 = add nuw nsw i32 %.10225, 1
  %162 = fcmp ult double %160, 1.000000e+06
  br i1 %162, label %156, label %.critedge272

.critedge272:                                     ; preds = %156
  call void @free(ptr noundef %154) #7
  %163 = fmul double %160, 1.000000e+03
  %164 = uitofp nneg i32 %161 to double
  %165 = fdiv double %163, %164
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %152, ptr noundef nonnull %1, i32 noundef %161, double noundef %165)
  call void @capitalize(ptr noundef nonnull @.str.14, ptr noundef nonnull %0)
  %167 = load i64, ptr @sizes, align 8, !tbaa !5
  %168 = shl i64 %167, 3
  %169 = call noalias ptr @malloc(i64 noundef %168) #8
  %170 = trunc i64 %167 to i32
  br label %171

171:                                              ; preds = %171, %.critedge272
  %.11238 = phi double [ 0.000000e+00, %.critedge272 ], [ %175, %171 ]
  %.11226 = phi i32 [ 0, %.critedge272 ], [ %176, %171 ]
  call void @fill_random(ptr noundef %169, i32 noundef %170)
  %172 = call double @utime()
  call void @sorter_grail_sort_dyn_buffer(ptr noundef %169, i64 noundef %167)
  %173 = call double @utime()
  %174 = fsub double %173, %172
  %175 = fadd double %.11238, %174
  %176 = add nuw nsw i32 %.11226, 1
  %177 = fcmp ult double %175, 1.000000e+06
  br i1 %177, label %171, label %178

178:                                              ; preds = %171
  call void @free(ptr noundef %169) #7
  %179 = fmul double %175, 1.000000e+03
  %180 = uitofp nneg i32 %176 to double
  %181 = fdiv double %179, %180
  %182 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, ptr noundef nonnull %0, i64 noundef %167, ptr noundef nonnull %1, i32 noundef %176, double noundef %181)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %0) #7
  ret i32 0
}

; Function Attrs: nounwind uwtable
declare hidden void @fill_random(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @simple_cmp(ptr noundef, ptr noundef) #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
declare hidden void @sorter_grail_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_sqrt_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_rec_stable_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @sorter_grail_sort_dyn_buffer(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @utime() local_unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nofree "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 = { inlinehint 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 #6 = { nofree 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass