; LLVM IR from ssvb/tinymembench :: main (latency_bench)

; 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 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @latency_bench(i32 noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = call i32 @posix_memalign(ptr noundef %27, i64 noundef 4194304, i64 noundef %32) #7
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %3
  store i32 0, ptr %4, align 4
  store i32 1, ptr %28, align 4
  br label %267

36:                                               ; preds = %3
  %37 = load ptr, ptr %27, align 8, !tbaa !9
  store ptr %37, ptr %26, align 8, !tbaa !9
  %38 = load i32, ptr %7, align 4, !tbaa !5
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %52

40:                                               ; preds = %36
  %41 = load ptr, ptr %26, align 8, !tbaa !9
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = icmp sgt i32 %44, 0
  %46 = zext i1 %45 to i64
  %47 = select i1 %45, i32 14, i32 15
  %48 = call i32 @madvise(ptr noundef %41, i64 noundef %43, i32 noundef %47) #7
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %40
  %51 = load ptr, ptr %27, align 8, !tbaa !9
  call void @free(ptr noundef %51) #7
  store i32 0, ptr %4, align 4
  store i32 1, ptr %28, align 4
  br label %267

52:                                               ; preds = %40, %36
  %53 = load ptr, ptr %26, align 8, !tbaa !9
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %53, i8 0, i64 %55, i1 false)
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %94, %52
  %57 = load i32, ptr %25, align 4, !tbaa !5
  %58 = icmp sle i32 %57, 10
  br i1 %58, label %59, label %97

59:                                               ; preds = %56
  %60 = call double @gettime()
  store double %60, ptr %10, align 8, !tbaa !11
  %61 = load ptr, ptr %26, align 8, !tbaa !9
  %62 = load i32, ptr %6, align 4, !tbaa !5
  call void @random_read_test(ptr noundef %61, i32 noundef %62, i32 noundef 1)
  %63 = call double @gettime()
  store double %63, ptr %11, align 8, !tbaa !11
  %64 = load i32, ptr %25, align 4, !tbaa !5
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %72, label %66

66:                                               ; preds = %59
  %67 = load double, ptr %11, align 8, !tbaa !11
  %68 = load double, ptr %10, align 8, !tbaa !11
  %69 = fsub double %67, %68
  %70 = load double, ptr %12, align 8, !tbaa !11
  %71 = fcmp olt double %69, %70
  br i1 %71, label %72, label %76

72:                                               ; preds = %66, %59
  %73 = load double, ptr %11, align 8, !tbaa !11
  %74 = load double, ptr %10, align 8, !tbaa !11
  %75 = fsub double %73, %74
  store double %75, ptr %12, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %72, %66
  %77 = call double @gettime()
  store double %77, ptr %10, align 8, !tbaa !11
  %78 = load ptr, ptr %26, align 8, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !5
  call void @random_dual_read_test(ptr noundef %78, i32 noundef %79, i32 noundef 1)
  %80 = call double @gettime()
  store double %80, ptr %11, align 8, !tbaa !11
  %81 = load i32, ptr %25, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %89, label %83

83:                                               ; preds = %76
  %84 = load double, ptr %11, align 8, !tbaa !11
  %85 = load double, ptr %10, align 8, !tbaa !11
  %86 = fsub double %84, %85
  %87 = load double, ptr %13, align 8, !tbaa !11
  %88 = fcmp olt double %86, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %83, %76
  %90 = load double, ptr %11, align 8, !tbaa !11
  %91 = load double, ptr %10, align 8, !tbaa !11
  %92 = fsub double %90, %91
  store double %92, ptr %13, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %89, %83
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %25, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %25, align 4, !tbaa !5
  br label %56, !llvm.loop !13

97:                                               ; preds = %56
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %111

103:                                              ; preds = %97
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = icmp slt i32 %104, 0
  br i1 %105, label %106, label %108

106:                                              ; preds = %103
  %107 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %110

108:                                              ; preds = %103
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %110

110:                                              ; preds = %108, %106
  br label %111

111:                                              ; preds = %110, %101
  store i32 10, ptr %24, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %262, %111
  %113 = load i32, ptr %24, align 4, !tbaa !5
  %114 = shl i32 1, %113
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %117, label %265

117:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %118 = load i32, ptr %24, align 4, !tbaa !5
  %119 = shl i32 1, %118
  store i32 %119, ptr %29, align 4, !tbaa !5
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %245, %117
  %121 = load i32, ptr %25, align 4, !tbaa !5
  %122 = icmp sle i32 %121, 10
  br i1 %122, label %123, label %248

123:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %124 = call i32 @rand32()
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = load i32, ptr %29, align 4, !tbaa !5
  %127 = sdiv i32 %125, %126
  %128 = urem i32 %124, %127
  %129 = load i32, ptr %29, align 4, !tbaa !5
  %130 = mul i32 %128, %129
  store i32 %130, ptr %30, align 4, !tbaa !5
  %131 = call double @gettime()
  store double %131, ptr %10, align 8, !tbaa !11
  %132 = load ptr, ptr %26, align 8, !tbaa !9
  %133 = load i32, ptr %30, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = load i32, ptr %24, align 4, !tbaa !5
  call void @random_read_test(ptr noundef %135, i32 noundef %136, i32 noundef %137)
  %138 = call double @gettime()
  store double %138, ptr %11, align 8, !tbaa !11
  %139 = load double, ptr %11, align 8, !tbaa !11
  %140 = load double, ptr %10, align 8, !tbaa !11
  %141 = fsub double %139, %140
  %142 = load double, ptr %12, align 8, !tbaa !11
  %143 = fsub double %141, %142
  store double %143, ptr %8, align 8, !tbaa !11
  %144 = load double, ptr %8, align 8, !tbaa !11
  %145 = fcmp olt double %144, 0.000000e+00
  br i1 %145, label %146, label %147

146:                                              ; preds = %123
  store double 0.000000e+00, ptr %8, align 8, !tbaa !11
  br label %147

147:                                              ; preds = %146, %123
  %148 = load double, ptr %8, align 8, !tbaa !11
  %149 = load double, ptr %16, align 8, !tbaa !11
  %150 = fadd double %149, %148
  store double %150, ptr %16, align 8, !tbaa !11
  %151 = load double, ptr %8, align 8, !tbaa !11
  %152 = load double, ptr %8, align 8, !tbaa !11
  %153 = load double, ptr %17, align 8, !tbaa !11
  %154 = call double @llvm.fmuladd.f64(double %151, double %152, double %153)
  store double %154, ptr %17, align 8, !tbaa !11
  %155 = load i32, ptr %25, align 4, !tbaa !5
  %156 = icmp eq i32 %155, 1
  br i1 %156, label %161, label %157

157:                                              ; preds = %147
  %158 = load double, ptr %8, align 8, !tbaa !11
  %159 = load double, ptr %22, align 8, !tbaa !11
  %160 = fcmp olt double %158, %159
  br i1 %160, label %161, label %163

161:                                              ; preds = %157, %147
  %162 = load double, ptr %8, align 8, !tbaa !11
  store double %162, ptr %22, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %161, %157
  %164 = call double @gettime()
  store double %164, ptr %10, align 8, !tbaa !11
  %165 = load ptr, ptr %26, align 8, !tbaa !9
  %166 = load i32, ptr %30, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds i8, ptr %165, i64 %167
  %169 = load i32, ptr %6, align 4, !tbaa !5
  %170 = load i32, ptr %24, align 4, !tbaa !5
  call void @random_dual_read_test(ptr noundef %168, i32 noundef %169, i32 noundef %170)
  %171 = call double @gettime()
  store double %171, ptr %11, align 8, !tbaa !11
  %172 = load double, ptr %11, align 8, !tbaa !11
  %173 = load double, ptr %10, align 8, !tbaa !11
  %174 = fsub double %172, %173
  %175 = load double, ptr %13, align 8, !tbaa !11
  %176 = fsub double %174, %175
  store double %176, ptr %9, align 8, !tbaa !11
  %177 = load double, ptr %9, align 8, !tbaa !11
  %178 = fcmp olt double %177, 0.000000e+00
  br i1 %178, label %179, label %180

179:                                              ; preds = %163
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  br label %180

180:                                              ; preds = %179, %163
  %181 = load double, ptr %9, align 8, !tbaa !11
  %182 = load double, ptr %20, align 8, !tbaa !11
  %183 = fadd double %182, %181
  store double %183, ptr %20, align 8, !tbaa !11
  %184 = load double, ptr %9, align 8, !tbaa !11
  %185 = load double, ptr %9, align 8, !tbaa !11
  %186 = load double, ptr %21, align 8, !tbaa !11
  %187 = call double @llvm.fmuladd.f64(double %184, double %185, double %186)
  store double %187, ptr %21, align 8, !tbaa !11
  %188 = load i32, ptr %25, align 4, !tbaa !5
  %189 = icmp eq i32 %188, 1
  br i1 %189, label %194, label %190

190:                                              ; preds = %180
  %191 = load double, ptr %9, align 8, !tbaa !11
  %192 = load double, ptr %23, align 8, !tbaa !11
  %193 = fcmp olt double %191, %192
  br i1 %193, label %194, label %196

194:                                              ; preds = %190, %180
  %195 = load double, ptr %9, align 8, !tbaa !11
  store double %195, ptr %23, align 8, !tbaa !11
  br label %196

196:                                              ; preds = %194, %190
  %197 = load i32, ptr %25, align 4, !tbaa !5
  %198 = icmp sgt i32 %197, 2
  br i1 %198, label %199, label %241

199:                                              ; preds = %196
  %200 = load double, ptr %17, align 8, !tbaa !11
  %201 = load i32, ptr %25, align 4, !tbaa !5
  %202 = sitofp i32 %201 to double
  %203 = load double, ptr %16, align 8, !tbaa !11
  %204 = load double, ptr %16, align 8, !tbaa !11
  %205 = fmul double %203, %204
  %206 = fneg double %205
  %207 = call double @llvm.fmuladd.f64(double %200, double %202, double %206)
  %208 = load i32, ptr %25, align 4, !tbaa !5
  %209 = load i32, ptr %25, align 4, !tbaa !5
  %210 = sub nsw i32 %209, 1
  %211 = mul nsw i32 %208, %210
  %212 = sitofp i32 %211 to double
  %213 = fdiv double %207, %212
  %214 = call double @sqrt(double noundef %213) #7
  store double %214, ptr %14, align 8, !tbaa !11
  %215 = load double, ptr %21, align 8, !tbaa !11
  %216 = load i32, ptr %25, align 4, !tbaa !5
  %217 = sitofp i32 %216 to double
  %218 = load double, ptr %20, align 8, !tbaa !11
  %219 = load double, ptr %20, align 8, !tbaa !11
  %220 = fmul double %218, %219
  %221 = fneg double %220
  %222 = call double @llvm.fmuladd.f64(double %215, double %217, double %221)
  %223 = load i32, ptr %25, align 4, !tbaa !5
  %224 = load i32, ptr %25, align 4, !tbaa !5
  %225 = sub nsw i32 %224, 1
  %226 = mul nsw i32 %223, %225
  %227 = sitofp i32 %226 to double
  %228 = fdiv double %222, %227
  %229 = call double @sqrt(double noundef %228) #7
  store double %229, ptr %18, align 8, !tbaa !11
  %230 = load double, ptr %14, align 8, !tbaa !11
  %231 = load double, ptr %22, align 8, !tbaa !11
  %232 = fdiv double %231, 1.000000e+03
  %233 = fcmp olt double %230, %232
  br i1 %233, label %234, label %240

234:                                              ; preds = %199
  %235 = load double, ptr %18, align 8, !tbaa !11
  %236 = load double, ptr %23, align 8, !tbaa !11
  %237 = fdiv double %236, 1.000000e+03
  %238 = fcmp olt double %235, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %234
  store i32 8, ptr %28, align 4
  br label %242

240:                                              ; preds = %234, %199
  br label %241

241:                                              ; preds = %240, %196
  store i32 0, ptr %28, align 4
  br label %242

242:                                              ; preds = %241, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  %243 = load i32, ptr %28, align 4
  switch i32 %243, label %269 [
    i32 0, label %244
    i32 8, label %248
  ]

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244
  %246 = load i32, ptr %25, align 4, !tbaa !5
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %25, align 4, !tbaa !5
  br label %120, !llvm.loop !15

248:                                              ; preds = %242, %120
  %249 = load i32, ptr %24, align 4, !tbaa !5
  %250 = shl i32 1, %249
  %251 = load double, ptr %22, align 8, !tbaa !11
  %252 = fmul double %251, 1.000000e+09
  %253 = load i32, ptr %6, align 4, !tbaa !5
  %254 = sitofp i32 %253 to double
  %255 = fdiv double %252, %254
  %256 = load double, ptr %23, align 8, !tbaa !11
  %257 = fmul double %256, 1.000000e+09
  %258 = load i32, ptr %6, align 4, !tbaa !5
  %259 = sitofp i32 %258 to double
  %260 = fdiv double %257, %259
  %261 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %250, double noundef %255, double noundef %260)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %262

262:                                              ; preds = %248
  %263 = load i32, ptr %24, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %24, align 4, !tbaa !5
  br label %112, !llvm.loop !16

265:                                              ; preds = %112
  %266 = load ptr, ptr %27, align 8, !tbaa !9
  call void @free(ptr noundef %266) #7
  store i32 1, ptr %4, align 4
  store i32 1, ptr %28, align 4
  br label %267

267:                                              ; preds = %265, %50, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %268 = load i32, ptr %4, align 4
  ret i32 %268

269:                                              ; preds = %242
  unreachable
}

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

; Function Attrs: nounwind
declare i32 @posix_memalign(ptr noundef, i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare i32 @madvise(ptr noundef, i64 noundef, i32 noundef) #3

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

declare double @gettime() #4

; Function Attrs: noinline nounwind uwtable
declare hidden void @random_read_test(ptr noundef, i32 noundef, i32 noundef) #5

; Function Attrs: noinline nounwind uwtable
declare hidden void @random_dual_read_test(ptr noundef, i32 noundef, i32 noundef) #5

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rand32() #1

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noinline 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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)"}
!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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @latency_bench(i32 noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  %5 = sext i32 %0 to i64
  %6 = call i32 @posix_memalign(ptr noundef nonnull %4, i64 noundef 4194304, i64 noundef %5) #11
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %231

7:                                                ; preds = %3
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %.not118 = icmp eq i32 %2, 0
  br i1 %.not118, label %13, label %9

9:                                                ; preds = %7
  %10 = icmp sgt i32 %2, 0
  %11 = select i1 %10, i32 14, i32 15
  %12 = call i32 @madvise(ptr noundef %8, i64 noundef %5, i32 noundef %11) #11
  %.not119 = icmp eq i32 %12, 0
  br i1 %.not119, label %13, label %.sink.split

13:                                               ; preds = %9, %7
  call void @llvm.memset.p0.i64(ptr align 1 %8, i8 0, i64 %5, i1 false)
  %14 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %15 = call double @gettime() #11
  %16 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %17 = call double @gettime() #11
  %18 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %19 = call double @gettime() #11
  %20 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %21 = call double @gettime() #11
  %22 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %23 = call double @gettime() #11
  %24 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %25 = call double @gettime() #11
  %26 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %27 = call double @gettime() #11
  %28 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %29 = call double @gettime() #11
  %30 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %31 = call double @gettime() #11
  %32 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %33 = call double @gettime() #11
  %34 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %35 = call double @gettime() #11
  %36 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %37 = call double @gettime() #11
  %38 = insertelement <2 x double> poison, double %17, i64 0
  %39 = insertelement <2 x double> %38, double %15, i64 1
  %40 = insertelement <2 x double> poison, double %16, i64 0
  %41 = insertelement <2 x double> %40, double %14, i64 1
  %42 = fsub <2 x double> %39, %41
  %43 = insertelement <2 x double> poison, double %21, i64 0
  %44 = insertelement <2 x double> %43, double %19, i64 1
  %45 = insertelement <2 x double> poison, double %20, i64 0
  %46 = insertelement <2 x double> %45, double %18, i64 1
  %47 = fsub <2 x double> %44, %46
  %48 = fcmp olt <2 x double> %47, %42
  %49 = select <2 x i1> %48, <2 x double> %47, <2 x double> %42
  %50 = insertelement <2 x double> poison, double %25, i64 0
  %51 = insertelement <2 x double> %50, double %23, i64 1
  %52 = insertelement <2 x double> poison, double %24, i64 0
  %53 = insertelement <2 x double> %52, double %22, i64 1
  %54 = fsub <2 x double> %51, %53
  %55 = fcmp olt <2 x double> %54, %49
  %56 = select <2 x i1> %55, <2 x double> %54, <2 x double> %49
  %57 = insertelement <2 x double> poison, double %29, i64 0
  %58 = insertelement <2 x double> %57, double %27, i64 1
  %59 = insertelement <2 x double> poison, double %28, i64 0
  %60 = insertelement <2 x double> %59, double %26, i64 1
  %61 = fsub <2 x double> %58, %60
  %62 = fcmp olt <2 x double> %61, %56
  %63 = select <2 x i1> %62, <2 x double> %61, <2 x double> %56
  %64 = insertelement <2 x double> poison, double %33, i64 0
  %65 = insertelement <2 x double> %64, double %31, i64 1
  %66 = insertelement <2 x double> poison, double %32, i64 0
  %67 = insertelement <2 x double> %66, double %30, i64 1
  %68 = fsub <2 x double> %65, %67
  %69 = fcmp olt <2 x double> %68, %63
  %70 = select <2 x i1> %69, <2 x double> %68, <2 x double> %63
  %71 = insertelement <2 x double> poison, double %37, i64 0
  %72 = insertelement <2 x double> %71, double %35, i64 1
  %73 = insertelement <2 x double> poison, double %36, i64 0
  %74 = insertelement <2 x double> %73, double %34, i64 1
  %75 = fsub <2 x double> %72, %74
  %76 = fcmp olt <2 x double> %75, %70
  %77 = select <2 x i1> %76, <2 x double> %75, <2 x double> %70
  %78 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %79 = call double @gettime() #11
  %80 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %81 = call double @gettime() #11
  %82 = insertelement <2 x double> poison, double %81, i64 0
  %83 = insertelement <2 x double> %82, double %79, i64 1
  %84 = insertelement <2 x double> poison, double %80, i64 0
  %85 = insertelement <2 x double> %84, double %78, i64 1
  %86 = fsub <2 x double> %83, %85
  %87 = fcmp olt <2 x double> %86, %77
  %88 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %89 = call double @gettime() #11
  %90 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %91 = call double @gettime() #11
  %92 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %93 = call double @gettime() #11
  %94 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %95 = call double @gettime() #11
  %96 = call double @gettime() #11
  call void @random_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %97 = call double @gettime() #11
  %98 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %8, i32 noundef %1, i32 noundef 1)
  %99 = call double @gettime() #11
  %100 = select <2 x i1> %87, <2 x double> %86, <2 x double> %77
  %101 = insertelement <2 x double> poison, double %91, i64 0
  %102 = insertelement <2 x double> %101, double %89, i64 1
  %103 = insertelement <2 x double> poison, double %90, i64 0
  %104 = insertelement <2 x double> %103, double %88, i64 1
  %105 = fsub <2 x double> %102, %104
  %106 = fcmp olt <2 x double> %105, %100
  %107 = select <2 x i1> %106, <2 x double> %105, <2 x double> %100
  %108 = insertelement <2 x double> poison, double %95, i64 0
  %109 = insertelement <2 x double> %108, double %93, i64 1
  %110 = insertelement <2 x double> poison, double %94, i64 0
  %111 = insertelement <2 x double> %110, double %92, i64 1
  %112 = fsub <2 x double> %109, %111
  %113 = fcmp olt <2 x double> %112, %107
  %114 = select <2 x i1> %113, <2 x double> %112, <2 x double> %107
  %115 = insertelement <2 x double> poison, double %99, i64 0
  %116 = insertelement <2 x double> %115, double %97, i64 1
  %117 = insertelement <2 x double> poison, double %98, i64 0
  %118 = insertelement <2 x double> %117, double %96, i64 1
  %119 = fsub <2 x double> %116, %118
  %120 = fcmp olt <2 x double> %119, %114
  %121 = select <2 x i1> %120, <2 x double> %119, <2 x double> %114
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %123 = icmp sgt i32 %2, 0
  %124 = icmp slt i32 %2, 0
  %.str.2..str.3 = select i1 %124, ptr @.str.2, ptr @.str.3
  %.str.2.sink = select i1 %123, ptr @.str.1, ptr %.str.2..str.3
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.2.sink)
  %.not120140 = icmp slt i32 %0, 1024
  br i1 %.not120140, label %.sink.split, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %13
  %126 = sitofp i32 %1 to double
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %split
  %127 = phi i32 [ 1024, %.preheader.lr.ph ], [ %230, %split ]
  %.097143 = phi i32 [ 10, %.preheader.lr.ph ], [ %229, %split ]
  %128 = call i32 @rand32()
  %129 = udiv i32 %0, %127
  %130 = urem i32 %128, %129
  %131 = shl i32 %130, %.097143
  %132 = call double @gettime() #11
  %133 = sext i32 %131 to i64
  %134 = getelementptr inbounds i8, ptr %8, i64 %133
  call void @random_read_test(ptr noundef %134, i32 noundef %1, i32 noundef %.097143)
  %135 = call double @gettime() #11
  %136 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %134, i32 noundef %1, i32 noundef %.097143)
  %137 = call double @gettime() #11
  %138 = insertelement <2 x double> poison, double %137, i64 0
  %139 = insertelement <2 x double> %138, double %135, i64 1
  %140 = insertelement <2 x double> poison, double %136, i64 0
  %141 = insertelement <2 x double> %140, double %132, i64 1
  %142 = fsub <2 x double> %139, %141
  %143 = fsub <2 x double> %142, %121
  %144 = fcmp olt <2 x double> %143, zeroinitializer
  %145 = select <2 x i1> %144, <2 x double> zeroinitializer, <2 x double> %143
  %146 = extractelement <2 x double> %145, i64 1
  %147 = fadd <2 x double> %145, zeroinitializer
  %148 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %145, <2 x double> %145, <2 x double> zeroinitializer)
  %149 = extractelement <2 x double> %145, i64 0
  %150 = call i32 @rand32()
  %151 = udiv i32 %0, %127
  %152 = urem i32 %150, %151
  %153 = shl i32 %152, %.097143
  %154 = call double @gettime() #11
  %155 = sext i32 %153 to i64
  %156 = getelementptr inbounds i8, ptr %8, i64 %155
  call void @random_read_test(ptr noundef %156, i32 noundef %1, i32 noundef %.097143)
  %157 = call double @gettime() #11
  %158 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %156, i32 noundef %1, i32 noundef %.097143)
  %159 = call double @gettime() #11
  %160 = insertelement <2 x double> poison, double %159, i64 0
  %161 = insertelement <2 x double> %160, double %157, i64 1
  %162 = insertelement <2 x double> poison, double %158, i64 0
  %163 = insertelement <2 x double> %162, double %154, i64 1
  %164 = fsub <2 x double> %161, %163
  %165 = fsub <2 x double> %164, %121
  %166 = fcmp olt <2 x double> %165, zeroinitializer
  %167 = select <2 x i1> %166, <2 x double> zeroinitializer, <2 x double> %165
  %168 = extractelement <2 x double> %167, i64 1
  %169 = fcmp olt double %168, %146
  %.2102.peel152 = select i1 %169, double %168, double %146
  %170 = fadd <2 x double> %147, %167
  %171 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %167, <2 x double> %167, <2 x double> %148)
  %172 = extractelement <2 x double> %167, i64 0
  %173 = fcmp olt double %172, %149
  %.2.peel154 = select i1 %173, double %172, double %149
  br label %174

174:                                              ; preds = %.backedge, %.preheader
  %.1139 = phi i32 [ 3, %.preheader ], [ %.1139.be, %.backedge ]
  %.199138 = phi double [ %.2.peel154, %.preheader ], [ %.2, %.backedge ]
  %.1101137 = phi double [ %.2102.peel152, %.preheader ], [ %.2102, %.backedge ]
  %175 = phi <2 x double> [ %170, %.preheader ], [ %197, %.backedge ]
  %176 = phi <2 x double> [ %171, %.preheader ], [ %198, %.backedge ]
  %177 = call i32 @rand32()
  %178 = udiv i32 %0, %127
  %179 = urem i32 %177, %178
  %180 = shl i32 %179, %.097143
  %181 = call double @gettime() #11
  %182 = sext i32 %180 to i64
  %183 = getelementptr inbounds i8, ptr %8, i64 %182
  call void @random_read_test(ptr noundef %183, i32 noundef %1, i32 noundef %.097143)
  %184 = call double @gettime() #11
  %185 = call double @gettime() #11
  call void @random_dual_read_test(ptr noundef %183, i32 noundef %1, i32 noundef %.097143)
  %186 = call double @gettime() #11
  %187 = insertelement <2 x double> poison, double %186, i64 0
  %188 = insertelement <2 x double> %187, double %184, i64 1
  %189 = insertelement <2 x double> poison, double %185, i64 0
  %190 = insertelement <2 x double> %189, double %181, i64 1
  %191 = fsub <2 x double> %188, %190
  %192 = fsub <2 x double> %191, %121
  %193 = fcmp olt <2 x double> %192, zeroinitializer
  %194 = select <2 x i1> %193, <2 x double> zeroinitializer, <2 x double> %192
  %195 = extractelement <2 x double> %194, i64 1
  %196 = fcmp olt double %195, %.1101137
  %.2102 = select i1 %196, double %195, double %.1101137
  %197 = fadd <2 x double> %175, %194
  %198 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %194, <2 x double> %194, <2 x double> %176)
  %199 = extractelement <2 x double> %194, i64 0
  %200 = fcmp olt double %199, %.199138
  %.2 = select i1 %200, double %199, double %.199138
  %201 = uitofp nneg i32 %.1139 to double
  %202 = extractelement <2 x double> %197, i64 1
  %203 = fneg double %202
  %204 = fmul double %202, %203
  %205 = extractelement <2 x double> %198, i64 1
  %206 = call double @llvm.fmuladd.f64(double %205, double %201, double %204)
  %207 = add nsw i32 %.1139, -1
  %208 = mul nuw nsw i32 %207, %.1139
  %209 = uitofp nneg i32 %208 to double
  %210 = fdiv double %206, %209
  %211 = call double @sqrt(double noundef %210) #11
  %212 = extractelement <2 x double> %197, i64 0
  %213 = fneg double %212
  %214 = fmul double %212, %213
  %215 = extractelement <2 x double> %198, i64 0
  %216 = call double @llvm.fmuladd.f64(double %215, double %201, double %214)
  %217 = fdiv double %216, %209
  %218 = call double @sqrt(double noundef %217) #11
  %219 = fdiv double %.2102, 1.000000e+03
  %220 = fcmp uge double %211, %219
  %221 = fdiv double %.2, 1.000000e+03
  %222 = fcmp uge double %218, %221
  %or.cond127.not148 = select i1 %220, i1 true, i1 %222
  %223 = icmp ult i32 %.1139, 10
  %or.cond145 = select i1 %or.cond127.not148, i1 %223, i1 false
  br i1 %or.cond145, label %.backedge, label %split

.backedge:                                        ; preds = %174
  %.1139.be = add nuw nsw i32 %.1139, 1
  br label %174, !llvm.loop !9

split:                                            ; preds = %174
  %224 = fmul double %.2102, 1.000000e+09
  %225 = fdiv double %224, %126
  %226 = fmul double %.2, 1.000000e+09
  %227 = fdiv double %226, %126
  %228 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %127, double noundef %225, double noundef %227)
  %229 = add nuw nsw i32 %.097143, 1
  %230 = shl nuw i32 2, %.097143
  %.not120 = icmp sgt i32 %230, %0
  br i1 %.not120, label %.sink.split, label %.preheader, !llvm.loop !12

.sink.split:                                      ; preds = %split, %13, %9
  %.0.ph = phi i32 [ 0, %9 ], [ 1, %13 ], [ 1, %split ]
  %.sink = load ptr, ptr %4, align 8, !tbaa !5
  call void @free(ptr noundef %.sink) #11
  br label %231

231:                                              ; preds = %.sink.split, %3
  %.0 = phi i32 [ 0, %3 ], [ %.0.ph, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  ret i32 %.0
}

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

; Function Attrs: nofree nounwind
declare i32 @posix_memalign(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @madvise(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #4

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

declare double @gettime() local_unnamed_addr #6

; Function Attrs: noinline nounwind uwtable
declare hidden void @random_read_test(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: noinline nounwind uwtable
declare hidden void @random_dual_read_test(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #9

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

; Function Attrs: nounwind uwtable
declare hidden i32 @rand32() local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #10

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 = { noinline 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 #8 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { mustprogress nofree nounwind willreturn memory(write) "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 #10 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 2}
!12 = distinct !{!12, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass