; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libUSAC/utils/MathFunctions.ll (ZN9MathTools6svdu1vEPdS0_iS0_i)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, 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 i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i32 %4, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, 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 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %5
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %29, align 4
  br label %446

34:                                               ; preds = %5
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = add nsw i32 %35, %36
  %38 = sext i32 %37 to i64
  %39 = call noalias ptr @calloc(i64 noundef %38, i64 noundef 8) #7
  store ptr %39, ptr %16, align 8, !tbaa !5
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %40, i64 %42
  store ptr %43, ptr %17, align 8, !tbaa !5
  store i32 0, ptr %23, align 4, !tbaa !9
  %44 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %44, ptr %26, align 4, !tbaa !9
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sub nsw i32 %45, 1
  store i32 %46, ptr %27, align 4, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %47, ptr %12, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %371, %34
  %49 = load i32, ptr %23, align 4, !tbaa !9
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %383

52:                                               ; preds = %48
  %53 = load i32, ptr %26, align 4, !tbaa !9
  %54 = icmp sgt i32 %53, 1
  br i1 %54, label %55, label %207

55:                                               ; preds = %52
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %56, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  br label %57

57:                                               ; preds = %74, %55
  %58 = load i32, ptr %24, align 4, !tbaa !9
  %59 = load i32, ptr %26, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %81

61:                                               ; preds = %57
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load double, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = load i32, ptr %24, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds double, ptr %64, i64 %66
  store double %63, ptr %67, align 8, !tbaa !11
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = load double, ptr %68, align 8, !tbaa !11
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load double, ptr %70, align 8, !tbaa !11
  %72 = load double, ptr %18, align 8, !tbaa !11
  %73 = call double @llvm.fmuladd.f64(double %69, double %71, double %72)
  store double %73, ptr %18, align 8, !tbaa !11
  br label %74

74:                                               ; preds = %61
  %75 = load i32, ptr %24, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %24, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = sext i32 %77 to i64
  %80 = getelementptr inbounds double, ptr %78, i64 %79
  store ptr %80, ptr %14, align 8, !tbaa !5
  br label %57, !llvm.loop !13

81:                                               ; preds = %57
  %82 = load double, ptr %18, align 8, !tbaa !11
  %83 = fcmp ogt double %82, 0.000000e+00
  br i1 %83, label %84, label %198

84:                                               ; preds = %81
  %85 = load double, ptr %18, align 8, !tbaa !11
  %86 = call double @sqrt(double noundef %85) #6
  store double %86, ptr %19, align 8, !tbaa !11
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = fcmp olt double %88, 0.000000e+00
  br i1 %89, label %90, label %93

90:                                               ; preds = %84
  %91 = load double, ptr %19, align 8, !tbaa !11
  %92 = fneg double %91
  store double %92, ptr %19, align 8, !tbaa !11
  br label %93

93:                                               ; preds = %90, %84
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load double, ptr %19, align 8, !tbaa !11
  %97 = load double, ptr %18, align 8, !tbaa !11
  %98 = call double @llvm.fmuladd.f64(double %95, double %96, double %97)
  store double %98, ptr %18, align 8, !tbaa !11
  %99 = load double, ptr %18, align 8, !tbaa !11
  %100 = fdiv double 1.000000e+00, %99
  store double %100, ptr %18, align 8, !tbaa !11
  %101 = load double, ptr %19, align 8, !tbaa !11
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 0
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = fadd double %104, %101
  store double %105, ptr %103, align 8, !tbaa !11
  %106 = fdiv double 1.000000e+00, %105
  store double %106, ptr %21, align 8, !tbaa !11
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load double, ptr %19, align 8, !tbaa !11
  %110 = fdiv double %108, %109
  %111 = call double @llvm.fabs.f64(double %110)
  %112 = fadd double 1.000000e+00, %111
  store double %112, ptr %22, align 8, !tbaa !11
  store i32 1, ptr %25, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = load i32, ptr %23, align 4, !tbaa !9
  %115 = sub nsw i32 %113, %114
  store i32 %115, ptr %28, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %175, %93
  %117 = load i32, ptr %25, align 4, !tbaa !9
  %118 = load i32, ptr %28, align 4, !tbaa !9
  %119 = icmp slt i32 %117, %118
  br i1 %119, label %120, label %178

120:                                              ; preds = %116
  store i32 0, ptr %24, align 4, !tbaa !9
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i32, ptr %25, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  store ptr %124, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  br label %125

125:                                              ; preds = %140, %120
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = load i32, ptr %26, align 4, !tbaa !9
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %145

129:                                              ; preds = %125
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = load i32, ptr %24, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %24, align 4, !tbaa !9
  %133 = sext i32 %131 to i64
  %134 = getelementptr inbounds double, ptr %130, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !11
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = load double, ptr %20, align 8, !tbaa !11
  %139 = call double @llvm.fmuladd.f64(double %135, double %137, double %138)
  store double %139, ptr %20, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %129
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = sext i32 %141 to i64
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  store ptr %144, ptr %14, align 8, !tbaa !5
  br label %125, !llvm.loop !15

145:                                              ; preds = %125
  %146 = load double, ptr %18, align 8, !tbaa !11
  %147 = load double, ptr %20, align 8, !tbaa !11
  %148 = fmul double %147, %146
  store double %148, ptr %20, align 8, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load i32, ptr %25, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds double, ptr %149, i64 %151
  store ptr %152, ptr %14, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %169, %145
  %154 = load i32, ptr %24, align 4, !tbaa !9
  %155 = load i32, ptr %26, align 4, !tbaa !9
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %157, label %174

157:                                              ; preds = %153
  %158 = load double, ptr %20, align 8, !tbaa !11
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = load i32, ptr %24, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %24, align 4, !tbaa !9
  %162 = sext i32 %160 to i64
  %163 = getelementptr inbounds double, ptr %159, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = fneg double %158
  %168 = call double @llvm.fmuladd.f64(double %167, double %164, double %166)
  store double %168, ptr %165, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %157
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = sext i32 %170 to i64
  %173 = getelementptr inbounds double, ptr %171, i64 %172
  store ptr %173, ptr %14, align 8, !tbaa !5
  br label %153, !llvm.loop !16

174:                                              ; preds = %153
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %25, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %25, align 4, !tbaa !9
  br label %116, !llvm.loop !17

178:                                              ; preds = %116
  store i32 1, ptr %24, align 4, !tbaa !9
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %179, ptr %14, align 8, !tbaa !5
  br label %180

180:                                              ; preds = %184, %178
  %181 = load i32, ptr %24, align 4, !tbaa !9
  %182 = load i32, ptr %26, align 4, !tbaa !9
  %183 = icmp slt i32 %181, %182
  br i1 %183, label %184, label %197

184:                                              ; preds = %180
  %185 = load double, ptr %21, align 8, !tbaa !11
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %24, align 4, !tbaa !9
  %189 = sext i32 %187 to i64
  %190 = getelementptr inbounds double, ptr %186, i64 %189
  %191 = load double, ptr %190, align 8, !tbaa !11
  %192 = fmul double %185, %191
  %193 = load i32, ptr %11, align 4, !tbaa !9
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = sext i32 %193 to i64
  %196 = getelementptr inbounds double, ptr %194, i64 %195
  store ptr %196, ptr %14, align 8, !tbaa !5
  store double %192, ptr %196, align 8, !tbaa !11
  br label %180, !llvm.loop !18

197:                                              ; preds = %180
  br label %198

198:                                              ; preds = %197, %81
  %199 = load double, ptr %22, align 8, !tbaa !11
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  store double %199, ptr %200, align 8, !tbaa !11
  %201 = load double, ptr %19, align 8, !tbaa !11
  %202 = fneg double %201
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = load i32, ptr %23, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds double, ptr %203, i64 %205
  store double %202, ptr %206, align 8, !tbaa !11
  br label %207

207:                                              ; preds = %198, %52
  %208 = load i32, ptr %26, align 4, !tbaa !9
  %209 = icmp eq i32 %208, 1
  br i1 %209, label %210, label %217

210:                                              ; preds = %207
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = load i32, ptr %23, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds double, ptr %213, i64 %215
  store double %212, ptr %216, align 8, !tbaa !11
  br label %217

217:                                              ; preds = %210, %207
  %218 = load ptr, ptr %12, align 8, !tbaa !5
  %219 = getelementptr inbounds double, ptr %218, i64 1
  store ptr %219, ptr %13, align 8, !tbaa !5
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %220 = load i32, ptr %27, align 4, !tbaa !9
  %221 = icmp sgt i32 %220, 1
  br i1 %221, label %222, label %360

222:                                              ; preds = %217
  store i32 0, ptr %24, align 4, !tbaa !9
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %223, ptr %14, align 8, !tbaa !5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  br label %224

224:                                              ; preds = %235, %222
  %225 = load i32, ptr %24, align 4, !tbaa !9
  %226 = load i32, ptr %27, align 4, !tbaa !9
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %228, label %240

228:                                              ; preds = %224
  %229 = load ptr, ptr %14, align 8, !tbaa !5
  %230 = load double, ptr %229, align 8, !tbaa !11
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = load double, ptr %18, align 8, !tbaa !11
  %234 = call double @llvm.fmuladd.f64(double %230, double %232, double %233)
  store double %234, ptr %18, align 8, !tbaa !11
  br label %235

235:                                              ; preds = %228
  %236 = load i32, ptr %24, align 4, !tbaa !9
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %24, align 4, !tbaa !9
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  %239 = getelementptr inbounds double, ptr %238, i32 1
  store ptr %239, ptr %14, align 8, !tbaa !5
  br label %224, !llvm.loop !19

240:                                              ; preds = %224
  %241 = load double, ptr %18, align 8, !tbaa !11
  %242 = fcmp ogt double %241, 0.000000e+00
  br i1 %242, label %243, label %351

243:                                              ; preds = %240
  %244 = load double, ptr %18, align 8, !tbaa !11
  %245 = call double @sqrt(double noundef %244) #6
  store double %245, ptr %19, align 8, !tbaa !11
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = fcmp olt double %247, 0.000000e+00
  br i1 %248, label %249, label %252

249:                                              ; preds = %243
  %250 = load double, ptr %19, align 8, !tbaa !11
  %251 = fneg double %250
  store double %251, ptr %19, align 8, !tbaa !11
  br label %252

252:                                              ; preds = %249, %243
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load double, ptr %253, align 8, !tbaa !11
  %255 = load double, ptr %19, align 8, !tbaa !11
  %256 = fdiv double %254, %255
  %257 = call double @llvm.fabs.f64(double %256)
  %258 = fadd double 1.000000e+00, %257
  store double %258, ptr %22, align 8, !tbaa !11
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  %260 = load double, ptr %259, align 8, !tbaa !11
  %261 = load double, ptr %19, align 8, !tbaa !11
  %262 = load double, ptr %18, align 8, !tbaa !11
  %263 = call double @llvm.fmuladd.f64(double %260, double %261, double %262)
  store double %263, ptr %18, align 8, !tbaa !11
  %264 = load double, ptr %18, align 8, !tbaa !11
  %265 = fdiv double 1.000000e+00, %264
  store double %265, ptr %18, align 8, !tbaa !11
  %266 = load double, ptr %19, align 8, !tbaa !11
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  %268 = load double, ptr %267, align 8, !tbaa !11
  %269 = fadd double %268, %266
  store double %269, ptr %267, align 8, !tbaa !11
  %270 = fdiv double 1.000000e+00, %269
  store double %270, ptr %21, align 8, !tbaa !11
  %271 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %271, ptr %25, align 4, !tbaa !9
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %9, align 4, !tbaa !9
  %274 = load i32, ptr %23, align 4, !tbaa !9
  %275 = sub nsw i32 %273, %274
  %276 = mul nsw i32 %272, %275
  store i32 %276, ptr %28, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %330, %252
  %278 = load i32, ptr %25, align 4, !tbaa !9
  %279 = load i32, ptr %28, align 4, !tbaa !9
  %280 = icmp slt i32 %278, %279
  br i1 %280, label %281, label %334

281:                                              ; preds = %277
  store i32 0, ptr %24, align 4, !tbaa !9
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %282, ptr %14, align 8, !tbaa !5
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = load i32, ptr %25, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  store ptr %286, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %300, %281
  %288 = load i32, ptr %24, align 4, !tbaa !9
  %289 = load i32, ptr %27, align 4, !tbaa !9
  %290 = icmp slt i32 %288, %289
  br i1 %290, label %291, label %303

291:                                              ; preds = %287
  %292 = load ptr, ptr %14, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i32 1
  store ptr %293, ptr %14, align 8, !tbaa !5
  %294 = load double, ptr %292, align 8, !tbaa !11
  %295 = load ptr, ptr %15, align 8, !tbaa !5
  %296 = getelementptr inbounds double, ptr %295, i32 1
  store ptr %296, ptr %15, align 8, !tbaa !5
  %297 = load double, ptr %295, align 8, !tbaa !11
  %298 = load double, ptr %20, align 8, !tbaa !11
  %299 = call double @llvm.fmuladd.f64(double %294, double %297, double %298)
  store double %299, ptr %20, align 8, !tbaa !11
  br label %300

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

303:                                              ; preds = %287
  %304 = load double, ptr %18, align 8, !tbaa !11
  %305 = load double, ptr %20, align 8, !tbaa !11
  %306 = fmul double %305, %304
  store double %306, ptr %20, align 8, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %307 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %307, ptr %14, align 8, !tbaa !5
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  %309 = load i32, ptr %25, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds double, ptr %308, i64 %310
  store ptr %311, ptr %15, align 8, !tbaa !5
  br label %312

312:                                              ; preds = %326, %303
  %313 = load i32, ptr %24, align 4, !tbaa !9
  %314 = load i32, ptr %27, align 4, !tbaa !9
  %315 = icmp slt i32 %313, %314
  br i1 %315, label %316, label %329

316:                                              ; preds = %312
  %317 = load double, ptr %20, align 8, !tbaa !11
  %318 = load ptr, ptr %14, align 8, !tbaa !5
  %319 = getelementptr inbounds double, ptr %318, i32 1
  store ptr %319, ptr %14, align 8, !tbaa !5
  %320 = load double, ptr %318, align 8, !tbaa !11
  %321 = load ptr, ptr %15, align 8, !tbaa !5
  %322 = getelementptr inbounds double, ptr %321, i32 1
  store ptr %322, ptr %15, align 8, !tbaa !5
  %323 = load double, ptr %321, align 8, !tbaa !11
  %324 = fneg double %317
  %325 = call double @llvm.fmuladd.f64(double %324, double %320, double %323)
  store double %325, ptr %321, align 8, !tbaa !11
  br label %326

326:                                              ; preds = %316
  %327 = load i32, ptr %24, align 4, !tbaa !9
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %24, align 4, !tbaa !9
  br label %312, !llvm.loop !21

329:                                              ; preds = %312
  br label %330

330:                                              ; preds = %329
  %331 = load i32, ptr %11, align 4, !tbaa !9
  %332 = load i32, ptr %25, align 4, !tbaa !9
  %333 = add nsw i32 %332, %331
  store i32 %333, ptr %25, align 4, !tbaa !9
  br label %277, !llvm.loop !22

334:                                              ; preds = %277
  store i32 1, ptr %24, align 4, !tbaa !9
  %335 = load ptr, ptr %13, align 8, !tbaa !5
  %336 = getelementptr inbounds double, ptr %335, i64 1
  store ptr %336, ptr %14, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %347, %334
  %338 = load i32, ptr %24, align 4, !tbaa !9
  %339 = load i32, ptr %27, align 4, !tbaa !9
  %340 = icmp slt i32 %338, %339
  br i1 %340, label %341, label %350

341:                                              ; preds = %337
  %342 = load double, ptr %21, align 8, !tbaa !11
  %343 = load ptr, ptr %14, align 8, !tbaa !5
  %344 = getelementptr inbounds double, ptr %343, i32 1
  store ptr %344, ptr %14, align 8, !tbaa !5
  %345 = load double, ptr %343, align 8, !tbaa !11
  %346 = fmul double %345, %342
  store double %346, ptr %343, align 8, !tbaa !11
  br label %347

347:                                              ; preds = %341
  %348 = load i32, ptr %24, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %24, align 4, !tbaa !9
  br label %337, !llvm.loop !23

350:                                              ; preds = %337
  br label %351

351:                                              ; preds = %350, %240
  %352 = load double, ptr %22, align 8, !tbaa !11
  %353 = load ptr, ptr %13, align 8, !tbaa !5
  store double %352, ptr %353, align 8, !tbaa !11
  %354 = load double, ptr %19, align 8, !tbaa !11
  %355 = fneg double %354
  %356 = load ptr, ptr %17, align 8, !tbaa !5
  %357 = load i32, ptr %23, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds double, ptr %356, i64 %358
  store double %355, ptr %359, align 8, !tbaa !11
  br label %360

360:                                              ; preds = %351, %217
  %361 = load i32, ptr %27, align 4, !tbaa !9
  %362 = icmp eq i32 %361, 1
  br i1 %362, label %363, label %370

363:                                              ; preds = %360
  %364 = load ptr, ptr %13, align 8, !tbaa !5
  %365 = load double, ptr %364, align 8, !tbaa !11
  %366 = load ptr, ptr %17, align 8, !tbaa !5
  %367 = load i32, ptr %23, align 4, !tbaa !9
  %368 = sext i32 %367 to i64
  %369 = getelementptr inbounds double, ptr %366, i64 %368
  store double %365, ptr %369, align 8, !tbaa !11
  br label %370

370:                                              ; preds = %363, %360
  br label %371

371:                                              ; preds = %370
  %372 = load i32, ptr %23, align 4, !tbaa !9
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %23, align 4, !tbaa !9
  %374 = load i32, ptr %26, align 4, !tbaa !9
  %375 = add nsw i32 %374, -1
  store i32 %375, ptr %26, align 4, !tbaa !9
  %376 = load i32, ptr %27, align 4, !tbaa !9
  %377 = add nsw i32 %376, -1
  store i32 %377, ptr %27, align 4, !tbaa !9
  %378 = load i32, ptr %11, align 4, !tbaa !9
  %379 = add nsw i32 %378, 1
  %380 = load ptr, ptr %12, align 8, !tbaa !5
  %381 = sext i32 %379 to i64
  %382 = getelementptr inbounds double, ptr %380, i64 %381
  store ptr %382, ptr %12, align 8, !tbaa !5
  br label %48, !llvm.loop !24

383:                                              ; preds = %48
  %384 = load ptr, ptr %8, align 8, !tbaa !5
  %385 = load ptr, ptr %10, align 8, !tbaa !5
  %386 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %384, ptr noundef %385, i32 noundef %386)
  %387 = load ptr, ptr %8, align 8, !tbaa !5
  %388 = load i32, ptr %9, align 4, !tbaa !9
  %389 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN9MathTools5atou1EPdii(ptr noundef %387, i32 noundef %388, i32 noundef %389)
  %390 = load ptr, ptr %7, align 8, !tbaa !5
  %391 = load ptr, ptr %17, align 8, !tbaa !5
  %392 = load ptr, ptr %8, align 8, !tbaa !5
  %393 = load i32, ptr %9, align 4, !tbaa !9
  %394 = load ptr, ptr %10, align 8, !tbaa !5
  %395 = load i32, ptr %11, align 4, !tbaa !9
  %396 = call noundef i32 @_ZN9MathTools6qrbdu1EPdS0_S0_iS0_i(ptr noundef %390, ptr noundef %391, ptr noundef %392, i32 noundef %393, ptr noundef %394, i32 noundef %395)
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %397

397:                                              ; preds = %441, %383
  %398 = load i32, ptr %23, align 4, !tbaa !9
  %399 = load i32, ptr %11, align 4, !tbaa !9
  %400 = icmp slt i32 %398, %399
  br i1 %400, label %401, label %444

401:                                              ; preds = %397
  %402 = load ptr, ptr %7, align 8, !tbaa !5
  %403 = load i32, ptr %23, align 4, !tbaa !9
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds double, ptr %402, i64 %404
  %406 = load double, ptr %405, align 8, !tbaa !11
  %407 = fcmp olt double %406, 0.000000e+00
  br i1 %407, label %408, label %440

408:                                              ; preds = %401
  %409 = load ptr, ptr %7, align 8, !tbaa !5
  %410 = load i32, ptr %23, align 4, !tbaa !9
  %411 = sext i32 %410 to i64
  %412 = getelementptr inbounds double, ptr %409, i64 %411
  %413 = load double, ptr %412, align 8, !tbaa !11
  %414 = fneg double %413
  %415 = load ptr, ptr %7, align 8, !tbaa !5
  %416 = load i32, ptr %23, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds double, ptr %415, i64 %417
  store double %414, ptr %418, align 8, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = load i32, ptr %23, align 4, !tbaa !9
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds double, ptr %419, i64 %421
  store ptr %422, ptr %12, align 8, !tbaa !5
  br label %423

423:                                              ; preds = %432, %408
  %424 = load i32, ptr %24, align 4, !tbaa !9
  %425 = load i32, ptr %11, align 4, !tbaa !9
  %426 = icmp slt i32 %424, %425
  br i1 %426, label %427, label %439

427:                                              ; preds = %423
  %428 = load ptr, ptr %12, align 8, !tbaa !5
  %429 = load double, ptr %428, align 8, !tbaa !11
  %430 = fneg double %429
  %431 = load ptr, ptr %12, align 8, !tbaa !5
  store double %430, ptr %431, align 8, !tbaa !11
  br label %432

432:                                              ; preds = %427
  %433 = load i32, ptr %24, align 4, !tbaa !9
  %434 = add nsw i32 %433, 1
  store i32 %434, ptr %24, align 4, !tbaa !9
  %435 = load i32, ptr %11, align 4, !tbaa !9
  %436 = load ptr, ptr %12, align 8, !tbaa !5
  %437 = sext i32 %435 to i64
  %438 = getelementptr inbounds double, ptr %436, i64 %437
  store ptr %438, ptr %12, align 8, !tbaa !5
  br label %423, !llvm.loop !25

439:                                              ; preds = %423
  br label %440

440:                                              ; preds = %439, %401
  br label %441

441:                                              ; preds = %440
  %442 = load i32, ptr %23, align 4, !tbaa !9
  %443 = add nsw i32 %442, 1
  store i32 %443, ptr %23, align 4, !tbaa !9
  br label %397, !llvm.loop !26

444:                                              ; preds = %397
  %445 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %445) #6
  store i32 0, ptr %6, align 4
  store i32 1, ptr %29, align 4
  br label %446

446:                                              ; preds = %444, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  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 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %447 = load i32, ptr %6, align 4
  ret i32 %447
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9MathTools5atou1EPdii(ptr noundef, i32 noundef, i32 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN9MathTools6qrbdu1EPdS0_S0_iS0_i(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #5

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind allocsize(0,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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !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}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !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"

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef range(i32 -1, 1) i32 @_ZN9MathTools6svdu1vEPdS0_iS0_i(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = icmp slt i32 %2, %4
  br i1 %6, label %333, label %7

7:                                                ; preds = %5
  %8 = add nsw i32 %4, %2
  %9 = sext i32 %8 to i64
  %10 = tail call noalias ptr @calloc(i64 noundef %9, i64 noundef 8) #6
  %11 = sext i32 %2 to i64
  %12 = getelementptr inbounds double, ptr %10, i64 %11
  %13 = icmp sgt i32 %4, 0
  br i1 %13, label %.lr.ph272, label %._crit_edge281.critedge

.lr.ph272:                                        ; preds = %7
  %14 = zext nneg i32 %4 to i64
  %15 = add nuw i32 %4, 1
  %16 = zext i32 %15 to i64
  %17 = zext nneg i32 %4 to i64
  %invariant.op = add nsw i64 %17, -1
  %18 = shl nuw nsw i64 %14, 3
  %19 = shl nuw nsw i64 %16, 3
  %20 = shl nuw nsw i64 %14, 3
  %21 = add nsw i32 %4, -1
  %22 = add nsw i32 %4, -1
  %23 = add nsw i32 %4, -2
  %invariant.gep442 = getelementptr i8, ptr %1, i64 8
  %invariant.gep444 = getelementptr i8, ptr %1, i64 16
  %invariant.gep = getelementptr inbounds i8, ptr %10, i64 8
  %invariant.gep438 = getelementptr inbounds i8, ptr %10, i64 16
  %invariant.gep440 = getelementptr inbounds i8, ptr %10, i64 24
  %24 = getelementptr i8, ptr %1, i64 %18
  %25 = getelementptr i8, ptr %24, i64 8
  %26 = getelementptr i8, ptr %1, i64 %18
  %27 = getelementptr i8, ptr %26, i64 16
  br label %28

28:                                               ; preds = %.lr.ph272, %306
  %indvars.iv317 = phi i64 [ 0, %.lr.ph272 ], [ %indvars.iv.next318, %306 ]
  %indvars.iv315 = phi i64 [ %11, %.lr.ph272 ], [ %indvars.iv.next316, %306 ]
  %indvars.iv304.in = phi i32 [ %4, %.lr.ph272 ], [ %indvars.iv304, %306 ]
  %.0.in269 = phi i32 [ %4, %.lr.ph272 ], [ %.0270, %306 ]
  %.0198261 = phi ptr [ %1, %.lr.ph272 ], [ %307, %306 ]
  %29 = trunc i64 %indvars.iv317 to i32
  %30 = sub i32 %22, %29
  %smax410 = tail call i32 @llvm.smax.i32(i32 %30, i32 1)
  %31 = trunc i64 %indvars.iv317 to i32
  %32 = sub i32 %22, %31
  %smax403 = tail call i32 @llvm.smax.i32(i32 %32, i32 1)
  %33 = trunc i64 %indvars.iv317 to i32
  %34 = sub i32 %22, %33
  %35 = trunc i64 %indvars.iv317 to i32
  %36 = sub i32 %23, %35
  %smax391 = tail call i64 @llvm.smax.i64(i64 %indvars.iv315, i64 2)
  %37 = add nsw i64 %smax391, -1
  %38 = add nsw i64 %smax391, -2
  %39 = trunc i64 %indvars.iv317 to i32
  %40 = sub i32 %2, %39
  %41 = zext i32 %40 to i64
  %42 = add nsw i64 %41, -1
  %43 = trunc i64 %indvars.iv317 to i32
  %44 = sub i32 %2, %43
  %45 = zext i32 %44 to i64
  %46 = add nsw i64 %45, -1
  %47 = trunc i64 %indvars.iv317 to i32
  %48 = sub i32 %2, %47
  %49 = zext i32 %48 to i64
  %50 = trunc i64 %indvars.iv317 to i32
  %51 = sub i32 %21, %50
  %smax345 = tail call i32 @llvm.smax.i32(i32 %51, i32 1)
  %52 = zext nneg i32 %smax345 to i64
  %53 = mul i64 %19, %indvars.iv317
  %54 = trunc i64 %indvars.iv317 to i32
  %55 = sub i32 %21, %54
  %smax340 = tail call i32 @llvm.smax.i32(i32 %55, i32 1)
  %56 = add nsw i32 %smax340, -1
  %57 = zext nneg i32 %56 to i64
  %58 = shl nuw nsw i64 %57, 3
  %gep443 = getelementptr i8, ptr %invariant.gep442, i64 %53
  %gep445 = getelementptr i8, ptr %invariant.gep444, i64 %53
  %scevgep344 = getelementptr i8, ptr %gep445, i64 %58
  %59 = trunc i64 %indvars.iv317 to i32
  %60 = xor i32 %59, -1
  %61 = add i32 %60, %4
  %smax = tail call i32 @llvm.smax.i32(i32 %61, i32 2)
  %62 = add nsw i32 %smax, -1
  %63 = zext nneg i32 %62 to i64
  %indvars.iv304 = add i32 %indvars.iv304.in, -1
  %smax313 = tail call i32 @llvm.smax.i32(i32 %indvars.iv304, i32 2)
  %smax308 = tail call i32 @llvm.smax.i32(i32 %indvars.iv304, i32 1)
  %.0270 = add nsw i32 %.0.in269, -1
  %64 = icmp sgt i64 %indvars.iv315, 1
  br i1 %64, label %.preheader218.preheader, label %177

.preheader218.preheader:                          ; preds = %28
  %65 = add nsw i64 %49, -1
  %xtraiter = and i64 %49, 3
  %66 = icmp ult i64 %65, 3
  br i1 %66, label %.unr-lcssa, label %.preheader218.preheader.new

.preheader218.preheader.new:                      ; preds = %.preheader218.preheader
  %unroll_iter = and i64 %49, 4294967292
  br label %.preheader218

.preheader218:                                    ; preds = %.preheader218, %.preheader218.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader218.preheader.new ], [ %indvars.iv.next.3, %.preheader218 ]
  %.0195220 = phi double [ 0.000000e+00, %.preheader218.preheader.new ], [ %81, %.preheader218 ]
  %.0202219 = phi ptr [ %.0198261, %.preheader218.preheader.new ], [ %82, %.preheader218 ]
  %niter = phi i64 [ 0, %.preheader218.preheader.new ], [ %niter.next.3, %.preheader218 ]
  %67 = load double, ptr %.0202219, align 8, !tbaa !5
  %68 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  store double %67, ptr %68, align 8, !tbaa !5
  %69 = tail call double @llvm.fmuladd.f64(double %67, double %67, double %.0195220)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %70 = getelementptr inbounds double, ptr %.0202219, i64 %14
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next
  store double %71, ptr %72, align 8, !tbaa !5
  %73 = tail call double @llvm.fmuladd.f64(double %71, double %71, double %69)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %74 = getelementptr inbounds double, ptr %70, i64 %14
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next.1
  store double %75, ptr %76, align 8, !tbaa !5
  %77 = tail call double @llvm.fmuladd.f64(double %75, double %75, double %73)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %78 = getelementptr inbounds double, ptr %74, i64 %14
  %79 = load double, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next.2
  store double %79, ptr %80, align 8, !tbaa !5
  %81 = tail call double @llvm.fmuladd.f64(double %79, double %79, double %77)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %82 = getelementptr inbounds double, ptr %78, i64 %14
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.unr-lcssa, label %.preheader218, !llvm.loop !9

.unr-lcssa:                                       ; preds = %.preheader218, %.preheader218.preheader
  %.lcssa.ph = phi double [ poison, %.preheader218.preheader ], [ %81, %.preheader218 ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader218.preheader ], [ %indvars.iv.next.3, %.preheader218 ]
  %.0195220.unr = phi double [ 0.000000e+00, %.preheader218.preheader ], [ %81, %.preheader218 ]
  %.0202219.unr = phi ptr [ %.0198261, %.preheader218.preheader ], [ %82, %.preheader218 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.epilog-lcssa, label %.preheader218.epil

.preheader218.epil:                               ; preds = %.unr-lcssa, %.preheader218.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.preheader218.epil ], [ %indvars.iv.unr, %.unr-lcssa ]
  %.0195220.epil = phi double [ %85, %.preheader218.epil ], [ %.0195220.unr, %.unr-lcssa ]
  %.0202219.epil = phi ptr [ %86, %.preheader218.epil ], [ %.0202219.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader218.epil ], [ 0, %.unr-lcssa ]
  %83 = load double, ptr %.0202219.epil, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.epil
  store double %83, ptr %84, align 8, !tbaa !5
  %85 = tail call double @llvm.fmuladd.f64(double %83, double %83, double %.0195220.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %86 = getelementptr inbounds double, ptr %.0202219.epil, i64 %14
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.epilog-lcssa, label %.preheader218.epil, !llvm.loop !11

.epilog-lcssa:                                    ; preds = %.preheader218.epil, %.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %.unr-lcssa ], [ %85, %.preheader218.epil ]
  %87 = fcmp ogt double %.lcssa, 0.000000e+00
  br i1 %87, label %88, label %.loopexit217

88:                                               ; preds = %.epilog-lcssa
  %89 = tail call double @sqrt(double noundef %.lcssa) #7
  %90 = load double, ptr %.0198261, align 8, !tbaa !5
  %91 = fcmp olt double %90, 0.000000e+00
  %92 = fneg double %89
  %.0191 = select i1 %91, double %92, double %89
  %93 = tail call double @llvm.fmuladd.f64(double %90, double %.0191, double %.lcssa)
  %94 = fdiv double 1.000000e+00, %93
  %95 = load double, ptr %10, align 8, !tbaa !5
  %96 = fadd double %95, %.0191
  store double %96, ptr %10, align 8, !tbaa !5
  %97 = fdiv double 1.000000e+00, %96
  %98 = fdiv double %90, %.0191
  %99 = tail call double @llvm.fabs.f64(double %98)
  %100 = fadd double %99, 1.000000e+00
  %101 = icmp slt i64 %indvars.iv317, %invariant.op
  br i1 %101, label %.lr.ph230, label %.lr.ph233.preheader

.lr.ph230:                                        ; preds = %88
  %wide.trip.count299 = zext i32 %.0.in269 to i64
  %xtraiter380 = and i64 %45, 3
  %102 = icmp ult i64 %46, 3
  %unroll_iter384 = and i64 %45, 4294967292
  %lcmp.mod382.not = icmp eq i64 %xtraiter380, 0
  %xtraiter386 = and i64 %41, 3
  %103 = icmp ult i64 %42, 3
  %unroll_iter389 = and i64 %41, 4294967292
  %lcmp.mod388.not = icmp eq i64 %xtraiter386, 0
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge, %.lr.ph230
  %indvars.iv296 = phi i64 [ 1, %.lr.ph230 ], [ %indvars.iv.next297, %._crit_edge ]
  %104 = getelementptr inbounds double, ptr %.0198261, i64 %indvars.iv296
  br i1 %102, label %.lr.ph227.unr-lcssa, label %.lr.ph

.lr.ph227.unr-lcssa:                              ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa376.ph = phi double [ poison, %.lr.ph.preheader ], [ %130, %.lr.ph ]
  %indvars.iv286.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next287.3, %.lr.ph ]
  %.0189223.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %130, %.lr.ph ]
  %.1203222.unr = phi ptr [ %104, %.lr.ph.preheader ], [ %131, %.lr.ph ]
  br i1 %lcmp.mod382.not, label %.lr.ph227, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph227.unr-lcssa, %.lr.ph.epil
  %indvars.iv286.epil = phi i64 [ %indvars.iv.next287.epil, %.lr.ph.epil ], [ %indvars.iv286.unr, %.lr.ph227.unr-lcssa ]
  %.0189223.epil = phi double [ %108, %.lr.ph.epil ], [ %.0189223.unr, %.lr.ph227.unr-lcssa ]
  %.1203222.epil = phi ptr [ %109, %.lr.ph.epil ], [ %.1203222.unr, %.lr.ph227.unr-lcssa ]
  %epil.iter381 = phi i64 [ %epil.iter381.next, %.lr.ph.epil ], [ 0, %.lr.ph227.unr-lcssa ]
  %indvars.iv.next287.epil = add nuw nsw i64 %indvars.iv286.epil, 1
  %105 = getelementptr inbounds double, ptr %10, i64 %indvars.iv286.epil
  %106 = load double, ptr %105, align 8, !tbaa !5
  %107 = load double, ptr %.1203222.epil, align 8, !tbaa !5
  %108 = tail call double @llvm.fmuladd.f64(double %106, double %107, double %.0189223.epil)
  %109 = getelementptr inbounds double, ptr %.1203222.epil, i64 %14
  %epil.iter381.next = add i64 %epil.iter381, 1
  %epil.iter381.cmp.not = icmp eq i64 %epil.iter381.next, %xtraiter380
  br i1 %epil.iter381.cmp.not, label %.lr.ph227, label %.lr.ph.epil, !llvm.loop !13

.lr.ph227:                                        ; preds = %.lr.ph.epil, %.lr.ph227.unr-lcssa
  %.lcssa376 = phi double [ %.lcssa376.ph, %.lr.ph227.unr-lcssa ], [ %108, %.lr.ph.epil ]
  %110 = fneg double %.lcssa376
  %111 = fmul double %94, %110
  br i1 %103, label %._crit_edge.unr-lcssa, label %.lr.ph227.new

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv286 = phi i64 [ %indvars.iv.next287.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.0189223 = phi double [ %130, %.lr.ph ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.1203222 = phi ptr [ %131, %.lr.ph ], [ %104, %.lr.ph.preheader ]
  %niter385 = phi i64 [ %niter385.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %indvars.iv.next287 = or disjoint i64 %indvars.iv286, 1
  %112 = getelementptr inbounds double, ptr %10, i64 %indvars.iv286
  %113 = load double, ptr %112, align 8, !tbaa !5
  %114 = load double, ptr %.1203222, align 8, !tbaa !5
  %115 = tail call double @llvm.fmuladd.f64(double %113, double %114, double %.0189223)
  %116 = getelementptr inbounds double, ptr %.1203222, i64 %14
  %indvars.iv.next287.1 = or disjoint i64 %indvars.iv286, 2
  %117 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next287
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = load double, ptr %116, align 8, !tbaa !5
  %120 = tail call double @llvm.fmuladd.f64(double %118, double %119, double %115)
  %121 = getelementptr inbounds double, ptr %116, i64 %14
  %indvars.iv.next287.2 = or disjoint i64 %indvars.iv286, 3
  %122 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next287.1
  %123 = load double, ptr %122, align 8, !tbaa !5
  %124 = load double, ptr %121, align 8, !tbaa !5
  %125 = tail call double @llvm.fmuladd.f64(double %123, double %124, double %120)
  %126 = getelementptr inbounds double, ptr %121, i64 %14
  %indvars.iv.next287.3 = add nuw nsw i64 %indvars.iv286, 4
  %127 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next287.2
  %128 = load double, ptr %127, align 8, !tbaa !5
  %129 = load double, ptr %126, align 8, !tbaa !5
  %130 = tail call double @llvm.fmuladd.f64(double %128, double %129, double %125)
  %131 = getelementptr inbounds double, ptr %126, i64 %14
  %niter385.next.3 = add i64 %niter385, 4
  %niter385.ncmp.3 = icmp eq i64 %niter385.next.3, %unroll_iter384
  br i1 %niter385.ncmp.3, label %.lr.ph227.unr-lcssa, label %.lr.ph, !llvm.loop !14

.lr.ph227.new:                                    ; preds = %.lr.ph227, %.lr.ph227.new
  %indvars.iv291 = phi i64 [ %indvars.iv.next292.3, %.lr.ph227.new ], [ 0, %.lr.ph227 ]
  %.2204225 = phi ptr [ %151, %.lr.ph227.new ], [ %104, %.lr.ph227 ]
  %niter390 = phi i64 [ %niter390.next.3, %.lr.ph227.new ], [ 0, %.lr.ph227 ]
  %indvars.iv.next292 = or disjoint i64 %indvars.iv291, 1
  %132 = getelementptr inbounds double, ptr %10, i64 %indvars.iv291
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = load double, ptr %.2204225, align 8, !tbaa !5
  %135 = tail call double @llvm.fmuladd.f64(double %111, double %133, double %134)
  store double %135, ptr %.2204225, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %.2204225, i64 %14
  %indvars.iv.next292.1 = or disjoint i64 %indvars.iv291, 2
  %137 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next292
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = load double, ptr %136, align 8, !tbaa !5
  %140 = tail call double @llvm.fmuladd.f64(double %111, double %138, double %139)
  store double %140, ptr %136, align 8, !tbaa !5
  %141 = getelementptr inbounds double, ptr %136, i64 %14
  %indvars.iv.next292.2 = or disjoint i64 %indvars.iv291, 3
  %142 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next292.1
  %143 = load double, ptr %142, align 8, !tbaa !5
  %144 = load double, ptr %141, align 8, !tbaa !5
  %145 = tail call double @llvm.fmuladd.f64(double %111, double %143, double %144)
  store double %145, ptr %141, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %141, i64 %14
  %indvars.iv.next292.3 = add nuw nsw i64 %indvars.iv291, 4
  %147 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next292.2
  %148 = load double, ptr %147, align 8, !tbaa !5
  %149 = load double, ptr %146, align 8, !tbaa !5
  %150 = tail call double @llvm.fmuladd.f64(double %111, double %148, double %149)
  store double %150, ptr %146, align 8, !tbaa !5
  %151 = getelementptr inbounds double, ptr %146, i64 %14
  %niter390.next.3 = add i64 %niter390, 4
  %niter390.ncmp.3 = icmp eq i64 %niter390.next.3, %unroll_iter389
  br i1 %niter390.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph227.new, !llvm.loop !15

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph227.new, %.lr.ph227
  %indvars.iv291.unr = phi i64 [ 0, %.lr.ph227 ], [ %indvars.iv.next292.3, %.lr.ph227.new ]
  %.2204225.unr = phi ptr [ %104, %.lr.ph227 ], [ %151, %.lr.ph227.new ]
  br i1 %lcmp.mod388.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %indvars.iv291.epil = phi i64 [ %indvars.iv.next292.epil, %.epil.preheader ], [ %indvars.iv291.unr, %._crit_edge.unr-lcssa ]
  %.2204225.epil = phi ptr [ %156, %.epil.preheader ], [ %.2204225.unr, %._crit_edge.unr-lcssa ]
  %epil.iter387 = phi i64 [ %epil.iter387.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  %indvars.iv.next292.epil = add nuw nsw i64 %indvars.iv291.epil, 1
  %152 = getelementptr inbounds double, ptr %10, i64 %indvars.iv291.epil
  %153 = load double, ptr %152, align 8, !tbaa !5
  %154 = load double, ptr %.2204225.epil, align 8, !tbaa !5
  %155 = tail call double @llvm.fmuladd.f64(double %111, double %153, double %154)
  store double %155, ptr %.2204225.epil, align 8, !tbaa !5
  %156 = getelementptr inbounds double, ptr %.2204225.epil, i64 %14
  %epil.iter387.next = add i64 %epil.iter387, 1
  %epil.iter387.cmp.not = icmp eq i64 %epil.iter387.next, %xtraiter386
  br i1 %epil.iter387.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !16

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %indvars.iv.next297 = add nuw nsw i64 %indvars.iv296, 1
  %exitcond300.not = icmp eq i64 %indvars.iv.next297, %wide.trip.count299
  br i1 %exitcond300.not, label %.lr.ph233.preheader, label %.lr.ph.preheader, !llvm.loop !17

.lr.ph233.preheader:                              ; preds = %._crit_edge, %88
  %xtraiter392 = and i64 %37, 3
  %157 = icmp ult i64 %38, 3
  br i1 %157, label %.loopexit217.loopexit.unr-lcssa, label %.lr.ph233.preheader.new

.lr.ph233.preheader.new:                          ; preds = %.lr.ph233.preheader
  %unroll_iter395 = and i64 %37, -4
  br label %.lr.ph233

.lr.ph233:                                        ; preds = %.lr.ph233, %.lr.ph233.preheader.new
  %indvars.iv301 = phi i64 [ 1, %.lr.ph233.preheader.new ], [ %indvars.iv.next302.3, %.lr.ph233 ]
  %.3205231 = phi ptr [ %.0198261, %.lr.ph233.preheader.new ], [ %170, %.lr.ph233 ]
  %niter396 = phi i64 [ 0, %.lr.ph233.preheader.new ], [ %niter396.next.3, %.lr.ph233 ]
  %158 = getelementptr inbounds double, ptr %10, i64 %indvars.iv301
  %159 = load double, ptr %158, align 8, !tbaa !5
  %160 = fmul double %97, %159
  %161 = getelementptr inbounds double, ptr %.3205231, i64 %14
  store double %160, ptr %161, align 8, !tbaa !5
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv301
  %162 = load double, ptr %gep, align 8, !tbaa !5
  %163 = fmul double %97, %162
  %164 = getelementptr inbounds double, ptr %161, i64 %14
  store double %163, ptr %164, align 8, !tbaa !5
  %gep439 = getelementptr inbounds double, ptr %invariant.gep438, i64 %indvars.iv301
  %165 = load double, ptr %gep439, align 8, !tbaa !5
  %166 = fmul double %97, %165
  %167 = getelementptr inbounds double, ptr %164, i64 %14
  store double %166, ptr %167, align 8, !tbaa !5
  %indvars.iv.next302.3 = add nuw nsw i64 %indvars.iv301, 4
  %gep441 = getelementptr inbounds double, ptr %invariant.gep440, i64 %indvars.iv301
  %168 = load double, ptr %gep441, align 8, !tbaa !5
  %169 = fmul double %97, %168
  %170 = getelementptr inbounds double, ptr %167, i64 %14
  store double %169, ptr %170, align 8, !tbaa !5
  %niter396.next.3 = add i64 %niter396, 4
  %niter396.ncmp.3.not = icmp eq i64 %niter396.next.3, %unroll_iter395
  br i1 %niter396.ncmp.3.not, label %.loopexit217.loopexit.unr-lcssa, label %.lr.ph233, !llvm.loop !18

.loopexit217.loopexit.unr-lcssa:                  ; preds = %.lr.ph233, %.lr.ph233.preheader
  %indvars.iv301.unr = phi i64 [ 1, %.lr.ph233.preheader ], [ %indvars.iv.next302.3, %.lr.ph233 ]
  %.3205231.unr = phi ptr [ %.0198261, %.lr.ph233.preheader ], [ %170, %.lr.ph233 ]
  %lcmp.mod394.not = icmp eq i64 %xtraiter392, 0
  br i1 %lcmp.mod394.not, label %.loopexit217, label %.lr.ph233.epil

.lr.ph233.epil:                                   ; preds = %.loopexit217.loopexit.unr-lcssa, %.lr.ph233.epil
  %indvars.iv301.epil = phi i64 [ %indvars.iv.next302.epil, %.lr.ph233.epil ], [ %indvars.iv301.unr, %.loopexit217.loopexit.unr-lcssa ]
  %.3205231.epil = phi ptr [ %174, %.lr.ph233.epil ], [ %.3205231.unr, %.loopexit217.loopexit.unr-lcssa ]
  %epil.iter393 = phi i64 [ %epil.iter393.next, %.lr.ph233.epil ], [ 0, %.loopexit217.loopexit.unr-lcssa ]
  %indvars.iv.next302.epil = add nuw nsw i64 %indvars.iv301.epil, 1
  %171 = getelementptr inbounds double, ptr %10, i64 %indvars.iv301.epil
  %172 = load double, ptr %171, align 8, !tbaa !5
  %173 = fmul double %97, %172
  %174 = getelementptr inbounds double, ptr %.3205231.epil, i64 %14
  store double %173, ptr %174, align 8, !tbaa !5
  %epil.iter393.next = add i64 %epil.iter393, 1
  %epil.iter393.cmp.not = icmp eq i64 %epil.iter393.next, %xtraiter392
  br i1 %epil.iter393.cmp.not, label %.loopexit217, label %.lr.ph233.epil, !llvm.loop !19

.loopexit217:                                     ; preds = %.loopexit217.loopexit.unr-lcssa, %.lr.ph233.epil, %.epilog-lcssa
  %.1192 = phi double [ 0.000000e+00, %.epilog-lcssa ], [ %.0191, %.lr.ph233.epil ], [ %.0191, %.loopexit217.loopexit.unr-lcssa ]
  %.0187 = phi double [ 0.000000e+00, %.epilog-lcssa ], [ %100, %.lr.ph233.epil ], [ %100, %.loopexit217.loopexit.unr-lcssa ]
  store double %.0187, ptr %.0198261, align 8, !tbaa !5
  %175 = fneg double %.1192
  %176 = getelementptr inbounds double, ptr %0, i64 %indvars.iv317
  store double %175, ptr %176, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %.loopexit217, %28
  %178 = icmp eq i64 %indvars.iv315, 1
  br i1 %178, label %179, label %182

179:                                              ; preds = %177
  %180 = load double, ptr %.0198261, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %0, i64 %indvars.iv317
  store double %180, ptr %181, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %179, %177
  %183 = getelementptr inbounds i8, ptr %.0198261, i64 8
  %184 = icmp sgt i32 %.0.in269, 2
  br i1 %184, label %.lr.ph237.preheader, label %301

.lr.ph237.preheader:                              ; preds = %182
  %xtraiter397 = and i32 %34, 3
  %185 = icmp ult i32 %36, 3
  br i1 %185, label %._crit_edge238.unr-lcssa, label %.lr.ph237.preheader.new

.lr.ph237.preheader.new:                          ; preds = %.lr.ph237.preheader
  %unroll_iter401 = and i32 %34, -4
  br label %.lr.ph237

.lr.ph237:                                        ; preds = %.lr.ph237, %.lr.ph237.preheader.new
  %.1196235 = phi double [ 0.000000e+00, %.lr.ph237.preheader.new ], [ %196, %.lr.ph237 ]
  %.4206234 = phi ptr [ %183, %.lr.ph237.preheader.new ], [ %197, %.lr.ph237 ]
  %niter402 = phi i32 [ 0, %.lr.ph237.preheader.new ], [ %niter402.next.3, %.lr.ph237 ]
  %186 = load double, ptr %.4206234, align 8, !tbaa !5
  %187 = tail call double @llvm.fmuladd.f64(double %186, double %186, double %.1196235)
  %188 = getelementptr inbounds i8, ptr %.4206234, i64 8
  %189 = load double, ptr %188, align 8, !tbaa !5
  %190 = tail call double @llvm.fmuladd.f64(double %189, double %189, double %187)
  %191 = getelementptr inbounds i8, ptr %.4206234, i64 16
  %192 = load double, ptr %191, align 8, !tbaa !5
  %193 = tail call double @llvm.fmuladd.f64(double %192, double %192, double %190)
  %194 = getelementptr inbounds i8, ptr %.4206234, i64 24
  %195 = load double, ptr %194, align 8, !tbaa !5
  %196 = tail call double @llvm.fmuladd.f64(double %195, double %195, double %193)
  %197 = getelementptr inbounds i8, ptr %.4206234, i64 32
  %niter402.next.3 = add i32 %niter402, 4
  %niter402.ncmp.3 = icmp eq i32 %niter402.next.3, %unroll_iter401
  br i1 %niter402.ncmp.3, label %._crit_edge238.unr-lcssa, label %.lr.ph237, !llvm.loop !20

._crit_edge238.unr-lcssa:                         ; preds = %.lr.ph237, %.lr.ph237.preheader
  %.lcssa377.ph = phi double [ poison, %.lr.ph237.preheader ], [ %196, %.lr.ph237 ]
  %.1196235.unr = phi double [ 0.000000e+00, %.lr.ph237.preheader ], [ %196, %.lr.ph237 ]
  %.4206234.unr = phi ptr [ %183, %.lr.ph237.preheader ], [ %197, %.lr.ph237 ]
  %lcmp.mod399.not = icmp eq i32 %xtraiter397, 0
  br i1 %lcmp.mod399.not, label %._crit_edge238, label %.lr.ph237.epil

.lr.ph237.epil:                                   ; preds = %._crit_edge238.unr-lcssa, %.lr.ph237.epil
  %.1196235.epil = phi double [ %199, %.lr.ph237.epil ], [ %.1196235.unr, %._crit_edge238.unr-lcssa ]
  %.4206234.epil = phi ptr [ %200, %.lr.ph237.epil ], [ %.4206234.unr, %._crit_edge238.unr-lcssa ]
  %epil.iter398 = phi i32 [ %epil.iter398.next, %.lr.ph237.epil ], [ 0, %._crit_edge238.unr-lcssa ]
  %198 = load double, ptr %.4206234.epil, align 8, !tbaa !5
  %199 = tail call double @llvm.fmuladd.f64(double %198, double %198, double %.1196235.epil)
  %200 = getelementptr inbounds i8, ptr %.4206234.epil, i64 8
  %epil.iter398.next = add i32 %epil.iter398, 1
  %epil.iter398.cmp.not = icmp eq i32 %epil.iter398.next, %xtraiter397
  br i1 %epil.iter398.cmp.not, label %._crit_edge238, label %.lr.ph237.epil, !llvm.loop !21

._crit_edge238:                                   ; preds = %.lr.ph237.epil, %._crit_edge238.unr-lcssa
  %.lcssa377 = phi double [ %.lcssa377.ph, %._crit_edge238.unr-lcssa ], [ %199, %.lr.ph237.epil ]
  %201 = fcmp ogt double %.lcssa377, 0.000000e+00
  br i1 %201, label %202, label %.loopexit214

202:                                              ; preds = %._crit_edge238
  %203 = tail call double @sqrt(double noundef %.lcssa377) #7
  %204 = load double, ptr %183, align 8, !tbaa !5
  %205 = fcmp olt double %204, 0.000000e+00
  %206 = fneg double %203
  %.2193 = select i1 %205, double %206, double %203
  %207 = fdiv double %204, %.2193
  %208 = tail call double @llvm.fabs.f64(double %207)
  %209 = fadd double %208, 1.000000e+00
  %210 = tail call double @llvm.fmuladd.f64(double %204, double %.2193, double %.lcssa377)
  %211 = fdiv double 1.000000e+00, %210
  %212 = fadd double %204, %.2193
  store double %212, ptr %183, align 8, !tbaa !5
  %213 = fdiv double 1.000000e+00, %212
  %214 = sub nsw i64 %11, %indvars.iv317
  %215 = mul nsw i64 %214, %17
  %216 = icmp sgt i64 %215, %17
  br i1 %216, label %.lr.ph245.preheader.preheader, label %.lr.ph259.preheader

.lr.ph245.preheader.preheader:                    ; preds = %202
  %217 = getelementptr i8, ptr %25, i64 %53
  %218 = getelementptr i8, ptr %27, i64 %53
  %219 = getelementptr i8, ptr %218, i64 %58
  %xtraiter404 = and i32 %smax403, 3
  %220 = icmp slt i32 %32, 4
  %unroll_iter408 = and i32 %smax403, 2147483644
  %lcmp.mod406.not = icmp eq i32 %xtraiter404, 0
  %min.iters.check348 = icmp slt i32 %51, 4
  %n.vec351 = and i64 %52, 2147483644
  %ind.end353 = trunc nuw nsw i64 %n.vec351 to i32
  %221 = shl nuw nsw i64 %n.vec351, 3
  %222 = shl nuw nsw i64 %n.vec351, 3
  %ind.end357 = getelementptr i8, ptr %183, i64 %222
  %cmp.n374 = icmp eq i64 %n.vec351, %52
  br label %.lr.ph245.preheader

.lr.ph245.preheader:                              ; preds = %.lr.ph245.preheader.preheader, %._crit_edge251
  %indvar = phi i64 [ %indvar.next, %._crit_edge251 ], [ 0, %.lr.ph245.preheader.preheader ]
  %indvars.iv310 = phi i64 [ %indvars.iv.next311, %._crit_edge251 ], [ %14, %.lr.ph245.preheader.preheader ]
  %223 = mul i64 %20, %indvar
  %scevgep = getelementptr i8, ptr %217, i64 %223
  %scevgep341 = getelementptr i8, ptr %219, i64 %223
  %224 = getelementptr inbounds double, ptr %183, i64 %indvars.iv310
  br i1 %220, label %.lr.ph250.unr-lcssa, label %.lr.ph245

.lr.ph250.unr-lcssa:                              ; preds = %.lr.ph245, %.lr.ph245.preheader
  %.lcssa378.ph = phi double [ poison, %.lr.ph245.preheader ], [ %265, %.lr.ph245 ]
  %.1190242.unr = phi double [ 0.000000e+00, %.lr.ph245.preheader ], [ %265, %.lr.ph245 ]
  %.0200241.unr = phi ptr [ %224, %.lr.ph245.preheader ], [ %263, %.lr.ph245 ]
  %.5207240.unr = phi ptr [ %183, %.lr.ph245.preheader ], [ %261, %.lr.ph245 ]
  br i1 %lcmp.mod406.not, label %.lr.ph250, label %.lr.ph245.epil

.lr.ph245.epil:                                   ; preds = %.lr.ph250.unr-lcssa, %.lr.ph245.epil
  %.1190242.epil = phi double [ %229, %.lr.ph245.epil ], [ %.1190242.unr, %.lr.ph250.unr-lcssa ]
  %.0200241.epil = phi ptr [ %227, %.lr.ph245.epil ], [ %.0200241.unr, %.lr.ph250.unr-lcssa ]
  %.5207240.epil = phi ptr [ %225, %.lr.ph245.epil ], [ %.5207240.unr, %.lr.ph250.unr-lcssa ]
  %epil.iter405 = phi i32 [ %epil.iter405.next, %.lr.ph245.epil ], [ 0, %.lr.ph250.unr-lcssa ]
  %225 = getelementptr inbounds i8, ptr %.5207240.epil, i64 8
  %226 = load double, ptr %.5207240.epil, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %.0200241.epil, i64 8
  %228 = load double, ptr %.0200241.epil, align 8, !tbaa !5
  %229 = tail call double @llvm.fmuladd.f64(double %226, double %228, double %.1190242.epil)
  %epil.iter405.next = add i32 %epil.iter405, 1
  %epil.iter405.cmp.not = icmp eq i32 %epil.iter405.next, %xtraiter404
  br i1 %epil.iter405.cmp.not, label %.lr.ph250, label %.lr.ph245.epil, !llvm.loop !22

.lr.ph250:                                        ; preds = %.lr.ph245.epil, %.lr.ph250.unr-lcssa
  %.lcssa378 = phi double [ %.lcssa378.ph, %.lr.ph250.unr-lcssa ], [ %229, %.lr.ph245.epil ]
  %230 = fneg double %.lcssa378
  %231 = fmul double %211, %230
  br i1 %min.iters.check348, label %scalar.ph347.preheader, label %vector.memcheck

scalar.ph347.preheader:                           ; preds = %middle.block346, %vector.memcheck, %.lr.ph250
  %.6249.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %.lr.ph250 ], [ %ind.end353, %middle.block346 ]
  %.1201248.ph = phi ptr [ %224, %vector.memcheck ], [ %224, %.lr.ph250 ], [ %ind.end355, %middle.block346 ]
  %.6208247.ph = phi ptr [ %183, %vector.memcheck ], [ %183, %.lr.ph250 ], [ %ind.end357, %middle.block346 ]
  %232 = sub i32 %smax410, %.6249.ph
  %xtraiter411 = and i32 %232, 3
  %lcmp.mod412.not = icmp eq i32 %xtraiter411, 0
  br i1 %lcmp.mod412.not, label %scalar.ph347.prol.loopexit, label %scalar.ph347.prol

scalar.ph347.prol:                                ; preds = %scalar.ph347.preheader, %scalar.ph347.prol
  %.6249.prol = phi i32 [ %238, %scalar.ph347.prol ], [ %.6249.ph, %scalar.ph347.preheader ]
  %.1201248.prol = phi ptr [ %235, %scalar.ph347.prol ], [ %.1201248.ph, %scalar.ph347.preheader ]
  %.6208247.prol = phi ptr [ %233, %scalar.ph347.prol ], [ %.6208247.ph, %scalar.ph347.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph347.prol ], [ 0, %scalar.ph347.preheader ]
  %233 = getelementptr inbounds i8, ptr %.6208247.prol, i64 8
  %234 = load double, ptr %.6208247.prol, align 8, !tbaa !5
  %235 = getelementptr inbounds i8, ptr %.1201248.prol, i64 8
  %236 = load double, ptr %.1201248.prol, align 8, !tbaa !5
  %237 = tail call double @llvm.fmuladd.f64(double %231, double %234, double %236)
  store double %237, ptr %.1201248.prol, align 8, !tbaa !5
  %238 = add nuw nsw i32 %.6249.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter411
  br i1 %prol.iter.cmp.not, label %scalar.ph347.prol.loopexit, label %scalar.ph347.prol, !llvm.loop !23

scalar.ph347.prol.loopexit:                       ; preds = %scalar.ph347.prol, %scalar.ph347.preheader
  %.6249.unr = phi i32 [ %.6249.ph, %scalar.ph347.preheader ], [ %238, %scalar.ph347.prol ]
  %.1201248.unr = phi ptr [ %.1201248.ph, %scalar.ph347.preheader ], [ %235, %scalar.ph347.prol ]
  %.6208247.unr = phi ptr [ %.6208247.ph, %scalar.ph347.preheader ], [ %233, %scalar.ph347.prol ]
  %239 = sub i32 %.6249.ph, %smax410
  %240 = icmp ugt i32 %239, -4
  br i1 %240, label %._crit_edge251, label %scalar.ph347

vector.memcheck:                                  ; preds = %.lr.ph250
  %bound0 = icmp ult ptr %scevgep, %scevgep344
  %bound1 = icmp ult ptr %gep443, %scevgep341
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph347.preheader, label %vector.ph349

vector.ph349:                                     ; preds = %vector.memcheck
  %ind.end355 = getelementptr i8, ptr %224, i64 %221
  %broadcast.splatinsert371 = insertelement <2 x double> poison, double %231, i64 0
  %broadcast.splat372 = shufflevector <2 x double> %broadcast.splatinsert371, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body359

vector.body359:                                   ; preds = %vector.body359, %vector.ph349
  %index360 = phi i64 [ 0, %vector.ph349 ], [ %index.next373, %vector.body359 ]
  %offset.idx361 = shl i64 %index360, 3
  %next.gep362 = getelementptr i8, ptr %224, i64 %offset.idx361
  %offset.idx364 = shl i64 %index360, 3
  %next.gep365 = getelementptr i8, ptr %183, i64 %offset.idx364
  %241 = getelementptr i8, ptr %next.gep365, i64 16
  %wide.load367 = load <2 x double>, ptr %next.gep365, align 8, !tbaa !5, !alias.scope !24
  %wide.load368 = load <2 x double>, ptr %241, align 8, !tbaa !5, !alias.scope !24
  %242 = getelementptr i8, ptr %next.gep362, i64 16
  %wide.load369 = load <2 x double>, ptr %next.gep362, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %wide.load370 = load <2 x double>, ptr %242, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %243 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat372, <2 x double> %wide.load367, <2 x double> %wide.load369)
  %244 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat372, <2 x double> %wide.load368, <2 x double> %wide.load370)
  store <2 x double> %243, ptr %next.gep362, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  store <2 x double> %244, ptr %242, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %index.next373 = add nuw i64 %index360, 4
  %245 = icmp eq i64 %index.next373, %n.vec351
  br i1 %245, label %middle.block346, label %vector.body359, !llvm.loop !29

middle.block346:                                  ; preds = %vector.body359
  br i1 %cmp.n374, label %._crit_edge251, label %scalar.ph347.preheader

.lr.ph245:                                        ; preds = %.lr.ph245.preheader, %.lr.ph245
  %.1190242 = phi double [ %265, %.lr.ph245 ], [ 0.000000e+00, %.lr.ph245.preheader ]
  %.0200241 = phi ptr [ %263, %.lr.ph245 ], [ %224, %.lr.ph245.preheader ]
  %.5207240 = phi ptr [ %261, %.lr.ph245 ], [ %183, %.lr.ph245.preheader ]
  %niter409 = phi i32 [ %niter409.next.3, %.lr.ph245 ], [ 0, %.lr.ph245.preheader ]
  %246 = getelementptr inbounds i8, ptr %.5207240, i64 8
  %247 = load double, ptr %.5207240, align 8, !tbaa !5
  %248 = getelementptr inbounds i8, ptr %.0200241, i64 8
  %249 = load double, ptr %.0200241, align 8, !tbaa !5
  %250 = tail call double @llvm.fmuladd.f64(double %247, double %249, double %.1190242)
  %251 = getelementptr inbounds i8, ptr %.5207240, i64 16
  %252 = load double, ptr %246, align 8, !tbaa !5
  %253 = getelementptr inbounds i8, ptr %.0200241, i64 16
  %254 = load double, ptr %248, align 8, !tbaa !5
  %255 = tail call double @llvm.fmuladd.f64(double %252, double %254, double %250)
  %256 = getelementptr inbounds i8, ptr %.5207240, i64 24
  %257 = load double, ptr %251, align 8, !tbaa !5
  %258 = getelementptr inbounds i8, ptr %.0200241, i64 24
  %259 = load double, ptr %253, align 8, !tbaa !5
  %260 = tail call double @llvm.fmuladd.f64(double %257, double %259, double %255)
  %261 = getelementptr inbounds i8, ptr %.5207240, i64 32
  %262 = load double, ptr %256, align 8, !tbaa !5
  %263 = getelementptr inbounds i8, ptr %.0200241, i64 32
  %264 = load double, ptr %258, align 8, !tbaa !5
  %265 = tail call double @llvm.fmuladd.f64(double %262, double %264, double %260)
  %niter409.next.3 = add i32 %niter409, 4
  %niter409.ncmp.3 = icmp eq i32 %niter409.next.3, %unroll_iter408
  br i1 %niter409.ncmp.3, label %.lr.ph250.unr-lcssa, label %.lr.ph245, !llvm.loop !32

scalar.ph347:                                     ; preds = %scalar.ph347.prol.loopexit, %scalar.ph347
  %.6249 = phi i32 [ %286, %scalar.ph347 ], [ %.6249.unr, %scalar.ph347.prol.loopexit ]
  %.1201248 = phi ptr [ %283, %scalar.ph347 ], [ %.1201248.unr, %scalar.ph347.prol.loopexit ]
  %.6208247 = phi ptr [ %281, %scalar.ph347 ], [ %.6208247.unr, %scalar.ph347.prol.loopexit ]
  %266 = getelementptr inbounds i8, ptr %.6208247, i64 8
  %267 = load double, ptr %.6208247, align 8, !tbaa !5
  %268 = getelementptr inbounds i8, ptr %.1201248, i64 8
  %269 = load double, ptr %.1201248, align 8, !tbaa !5
  %270 = tail call double @llvm.fmuladd.f64(double %231, double %267, double %269)
  store double %270, ptr %.1201248, align 8, !tbaa !5
  %271 = getelementptr inbounds i8, ptr %.6208247, i64 16
  %272 = load double, ptr %266, align 8, !tbaa !5
  %273 = getelementptr inbounds i8, ptr %.1201248, i64 16
  %274 = load double, ptr %268, align 8, !tbaa !5
  %275 = tail call double @llvm.fmuladd.f64(double %231, double %272, double %274)
  store double %275, ptr %268, align 8, !tbaa !5
  %276 = getelementptr inbounds i8, ptr %.6208247, i64 24
  %277 = load double, ptr %271, align 8, !tbaa !5
  %278 = getelementptr inbounds i8, ptr %.1201248, i64 24
  %279 = load double, ptr %273, align 8, !tbaa !5
  %280 = tail call double @llvm.fmuladd.f64(double %231, double %277, double %279)
  store double %280, ptr %273, align 8, !tbaa !5
  %281 = getelementptr inbounds i8, ptr %.6208247, i64 32
  %282 = load double, ptr %276, align 8, !tbaa !5
  %283 = getelementptr inbounds i8, ptr %.1201248, i64 32
  %284 = load double, ptr %278, align 8, !tbaa !5
  %285 = tail call double @llvm.fmuladd.f64(double %231, double %282, double %284)
  store double %285, ptr %278, align 8, !tbaa !5
  %286 = add nuw nsw i32 %.6249, 4
  %exitcond309.not.3 = icmp eq i32 %286, %smax308
  br i1 %exitcond309.not.3, label %._crit_edge251, label %scalar.ph347, !llvm.loop !33

._crit_edge251:                                   ; preds = %scalar.ph347.prol.loopexit, %scalar.ph347, %middle.block346
  %indvars.iv.next311 = add nuw nsw i64 %indvars.iv310, %14
  %sext = shl i64 %indvars.iv.next311, 32
  %287 = ashr exact i64 %sext, 32
  %288 = icmp slt i64 %287, %215
  %indvar.next = add i64 %indvar, 1
  br i1 %288, label %.lr.ph245.preheader, label %.lr.ph259.preheader, !llvm.loop !34

.lr.ph259.preheader:                              ; preds = %._crit_edge251, %202
  %289 = getelementptr inbounds i8, ptr %.0198261, i64 16
  %min.iters.check = icmp slt i32 %61, 5
  br i1 %min.iters.check, label %.lr.ph259.preheader375, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph259.preheader
  %n.vec = and i64 %63, 2147483644
  %.cast = trunc nuw nsw i64 %n.vec to i32
  %ind.end = or disjoint i32 %.cast, 1
  %290 = shl nuw nsw i64 %n.vec, 3
  %ind.end336 = getelementptr i8, ptr %289, i64 %290
  %broadcast.splatinsert = insertelement <2 x double> poison, double %213, 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 ]
  %offset.idx = shl i64 %index, 3
  %next.gep = getelementptr i8, ptr %289, i64 %offset.idx
  %291 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <2 x double>, ptr %next.gep, align 8, !tbaa !5
  %wide.load339 = load <2 x double>, ptr %291, align 8, !tbaa !5
  %292 = fmul <2 x double> %broadcast.splat, %wide.load
  %293 = fmul <2 x double> %broadcast.splat, %wide.load339
  store <2 x double> %292, ptr %next.gep, align 8, !tbaa !5
  store <2 x double> %293, ptr %291, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %294 = icmp eq i64 %index.next, %n.vec
  br i1 %294, label %middle.block, label %vector.body, !llvm.loop !35

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %63
  br i1 %cmp.n, label %.loopexit214, label %.lr.ph259.preheader375

.lr.ph259.preheader375:                           ; preds = %middle.block, %.lr.ph259.preheader
  %.7257.ph = phi i32 [ 1, %.lr.ph259.preheader ], [ %ind.end, %middle.block ]
  %.7209256.ph = phi ptr [ %289, %.lr.ph259.preheader ], [ %ind.end336, %middle.block ]
  br label %.lr.ph259

.lr.ph259:                                        ; preds = %.lr.ph259.preheader375, %.lr.ph259
  %.7257 = phi i32 [ %298, %.lr.ph259 ], [ %.7257.ph, %.lr.ph259.preheader375 ]
  %.7209256 = phi ptr [ %295, %.lr.ph259 ], [ %.7209256.ph, %.lr.ph259.preheader375 ]
  %295 = getelementptr inbounds i8, ptr %.7209256, i64 8
  %296 = load double, ptr %.7209256, align 8, !tbaa !5
  %297 = fmul double %213, %296
  store double %297, ptr %.7209256, align 8, !tbaa !5
  %298 = add nuw nsw i32 %.7257, 1
  %exitcond314.not = icmp eq i32 %298, %smax313
  br i1 %exitcond314.not, label %.loopexit214, label %.lr.ph259, !llvm.loop !36

.loopexit214:                                     ; preds = %.lr.ph259, %middle.block, %._crit_edge238
  %.3194 = phi double [ 0.000000e+00, %._crit_edge238 ], [ %.2193, %middle.block ], [ %.2193, %.lr.ph259 ]
  %.1188 = phi double [ 0.000000e+00, %._crit_edge238 ], [ %209, %middle.block ], [ %209, %.lr.ph259 ]
  store double %.1188, ptr %183, align 8, !tbaa !5
  %299 = fneg double %.3194
  %300 = getelementptr inbounds double, ptr %12, i64 %indvars.iv317
  store double %299, ptr %300, align 8, !tbaa !5
  br label %301

301:                                              ; preds = %.loopexit214, %182
  %302 = icmp eq i32 %.0270, 1
  br i1 %302, label %303, label %306

303:                                              ; preds = %301
  %304 = load double, ptr %183, align 8, !tbaa !5
  %305 = getelementptr inbounds double, ptr %12, i64 %indvars.iv317
  store double %304, ptr %305, align 8, !tbaa !5
  br label %306

306:                                              ; preds = %301, %303
  %indvars.iv.next318 = add nuw nsw i64 %indvars.iv317, 1
  %indvars.iv.next316 = add nsw i64 %indvars.iv315, -1
  %307 = getelementptr inbounds double, ptr %.0198261, i64 %16
  %exitcond323.not = icmp eq i64 %indvars.iv.next318, %14
  br i1 %exitcond323.not, label %._crit_edge273, label %28, !llvm.loop !37

._crit_edge273:                                   ; preds = %306
  tail call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %1, ptr noundef %3, i32 noundef %4)
  tail call void @_ZN9MathTools5atou1EPdii(ptr noundef %1, i32 noundef %2, i32 noundef %4)
  %308 = tail call noundef i32 @_ZN9MathTools6qrbdu1EPdS0_S0_iS0_i(ptr noundef %0, ptr noundef %12, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4)
  br i1 %13, label %.lr.ph280, label %._crit_edge281

.lr.ph280:                                        ; preds = %._crit_edge273
  %309 = zext nneg i32 %4 to i64
  %xtraiter414 = and i32 %4, 3
  %310 = icmp ult i32 %4, 4
  %unroll_iter417 = and i32 %4, 2147483644
  %lcmp.mod416.not = icmp eq i32 %xtraiter414, 0
  br label %311

311:                                              ; preds = %..loopexit_crit_edge.us, %.lr.ph280
  %indvars.iv325 = phi i64 [ %indvars.iv.next326, %..loopexit_crit_edge.us ], [ 0, %.lr.ph280 ]
  %312 = getelementptr inbounds double, ptr %0, i64 %indvars.iv325
  %313 = load double, ptr %312, align 8, !tbaa !5
  %314 = fcmp olt double %313, 0.000000e+00
  br i1 %314, label %.lr.ph277.us, label %..loopexit_crit_edge.us

.lr.ph277.us:                                     ; preds = %311
  %315 = fneg double %313
  store double %315, ptr %312, align 8, !tbaa !5
  %316 = getelementptr inbounds double, ptr %3, i64 %indvars.iv325
  br i1 %310, label %..loopexit_crit_edge.us.loopexit.unr-lcssa, label %.lr.ph277.us.new

..loopexit_crit_edge.us.loopexit.unr-lcssa:       ; preds = %.lr.ph277.us.new, %.lr.ph277.us
  %.1199274.us.unr = phi ptr [ %316, %.lr.ph277.us ], [ %331, %.lr.ph277.us.new ]
  br i1 %lcmp.mod416.not, label %..loopexit_crit_edge.us, label %.epil.preheader413

.epil.preheader413:                               ; preds = %..loopexit_crit_edge.us.loopexit.unr-lcssa, %.epil.preheader413
  %.1199274.us.epil = phi ptr [ %319, %.epil.preheader413 ], [ %.1199274.us.unr, %..loopexit_crit_edge.us.loopexit.unr-lcssa ]
  %epil.iter415 = phi i32 [ %epil.iter415.next, %.epil.preheader413 ], [ 0, %..loopexit_crit_edge.us.loopexit.unr-lcssa ]
  %317 = load double, ptr %.1199274.us.epil, align 8, !tbaa !5
  %318 = fneg double %317
  store double %318, ptr %.1199274.us.epil, align 8, !tbaa !5
  %319 = getelementptr inbounds double, ptr %.1199274.us.epil, i64 %309
  %epil.iter415.next = add i32 %epil.iter415, 1
  %epil.iter415.cmp.not = icmp eq i32 %epil.iter415.next, %xtraiter414
  br i1 %epil.iter415.cmp.not, label %..loopexit_crit_edge.us, label %.epil.preheader413, !llvm.loop !38

..loopexit_crit_edge.us:                          ; preds = %..loopexit_crit_edge.us.loopexit.unr-lcssa, %.epil.preheader413, %311
  %indvars.iv.next326 = add nuw nsw i64 %indvars.iv325, 1
  %exitcond329.not = icmp eq i64 %indvars.iv.next326, %309
  br i1 %exitcond329.not, label %._crit_edge281, label %311, !llvm.loop !39

.lr.ph277.us.new:                                 ; preds = %.lr.ph277.us, %.lr.ph277.us.new
  %.1199274.us = phi ptr [ %331, %.lr.ph277.us.new ], [ %316, %.lr.ph277.us ]
  %niter418 = phi i32 [ %niter418.next.3, %.lr.ph277.us.new ], [ 0, %.lr.ph277.us ]
  %320 = load double, ptr %.1199274.us, align 8, !tbaa !5
  %321 = fneg double %320
  store double %321, ptr %.1199274.us, align 8, !tbaa !5
  %322 = getelementptr inbounds double, ptr %.1199274.us, i64 %309
  %323 = load double, ptr %322, align 8, !tbaa !5
  %324 = fneg double %323
  store double %324, ptr %322, align 8, !tbaa !5
  %325 = getelementptr inbounds double, ptr %322, i64 %309
  %326 = load double, ptr %325, align 8, !tbaa !5
  %327 = fneg double %326
  store double %327, ptr %325, align 8, !tbaa !5
  %328 = getelementptr inbounds double, ptr %325, i64 %309
  %329 = load double, ptr %328, align 8, !tbaa !5
  %330 = fneg double %329
  store double %330, ptr %328, align 8, !tbaa !5
  %331 = getelementptr inbounds double, ptr %328, i64 %309
  %niter418.next.3 = add i32 %niter418, 4
  %niter418.ncmp.3 = icmp eq i32 %niter418.next.3, %unroll_iter417
  br i1 %niter418.ncmp.3, label %..loopexit_crit_edge.us.loopexit.unr-lcssa, label %.lr.ph277.us.new, !llvm.loop !40

._crit_edge281.critedge:                          ; preds = %7
  tail call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %1, ptr noundef %3, i32 noundef %4)
  tail call void @_ZN9MathTools5atou1EPdii(ptr noundef %1, i32 noundef %2, i32 noundef %4)
  %332 = tail call noundef i32 @_ZN9MathTools6qrbdu1EPdS0_S0_iS0_i(ptr noundef %0, ptr noundef %12, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4)
  br label %._crit_edge281

._crit_edge281:                                   ; preds = %..loopexit_crit_edge.us, %._crit_edge281.critedge, %._crit_edge273
  tail call void @free(ptr noundef %10) #7
  br label %333

333:                                              ; preds = %5, %._crit_edge281
  %.0197 = phi i32 [ 0, %._crit_edge281 ], [ -1, %5 ]
  ret i32 %.0197
}

; 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress 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 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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind allocsize(0,1) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !10, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !10}
!33 = distinct !{!33, !10, !30}
!34 = distinct !{!34, !10}
!35 = distinct !{!35, !10, !30, !31}
!36 = distinct !{!36, !10, !31, !30}
!37 = distinct !{!37, !10}
!38 = distinct !{!38, !12}
!39 = distinct !{!39, !10}
!40 = distinct !{!40, !10}


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