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

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

@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [58 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_selection_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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 @sorter_bubble_sort(ptr noundef, i64 noundef) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @run_tests() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [10000 x i64], align 16
  %3 = alloca [10000 x i64], align 16
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 80000, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 80000, 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
  %7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %8

8:                                                ; preds = %24, %0
  %9 = load i32, ptr %1, align 4, !tbaa !9
  %10 = icmp slt i32 %9, 1
  br i1 %10, label %11, label %27

11:                                               ; preds = %8
  %12 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %12, i32 noundef 10000)
  %13 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %14 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 %14, i64 80000, i1 false)
  %15 = call double @utime()
  store double %15, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @qsort(ptr noundef %16, i64 noundef 10000, i64 noundef 8, ptr noundef @simple_cmp)
  %17 = call double @utime()
  store double %17, ptr %5, align 8, !tbaa !5
  %18 = load double, ptr %5, align 8, !tbaa !5
  %19 = load double, ptr %4, align 8, !tbaa !5
  %20 = fsub double %18, %19
  %21 = load double, ptr %6, align 8, !tbaa !5
  %22 = fadd double %21, %20
  store double %22, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %23, i32 noundef 10000)
  br label %24

24:                                               ; preds = %11
  %25 = load i32, ptr %1, align 4, !tbaa !9
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %1, align 4, !tbaa !9
  br label %8, !llvm.loop !11

27:                                               ; preds = %8
  %28 = load double, ptr %6, align 8, !tbaa !5
  %29 = fdiv double %28, 1.000000e+00
  %30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %29)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %47, %27
  %32 = load i32, ptr %1, align 4, !tbaa !9
  %33 = icmp slt i32 %32, 1
  br i1 %33, label %34, label %50

34:                                               ; preds = %31
  %35 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %35, i32 noundef 10000)
  %36 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %37 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %37, i64 80000, i1 false)
  %38 = call double @utime()
  store double %38, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_quick_sort(ptr noundef %39, i64 noundef 10000)
  %40 = call double @utime()
  store double %40, ptr %5, align 8, !tbaa !5
  %41 = load double, ptr %5, align 8, !tbaa !5
  %42 = load double, ptr %4, align 8, !tbaa !5
  %43 = fsub double %41, %42
  %44 = load double, ptr %6, align 8, !tbaa !5
  %45 = fadd double %44, %43
  store double %45, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %46, i32 noundef 10000)
  br label %47

47:                                               ; preds = %34
  %48 = load i32, ptr %1, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %1, align 4, !tbaa !9
  br label %31, !llvm.loop !13

50:                                               ; preds = %31
  %51 = load double, ptr %6, align 8, !tbaa !5
  %52 = fdiv double %51, 1.000000e+00
  %53 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %52)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %70, %50
  %55 = load i32, ptr %1, align 4, !tbaa !9
  %56 = icmp slt i32 %55, 1
  br i1 %56, label %57, label %73

57:                                               ; preds = %54
  %58 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %58, i32 noundef 10000)
  %59 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %60 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 16 %60, i64 80000, i1 false)
  %61 = call double @utime()
  store double %61, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_selection_sort(ptr noundef %62, i64 noundef 10000)
  %63 = call double @utime()
  store double %63, ptr %5, align 8, !tbaa !5
  %64 = load double, ptr %5, align 8, !tbaa !5
  %65 = load double, ptr %4, align 8, !tbaa !5
  %66 = fsub double %64, %65
  %67 = load double, ptr %6, align 8, !tbaa !5
  %68 = fadd double %67, %66
  store double %68, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %69, i32 noundef 10000)
  br label %70

70:                                               ; preds = %57
  %71 = load i32, ptr %1, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %1, align 4, !tbaa !9
  br label %54, !llvm.loop !14

73:                                               ; preds = %54
  %74 = load double, ptr %6, align 8, !tbaa !5
  %75 = fdiv double %74, 1.000000e+00
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %75)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %93, %73
  %78 = load i32, ptr %1, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 1
  br i1 %79, label %80, label %96

80:                                               ; preds = %77
  %81 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %81, i32 noundef 10000)
  %82 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %83 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %82, ptr align 16 %83, i64 80000, i1 false)
  %84 = call double @utime()
  store double %84, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_bubble_sort(ptr noundef %85, i64 noundef 10000)
  %86 = call double @utime()
  store double %86, ptr %5, align 8, !tbaa !5
  %87 = load double, ptr %5, align 8, !tbaa !5
  %88 = load double, ptr %4, align 8, !tbaa !5
  %89 = fsub double %87, %88
  %90 = load double, ptr %6, align 8, !tbaa !5
  %91 = fadd double %90, %89
  store double %91, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %92, i32 noundef 10000)
  br label %93

93:                                               ; preds = %80
  %94 = load i32, ptr %1, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %1, align 4, !tbaa !9
  br label %77, !llvm.loop !15

96:                                               ; preds = %77
  %97 = load double, ptr %6, align 8, !tbaa !5
  %98 = fdiv double %97, 1.000000e+00
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %98)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %116, %96
  %101 = load i32, ptr %1, align 4, !tbaa !9
  %102 = icmp slt i32 %101, 1
  br i1 %102, label %103, label %119

103:                                              ; preds = %100
  %104 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %104, i32 noundef 10000)
  %105 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %106 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %105, ptr align 16 %106, i64 80000, i1 false)
  %107 = call double @utime()
  store double %107, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_merge_sort(ptr noundef %108, i64 noundef 10000)
  %109 = call double @utime()
  store double %109, ptr %5, align 8, !tbaa !5
  %110 = load double, ptr %5, align 8, !tbaa !5
  %111 = load double, ptr %4, align 8, !tbaa !5
  %112 = fsub double %110, %111
  %113 = load double, ptr %6, align 8, !tbaa !5
  %114 = fadd double %113, %112
  store double %114, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %115, i32 noundef 10000)
  br label %116

116:                                              ; preds = %103
  %117 = load i32, ptr %1, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %1, align 4, !tbaa !9
  br label %100, !llvm.loop !16

119:                                              ; preds = %100
  %120 = load double, ptr %6, align 8, !tbaa !5
  %121 = fdiv double %120, 1.000000e+00
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, double noundef %121)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %139, %119
  %124 = load i32, ptr %1, align 4, !tbaa !9
  %125 = icmp slt i32 %124, 1
  br i1 %125, label %126, label %142

126:                                              ; preds = %123
  %127 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %127, i32 noundef 10000)
  %128 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %129 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %128, ptr align 16 %129, i64 80000, i1 false)
  %130 = call double @utime()
  store double %130, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_binary_insertion_sort(ptr noundef %131, i64 noundef 10000)
  %132 = call double @utime()
  store double %132, ptr %5, align 8, !tbaa !5
  %133 = load double, ptr %5, align 8, !tbaa !5
  %134 = load double, ptr %4, align 8, !tbaa !5
  %135 = fsub double %133, %134
  %136 = load double, ptr %6, align 8, !tbaa !5
  %137 = fadd double %136, %135
  store double %137, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %138, i32 noundef 10000)
  br label %139

139:                                              ; preds = %126
  %140 = load i32, ptr %1, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %1, align 4, !tbaa !9
  br label %123, !llvm.loop !17

142:                                              ; preds = %123
  %143 = load double, ptr %6, align 8, !tbaa !5
  %144 = fdiv double %143, 1.000000e+00
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %144)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %162, %142
  %147 = load i32, ptr %1, align 4, !tbaa !9
  %148 = icmp slt i32 %147, 1
  br i1 %148, label %149, label %165

149:                                              ; preds = %146
  %150 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %150, i32 noundef 10000)
  %151 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %152 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %151, ptr align 16 %152, i64 80000, i1 false)
  %153 = call double @utime()
  store double %153, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_heap_sort(ptr noundef %154, i64 noundef 10000)
  %155 = call double @utime()
  store double %155, ptr %5, align 8, !tbaa !5
  %156 = load double, ptr %5, align 8, !tbaa !5
  %157 = load double, ptr %4, align 8, !tbaa !5
  %158 = fsub double %156, %157
  %159 = load double, ptr %6, align 8, !tbaa !5
  %160 = fadd double %159, %158
  store double %160, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %161, i32 noundef 10000)
  br label %162

162:                                              ; preds = %149
  %163 = load i32, ptr %1, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %1, align 4, !tbaa !9
  br label %146, !llvm.loop !18

165:                                              ; preds = %146
  %166 = load double, ptr %6, align 8, !tbaa !5
  %167 = fdiv double %166, 1.000000e+00
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, double noundef %167)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %185, %165
  %170 = load i32, ptr %1, align 4, !tbaa !9
  %171 = icmp slt i32 %170, 1
  br i1 %171, label %172, label %188

172:                                              ; preds = %169
  %173 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %173, i32 noundef 10000)
  %174 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %175 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %174, ptr align 16 %175, i64 80000, i1 false)
  %176 = call double @utime()
  store double %176, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_shell_sort(ptr noundef %177, i64 noundef 10000)
  %178 = call double @utime()
  store double %178, ptr %5, align 8, !tbaa !5
  %179 = load double, ptr %5, align 8, !tbaa !5
  %180 = load double, ptr %4, align 8, !tbaa !5
  %181 = fsub double %179, %180
  %182 = load double, ptr %6, align 8, !tbaa !5
  %183 = fadd double %182, %181
  store double %183, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %184, i32 noundef 10000)
  br label %185

185:                                              ; preds = %172
  %186 = load i32, ptr %1, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %1, align 4, !tbaa !9
  br label %169, !llvm.loop !19

188:                                              ; preds = %169
  %189 = load double, ptr %6, align 8, !tbaa !5
  %190 = fdiv double %189, 1.000000e+00
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, double noundef %190)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %208, %188
  %193 = load i32, ptr %1, align 4, !tbaa !9
  %194 = icmp slt i32 %193, 1
  br i1 %194, label %195, label %211

195:                                              ; preds = %192
  %196 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %196, i32 noundef 10000)
  %197 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %198 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %197, ptr align 16 %198, i64 80000, i1 false)
  %199 = call double @utime()
  store double %199, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_tim_sort(ptr noundef %200, i64 noundef 10000)
  %201 = call double @utime()
  store double %201, ptr %5, align 8, !tbaa !5
  %202 = load double, ptr %5, align 8, !tbaa !5
  %203 = load double, ptr %4, align 8, !tbaa !5
  %204 = fsub double %202, %203
  %205 = load double, ptr %6, align 8, !tbaa !5
  %206 = fadd double %205, %204
  store double %206, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %207, i32 noundef 10000)
  br label %208

208:                                              ; preds = %195
  %209 = load i32, ptr %1, align 4, !tbaa !9
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %1, align 4, !tbaa !9
  br label %192, !llvm.loop !20

211:                                              ; preds = %192
  %212 = load double, ptr %6, align 8, !tbaa !5
  %213 = fdiv double %212, 1.000000e+00
  %214 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, double noundef %213)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %231, %211
  %216 = load i32, ptr %1, align 4, !tbaa !9
  %217 = icmp slt i32 %216, 1
  br i1 %217, label %218, label %234

218:                                              ; preds = %215
  %219 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %219, i32 noundef 10000)
  %220 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %221 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %220, ptr align 16 %221, i64 80000, i1 false)
  %222 = call double @utime()
  store double %222, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_merge_sort_in_place(ptr noundef %223, i64 noundef 10000)
  %224 = call double @utime()
  store double %224, ptr %5, align 8, !tbaa !5
  %225 = load double, ptr %5, align 8, !tbaa !5
  %226 = load double, ptr %4, align 8, !tbaa !5
  %227 = fsub double %225, %226
  %228 = load double, ptr %6, align 8, !tbaa !5
  %229 = fadd double %228, %227
  store double %229, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %230, i32 noundef 10000)
  br label %231

231:                                              ; preds = %218
  %232 = load i32, ptr %1, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %1, align 4, !tbaa !9
  br label %215, !llvm.loop !21

234:                                              ; preds = %215
  %235 = load double, ptr %6, align 8, !tbaa !5
  %236 = fdiv double %235, 1.000000e+00
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %236)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %254, %234
  %239 = load i32, ptr %1, align 4, !tbaa !9
  %240 = icmp slt i32 %239, 1
  br i1 %240, label %241, label %257

241:                                              ; preds = %238
  %242 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %242, i32 noundef 10000)
  %243 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %244 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %243, ptr align 16 %244, i64 80000, i1 false)
  %245 = call double @utime()
  store double %245, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_grail_sort(ptr noundef %246, i64 noundef 10000)
  %247 = call double @utime()
  store double %247, ptr %5, align 8, !tbaa !5
  %248 = load double, ptr %5, align 8, !tbaa !5
  %249 = load double, ptr %4, align 8, !tbaa !5
  %250 = fsub double %248, %249
  %251 = load double, ptr %6, align 8, !tbaa !5
  %252 = fadd double %251, %250
  store double %252, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %253, i32 noundef 10000)
  br label %254

254:                                              ; preds = %241
  %255 = load i32, ptr %1, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %1, align 4, !tbaa !9
  br label %238, !llvm.loop !22

257:                                              ; preds = %238
  %258 = load double, ptr %6, align 8, !tbaa !5
  %259 = fdiv double %258, 1.000000e+00
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %259)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %261

261:                                              ; preds = %277, %257
  %262 = load i32, ptr %1, align 4, !tbaa !9
  %263 = icmp slt i32 %262, 1
  br i1 %263, label %264, label %280

264:                                              ; preds = %261
  %265 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %265, i32 noundef 10000)
  %266 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %267 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %266, ptr align 16 %267, i64 80000, i1 false)
  %268 = call double @utime()
  store double %268, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_sqrt_sort(ptr noundef %269, i64 noundef 10000)
  %270 = call double @utime()
  store double %270, ptr %5, align 8, !tbaa !5
  %271 = load double, ptr %5, align 8, !tbaa !5
  %272 = load double, ptr %4, align 8, !tbaa !5
  %273 = fsub double %271, %272
  %274 = load double, ptr %6, align 8, !tbaa !5
  %275 = fadd double %274, %273
  store double %275, ptr %6, align 8, !tbaa !5
  %276 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %276, i32 noundef 10000)
  br label %277

277:                                              ; preds = %264
  %278 = load i32, ptr %1, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %1, align 4, !tbaa !9
  br label %261, !llvm.loop !23

280:                                              ; preds = %261
  %281 = load double, ptr %6, align 8, !tbaa !5
  %282 = fdiv double %281, 1.000000e+00
  %283 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %282)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %284

284:                                              ; preds = %300, %280
  %285 = load i32, ptr %1, align 4, !tbaa !9
  %286 = icmp slt i32 %285, 1
  br i1 %286, label %287, label %303

287:                                              ; preds = %284
  %288 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %288, i32 noundef 10000)
  %289 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %290 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %289, ptr align 16 %290, i64 80000, i1 false)
  %291 = call double @utime()
  store double %291, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_rec_stable_sort(ptr noundef %292, i64 noundef 10000)
  %293 = call double @utime()
  store double %293, ptr %5, align 8, !tbaa !5
  %294 = load double, ptr %5, align 8, !tbaa !5
  %295 = load double, ptr %4, align 8, !tbaa !5
  %296 = fsub double %294, %295
  %297 = load double, ptr %6, align 8, !tbaa !5
  %298 = fadd double %297, %296
  store double %298, ptr %6, align 8, !tbaa !5
  %299 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %299, i32 noundef 10000)
  br label %300

300:                                              ; preds = %287
  %301 = load i32, ptr %1, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  store i32 %302, ptr %1, align 4, !tbaa !9
  br label %284, !llvm.loop !24

303:                                              ; preds = %284
  %304 = load double, ptr %6, align 8, !tbaa !5
  %305 = fdiv double %304, 1.000000e+00
  %306 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef %305)
  call void @srand48(i64 noundef 123) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %323, %303
  %308 = load i32, ptr %1, align 4, !tbaa !9
  %309 = icmp slt i32 %308, 1
  br i1 %309, label %310, label %326

310:                                              ; preds = %307
  %311 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @fill(ptr noundef %311, i32 noundef 10000)
  %312 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  %313 = getelementptr inbounds [10000 x i64], ptr %2, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %312, ptr align 16 %313, i64 80000, i1 false)
  %314 = call double @utime()
  store double %314, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @sorter_grail_sort_dyn_buffer(ptr noundef %315, i64 noundef 10000)
  %316 = call double @utime()
  store double %316, ptr %5, align 8, !tbaa !5
  %317 = load double, ptr %5, align 8, !tbaa !5
  %318 = load double, ptr %4, align 8, !tbaa !5
  %319 = fsub double %317, %318
  %320 = load double, ptr %6, align 8, !tbaa !5
  %321 = fadd double %320, %319
  store double %321, ptr %6, align 8, !tbaa !5
  %322 = getelementptr inbounds [10000 x i64], ptr %3, i64 0, i64 0
  call void @verify(ptr noundef %322, i32 noundef 10000)
  br label %323

323:                                              ; preds = %310
  %324 = load i32, ptr %1, align 4, !tbaa !9
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %1, align 4, !tbaa !9
  br label %307, !llvm.loop !25

326:                                              ; preds = %307
  %327 = load double, ptr %6, align 8, !tbaa !5
  %328 = fdiv double %327, 1.000000e+00
  %329 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, double noundef %328)
  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 80000, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 80000, ptr %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #6
  ret void
}

; Function Attrs: nounwind
declare void @srand48(i64 noundef) #4

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

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

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

; 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #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 }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!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"

@.str.3 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [58 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_selection_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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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 @sorter_bubble_sort(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @run_tests() local_unnamed_addr #0 {
  %1 = alloca [10000 x i64], align 16
  %2 = alloca [10000 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 80000, ptr nonnull %2) #7
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  tail call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %4 = call double @utime()
  call void @qsort(ptr noundef nonnull %2, i64 noundef 10000, i64 noundef 8, ptr noundef nonnull @simple_cmp) #7
  %5 = call double @utime()
  %6 = fsub double %5, %4
  %7 = fadd double %6, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %8 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %7)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %9 = call double @utime()
  call void @sorter_quick_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %10 = call double @utime()
  %11 = fsub double %10, %9
  %12 = fadd double %11, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %12)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %14 = call double @utime()
  call void @sorter_selection_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %15 = call double @utime()
  %16 = fsub double %15, %14
  %17 = fadd double %16, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %17)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %19 = call double @utime()
  call void @sorter_bubble_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %20 = call double @utime()
  %21 = fsub double %20, %19
  %22 = fadd double %21, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, double noundef %22)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %24 = call double @utime()
  call void @sorter_merge_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %25 = call double @utime()
  %26 = fsub double %25, %24
  %27 = fadd double %26, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, double noundef %27)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %29 = call double @utime()
  call void @sorter_binary_insertion_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %30 = call double @utime()
  %31 = fsub double %30, %29
  %32 = fadd double %31, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %32)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %34 = call double @utime()
  call void @sorter_heap_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %35 = call double @utime()
  %36 = fsub double %35, %34
  %37 = fadd double %36, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, double noundef %37)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %39 = call double @utime()
  call void @sorter_shell_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %40 = call double @utime()
  %41 = fsub double %40, %39
  %42 = fadd double %41, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, double noundef %42)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %44 = call double @utime()
  call void @sorter_tim_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %45 = call double @utime()
  %46 = fsub double %45, %44
  %47 = fadd double %46, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, double noundef %47)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %49 = call double @utime()
  call void @sorter_merge_sort_in_place(ptr noundef nonnull %2, i64 noundef 10000)
  %50 = call double @utime()
  %51 = fsub double %50, %49
  %52 = fadd double %51, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %52)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %54 = call double @utime()
  call void @sorter_grail_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %55 = call double @utime()
  %56 = fsub double %55, %54
  %57 = fadd double %56, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %57)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %59 = call double @utime()
  call void @sorter_sqrt_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %60 = call double @utime()
  %61 = fsub double %60, %59
  %62 = fadd double %61, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef %62)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %64 = call double @utime()
  call void @sorter_rec_stable_sort(ptr noundef nonnull %2, i64 noundef 10000)
  %65 = call double @utime()
  %66 = fsub double %65, %64
  %67 = fadd double %66, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef %67)
  call void @srand48(i64 noundef 123) #7
  call void @fill(ptr noundef nonnull %1, i32 noundef 10000)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(80000) %2, ptr noundef nonnull align 16 dereferenceable(80000) %1, i64 80000, i1 false)
  %69 = call double @utime()
  call void @sorter_grail_sort_dyn_buffer(ptr noundef nonnull %2, i64 noundef 10000)
  %70 = call double @utime()
  %71 = fsub double %70, %69
  %72 = fadd double %71, 0.000000e+00
  call void @verify(ptr noundef nonnull %2, i32 noundef 10000)
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, double noundef %72)
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 80000, ptr nonnull %1) #7
  ret void
}

; Function Attrs: nounwind
declare void @srand48(i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare hidden void @fill(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 #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @simple_cmp(ptr noundef, ptr noundef) #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 #6

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass