; LLVM IR from chrr/libECP :: src (bessel)

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

%struct.BesselFunctionTable = type { i32, i32, i32, i32, i32, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @tabBesselFunction(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %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 double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  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 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = add nsw i32 %26, 1
  %28 = zext i32 %27 to i64
  %29 = call ptr @llvm.stacksave.p0()
  store ptr %29, ptr %19, align 8
  %30 = alloca double, i64 %28, align 16
  store i64 %28, ptr %20, align 8
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = add nsw i32 %31, %32
  %34 = add nsw i32 %33, 2
  %35 = zext i32 %34 to i64
  %36 = alloca double, i64 %35, align 16
  store i64 %35, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %37 = load i32, ptr %9, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  %41 = load i32, ptr %22, align 4, !tbaa !9
  %42 = mul nsw i32 %40, %41
  %43 = sext i32 %42 to i64
  %44 = call noalias ptr @calloc(i64 noundef %43, i64 noundef 8) #7
  store ptr %44, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = add nsw i32 %45, 1
  %47 = sext i32 %46 to i64
  %48 = call noalias ptr @calloc(i64 noundef %47, i64 noundef 8) #7
  store ptr %48, ptr %24, align 8, !tbaa !5
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.BesselFunctionTable, ptr %50, i32 0, i32 0
  store i32 %49, ptr %51, align 8, !tbaa !13
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.BesselFunctionTable, ptr %53, i32 0, i32 1
  store i32 %52, ptr %54, align 4, !tbaa !15
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.BesselFunctionTable, ptr %56, i32 0, i32 2
  store i32 %55, ptr %57, align 8, !tbaa !16
  %58 = load ptr, ptr %23, align 8, !tbaa !5
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.BesselFunctionTable, ptr %59, i32 0, i32 5
  store ptr %58, ptr %60, align 8, !tbaa !17
  %61 = load ptr, ptr %24, align 8, !tbaa !5
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.BesselFunctionTable, ptr %62, i32 0, i32 6
  store ptr %61, ptr %63, align 8, !tbaa !18
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.BesselFunctionTable, ptr %65, i32 0, i32 4
  store i32 %64, ptr %66, align 8, !tbaa !19
  %67 = load ptr, ptr %23, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %67, i64 0
  store double 1.000000e+00, ptr %68, align 8, !tbaa !11
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %242, %5
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = icmp sle i32 %70, %71
  br i1 %72, label %73, label %245

73:                                               ; preds = %69
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = sitofp i32 %74 to double
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sitofp i32 %76 to double
  %78 = fdiv double %77, 1.600000e+01
  %79 = fdiv double %75, %78
  store double %79, ptr %16, align 8, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !9
  %80 = load double, ptr %16, align 8, !tbaa !11
  %81 = load double, ptr %16, align 8, !tbaa !11
  %82 = fmul double %80, %81
  %83 = fdiv double %82, 2.000000e+00
  store double %83, ptr %17, align 8, !tbaa !11
  %84 = load double, ptr %16, align 8, !tbaa !11
  %85 = fneg double %84
  %86 = call double @exp(double noundef %85) #6
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %30, i64 %88
  store double %86, ptr %89, align 8, !tbaa !11
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %36, i64 %91
  store double 1.000000e+00, ptr %92, align 8, !tbaa !11
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %30, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %36, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fdiv double %96, %100
  store double %101, ptr %18, align 8, !tbaa !11
  %102 = load double, ptr %17, align 8, !tbaa !11
  %103 = call double @llvm.fmuladd.f64(double 1.600000e+01, double %102, double 1.000000e+00)
  %104 = call double @sqrt(double noundef %103) #6
  %105 = fmul double 2.500000e-01, %104
  %106 = fptosi double %105 to i32
  store i32 %106, ptr %14, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %131, %73
  %108 = load double, ptr %18, align 8, !tbaa !11
  %109 = load double, ptr %11, align 8, !tbaa !11
  %110 = fcmp ogt double %108, %109
  br i1 %110, label %115, label %111

111:                                              ; preds = %107
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = icmp sle i32 %112, %113
  br label %115

115:                                              ; preds = %111, %107
  %116 = phi i1 [ true, %107 ], [ %114, %111 ]
  br i1 %116, label %117, label %166

117:                                              ; preds = %115
  %118 = load double, ptr %18, align 8, !tbaa !11
  %119 = load ptr, ptr %23, align 8, !tbaa !5
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds double, ptr %119, i64 %121
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = fadd double %123, %118
  store double %124, ptr %122, align 8, !tbaa !11
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  %129 = icmp sgt i32 %127, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %117
  store i32 1, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %265

131:                                              ; preds = %117
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %30, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !11
  %137 = load double, ptr %17, align 8, !tbaa !11
  %138 = fmul double %136, %137
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = sitofp i32 %139 to double
  %141 = fdiv double %138, %140
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %30, i64 %143
  store double %141, ptr %144, align 8, !tbaa !11
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %36, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !11
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = sitofp i32 %150 to double
  %152 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %151, double 1.000000e+00)
  %153 = fmul double %149, %152
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %36, i64 %155
  store double %153, ptr %156, align 8, !tbaa !11
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %30, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds double, ptr %36, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = fdiv double %160, %164
  store double %165, ptr %18, align 8, !tbaa !11
  br label %107, !llvm.loop !20

166:                                              ; preds = %115
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %192, %166
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = icmp sle i32 %168, %169
  br i1 %170, label %171, label %195

171:                                              ; preds = %167
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = add nsw i32 %172, %173
  %175 = sub nsw i32 %174, 1
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %36, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !11
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = mul nsw i32 2, %179
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = mul nsw i32 2, %181
  %183 = add nsw i32 %180, %182
  %184 = add nsw i32 %183, 1
  %185 = sitofp i32 %184 to double
  %186 = fmul double %178, %185
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = add nsw i32 %187, %188
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds double, ptr %36, i64 %190
  store double %186, ptr %191, align 8, !tbaa !11
  br label %192

192:                                              ; preds = %171
  %193 = load i32, ptr %14, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %14, align 4, !tbaa !9
  br label %167, !llvm.loop !22

195:                                              ; preds = %167
  %196 = load double, ptr %16, align 8, !tbaa !11
  store double %196, ptr %17, align 8, !tbaa !11
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %238, %195
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %8, align 4, !tbaa !9
  %200 = icmp sle i32 %198, %199
  br i1 %200, label %201, label %241

201:                                              ; preds = %197
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %220, %201
  %203 = load i32, ptr %15, align 4, !tbaa !9
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %206, label %223

206:                                              ; preds = %202
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %30, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = add nsw i32 %211, %212
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %36, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !11
  %217 = fdiv double %210, %216
  %218 = load double, ptr %18, align 8, !tbaa !11
  %219 = fadd double %218, %217
  store double %219, ptr %18, align 8, !tbaa !11
  br label %220

220:                                              ; preds = %206
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %15, align 4, !tbaa !9
  br label %202, !llvm.loop !23

223:                                              ; preds = %202
  %224 = load double, ptr %17, align 8, !tbaa !11
  %225 = load double, ptr %18, align 8, !tbaa !11
  %226 = fmul double %224, %225
  %227 = load ptr, ptr %23, align 8, !tbaa !5
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %22, align 4, !tbaa !9
  %230 = mul nsw i32 %228, %229
  %231 = load i32, ptr %12, align 4, !tbaa !9
  %232 = add nsw i32 %230, %231
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %227, i64 %233
  store double %226, ptr %234, align 8, !tbaa !11
  %235 = load double, ptr %16, align 8, !tbaa !11
  %236 = load double, ptr %17, align 8, !tbaa !11
  %237 = fmul double %236, %235
  store double %237, ptr %17, align 8, !tbaa !11
  br label %238

238:                                              ; preds = %223
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %14, align 4, !tbaa !9
  br label %197, !llvm.loop !24

241:                                              ; preds = %197
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %12, align 4, !tbaa !9
  br label %69, !llvm.loop !25

245:                                              ; preds = %69
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %261, %245
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %8, align 4, !tbaa !9
  %249 = icmp sle i32 %247, %248
  br i1 %249, label %250, label %264

250:                                              ; preds = %246
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = sitofp i32 %251 to double
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = sitofp i32 %253 to double
  %255 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %254, double 1.000000e+00)
  %256 = fdiv double %252, %255
  %257 = load ptr, ptr %24, align 8, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  store double %256, ptr %260, align 8, !tbaa !11
  br label %261

261:                                              ; preds = %250
  %262 = load i32, ptr %12, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %12, align 4, !tbaa !9
  br label %246, !llvm.loop !26

264:                                              ; preds = %246
  store i32 0, ptr %6, align 4
  store i32 1, ptr %25, align 4
  br label %265

265:                                              ; preds = %264, %130
  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 4, ptr %22) #6
  %266 = load ptr, ptr %19, align 8
  call void @llvm.stackrestore.p0(ptr %266)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %267 = load i32, ptr %6, align 4
  ret i32 %267
}

; 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
declare ptr @llvm.stacksave.p0() #2

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

; Function Attrs: nounwind
declare double @exp(double noundef) #4

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #2

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 nosync nounwind willreturn }
attributes #3 = { nounwind allocsize(0,1) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }

!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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!14, !6, i64 24}
!18 = !{!14, !6, i64 32}
!19 = !{!14, !10, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}


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

; Function Attrs: nofree nounwind memory(readwrite, argmem: write) uwtable
define dso_local range(i32 0, 2) i32 @tabBesselFunction(ptr nocapture noundef writeonly %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, double noundef %4) local_unnamed_addr #0 {
  %6 = add nsw i32 %3, 1
  %7 = zext i32 %6 to i64
  %8 = alloca double, i64 %7, align 16
  %9 = add i32 %1, 2
  %10 = add i32 %9, %3
  %11 = zext i32 %10 to i64
  %12 = alloca double, i64 %11, align 16
  %13 = add nsw i32 %2, 1
  %14 = add i32 %1, 1
  %15 = mul nsw i32 %13, %14
  %16 = sext i32 %15 to i64
  %17 = tail call noalias ptr @calloc(i64 noundef %16, i64 noundef 8) #5
  %18 = sext i32 %14 to i64
  %19 = tail call noalias ptr @calloc(i64 noundef %18, i64 noundef 8) #5
  store i32 %1, ptr %0, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %2, ptr %20, align 4, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %3, ptr %21, align 8, !tbaa !12
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %17, ptr %22, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %19, ptr %23, align 8, !tbaa !14
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %13, ptr %24, align 8, !tbaa !15
  store double 1.000000e+00, ptr %17, align 8, !tbaa !16
  %.not123 = icmp slt i32 %2, 1
  br i1 %.not123, label %.preheader, label %.lr.ph126

.lr.ph126:                                        ; preds = %5
  %25 = uitofp nneg i32 %2 to double
  %26 = fmul double %25, 6.250000e-02
  %.not100112 = icmp slt i32 %1, 1
  %smax = tail call i32 @llvm.smax.i32(i32 %3, i32 0)
  %27 = zext nneg i32 %13 to i64
  %wide.trip.count160 = zext nneg i32 %13 to i64
  %wide.trip.count = zext nneg i32 %smax to i64
  %wide.trip.count140 = zext i32 %14 to i64
  %wide.trip.count150 = zext i32 %14 to i64
  %28 = add nsw i64 %wide.trip.count140, -1
  %29 = add nsw i64 %wide.trip.count140, -2
  %xtraiter = and i64 %28, 1
  %30 = icmp eq i64 %29, 0
  %unroll_iter = and i64 %28, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter192 = and i64 %28, 3
  %31 = icmp ult i64 %29, 3
  %unroll_iter195 = and i64 %28, -4
  %lcmp.mod194.not = icmp eq i64 %xtraiter192, 0
  br label %38

.preheader:                                       ; preds = %._crit_edge122, %5
  %.not99127 = icmp slt i32 %1, 1
  br i1 %.not99127, label %.loopexit, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %.preheader
  %wide.trip.count165 = zext i32 %14 to i64
  %32 = add nsw i64 %wide.trip.count165, -1
  %min.iters.check = icmp ult i32 %14, 3
  br i1 %min.iters.check, label %.lr.ph129.preheader181, label %vector.ph

.lr.ph129.preheader181:                           ; preds = %middle.block, %.lr.ph129.preheader
  %indvars.iv162.ph = phi i64 [ 1, %.lr.ph129.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph129

vector.ph:                                        ; preds = %.lr.ph129.preheader
  %n.vec = and i64 %32, -2
  %ind.end = or i64 %32, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 1, i32 2>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %33 = uitofp <2 x i32> %vec.ind to <2 x double>
  %34 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %33, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> <double 1.000000e+00, double 1.000000e+00>)
  %35 = fdiv <2 x double> %33, %34
  %36 = getelementptr inbounds double, ptr %19, i64 %offset.idx
  store <2 x double> %35, ptr %36, align 8, !tbaa !16
  %index.next = add nuw i64 %index, 2
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %37 = icmp eq i64 %index.next, %n.vec
  br i1 %37, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %32, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph129.preheader181

38:                                               ; preds = %.lr.ph126, %._crit_edge122
  %indvars.iv157 = phi i64 [ 1, %.lr.ph126 ], [ %indvars.iv.next158, %._crit_edge122 ]
  %39 = trunc nuw nsw i64 %indvars.iv157 to i32
  %40 = uitofp nneg i32 %39 to double
  %41 = fdiv double %40, %26
  %42 = fmul double %41, %41
  %43 = fmul double %42, 5.000000e-01
  %44 = fneg double %41
  %45 = tail call double @exp(double noundef %44) #6
  store double %45, ptr %8, align 16, !tbaa !16
  store double 1.000000e+00, ptr %12, align 16, !tbaa !16
  %46 = tail call double @llvm.fmuladd.f64(double %43, double 1.600000e+01, double 1.000000e+00)
  %47 = tail call double @sqrt(double noundef %46) #6
  %48 = fmul double %47, 2.500000e-01
  %49 = fptosi double %48 to i32
  %50 = fcmp ogt double %45, %4
  %51 = icmp sgt i32 %49, -1
  %52 = select i1 %50, i1 true, i1 %51
  br i1 %52, label %.lr.ph, label %.preheader105

.lr.ph:                                           ; preds = %38
  %53 = getelementptr inbounds double, ptr %17, i64 %indvars.iv157
  %.promoted = load double, ptr %53, align 8, !tbaa !16
  %54 = sext i32 %49 to i64
  br label %57

..preheader105_crit_edge:                         ; preds = %62
  store double %61, ptr %53, align 8, !tbaa !16
  br label %.preheader105

.preheader105:                                    ; preds = %..preheader105_crit_edge, %38
  %.089.lcssa = phi i32 [ %64, %..preheader105_crit_edge ], [ 0, %38 ]
  br i1 %.not100112, label %._crit_edge122, label %.lr.ph114.preheader

.lr.ph114.preheader:                              ; preds = %.preheader105
  %55 = zext i32 %.089.lcssa to i64
  %56 = shl nuw nsw i64 %55, 3
  %scevgep = getelementptr i8, ptr %12, i64 %56
  %load_initial = load double, ptr %scevgep, align 8
  br i1 %30, label %.preheader104.unr-lcssa, label %.lr.ph114

57:                                               ; preds = %.lr.ph, %62
  %58 = phi double [ 1.000000e+00, %.lr.ph ], [ %69, %62 ]
  %59 = phi double [ %45, %.lr.ph ], [ %66, %62 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %62 ]
  %60 = phi double [ %.promoted, %.lr.ph ], [ %61, %62 ]
  %.094108 = phi double [ %45, %.lr.ph ], [ %71, %62 ]
  %61 = fadd double %.094108, %60
  %exitcond.not = icmp eq i64 %indvars.iv, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit106, label %62

62:                                               ; preds = %57
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = fmul double %43, %59
  %64 = trunc nuw i64 %indvars.iv.next to i32
  %65 = uitofp nneg i32 %64 to double
  %66 = fdiv double %63, %65
  %67 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next
  store double %66, ptr %67, align 8, !tbaa !16
  %68 = tail call double @llvm.fmuladd.f64(double %65, double 2.000000e+00, double 1.000000e+00)
  %69 = fmul double %68, %58
  %70 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next
  store double %69, ptr %70, align 8, !tbaa !16
  %71 = fdiv double %66, %69
  %72 = fcmp ogt double %71, %4
  %73 = icmp slt i64 %indvars.iv, %54
  %74 = select i1 %72, i1 true, i1 %73
  br i1 %74, label %57, label %..preheader105_crit_edge, !llvm.loop !22

.preheader104.unr-lcssa:                          ; preds = %.lr.ph114, %.lr.ph114.preheader
  %store_forwarded.unr = phi double [ %load_initial, %.lr.ph114.preheader ], [ %121, %.lr.ph114 ]
  %indvars.iv137.unr = phi i64 [ 1, %.lr.ph114.preheader ], [ %indvars.iv.next138.1, %.lr.ph114 ]
  br i1 %lcmp.mod.not, label %.preheader104, label %.lr.ph114.epil

.lr.ph114.epil:                                   ; preds = %.preheader104.unr-lcssa
  %75 = add nuw nsw i64 %indvars.iv137.unr, %55
  %76 = getelementptr double, ptr %12, i64 %75
  %.tr.epil = trunc i64 %75 to i32
  %77 = shl i32 %.tr.epil, 1
  %78 = or disjoint i32 %77, 1
  %79 = sitofp i32 %78 to double
  %80 = fmul double %store_forwarded.unr, %79
  store double %80, ptr %76, align 8, !tbaa !16
  br label %.preheader104

.preheader104:                                    ; preds = %.preheader104.unr-lcssa, %.lr.ph114.epil
  br i1 %.not100112, label %._crit_edge122, label %.preheader103.lr.ph

.preheader103.lr.ph:                              ; preds = %.preheader104
  %.not130 = icmp eq i32 %.089.lcssa, 0
  br i1 %.not130, label %.preheader103.preheader, label %.preheader103.us.preheader

.preheader103.us.preheader:                       ; preds = %.preheader103.lr.ph
  %invariant.gep172 = getelementptr inbounds double, ptr %17, i64 %indvars.iv157
  %xtraiter187 = and i64 %55, 3
  %81 = icmp ult i32 %.089.lcssa, 4
  %unroll_iter190 = and i64 %55, 4294967292
  %lcmp.mod188.not = icmp eq i64 %xtraiter187, 0
  br label %.preheader103.us

.preheader103.preheader:                          ; preds = %.preheader103.lr.ph
  %invariant.gep174 = getelementptr inbounds double, ptr %17, i64 %indvars.iv157
  br i1 %31, label %._crit_edge122.loopexit.unr-lcssa, label %.preheader103

.preheader103.us:                                 ; preds = %.preheader103.us.preheader, %._crit_edge.us
  %indvars.iv147 = phi i64 [ 1, %.preheader103.us.preheader ], [ %indvars.iv.next148, %._crit_edge.us ]
  %.093120.us = phi double [ %41, %.preheader103.us.preheader ], [ %109, %._crit_edge.us ]
  %invariant.gep = getelementptr inbounds double, ptr %12, i64 %indvars.iv147
  br i1 %81, label %._crit_edge.us.unr-lcssa, label %.preheader103.us.new

.preheader103.us.new:                             ; preds = %.preheader103.us, %.preheader103.us.new
  %indvars.iv142 = phi i64 [ %indvars.iv.next143.3, %.preheader103.us.new ], [ 0, %.preheader103.us ]
  %.195115.us = phi double [ %101, %.preheader103.us.new ], [ 0.000000e+00, %.preheader103.us ]
  %niter191 = phi i64 [ %niter191.next.3, %.preheader103.us.new ], [ 0, %.preheader103.us ]
  %82 = getelementptr inbounds double, ptr %8, i64 %indvars.iv142
  %83 = load double, ptr %82, align 16, !tbaa !16
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv142
  %84 = load double, ptr %gep, align 8, !tbaa !16
  %85 = fdiv double %83, %84
  %86 = fadd double %.195115.us, %85
  %indvars.iv.next143 = or disjoint i64 %indvars.iv142, 1
  %87 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next143
  %88 = load double, ptr %87, align 8, !tbaa !16
  %gep.1 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next143
  %89 = load double, ptr %gep.1, align 8, !tbaa !16
  %90 = fdiv double %88, %89
  %91 = fadd double %86, %90
  %indvars.iv.next143.1 = or disjoint i64 %indvars.iv142, 2
  %92 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next143.1
  %93 = load double, ptr %92, align 16, !tbaa !16
  %gep.2 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next143.1
  %94 = load double, ptr %gep.2, align 8, !tbaa !16
  %95 = fdiv double %93, %94
  %96 = fadd double %91, %95
  %indvars.iv.next143.2 = or disjoint i64 %indvars.iv142, 3
  %97 = getelementptr inbounds double, ptr %8, i64 %indvars.iv.next143.2
  %98 = load double, ptr %97, align 8, !tbaa !16
  %gep.3 = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv.next143.2
  %99 = load double, ptr %gep.3, align 8, !tbaa !16
  %100 = fdiv double %98, %99
  %101 = fadd double %96, %100
  %indvars.iv.next143.3 = add nuw nsw i64 %indvars.iv142, 4
  %niter191.next.3 = add i64 %niter191, 4
  %niter191.ncmp.3 = icmp eq i64 %niter191.next.3, %unroll_iter190
  br i1 %niter191.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader103.us.new, !llvm.loop !23

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader103.us.new, %.preheader103.us
  %.lcssa185.ph = phi double [ poison, %.preheader103.us ], [ %101, %.preheader103.us.new ]
  %indvars.iv142.unr = phi i64 [ 0, %.preheader103.us ], [ %indvars.iv.next143.3, %.preheader103.us.new ]
  %.195115.us.unr = phi double [ 0.000000e+00, %.preheader103.us ], [ %101, %.preheader103.us.new ]
  br i1 %lcmp.mod188.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv142.epil = phi i64 [ %indvars.iv.next143.epil, %.epil.preheader ], [ %indvars.iv142.unr, %._crit_edge.us.unr-lcssa ]
  %.195115.us.epil = phi double [ %106, %.epil.preheader ], [ %.195115.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %102 = getelementptr inbounds double, ptr %8, i64 %indvars.iv142.epil
  %103 = load double, ptr %102, align 8, !tbaa !16
  %gep.epil = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv142.epil
  %104 = load double, ptr %gep.epil, align 8, !tbaa !16
  %105 = fdiv double %103, %104
  %106 = fadd double %.195115.us.epil, %105
  %indvars.iv.next143.epil = add nuw nsw i64 %indvars.iv142.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter187
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !24

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa185 = phi double [ %.lcssa185.ph, %._crit_edge.us.unr-lcssa ], [ %106, %.epil.preheader ]
  %107 = fmul double %.093120.us, %.lcssa185
  %108 = mul nuw nsw i64 %indvars.iv147, %27
  %gep173 = getelementptr inbounds double, ptr %invariant.gep172, i64 %108
  store double %107, ptr %gep173, align 8, !tbaa !16
  %109 = fmul double %41, %.093120.us
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count150
  br i1 %exitcond151.not, label %._crit_edge122, label %.preheader103.us, !llvm.loop !26

.lr.ph114:                                        ; preds = %.lr.ph114.preheader, %.lr.ph114
  %store_forwarded = phi double [ %121, %.lr.ph114 ], [ %load_initial, %.lr.ph114.preheader ]
  %indvars.iv137 = phi i64 [ %indvars.iv.next138.1, %.lr.ph114 ], [ 1, %.lr.ph114.preheader ]
  %niter = phi i64 [ %niter.next.1, %.lr.ph114 ], [ 0, %.lr.ph114.preheader ]
  %110 = add nuw nsw i64 %indvars.iv137, %55
  %111 = getelementptr double, ptr %12, i64 %110
  %.tr = trunc i64 %110 to i32
  %112 = shl i32 %.tr, 1
  %113 = or disjoint i32 %112, 1
  %114 = sitofp i32 %113 to double
  %115 = fmul double %store_forwarded, %114
  store double %115, ptr %111, align 8, !tbaa !16
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %116 = add nuw nsw i64 %indvars.iv.next138, %55
  %117 = getelementptr double, ptr %12, i64 %116
  %.tr.1 = trunc i64 %116 to i32
  %118 = shl i32 %.tr.1, 1
  %119 = or disjoint i32 %118, 1
  %120 = sitofp i32 %119 to double
  %121 = fmul double %115, %120
  store double %121, ptr %117, align 8, !tbaa !16
  %indvars.iv.next138.1 = add nuw nsw i64 %indvars.iv137, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader104.unr-lcssa, label %.lr.ph114, !llvm.loop !27

.preheader103:                                    ; preds = %.preheader103.preheader, %.preheader103
  %indvars.iv152 = phi i64 [ %indvars.iv.next153.3, %.preheader103 ], [ 1, %.preheader103.preheader ]
  %.093120 = phi double [ %133, %.preheader103 ], [ %41, %.preheader103.preheader ]
  %niter196 = phi i64 [ %niter196.next.3, %.preheader103 ], [ 0, %.preheader103.preheader ]
  %122 = fmul double %.093120, 0.000000e+00
  %123 = mul nuw nsw i64 %indvars.iv152, %27
  %gep175 = getelementptr inbounds double, ptr %invariant.gep174, i64 %123
  store double %122, ptr %gep175, align 8, !tbaa !16
  %124 = fmul double %41, %.093120
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %125 = fmul double %124, 0.000000e+00
  %126 = mul nuw nsw i64 %indvars.iv.next153, %27
  %gep175.1 = getelementptr inbounds double, ptr %invariant.gep174, i64 %126
  store double %125, ptr %gep175.1, align 8, !tbaa !16
  %127 = fmul double %41, %124
  %indvars.iv.next153.1 = add nuw nsw i64 %indvars.iv152, 2
  %128 = fmul double %127, 0.000000e+00
  %129 = mul nuw nsw i64 %indvars.iv.next153.1, %27
  %gep175.2 = getelementptr inbounds double, ptr %invariant.gep174, i64 %129
  store double %128, ptr %gep175.2, align 8, !tbaa !16
  %130 = fmul double %41, %127
  %indvars.iv.next153.2 = add nuw nsw i64 %indvars.iv152, 3
  %131 = fmul double %130, 0.000000e+00
  %132 = mul nuw nsw i64 %indvars.iv.next153.2, %27
  %gep175.3 = getelementptr inbounds double, ptr %invariant.gep174, i64 %132
  store double %131, ptr %gep175.3, align 8, !tbaa !16
  %133 = fmul double %41, %130
  %indvars.iv.next153.3 = add nuw nsw i64 %indvars.iv152, 4
  %niter196.next.3 = add i64 %niter196, 4
  %niter196.ncmp.3 = icmp eq i64 %niter196.next.3, %unroll_iter195
  br i1 %niter196.ncmp.3, label %._crit_edge122.loopexit.unr-lcssa, label %.preheader103, !llvm.loop !26

._crit_edge122.loopexit.unr-lcssa:                ; preds = %.preheader103, %.preheader103.preheader
  %indvars.iv152.unr = phi i64 [ 1, %.preheader103.preheader ], [ %indvars.iv.next153.3, %.preheader103 ]
  %.093120.unr = phi double [ %41, %.preheader103.preheader ], [ %133, %.preheader103 ]
  br i1 %lcmp.mod194.not, label %._crit_edge122, label %.preheader103.epil

.preheader103.epil:                               ; preds = %._crit_edge122.loopexit.unr-lcssa, %.preheader103.epil
  %indvars.iv152.epil = phi i64 [ %indvars.iv.next153.epil, %.preheader103.epil ], [ %indvars.iv152.unr, %._crit_edge122.loopexit.unr-lcssa ]
  %.093120.epil = phi double [ %136, %.preheader103.epil ], [ %.093120.unr, %._crit_edge122.loopexit.unr-lcssa ]
  %epil.iter193 = phi i64 [ %epil.iter193.next, %.preheader103.epil ], [ 0, %._crit_edge122.loopexit.unr-lcssa ]
  %134 = fmul double %.093120.epil, 0.000000e+00
  %135 = mul nuw nsw i64 %indvars.iv152.epil, %27
  %gep175.epil = getelementptr inbounds double, ptr %invariant.gep174, i64 %135
  store double %134, ptr %gep175.epil, align 8, !tbaa !16
  %136 = fmul double %41, %.093120.epil
  %indvars.iv.next153.epil = add nuw nsw i64 %indvars.iv152.epil, 1
  %epil.iter193.next = add i64 %epil.iter193, 1
  %epil.iter193.cmp.not = icmp eq i64 %epil.iter193.next, %xtraiter192
  br i1 %epil.iter193.cmp.not, label %._crit_edge122, label %.preheader103.epil, !llvm.loop !28

._crit_edge122:                                   ; preds = %._crit_edge.us, %._crit_edge122.loopexit.unr-lcssa, %.preheader103.epil, %.preheader105, %.preheader104
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %exitcond161.not = icmp eq i64 %indvars.iv.next158, %wide.trip.count160
  br i1 %exitcond161.not, label %.preheader, label %38, !llvm.loop !29

.lr.ph129:                                        ; preds = %.lr.ph129.preheader181, %.lr.ph129
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %.lr.ph129 ], [ %indvars.iv162.ph, %.lr.ph129.preheader181 ]
  %137 = trunc nuw nsw i64 %indvars.iv162 to i32
  %138 = uitofp nneg i32 %137 to double
  %139 = tail call double @llvm.fmuladd.f64(double %138, double 2.000000e+00, double 1.000000e+00)
  %140 = fdiv double %138, %139
  %141 = getelementptr inbounds double, ptr %19, i64 %indvars.iv162
  store double %140, ptr %141, align 8, !tbaa !16
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next163, %wide.trip.count165
  br i1 %exitcond166.not, label %.loopexit, label %.lr.ph129, !llvm.loop !30

.loopexit106:                                     ; preds = %57
  store double %61, ptr %53, align 8, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph129, %middle.block, %.preheader, %.loopexit106
  %.0 = phi i32 [ 1, %.loopexit106 ], [ 0, %.preheader ], [ 0, %middle.block ], [ 0, %.lr.ph129 ]
  ret i32 %.0
}

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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

attributes #0 = { nofree nounwind memory(readwrite, argmem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind allocsize(0,1) }
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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !7, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !8, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !25}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19, !21, !20}


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