; LLVM IR from rgolubtsov/nonlinear-optimization-algorithms-multilang :: nlp-unconstrained-cli/hooke-jeeves/c/src (hooke)

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

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

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

declare double @f(ptr noundef, i32 noundef, ptr noundef) #2

; 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
define dso_local i32 @hooke(i32 noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [250 x double], align 16
  %19 = alloca [250 x double], align 16
  %20 = alloca [250 x double], align 16
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca ptr, align 8
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !11
  store double %4, ptr %11, align 8, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 2000, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 2000, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 2000, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %64, %6
  %27 = load i32, ptr %13, align 4, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !5
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %30, label %67

30:                                               ; preds = %26
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  %32 = load i32, ptr %13, align 4, !tbaa !5
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %31, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !11
  %36 = load i32, ptr %13, align 4, !tbaa !5
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %37
  store double %35, ptr %38, align 8, !tbaa !11
  %39 = load i32, ptr %13, align 4, !tbaa !5
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %40
  store double %35, ptr %41, align 8, !tbaa !11
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  %43 = load i32, ptr %13, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !11
  %47 = load double, ptr %10, align 8, !tbaa !11
  %48 = fmul double %46, %47
  %49 = call double @llvm.fabs.f64(double %48)
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %51
  store double %49, ptr %52, align 8, !tbaa !11
  %53 = load i32, ptr %13, align 4, !tbaa !5
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = fcmp oeq double %56, 0.000000e+00
  br i1 %57, label %58, label %63

58:                                               ; preds = %30
  %59 = load double, ptr %10, align 8, !tbaa !11
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %61
  store double %59, ptr %62, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %58, %30
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %13, align 4, !tbaa !5
  %66 = add i32 %65, 1
  store i32 %66, ptr %13, align 4, !tbaa !5
  br label %26, !llvm.loop !13

67:                                               ; preds = %26
  store i32 0, ptr %14, align 4, !tbaa !5
  %68 = load double, ptr %10, align 8, !tbaa !11
  store double %68, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !5
  %69 = call noalias ptr @malloc(i64 noundef 4) #7
  store ptr %69, ptr %25, align 8, !tbaa !9
  %70 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 0
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = load ptr, ptr %25, align 8, !tbaa !9
  %73 = call double @f(ptr noundef %70, i32 noundef %71, ptr noundef %72)
  store double %73, ptr %22, align 8, !tbaa !11
  %74 = load double, ptr %22, align 8, !tbaa !11
  store double %74, ptr %23, align 8, !tbaa !11
  br label %75

75:                                               ; preds = %272, %67
  %76 = load i32, ptr %15, align 4, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !5
  %78 = icmp ult i32 %76, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = load double, ptr %21, align 8, !tbaa !11
  %81 = load double, ptr %11, align 8, !tbaa !11
  %82 = fcmp ogt double %80, %81
  br label %83

83:                                               ; preds = %79, %75
  %84 = phi i1 [ false, %75 ], [ %82, %79 ]
  br i1 %84, label %85, label %273

85:                                               ; preds = %83
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = add i32 %86, 1
  store i32 %87, ptr %15, align 4, !tbaa !5
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = add i32 %88, 1
  store i32 %89, ptr %14, align 4, !tbaa !5
  %90 = load ptr, ptr %25, align 8, !tbaa !9
  %91 = call i32 @get_funevals(ptr noundef %90)
  %92 = load double, ptr %22, align 8, !tbaa !11
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %91, double noundef %92)
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %105, %85
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = icmp ult i32 %95, %96
  br i1 %97, label %98, label %108

98:                                               ; preds = %94
  %99 = load i32, ptr %16, align 4, !tbaa !5
  %100 = load i32, ptr %16, align 4, !tbaa !5
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %99, double noundef %103)
  br label %105

105:                                              ; preds = %98
  %106 = load i32, ptr %16, align 4, !tbaa !5
  %107 = add i32 %106, 1
  store i32 %107, ptr %16, align 4, !tbaa !5
  br label %94, !llvm.loop !15

108:                                              ; preds = %94
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %121, %108
  %110 = load i32, ptr %13, align 4, !tbaa !5
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = icmp ult i32 %110, %111
  br i1 %112, label %113, label %124

113:                                              ; preds = %109
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %115
  %117 = load double, ptr %116, align 8, !tbaa !11
  %118 = load i32, ptr %13, align 4, !tbaa !5
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %119
  store double %117, ptr %120, align 8, !tbaa !11
  br label %121

121:                                              ; preds = %113
  %122 = load i32, ptr %13, align 4, !tbaa !5
  %123 = add i32 %122, 1
  store i32 %123, ptr %13, align 4, !tbaa !5
  br label %109, !llvm.loop !16

124:                                              ; preds = %109
  %125 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 0
  %126 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 0
  %127 = load double, ptr %22, align 8, !tbaa !11
  %128 = load i32, ptr %7, align 4, !tbaa !5
  %129 = load ptr, ptr %25, align 8, !tbaa !9
  %130 = call double @best_nearby(ptr noundef %125, ptr noundef %126, double noundef %127, i32 noundef %128, ptr noundef %129)
  store double %130, ptr %23, align 8, !tbaa !11
  store i32 1, ptr %17, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %244, %124
  %132 = load double, ptr %23, align 8, !tbaa !11
  %133 = load double, ptr %22, align 8, !tbaa !11
  %134 = fcmp olt double %132, %133
  br i1 %134, label %135, label %138

135:                                              ; preds = %131
  %136 = load i32, ptr %17, align 4, !tbaa !5
  %137 = icmp eq i32 %136, 1
  br label %138

138:                                              ; preds = %135, %131
  %139 = phi i1 [ false, %131 ], [ %137, %135 ]
  br i1 %139, label %140, label %245

140:                                              ; preds = %138
  store i32 0, ptr %14, align 4, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %141

141:                                              ; preds = %200, %140
  %142 = load i32, ptr %13, align 4, !tbaa !5
  %143 = load i32, ptr %7, align 4, !tbaa !5
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %145, label %203

145:                                              ; preds = %141
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load i32, ptr %13, align 4, !tbaa !5
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = fcmp ole double %149, %153
  br i1 %154, label %155, label %165

155:                                              ; preds = %145
  %156 = load i32, ptr %13, align 4, !tbaa !5
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !11
  %160 = call double @llvm.fabs.f64(double %159)
  %161 = fsub double 0.000000e+00, %160
  %162 = load i32, ptr %13, align 4, !tbaa !5
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %163
  store double %161, ptr %164, align 8, !tbaa !11
  br label %174

165:                                              ; preds = %145
  %166 = load i32, ptr %13, align 4, !tbaa !5
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %167
  %169 = load double, ptr %168, align 8, !tbaa !11
  %170 = call double @llvm.fabs.f64(double %169)
  %171 = load i32, ptr %13, align 4, !tbaa !5
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %172
  store double %170, ptr %173, align 8, !tbaa !11
  br label %174

174:                                              ; preds = %165, %155
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !11
  store double %178, ptr %24, align 8, !tbaa !11
  %179 = load i32, ptr %13, align 4, !tbaa !5
  %180 = zext i32 %179 to i64
  %181 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !11
  %183 = load i32, ptr %13, align 4, !tbaa !5
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %184
  store double %182, ptr %185, align 8, !tbaa !11
  %186 = load i32, ptr %13, align 4, !tbaa !5
  %187 = zext i32 %186 to i64
  %188 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = load i32, ptr %13, align 4, !tbaa !5
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !11
  %194 = fadd double %189, %193
  %195 = load double, ptr %24, align 8, !tbaa !11
  %196 = fsub double %194, %195
  %197 = load i32, ptr %13, align 4, !tbaa !5
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %198
  store double %196, ptr %199, align 8, !tbaa !11
  br label %200

200:                                              ; preds = %174
  %201 = load i32, ptr %13, align 4, !tbaa !5
  %202 = add i32 %201, 1
  store i32 %202, ptr %13, align 4, !tbaa !5
  br label %141, !llvm.loop !17

203:                                              ; preds = %141
  %204 = load double, ptr %23, align 8, !tbaa !11
  store double %204, ptr %22, align 8, !tbaa !11
  %205 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 0
  %206 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 0
  %207 = load double, ptr %22, align 8, !tbaa !11
  %208 = load i32, ptr %7, align 4, !tbaa !5
  %209 = load ptr, ptr %25, align 8, !tbaa !9
  %210 = call double @best_nearby(ptr noundef %205, ptr noundef %206, double noundef %207, i32 noundef %208, ptr noundef %209)
  store double %210, ptr %23, align 8, !tbaa !11
  %211 = load double, ptr %23, align 8, !tbaa !11
  %212 = load double, ptr %22, align 8, !tbaa !11
  %213 = fcmp oge double %211, %212
  br i1 %213, label %214, label %215

214:                                              ; preds = %203
  br label %245

215:                                              ; preds = %203
  store i32 0, ptr %17, align 4, !tbaa !5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %241, %215
  %217 = load i32, ptr %13, align 4, !tbaa !5
  %218 = load i32, ptr %7, align 4, !tbaa !5
  %219 = icmp ult i32 %217, %218
  br i1 %219, label %220, label %244

220:                                              ; preds = %216
  store i32 1, ptr %17, align 4, !tbaa !5
  %221 = load i32, ptr %13, align 4, !tbaa !5
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds [250 x double], ptr %18, i64 0, i64 %222
  %224 = load double, ptr %223, align 8, !tbaa !11
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !11
  %229 = fsub double %224, %228
  %230 = call double @llvm.fabs.f64(double %229)
  %231 = load i32, ptr %13, align 4, !tbaa !5
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = call double @llvm.fabs.f64(double %234)
  %236 = fmul double 5.000000e-01, %235
  %237 = fcmp ogt double %230, %236
  br i1 %237, label %238, label %239

238:                                              ; preds = %220
  br label %244

239:                                              ; preds = %220
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %13, align 4, !tbaa !5
  %243 = add i32 %242, 1
  store i32 %243, ptr %13, align 4, !tbaa !5
  br label %216, !llvm.loop !18

244:                                              ; preds = %238, %216
  br label %131, !llvm.loop !19

245:                                              ; preds = %214, %138
  %246 = load double, ptr %21, align 8, !tbaa !11
  %247 = load double, ptr %11, align 8, !tbaa !11
  %248 = fcmp oge double %246, %247
  br i1 %248, label %249, label %272

249:                                              ; preds = %245
  %250 = load double, ptr %23, align 8, !tbaa !11
  %251 = load double, ptr %22, align 8, !tbaa !11
  %252 = fcmp oge double %250, %251
  br i1 %252, label %253, label %272

253:                                              ; preds = %249
  %254 = load double, ptr %21, align 8, !tbaa !11
  %255 = load double, ptr %10, align 8, !tbaa !11
  %256 = fmul double %254, %255
  store double %256, ptr %21, align 8, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %257

257:                                              ; preds = %268, %253
  %258 = load i32, ptr %13, align 4, !tbaa !5
  %259 = load i32, ptr %7, align 4, !tbaa !5
  %260 = icmp ult i32 %258, %259
  br i1 %260, label %261, label %271

261:                                              ; preds = %257
  %262 = load double, ptr %10, align 8, !tbaa !11
  %263 = load i32, ptr %13, align 4, !tbaa !5
  %264 = zext i32 %263 to i64
  %265 = getelementptr inbounds [250 x double], ptr %20, i64 0, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !11
  %267 = fmul double %266, %262
  store double %267, ptr %265, align 8, !tbaa !11
  br label %268

268:                                              ; preds = %261
  %269 = load i32, ptr %13, align 4, !tbaa !5
  %270 = add i32 %269, 1
  store i32 %270, ptr %13, align 4, !tbaa !5
  br label %257, !llvm.loop !20

271:                                              ; preds = %257
  br label %272

272:                                              ; preds = %271, %249, %245
  br label %75, !llvm.loop !21

273:                                              ; preds = %83
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %287, %273
  %275 = load i32, ptr %13, align 4, !tbaa !5
  %276 = load i32, ptr %7, align 4, !tbaa !5
  %277 = icmp ult i32 %275, %276
  br i1 %277, label %278, label %290

278:                                              ; preds = %274
  %279 = load i32, ptr %13, align 4, !tbaa !5
  %280 = zext i32 %279 to i64
  %281 = getelementptr inbounds [250 x double], ptr %19, i64 0, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !11
  %283 = load ptr, ptr %9, align 8, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !5
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  store double %282, ptr %286, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %278
  %288 = load i32, ptr %13, align 4, !tbaa !5
  %289 = add i32 %288, 1
  store i32 %289, ptr %13, align 4, !tbaa !5
  br label %274, !llvm.loop !22

290:                                              ; preds = %274
  %291 = load ptr, ptr %25, align 8, !tbaa !9
  call void @free(ptr noundef %291) #6
  %292 = load i32, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 2000, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 2000, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 2000, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret i32 %292
}

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

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

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

declare i32 @get_funevals(ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #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 = !{!"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}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !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 [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local double @best_nearby(ptr noundef, ptr noundef, double noundef, i32 noundef, ptr 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

declare double @f(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; 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
define dso_local i32 @hooke(i32 noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, double noundef %3, double noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = alloca [250 x double], align 16
  %8 = alloca [250 x double], align 16
  %9 = alloca [250 x double], align 16
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 2000, ptr nonnull %9) #9
  %.not = icmp eq i32 %0, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6
  %10 = zext i32 %0 to i64
  %11 = shl nuw nsw i64 %10, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %8, ptr align 8 %1, i64 %11, i1 false), !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr align 8 %1, i64 %11, i1 false), !tbaa !5
  %min.iters.check = icmp ult i32 %0, 4
  br i1 %min.iters.check, label %.lr.ph.preheader235, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %10, 4294967292
  %broadcast.splatinsert = insertelement <2 x double> poison, double %3, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %12 = getelementptr inbounds double, ptr %1, i64 %index
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %wide.load = load <2 x double>, ptr %12, align 8, !tbaa !5
  %wide.load198 = load <2 x double>, ptr %13, align 8, !tbaa !5
  %14 = fmul <2 x double> %wide.load, %broadcast.splat
  %15 = fmul <2 x double> %wide.load198, %broadcast.splat
  %16 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %14)
  %17 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %15)
  %18 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %index
  %19 = fcmp oeq <2 x double> %14, zeroinitializer
  %20 = fcmp oeq <2 x double> %15, zeroinitializer
  %21 = select <2 x i1> %19, <2 x double> %broadcast.splat, <2 x double> %16
  %22 = select <2 x i1> %20, <2 x double> %broadcast.splat, <2 x double> %17
  %23 = getelementptr inbounds i8, ptr %18, i64 16
  store <2 x double> %21, ptr %18, align 16, !tbaa !5
  store <2 x double> %22, ptr %23, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %24 = icmp eq i64 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %10
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader235

.lr.ph.preheader235:                              ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader235, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader235 ]
  %25 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = fmul double %26, %3
  %28 = tail call double @llvm.fabs.f64(double %27)
  %29 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv
  %30 = fcmp oeq double %27, 0.000000e+00
  %storemerge = select i1 %30, double %3, double %28
  store double %storemerge, ptr %29, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %10
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %6
  %31 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #10
  %32 = call double @f(ptr noundef nonnull %7, i32 noundef %0, ptr noundef %31) #9
  %33 = icmp ne i32 %5, 0
  %34 = fcmp ogt double %3, %4
  %35 = and i1 %33, %34
  br i1 %35, label %.lr.ph141, label %.preheader

.lr.ph141:                                        ; preds = %._crit_edge
  %36 = zext i32 %0 to i64
  %37 = shl nuw nsw i64 %36, 3
  %min.iters.check216 = icmp eq i32 %0, 1
  %n.vec219 = and i64 %36, 4294967294
  %cmp.n227 = icmp eq i64 %n.vec219, %36
  %min.iters.check201 = icmp ult i32 %0, 4
  %n.vec204 = and i64 %36, 4294967292
  %broadcast.splatinsert210 = insertelement <2 x double> poison, double %3, i64 0
  %broadcast.splat211 = shufflevector <2 x double> %broadcast.splatinsert210, <2 x double> poison, <2 x i32> zeroinitializer
  %cmp.n213 = icmp eq i64 %n.vec204, %36
  br label %40

.preheader:                                       ; preds = %.loopexit, %._crit_edge
  %.0102.lcssa = phi i32 [ 0, %._crit_edge ], [ %41, %.loopexit ]
  br i1 %.not, label %._crit_edge145, label %.lr.ph144.preheader

.lr.ph144.preheader:                              ; preds = %.preheader
  %38 = zext i32 %0 to i64
  %39 = shl nuw nsw i64 %38, 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr nonnull align 16 %8, i64 %39, i1 false), !tbaa !5
  br label %._crit_edge145

40:                                               ; preds = %.lr.ph141, %.loopexit
  %.093138 = phi double [ %32, %.lr.ph141 ], [ %.295185, %.loopexit ]
  %.096137 = phi double [ %3, %.lr.ph141 ], [ %.197, %.loopexit ]
  %.0102136 = phi i32 [ 0, %.lr.ph141 ], [ %41, %.loopexit ]
  %41 = add nuw i32 %.0102136, 1
  %42 = call i32 @get_funevals(ptr noundef %31) #9
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %42, double noundef %.093138)
  br i1 %.not, label %._crit_edge116, label %.lr.ph113

.preheader109:                                    ; preds = %.lr.ph113
  br i1 %.not, label %._crit_edge116, label %.lr.ph115.preheader

.lr.ph115.preheader:                              ; preds = %.preheader109
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr nonnull align 16 %8, i64 %37, i1 false), !tbaa !5
  br label %._crit_edge116

.lr.ph113:                                        ; preds = %40, %.lr.ph113
  %indvars.iv154 = phi i64 [ %indvars.iv.next155, %.lr.ph113 ], [ 0, %40 ]
  %44 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %indvars.iv154
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = trunc nuw i64 %indvars.iv154 to i32
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %46, double noundef %45)
  %indvars.iv.next155 = add nuw nsw i64 %indvars.iv154, 1
  %exitcond158.not = icmp eq i64 %indvars.iv.next155, %36
  br i1 %exitcond158.not, label %.preheader109, label %.lr.ph113, !llvm.loop !14

._crit_edge116:                                   ; preds = %40, %.lr.ph115.preheader, %.preheader109
  %48 = call double @best_nearby(ptr noundef nonnull %9, ptr noundef nonnull %7, double noundef %.093138, i32 noundef %0, ptr noundef %31)
  %49 = fcmp olt double %48, %.093138
  br i1 %49, label %.preheader108, label %._crit_edge126

.preheader108:                                    ; preds = %._crit_edge116, %._crit_edge122
  %.091125 = phi double [ %71, %._crit_edge122 ], [ %48, %._crit_edge116 ]
  br i1 %.not, label %._crit_edge119.thread, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %.preheader108
  br i1 %min.iters.check216, label %.lr.ph118.preheader228, label %vector.body221

vector.body221:                                   ; preds = %.lr.ph118.preheader, %vector.body221
  %index222 = phi i64 [ %index.next226, %vector.body221 ], [ 0, %.lr.ph118.preheader ]
  %50 = getelementptr inbounds [250 x double], ptr %7, i64 0, i64 %index222
  %wide.load223 = load <2 x double>, ptr %50, align 16, !tbaa !5
  %51 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %index222
  %wide.load224 = load <2 x double>, ptr %51, align 16, !tbaa !5
  %52 = fcmp ugt <2 x double> %wide.load223, %wide.load224
  %53 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %index222
  %wide.load225 = load <2 x double>, ptr %53, align 16, !tbaa !5
  %54 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %wide.load225)
  %55 = fsub <2 x double> zeroinitializer, %54
  %56 = select <2 x i1> %52, <2 x double> %54, <2 x double> %55
  store <2 x double> %56, ptr %53, align 16, !tbaa !5
  store <2 x double> %wide.load223, ptr %51, align 16, !tbaa !5
  %57 = fadd <2 x double> %wide.load223, %wide.load223
  %58 = fsub <2 x double> %57, %wide.load224
  store <2 x double> %58, ptr %50, align 16, !tbaa !5
  %index.next226 = add nuw i64 %index222, 2
  %59 = icmp eq i64 %index.next226, %n.vec219
  br i1 %59, label %middle.block214, label %vector.body221, !llvm.loop !15

middle.block214:                                  ; preds = %vector.body221
  br i1 %cmp.n227, label %._crit_edge119, label %.lr.ph118.preheader228

.lr.ph118.preheader228:                           ; preds = %middle.block214, %.lr.ph118.preheader
  %indvars.iv162.ph = phi i64 [ 0, %.lr.ph118.preheader ], [ %n.vec219, %middle.block214 ]
  br label %.lr.ph118

.lr.ph118:                                        ; preds = %.lr.ph118.preheader228, %.lr.ph118
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %.lr.ph118 ], [ %indvars.iv162.ph, %.lr.ph118.preheader228 ]
  %60 = getelementptr inbounds [250 x double], ptr %7, i64 0, i64 %indvars.iv162
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %indvars.iv162
  %63 = load double, ptr %62, align 8, !tbaa !5
  %64 = fcmp ugt double %61, %63
  %65 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv162
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = call double @llvm.fabs.f64(double %66)
  %68 = fsub double 0.000000e+00, %67
  %.sink = select i1 %64, double %67, double %68
  store double %.sink, ptr %65, align 8, !tbaa !5
  store double %61, ptr %62, align 8, !tbaa !5
  %69 = fadd double %61, %61
  %70 = fsub double %69, %63
  store double %70, ptr %60, align 8, !tbaa !5
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next163, %36
  br i1 %exitcond166.not, label %._crit_edge119, label %.lr.ph118, !llvm.loop !16

._crit_edge119:                                   ; preds = %.lr.ph118, %middle.block214
  %71 = call double @best_nearby(ptr noundef nonnull %9, ptr noundef nonnull %7, double noundef %.091125, i32 noundef %0, ptr noundef %31)
  %72 = fcmp oge double %71, %.091125
  %brmerge = or i1 %72, %.not
  br i1 %brmerge, label %._crit_edge126, label %.lr.ph121

._crit_edge119.thread:                            ; preds = %.preheader108
  %73 = call double @best_nearby(ptr noundef nonnull %9, ptr noundef nonnull %7, double noundef %.091125, i32 noundef %0, ptr noundef %31)
  %74 = fcmp ult double %73, %.091125
  br i1 %74, label %._crit_edge126, label %._crit_edge126.thread

75:                                               ; preds = %.lr.ph121
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %36
  br i1 %exitcond171.not, label %._crit_edge126, label %.lr.ph121, !llvm.loop !17

.lr.ph121:                                        ; preds = %._crit_edge119, %75
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %75 ], [ 0, %._crit_edge119 ]
  %76 = getelementptr inbounds [250 x double], ptr %7, i64 0, i64 %indvars.iv167
  %77 = load double, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds [250 x double], ptr %8, i64 0, i64 %indvars.iv167
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = fsub double %77, %79
  %81 = call double @llvm.fabs.f64(double %80)
  %82 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv167
  %83 = load double, ptr %82, align 8, !tbaa !5
  %84 = call double @llvm.fabs.f64(double %83)
  %85 = fmul double %84, 5.000000e-01
  %86 = fcmp ogt double %81, %85
  br i1 %86, label %._crit_edge122, label %75

._crit_edge122:                                   ; preds = %.lr.ph121
  %87 = fcmp olt double %71, %.091125
  br i1 %87, label %.preheader108, label %._crit_edge126, !llvm.loop !18

._crit_edge126:                                   ; preds = %._crit_edge122, %._crit_edge119, %75, %._crit_edge119.thread, %._crit_edge116
  %.295 = phi double [ %.093138, %._crit_edge116 ], [ %.091125, %._crit_edge119.thread ], [ %.091125, %75 ], [ %.091125, %._crit_edge119 ], [ %.091125, %._crit_edge122 ]
  %.192 = phi double [ %48, %._crit_edge116 ], [ %73, %._crit_edge119.thread ], [ %71, %75 ], [ %71, %._crit_edge119 ], [ %71, %._crit_edge122 ]
  %88 = fcmp ult double %.096137, %4
  %89 = fcmp ult double %.192, %.295
  %or.cond = or i1 %88, %89
  br i1 %or.cond, label %.loopexit, label %93

._crit_edge126.thread:                            ; preds = %._crit_edge119.thread
  %90 = fcmp ult double %.096137, %4
  %91 = fcmp ult double %73, %.091125
  %or.cond183 = or i1 %90, %91
  br i1 %or.cond183, label %.loopexit, label %.thread

.thread:                                          ; preds = %._crit_edge126.thread
  %92 = fmul double %.096137, %3
  br label %.loopexit

93:                                               ; preds = %._crit_edge126
  %94 = fmul double %.096137, %3
  br i1 %.not, label %.loopexit, label %.lr.ph135.preheader

.lr.ph135.preheader:                              ; preds = %93
  br i1 %min.iters.check201, label %.lr.ph135.preheader229, label %vector.body206

vector.body206:                                   ; preds = %.lr.ph135.preheader, %vector.body206
  %index207 = phi i64 [ %index.next212, %vector.body206 ], [ 0, %.lr.ph135.preheader ]
  %95 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %index207
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %wide.load208 = load <2 x double>, ptr %95, align 16, !tbaa !5
  %wide.load209 = load <2 x double>, ptr %96, align 16, !tbaa !5
  %97 = fmul <2 x double> %wide.load208, %broadcast.splat211
  %98 = fmul <2 x double> %wide.load209, %broadcast.splat211
  store <2 x double> %97, ptr %95, align 16, !tbaa !5
  store <2 x double> %98, ptr %96, align 16, !tbaa !5
  %index.next212 = add nuw i64 %index207, 4
  %99 = icmp eq i64 %index.next212, %n.vec204
  br i1 %99, label %middle.block199, label %vector.body206, !llvm.loop !19

middle.block199:                                  ; preds = %vector.body206
  br i1 %cmp.n213, label %.loopexit, label %.lr.ph135.preheader229

.lr.ph135.preheader229:                           ; preds = %middle.block199, %.lr.ph135.preheader
  %indvars.iv172.ph = phi i64 [ 0, %.lr.ph135.preheader ], [ %n.vec204, %middle.block199 ]
  br label %.lr.ph135

.lr.ph135:                                        ; preds = %.lr.ph135.preheader229, %.lr.ph135
  %indvars.iv172 = phi i64 [ %indvars.iv.next173, %.lr.ph135 ], [ %indvars.iv172.ph, %.lr.ph135.preheader229 ]
  %100 = getelementptr inbounds [250 x double], ptr %9, i64 0, i64 %indvars.iv172
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = fmul double %101, %3
  store double %102, ptr %100, align 8, !tbaa !5
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %exitcond176.not = icmp eq i64 %indvars.iv.next173, %36
  br i1 %exitcond176.not, label %.loopexit, label %.lr.ph135, !llvm.loop !20

.loopexit:                                        ; preds = %.lr.ph135, %middle.block199, %.thread, %._crit_edge126.thread, %93, %._crit_edge126
  %.295185 = phi double [ %.295, %._crit_edge126 ], [ %.295, %93 ], [ %.091125, %._crit_edge126.thread ], [ %.091125, %.thread ], [ %.295, %middle.block199 ], [ %.295, %.lr.ph135 ]
  %.197 = phi double [ %.096137, %._crit_edge126 ], [ %94, %93 ], [ %.096137, %._crit_edge126.thread ], [ %92, %.thread ], [ %94, %middle.block199 ], [ %94, %.lr.ph135 ]
  %103 = icmp ult i32 %41, %5
  %104 = fcmp ogt double %.197, %4
  %105 = select i1 %103, i1 %104, i1 false
  br i1 %105, label %40, label %.preheader, !llvm.loop !21

._crit_edge145:                                   ; preds = %.lr.ph144.preheader, %.preheader
  call void @free(ptr noundef %31) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 2000, ptr nonnull %7) #9
  ret i32 %.0102.lcssa
}

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

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

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

declare i32 @get_funevals(ptr noundef) local_unnamed_addr #2

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

; 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) #7

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

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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !11, !12}
!16 = distinct !{!16, !10, !12, !11}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !12, !11}
!21 = distinct !{!21, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass