; LLVM IR from rdguez-mariano/fast_imas_IPOL :: libUSAC/utils/MathFunctions.ll (ZN9MathTools5svduvEPdS0_S0_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

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

35:                                               ; preds = %6
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %31, align 4
  br label %449

36:                                               ; preds = %6
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = add nsw i32 %37, %38
  %40 = sext i32 %39 to i64
  %41 = call noalias ptr @calloc(i64 noundef %40, i64 noundef 8) #7
  store ptr %41, ptr %18, align 8, !tbaa !5
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %42, i64 %44
  store ptr %45, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %25, align 4, !tbaa !9
  %46 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %46, ptr %28, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = sub nsw i32 %47, 1
  store i32 %48, ptr %29, align 4, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %49, ptr %14, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %373, %36
  %51 = load i32, ptr %25, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %54, label %385

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

57:                                               ; preds = %54
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %58, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  br label %59

59:                                               ; preds = %76, %57
  %60 = load i32, ptr %26, align 4, !tbaa !9
  %61 = load i32, ptr %28, align 4, !tbaa !9
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %83

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

76:                                               ; preds = %63
  %77 = load i32, ptr %26, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %26, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = sext i32 %79 to i64
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  store ptr %82, ptr %16, align 8, !tbaa !5
  br label %59, !llvm.loop !13

83:                                               ; preds = %59
  %84 = load double, ptr %20, align 8, !tbaa !11
  %85 = fcmp ogt double %84, 0.000000e+00
  br i1 %85, label %86, label %200

86:                                               ; preds = %83
  %87 = load double, ptr %20, align 8, !tbaa !11
  %88 = call double @sqrt(double noundef %87) #6
  store double %88, ptr %21, align 8, !tbaa !11
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = load double, ptr %89, align 8, !tbaa !11
  %91 = fcmp olt double %90, 0.000000e+00
  br i1 %91, label %92, label %95

92:                                               ; preds = %86
  %93 = load double, ptr %21, align 8, !tbaa !11
  %94 = fneg double %93
  store double %94, ptr %21, align 8, !tbaa !11
  br label %95

95:                                               ; preds = %92, %86
  %96 = load ptr, ptr %14, align 8, !tbaa !5
  %97 = load double, ptr %96, align 8, !tbaa !11
  %98 = load double, ptr %21, align 8, !tbaa !11
  %99 = load double, ptr %20, align 8, !tbaa !11
  %100 = call double @llvm.fmuladd.f64(double %97, double %98, double %99)
  store double %100, ptr %20, align 8, !tbaa !11
  %101 = load double, ptr %20, align 8, !tbaa !11
  %102 = fdiv double 1.000000e+00, %101
  store double %102, ptr %20, align 8, !tbaa !11
  %103 = load double, ptr %21, align 8, !tbaa !11
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = getelementptr inbounds double, ptr %104, i64 0
  %106 = load double, ptr %105, align 8, !tbaa !11
  %107 = fadd double %106, %103
  store double %107, ptr %105, align 8, !tbaa !11
  %108 = fdiv double 1.000000e+00, %107
  store double %108, ptr %23, align 8, !tbaa !11
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load double, ptr %21, align 8, !tbaa !11
  %112 = fdiv double %110, %111
  %113 = call double @llvm.fabs.f64(double %112)
  %114 = fadd double 1.000000e+00, %113
  store double %114, ptr %24, align 8, !tbaa !11
  store i32 1, ptr %27, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %25, align 4, !tbaa !9
  %117 = sub nsw i32 %115, %116
  store i32 %117, ptr %30, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %177, %95
  %119 = load i32, ptr %27, align 4, !tbaa !9
  %120 = load i32, ptr %30, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %122, label %180

122:                                              ; preds = %118
  store i32 0, ptr %26, align 4, !tbaa !9
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load i32, ptr %27, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store ptr %126, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %142, %122
  %128 = load i32, ptr %26, align 4, !tbaa !9
  %129 = load i32, ptr %28, align 4, !tbaa !9
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %131, label %147

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

142:                                              ; preds = %131
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = sext i32 %143 to i64
  %146 = getelementptr inbounds double, ptr %144, i64 %145
  store ptr %146, ptr %16, align 8, !tbaa !5
  br label %127, !llvm.loop !15

147:                                              ; preds = %127
  %148 = load double, ptr %20, align 8, !tbaa !11
  %149 = load double, ptr %22, align 8, !tbaa !11
  %150 = fmul double %149, %148
  store double %150, ptr %22, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  store ptr %154, ptr %16, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %171, %147
  %156 = load i32, ptr %26, align 4, !tbaa !9
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = icmp slt i32 %156, %157
  br i1 %158, label %159, label %176

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

171:                                              ; preds = %159
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = sext i32 %172 to i64
  %175 = getelementptr inbounds double, ptr %173, i64 %174
  store ptr %175, ptr %16, align 8, !tbaa !5
  br label %155, !llvm.loop !16

176:                                              ; preds = %155
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %27, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %27, align 4, !tbaa !9
  br label %118, !llvm.loop !17

180:                                              ; preds = %118
  store i32 1, ptr %26, align 4, !tbaa !9
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %181, ptr %16, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %186, %180
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = load i32, ptr %28, align 4, !tbaa !9
  %185 = icmp slt i32 %183, %184
  br i1 %185, label %186, label %199

186:                                              ; preds = %182
  %187 = load double, ptr %23, align 8, !tbaa !11
  %188 = load ptr, ptr %18, align 8, !tbaa !5
  %189 = load i32, ptr %26, align 4, !tbaa !9
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %26, align 4, !tbaa !9
  %191 = sext i32 %189 to i64
  %192 = getelementptr inbounds double, ptr %188, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !11
  %194 = fmul double %187, %193
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = sext i32 %195 to i64
  %198 = getelementptr inbounds double, ptr %196, i64 %197
  store ptr %198, ptr %16, align 8, !tbaa !5
  store double %194, ptr %198, align 8, !tbaa !11
  br label %182, !llvm.loop !18

199:                                              ; preds = %182
  br label %200

200:                                              ; preds = %199, %83
  %201 = load double, ptr %24, align 8, !tbaa !11
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  store double %201, ptr %202, align 8, !tbaa !11
  %203 = load double, ptr %21, align 8, !tbaa !11
  %204 = fneg double %203
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = load i32, ptr %25, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds double, ptr %205, i64 %207
  store double %204, ptr %208, align 8, !tbaa !11
  br label %209

209:                                              ; preds = %200, %54
  %210 = load i32, ptr %28, align 4, !tbaa !9
  %211 = icmp eq i32 %210, 1
  br i1 %211, label %212, label %219

212:                                              ; preds = %209
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = load double, ptr %213, align 8, !tbaa !11
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = load i32, ptr %25, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds double, ptr %215, i64 %217
  store double %214, ptr %218, align 8, !tbaa !11
  br label %219

219:                                              ; preds = %212, %209
  %220 = load ptr, ptr %14, align 8, !tbaa !5
  %221 = getelementptr inbounds double, ptr %220, i64 1
  store ptr %221, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  %222 = load i32, ptr %29, align 4, !tbaa !9
  %223 = icmp sgt i32 %222, 1
  br i1 %223, label %224, label %362

224:                                              ; preds = %219
  store i32 0, ptr %26, align 4, !tbaa !9
  %225 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %225, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %20, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %237, %224
  %227 = load i32, ptr %26, align 4, !tbaa !9
  %228 = load i32, ptr %29, align 4, !tbaa !9
  %229 = icmp slt i32 %227, %228
  br i1 %229, label %230, label %242

230:                                              ; preds = %226
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = load ptr, ptr %16, align 8, !tbaa !5
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = load double, ptr %20, align 8, !tbaa !11
  %236 = call double @llvm.fmuladd.f64(double %232, double %234, double %235)
  store double %236, ptr %20, align 8, !tbaa !11
  br label %237

237:                                              ; preds = %230
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %26, align 4, !tbaa !9
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = getelementptr inbounds double, ptr %240, i32 1
  store ptr %241, ptr %16, align 8, !tbaa !5
  br label %226, !llvm.loop !19

242:                                              ; preds = %226
  %243 = load double, ptr %20, align 8, !tbaa !11
  %244 = fcmp ogt double %243, 0.000000e+00
  br i1 %244, label %245, label %353

245:                                              ; preds = %242
  %246 = load double, ptr %20, align 8, !tbaa !11
  %247 = call double @sqrt(double noundef %246) #6
  store double %247, ptr %21, align 8, !tbaa !11
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = fcmp olt double %249, 0.000000e+00
  br i1 %250, label %251, label %254

251:                                              ; preds = %245
  %252 = load double, ptr %21, align 8, !tbaa !11
  %253 = fneg double %252
  store double %253, ptr %21, align 8, !tbaa !11
  br label %254

254:                                              ; preds = %251, %245
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = load double, ptr %255, align 8, !tbaa !11
  %257 = load double, ptr %21, align 8, !tbaa !11
  %258 = fdiv double %256, %257
  %259 = call double @llvm.fabs.f64(double %258)
  %260 = fadd double 1.000000e+00, %259
  store double %260, ptr %24, align 8, !tbaa !11
  %261 = load ptr, ptr %15, align 8, !tbaa !5
  %262 = load double, ptr %261, align 8, !tbaa !11
  %263 = load double, ptr %21, align 8, !tbaa !11
  %264 = load double, ptr %20, align 8, !tbaa !11
  %265 = call double @llvm.fmuladd.f64(double %262, double %263, double %264)
  store double %265, ptr %20, align 8, !tbaa !11
  %266 = load double, ptr %20, align 8, !tbaa !11
  %267 = fdiv double 1.000000e+00, %266
  store double %267, ptr %20, align 8, !tbaa !11
  %268 = load double, ptr %21, align 8, !tbaa !11
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  %270 = load double, ptr %269, align 8, !tbaa !11
  %271 = fadd double %270, %268
  store double %271, ptr %269, align 8, !tbaa !11
  %272 = fdiv double 1.000000e+00, %271
  store double %272, ptr %23, align 8, !tbaa !11
  %273 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %273, ptr %27, align 4, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %25, align 4, !tbaa !9
  %277 = sub nsw i32 %275, %276
  %278 = mul nsw i32 %274, %277
  store i32 %278, ptr %30, align 4, !tbaa !9
  br label %279

279:                                              ; preds = %332, %254
  %280 = load i32, ptr %27, align 4, !tbaa !9
  %281 = load i32, ptr %30, align 4, !tbaa !9
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %283, label %336

283:                                              ; preds = %279
  store i32 0, ptr %26, align 4, !tbaa !9
  %284 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %284, ptr %16, align 8, !tbaa !5
  %285 = load ptr, ptr %15, align 8, !tbaa !5
  %286 = load i32, ptr %27, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds double, ptr %285, i64 %287
  store ptr %288, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  br label %289

289:                                              ; preds = %302, %283
  %290 = load i32, ptr %26, align 4, !tbaa !9
  %291 = load i32, ptr %29, align 4, !tbaa !9
  %292 = icmp slt i32 %290, %291
  br i1 %292, label %293, label %305

293:                                              ; preds = %289
  %294 = load ptr, ptr %16, align 8, !tbaa !5
  %295 = getelementptr inbounds double, ptr %294, i32 1
  store ptr %295, ptr %16, align 8, !tbaa !5
  %296 = load double, ptr %294, align 8, !tbaa !11
  %297 = load ptr, ptr %17, align 8, !tbaa !5
  %298 = getelementptr inbounds double, ptr %297, i32 1
  store ptr %298, ptr %17, align 8, !tbaa !5
  %299 = load double, ptr %297, align 8, !tbaa !11
  %300 = load double, ptr %22, align 8, !tbaa !11
  %301 = call double @llvm.fmuladd.f64(double %296, double %299, double %300)
  store double %301, ptr %22, align 8, !tbaa !11
  br label %302

302:                                              ; preds = %293
  %303 = load i32, ptr %26, align 4, !tbaa !9
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %26, align 4, !tbaa !9
  br label %289, !llvm.loop !20

305:                                              ; preds = %289
  %306 = load double, ptr %20, align 8, !tbaa !11
  %307 = load double, ptr %22, align 8, !tbaa !11
  %308 = fmul double %307, %306
  store double %308, ptr %22, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %309 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %309, ptr %16, align 8, !tbaa !5
  %310 = load ptr, ptr %15, align 8, !tbaa !5
  %311 = load i32, ptr %27, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds double, ptr %310, i64 %312
  store ptr %313, ptr %17, align 8, !tbaa !5
  br label %314

314:                                              ; preds = %328, %305
  %315 = load i32, ptr %26, align 4, !tbaa !9
  %316 = load i32, ptr %29, align 4, !tbaa !9
  %317 = icmp slt i32 %315, %316
  br i1 %317, label %318, label %331

318:                                              ; preds = %314
  %319 = load double, ptr %22, align 8, !tbaa !11
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = getelementptr inbounds double, ptr %320, i32 1
  store ptr %321, ptr %16, align 8, !tbaa !5
  %322 = load double, ptr %320, align 8, !tbaa !11
  %323 = load ptr, ptr %17, align 8, !tbaa !5
  %324 = getelementptr inbounds double, ptr %323, i32 1
  store ptr %324, ptr %17, align 8, !tbaa !5
  %325 = load double, ptr %323, align 8, !tbaa !11
  %326 = fneg double %319
  %327 = call double @llvm.fmuladd.f64(double %326, double %322, double %325)
  store double %327, ptr %323, align 8, !tbaa !11
  br label %328

328:                                              ; preds = %318
  %329 = load i32, ptr %26, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %26, align 4, !tbaa !9
  br label %314, !llvm.loop !21

331:                                              ; preds = %314
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %13, align 4, !tbaa !9
  %334 = load i32, ptr %27, align 4, !tbaa !9
  %335 = add nsw i32 %334, %333
  store i32 %335, ptr %27, align 4, !tbaa !9
  br label %279, !llvm.loop !22

336:                                              ; preds = %279
  store i32 1, ptr %26, align 4, !tbaa !9
  %337 = load ptr, ptr %15, align 8, !tbaa !5
  %338 = getelementptr inbounds double, ptr %337, i64 1
  store ptr %338, ptr %16, align 8, !tbaa !5
  br label %339

339:                                              ; preds = %349, %336
  %340 = load i32, ptr %26, align 4, !tbaa !9
  %341 = load i32, ptr %29, align 4, !tbaa !9
  %342 = icmp slt i32 %340, %341
  br i1 %342, label %343, label %352

343:                                              ; preds = %339
  %344 = load double, ptr %23, align 8, !tbaa !11
  %345 = load ptr, ptr %16, align 8, !tbaa !5
  %346 = getelementptr inbounds double, ptr %345, i32 1
  store ptr %346, ptr %16, align 8, !tbaa !5
  %347 = load double, ptr %345, align 8, !tbaa !11
  %348 = fmul double %347, %344
  store double %348, ptr %345, align 8, !tbaa !11
  br label %349

349:                                              ; preds = %343
  %350 = load i32, ptr %26, align 4, !tbaa !9
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %26, align 4, !tbaa !9
  br label %339, !llvm.loop !23

352:                                              ; preds = %339
  br label %353

353:                                              ; preds = %352, %242
  %354 = load double, ptr %24, align 8, !tbaa !11
  %355 = load ptr, ptr %15, align 8, !tbaa !5
  store double %354, ptr %355, align 8, !tbaa !11
  %356 = load double, ptr %21, align 8, !tbaa !11
  %357 = fneg double %356
  %358 = load ptr, ptr %19, align 8, !tbaa !5
  %359 = load i32, ptr %25, align 4, !tbaa !9
  %360 = sext i32 %359 to i64
  %361 = getelementptr inbounds double, ptr %358, i64 %360
  store double %357, ptr %361, align 8, !tbaa !11
  br label %362

362:                                              ; preds = %353, %219
  %363 = load i32, ptr %29, align 4, !tbaa !9
  %364 = icmp eq i32 %363, 1
  br i1 %364, label %365, label %372

365:                                              ; preds = %362
  %366 = load ptr, ptr %15, align 8, !tbaa !5
  %367 = load double, ptr %366, align 8, !tbaa !11
  %368 = load ptr, ptr %19, align 8, !tbaa !5
  %369 = load i32, ptr %25, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds double, ptr %368, i64 %370
  store double %367, ptr %371, align 8, !tbaa !11
  br label %372

372:                                              ; preds = %365, %362
  br label %373

373:                                              ; preds = %372
  %374 = load i32, ptr %25, align 4, !tbaa !9
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr %25, align 4, !tbaa !9
  %376 = load i32, ptr %28, align 4, !tbaa !9
  %377 = add nsw i32 %376, -1
  store i32 %377, ptr %28, align 4, !tbaa !9
  %378 = load i32, ptr %29, align 4, !tbaa !9
  %379 = add nsw i32 %378, -1
  store i32 %379, ptr %29, align 4, !tbaa !9
  %380 = load i32, ptr %13, align 4, !tbaa !9
  %381 = add nsw i32 %380, 1
  %382 = load ptr, ptr %14, align 8, !tbaa !5
  %383 = sext i32 %381 to i64
  %384 = getelementptr inbounds double, ptr %382, i64 %383
  store ptr %384, ptr %14, align 8, !tbaa !5
  br label %50, !llvm.loop !24

385:                                              ; preds = %50
  %386 = load ptr, ptr %9, align 8, !tbaa !5
  %387 = load ptr, ptr %12, align 8, !tbaa !5
  %388 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %386, ptr noundef %387, i32 noundef %388)
  %389 = load ptr, ptr %9, align 8, !tbaa !5
  %390 = load ptr, ptr %10, align 8, !tbaa !5
  %391 = load i32, ptr %11, align 4, !tbaa !9
  %392 = load i32, ptr %13, align 4, !tbaa !9
  call void @_ZN9MathTools6ldumatEPdS0_ii(ptr noundef %389, ptr noundef %390, i32 noundef %391, i32 noundef %392)
  %393 = load ptr, ptr %8, align 8, !tbaa !5
  %394 = load ptr, ptr %19, align 8, !tbaa !5
  %395 = load ptr, ptr %10, align 8, !tbaa !5
  %396 = load i32, ptr %11, align 4, !tbaa !9
  %397 = load ptr, ptr %12, align 8, !tbaa !5
  %398 = load i32, ptr %13, align 4, !tbaa !9
  %399 = call noundef i32 @_ZN9MathTools5qrbdvEPdS0_S0_iS0_i(ptr noundef %393, ptr noundef %394, ptr noundef %395, i32 noundef %396, ptr noundef %397, i32 noundef %398)
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %400

400:                                              ; preds = %444, %385
  %401 = load i32, ptr %25, align 4, !tbaa !9
  %402 = load i32, ptr %13, align 4, !tbaa !9
  %403 = icmp slt i32 %401, %402
  br i1 %403, label %404, label %447

404:                                              ; preds = %400
  %405 = load ptr, ptr %8, align 8, !tbaa !5
  %406 = load i32, ptr %25, align 4, !tbaa !9
  %407 = sext i32 %406 to i64
  %408 = getelementptr inbounds double, ptr %405, i64 %407
  %409 = load double, ptr %408, align 8, !tbaa !11
  %410 = fcmp olt double %409, 0.000000e+00
  br i1 %410, label %411, label %443

411:                                              ; preds = %404
  %412 = load ptr, ptr %8, align 8, !tbaa !5
  %413 = load i32, ptr %25, align 4, !tbaa !9
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds double, ptr %412, i64 %414
  %416 = load double, ptr %415, align 8, !tbaa !11
  %417 = fneg double %416
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = load i32, ptr %25, align 4, !tbaa !9
  %420 = sext i32 %419 to i64
  %421 = getelementptr inbounds double, ptr %418, i64 %420
  store double %417, ptr %421, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %422 = load ptr, ptr %12, align 8, !tbaa !5
  %423 = load i32, ptr %25, align 4, !tbaa !9
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds double, ptr %422, i64 %424
  store ptr %425, ptr %14, align 8, !tbaa !5
  br label %426

426:                                              ; preds = %435, %411
  %427 = load i32, ptr %26, align 4, !tbaa !9
  %428 = load i32, ptr %13, align 4, !tbaa !9
  %429 = icmp slt i32 %427, %428
  br i1 %429, label %430, label %442

430:                                              ; preds = %426
  %431 = load ptr, ptr %14, align 8, !tbaa !5
  %432 = load double, ptr %431, align 8, !tbaa !11
  %433 = fneg double %432
  %434 = load ptr, ptr %14, align 8, !tbaa !5
  store double %433, ptr %434, align 8, !tbaa !11
  br label %435

435:                                              ; preds = %430
  %436 = load i32, ptr %26, align 4, !tbaa !9
  %437 = add nsw i32 %436, 1
  store i32 %437, ptr %26, align 4, !tbaa !9
  %438 = load i32, ptr %13, align 4, !tbaa !9
  %439 = load ptr, ptr %14, align 8, !tbaa !5
  %440 = sext i32 %438 to i64
  %441 = getelementptr inbounds double, ptr %439, i64 %440
  store ptr %441, ptr %14, align 8, !tbaa !5
  br label %426, !llvm.loop !25

442:                                              ; preds = %426
  br label %443

443:                                              ; preds = %442, %404
  br label %444

444:                                              ; preds = %443
  %445 = load i32, ptr %25, align 4, !tbaa !9
  %446 = add nsw i32 %445, 1
  store i32 %446, ptr %25, align 4, !tbaa !9
  br label %400, !llvm.loop !26

447:                                              ; preds = %400
  %448 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %448) #6
  store i32 0, ptr %7, align 4
  store i32 1, ptr %31, align 4
  br label %449

449:                                              ; preds = %447, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  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 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 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
  %450 = load i32, ptr %7, align 4
  ret i32 %450
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #0

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

; 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.fabs.f64(double) #1

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

; 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: mustprogress nounwind uwtable
define dso_local noundef range(i32 -1, 1) i32 @_ZN9MathTools5svduvEPdS0_S0_iS0_i(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = icmp slt i32 %3, %5
  br i1 %7, label %334, label %8

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

.lr.ph273:                                        ; preds = %8
  %15 = zext nneg i32 %5 to i64
  %16 = add nuw i32 %5, 1
  %17 = zext i32 %16 to i64
  %18 = zext nneg i32 %5 to i64
  %invariant.op = add nsw i64 %18, -1
  %19 = shl nuw nsw i64 %15, 3
  %20 = shl nuw nsw i64 %17, 3
  %21 = shl nuw nsw i64 %15, 3
  %22 = add nsw i32 %5, -1
  %23 = add nsw i32 %5, -1
  %24 = add nsw i32 %5, -2
  %invariant.gep443 = getelementptr i8, ptr %1, i64 8
  %invariant.gep445 = getelementptr i8, ptr %1, i64 16
  %invariant.gep = getelementptr inbounds i8, ptr %11, i64 8
  %invariant.gep439 = getelementptr inbounds i8, ptr %11, i64 16
  %invariant.gep441 = getelementptr inbounds i8, ptr %11, i64 24
  %25 = getelementptr i8, ptr %1, i64 %19
  %26 = getelementptr i8, ptr %25, i64 8
  %27 = getelementptr i8, ptr %1, i64 %19
  %28 = getelementptr i8, ptr %27, i64 16
  br label %29

29:                                               ; preds = %.lr.ph273, %307
  %indvars.iv318 = phi i64 [ 0, %.lr.ph273 ], [ %indvars.iv.next319, %307 ]
  %indvars.iv316 = phi i64 [ %12, %.lr.ph273 ], [ %indvars.iv.next317, %307 ]
  %indvars.iv305.in = phi i32 [ %5, %.lr.ph273 ], [ %indvars.iv305, %307 ]
  %.0.in270 = phi i32 [ %5, %.lr.ph273 ], [ %.0271, %307 ]
  %.0199262 = phi ptr [ %1, %.lr.ph273 ], [ %308, %307 ]
  %30 = trunc i64 %indvars.iv318 to i32
  %31 = sub i32 %23, %30
  %smax411 = tail call i32 @llvm.smax.i32(i32 %31, i32 1)
  %32 = trunc i64 %indvars.iv318 to i32
  %33 = sub i32 %23, %32
  %smax404 = tail call i32 @llvm.smax.i32(i32 %33, i32 1)
  %34 = trunc i64 %indvars.iv318 to i32
  %35 = sub i32 %23, %34
  %36 = trunc i64 %indvars.iv318 to i32
  %37 = sub i32 %24, %36
  %smax392 = tail call i64 @llvm.smax.i64(i64 %indvars.iv316, i64 2)
  %38 = add nsw i64 %smax392, -1
  %39 = add nsw i64 %smax392, -2
  %40 = trunc i64 %indvars.iv318 to i32
  %41 = sub i32 %3, %40
  %42 = zext i32 %41 to i64
  %43 = add nsw i64 %42, -1
  %44 = trunc i64 %indvars.iv318 to i32
  %45 = sub i32 %3, %44
  %46 = zext i32 %45 to i64
  %47 = add nsw i64 %46, -1
  %48 = trunc i64 %indvars.iv318 to i32
  %49 = sub i32 %3, %48
  %50 = zext i32 %49 to i64
  %51 = trunc i64 %indvars.iv318 to i32
  %52 = sub i32 %22, %51
  %smax346 = tail call i32 @llvm.smax.i32(i32 %52, i32 1)
  %53 = zext nneg i32 %smax346 to i64
  %54 = mul i64 %20, %indvars.iv318
  %55 = trunc i64 %indvars.iv318 to i32
  %56 = sub i32 %22, %55
  %smax341 = tail call i32 @llvm.smax.i32(i32 %56, i32 1)
  %57 = add nsw i32 %smax341, -1
  %58 = zext nneg i32 %57 to i64
  %59 = shl nuw nsw i64 %58, 3
  %gep444 = getelementptr i8, ptr %invariant.gep443, i64 %54
  %gep446 = getelementptr i8, ptr %invariant.gep445, i64 %54
  %scevgep345 = getelementptr i8, ptr %gep446, i64 %59
  %60 = trunc i64 %indvars.iv318 to i32
  %61 = xor i32 %60, -1
  %62 = add i32 %61, %5
  %smax = tail call i32 @llvm.smax.i32(i32 %62, i32 2)
  %63 = add nsw i32 %smax, -1
  %64 = zext nneg i32 %63 to i64
  %indvars.iv305 = add i32 %indvars.iv305.in, -1
  %smax314 = tail call i32 @llvm.smax.i32(i32 %indvars.iv305, i32 2)
  %smax309 = tail call i32 @llvm.smax.i32(i32 %indvars.iv305, i32 1)
  %.0271 = add nsw i32 %.0.in270, -1
  %65 = icmp sgt i64 %indvars.iv316, 1
  br i1 %65, label %.preheader219.preheader, label %178

.preheader219.preheader:                          ; preds = %29
  %66 = add nsw i64 %50, -1
  %xtraiter = and i64 %50, 3
  %67 = icmp ult i64 %66, 3
  br i1 %67, label %.unr-lcssa, label %.preheader219.preheader.new

.preheader219.preheader.new:                      ; preds = %.preheader219.preheader
  %unroll_iter = and i64 %50, 4294967292
  br label %.preheader219

.preheader219:                                    ; preds = %.preheader219, %.preheader219.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader219.preheader.new ], [ %indvars.iv.next.3, %.preheader219 ]
  %.0196221 = phi double [ 0.000000e+00, %.preheader219.preheader.new ], [ %82, %.preheader219 ]
  %.0203220 = phi ptr [ %.0199262, %.preheader219.preheader.new ], [ %83, %.preheader219 ]
  %niter = phi i64 [ 0, %.preheader219.preheader.new ], [ %niter.next.3, %.preheader219 ]
  %68 = load double, ptr %.0203220, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %11, i64 %indvars.iv
  store double %68, ptr %69, align 8, !tbaa !5
  %70 = tail call double @llvm.fmuladd.f64(double %68, double %68, double %.0196221)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %71 = getelementptr inbounds double, ptr %.0203220, i64 %15
  %72 = load double, ptr %71, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next
  store double %72, ptr %73, align 8, !tbaa !5
  %74 = tail call double @llvm.fmuladd.f64(double %72, double %72, double %70)
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %75 = getelementptr inbounds double, ptr %71, i64 %15
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next.1
  store double %76, ptr %77, align 8, !tbaa !5
  %78 = tail call double @llvm.fmuladd.f64(double %76, double %76, double %74)
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %79 = getelementptr inbounds double, ptr %75, i64 %15
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next.2
  store double %80, ptr %81, align 8, !tbaa !5
  %82 = tail call double @llvm.fmuladd.f64(double %80, double %80, double %78)
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %83 = getelementptr inbounds double, ptr %79, i64 %15
  %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 %.preheader219, !llvm.loop !9

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

.preheader219.epil:                               ; preds = %.unr-lcssa, %.preheader219.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.preheader219.epil ], [ %indvars.iv.unr, %.unr-lcssa ]
  %.0196221.epil = phi double [ %86, %.preheader219.epil ], [ %.0196221.unr, %.unr-lcssa ]
  %.0203220.epil = phi ptr [ %87, %.preheader219.epil ], [ %.0203220.unr, %.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader219.epil ], [ 0, %.unr-lcssa ]
  %84 = load double, ptr %.0203220.epil, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.epil
  store double %84, ptr %85, align 8, !tbaa !5
  %86 = tail call double @llvm.fmuladd.f64(double %84, double %84, double %.0196221.epil)
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %87 = getelementptr inbounds double, ptr %.0203220.epil, i64 %15
  %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 %.preheader219.epil, !llvm.loop !11

.epilog-lcssa:                                    ; preds = %.preheader219.epil, %.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %.unr-lcssa ], [ %86, %.preheader219.epil ]
  %88 = fcmp ogt double %.lcssa, 0.000000e+00
  br i1 %88, label %89, label %.loopexit218

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

.lr.ph231:                                        ; preds = %89
  %wide.trip.count300 = zext i32 %.0.in270 to i64
  %xtraiter381 = and i64 %46, 3
  %103 = icmp ult i64 %47, 3
  %unroll_iter385 = and i64 %46, 4294967292
  %lcmp.mod383.not = icmp eq i64 %xtraiter381, 0
  %xtraiter387 = and i64 %42, 3
  %104 = icmp ult i64 %43, 3
  %unroll_iter390 = and i64 %42, 4294967292
  %lcmp.mod389.not = icmp eq i64 %xtraiter387, 0
  br label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %._crit_edge, %.lr.ph231
  %indvars.iv297 = phi i64 [ 1, %.lr.ph231 ], [ %indvars.iv.next298, %._crit_edge ]
  %105 = getelementptr inbounds double, ptr %.0199262, i64 %indvars.iv297
  br i1 %103, label %.lr.ph228.unr-lcssa, label %.lr.ph

.lr.ph228.unr-lcssa:                              ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa377.ph = phi double [ poison, %.lr.ph.preheader ], [ %131, %.lr.ph ]
  %indvars.iv287.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next288.3, %.lr.ph ]
  %.0190224.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %131, %.lr.ph ]
  %.1204223.unr = phi ptr [ %105, %.lr.ph.preheader ], [ %132, %.lr.ph ]
  br i1 %lcmp.mod383.not, label %.lr.ph228, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph228.unr-lcssa, %.lr.ph.epil
  %indvars.iv287.epil = phi i64 [ %indvars.iv.next288.epil, %.lr.ph.epil ], [ %indvars.iv287.unr, %.lr.ph228.unr-lcssa ]
  %.0190224.epil = phi double [ %109, %.lr.ph.epil ], [ %.0190224.unr, %.lr.ph228.unr-lcssa ]
  %.1204223.epil = phi ptr [ %110, %.lr.ph.epil ], [ %.1204223.unr, %.lr.ph228.unr-lcssa ]
  %epil.iter382 = phi i64 [ %epil.iter382.next, %.lr.ph.epil ], [ 0, %.lr.ph228.unr-lcssa ]
  %indvars.iv.next288.epil = add nuw nsw i64 %indvars.iv287.epil, 1
  %106 = getelementptr inbounds double, ptr %11, i64 %indvars.iv287.epil
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = load double, ptr %.1204223.epil, align 8, !tbaa !5
  %109 = tail call double @llvm.fmuladd.f64(double %107, double %108, double %.0190224.epil)
  %110 = getelementptr inbounds double, ptr %.1204223.epil, i64 %15
  %epil.iter382.next = add i64 %epil.iter382, 1
  %epil.iter382.cmp.not = icmp eq i64 %epil.iter382.next, %xtraiter381
  br i1 %epil.iter382.cmp.not, label %.lr.ph228, label %.lr.ph.epil, !llvm.loop !13

.lr.ph228:                                        ; preds = %.lr.ph.epil, %.lr.ph228.unr-lcssa
  %.lcssa377 = phi double [ %.lcssa377.ph, %.lr.ph228.unr-lcssa ], [ %109, %.lr.ph.epil ]
  %111 = fneg double %.lcssa377
  %112 = fmul double %95, %111
  br i1 %104, label %._crit_edge.unr-lcssa, label %.lr.ph228.new

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv287 = phi i64 [ %indvars.iv.next288.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.0190224 = phi double [ %131, %.lr.ph ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.1204223 = phi ptr [ %132, %.lr.ph ], [ %105, %.lr.ph.preheader ]
  %niter386 = phi i64 [ %niter386.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %indvars.iv.next288 = or disjoint i64 %indvars.iv287, 1
  %113 = getelementptr inbounds double, ptr %11, i64 %indvars.iv287
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = load double, ptr %.1204223, align 8, !tbaa !5
  %116 = tail call double @llvm.fmuladd.f64(double %114, double %115, double %.0190224)
  %117 = getelementptr inbounds double, ptr %.1204223, i64 %15
  %indvars.iv.next288.1 = or disjoint i64 %indvars.iv287, 2
  %118 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next288
  %119 = load double, ptr %118, align 8, !tbaa !5
  %120 = load double, ptr %117, align 8, !tbaa !5
  %121 = tail call double @llvm.fmuladd.f64(double %119, double %120, double %116)
  %122 = getelementptr inbounds double, ptr %117, i64 %15
  %indvars.iv.next288.2 = or disjoint i64 %indvars.iv287, 3
  %123 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next288.1
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = load double, ptr %122, align 8, !tbaa !5
  %126 = tail call double @llvm.fmuladd.f64(double %124, double %125, double %121)
  %127 = getelementptr inbounds double, ptr %122, i64 %15
  %indvars.iv.next288.3 = add nuw nsw i64 %indvars.iv287, 4
  %128 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next288.2
  %129 = load double, ptr %128, align 8, !tbaa !5
  %130 = load double, ptr %127, align 8, !tbaa !5
  %131 = tail call double @llvm.fmuladd.f64(double %129, double %130, double %126)
  %132 = getelementptr inbounds double, ptr %127, i64 %15
  %niter386.next.3 = add i64 %niter386, 4
  %niter386.ncmp.3 = icmp eq i64 %niter386.next.3, %unroll_iter385
  br i1 %niter386.ncmp.3, label %.lr.ph228.unr-lcssa, label %.lr.ph, !llvm.loop !14

.lr.ph228.new:                                    ; preds = %.lr.ph228, %.lr.ph228.new
  %indvars.iv292 = phi i64 [ %indvars.iv.next293.3, %.lr.ph228.new ], [ 0, %.lr.ph228 ]
  %.2205226 = phi ptr [ %152, %.lr.ph228.new ], [ %105, %.lr.ph228 ]
  %niter391 = phi i64 [ %niter391.next.3, %.lr.ph228.new ], [ 0, %.lr.ph228 ]
  %indvars.iv.next293 = or disjoint i64 %indvars.iv292, 1
  %133 = getelementptr inbounds double, ptr %11, i64 %indvars.iv292
  %134 = load double, ptr %133, align 8, !tbaa !5
  %135 = load double, ptr %.2205226, align 8, !tbaa !5
  %136 = tail call double @llvm.fmuladd.f64(double %112, double %134, double %135)
  store double %136, ptr %.2205226, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %.2205226, i64 %15
  %indvars.iv.next293.1 = or disjoint i64 %indvars.iv292, 2
  %138 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next293
  %139 = load double, ptr %138, align 8, !tbaa !5
  %140 = load double, ptr %137, align 8, !tbaa !5
  %141 = tail call double @llvm.fmuladd.f64(double %112, double %139, double %140)
  store double %141, ptr %137, align 8, !tbaa !5
  %142 = getelementptr inbounds double, ptr %137, i64 %15
  %indvars.iv.next293.2 = or disjoint i64 %indvars.iv292, 3
  %143 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next293.1
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = load double, ptr %142, align 8, !tbaa !5
  %146 = tail call double @llvm.fmuladd.f64(double %112, double %144, double %145)
  store double %146, ptr %142, align 8, !tbaa !5
  %147 = getelementptr inbounds double, ptr %142, i64 %15
  %indvars.iv.next293.3 = add nuw nsw i64 %indvars.iv292, 4
  %148 = getelementptr inbounds double, ptr %11, i64 %indvars.iv.next293.2
  %149 = load double, ptr %148, align 8, !tbaa !5
  %150 = load double, ptr %147, align 8, !tbaa !5
  %151 = tail call double @llvm.fmuladd.f64(double %112, double %149, double %150)
  store double %151, ptr %147, align 8, !tbaa !5
  %152 = getelementptr inbounds double, ptr %147, i64 %15
  %niter391.next.3 = add i64 %niter391, 4
  %niter391.ncmp.3 = icmp eq i64 %niter391.next.3, %unroll_iter390
  br i1 %niter391.ncmp.3, label %._crit_edge.unr-lcssa, label %.lr.ph228.new, !llvm.loop !15

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph228.new, %.lr.ph228
  %indvars.iv292.unr = phi i64 [ 0, %.lr.ph228 ], [ %indvars.iv.next293.3, %.lr.ph228.new ]
  %.2205226.unr = phi ptr [ %105, %.lr.ph228 ], [ %152, %.lr.ph228.new ]
  br i1 %lcmp.mod389.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.unr-lcssa, %.epil.preheader
  %indvars.iv292.epil = phi i64 [ %indvars.iv.next293.epil, %.epil.preheader ], [ %indvars.iv292.unr, %._crit_edge.unr-lcssa ]
  %.2205226.epil = phi ptr [ %157, %.epil.preheader ], [ %.2205226.unr, %._crit_edge.unr-lcssa ]
  %epil.iter388 = phi i64 [ %epil.iter388.next, %.epil.preheader ], [ 0, %._crit_edge.unr-lcssa ]
  %indvars.iv.next293.epil = add nuw nsw i64 %indvars.iv292.epil, 1
  %153 = getelementptr inbounds double, ptr %11, i64 %indvars.iv292.epil
  %154 = load double, ptr %153, align 8, !tbaa !5
  %155 = load double, ptr %.2205226.epil, align 8, !tbaa !5
  %156 = tail call double @llvm.fmuladd.f64(double %112, double %154, double %155)
  store double %156, ptr %.2205226.epil, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %.2205226.epil, i64 %15
  %epil.iter388.next = add i64 %epil.iter388, 1
  %epil.iter388.cmp.not = icmp eq i64 %epil.iter388.next, %xtraiter387
  br i1 %epil.iter388.cmp.not, label %._crit_edge, label %.epil.preheader, !llvm.loop !16

._crit_edge:                                      ; preds = %.epil.preheader, %._crit_edge.unr-lcssa
  %indvars.iv.next298 = add nuw nsw i64 %indvars.iv297, 1
  %exitcond301.not = icmp eq i64 %indvars.iv.next298, %wide.trip.count300
  br i1 %exitcond301.not, label %.lr.ph234.preheader, label %.lr.ph.preheader, !llvm.loop !17

.lr.ph234.preheader:                              ; preds = %._crit_edge, %89
  %xtraiter393 = and i64 %38, 3
  %158 = icmp ult i64 %39, 3
  br i1 %158, label %.loopexit218.loopexit.unr-lcssa, label %.lr.ph234.preheader.new

.lr.ph234.preheader.new:                          ; preds = %.lr.ph234.preheader
  %unroll_iter396 = and i64 %38, -4
  br label %.lr.ph234

.lr.ph234:                                        ; preds = %.lr.ph234, %.lr.ph234.preheader.new
  %indvars.iv302 = phi i64 [ 1, %.lr.ph234.preheader.new ], [ %indvars.iv.next303.3, %.lr.ph234 ]
  %.3206232 = phi ptr [ %.0199262, %.lr.ph234.preheader.new ], [ %171, %.lr.ph234 ]
  %niter397 = phi i64 [ 0, %.lr.ph234.preheader.new ], [ %niter397.next.3, %.lr.ph234 ]
  %159 = getelementptr inbounds double, ptr %11, i64 %indvars.iv302
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = fmul double %98, %160
  %162 = getelementptr inbounds double, ptr %.3206232, i64 %15
  store double %161, ptr %162, align 8, !tbaa !5
  %gep = getelementptr inbounds double, ptr %invariant.gep, i64 %indvars.iv302
  %163 = load double, ptr %gep, align 8, !tbaa !5
  %164 = fmul double %98, %163
  %165 = getelementptr inbounds double, ptr %162, i64 %15
  store double %164, ptr %165, align 8, !tbaa !5
  %gep440 = getelementptr inbounds double, ptr %invariant.gep439, i64 %indvars.iv302
  %166 = load double, ptr %gep440, align 8, !tbaa !5
  %167 = fmul double %98, %166
  %168 = getelementptr inbounds double, ptr %165, i64 %15
  store double %167, ptr %168, align 8, !tbaa !5
  %indvars.iv.next303.3 = add nuw nsw i64 %indvars.iv302, 4
  %gep442 = getelementptr inbounds double, ptr %invariant.gep441, i64 %indvars.iv302
  %169 = load double, ptr %gep442, align 8, !tbaa !5
  %170 = fmul double %98, %169
  %171 = getelementptr inbounds double, ptr %168, i64 %15
  store double %170, ptr %171, align 8, !tbaa !5
  %niter397.next.3 = add i64 %niter397, 4
  %niter397.ncmp.3.not = icmp eq i64 %niter397.next.3, %unroll_iter396
  br i1 %niter397.ncmp.3.not, label %.loopexit218.loopexit.unr-lcssa, label %.lr.ph234, !llvm.loop !18

.loopexit218.loopexit.unr-lcssa:                  ; preds = %.lr.ph234, %.lr.ph234.preheader
  %indvars.iv302.unr = phi i64 [ 1, %.lr.ph234.preheader ], [ %indvars.iv.next303.3, %.lr.ph234 ]
  %.3206232.unr = phi ptr [ %.0199262, %.lr.ph234.preheader ], [ %171, %.lr.ph234 ]
  %lcmp.mod395.not = icmp eq i64 %xtraiter393, 0
  br i1 %lcmp.mod395.not, label %.loopexit218, label %.lr.ph234.epil

.lr.ph234.epil:                                   ; preds = %.loopexit218.loopexit.unr-lcssa, %.lr.ph234.epil
  %indvars.iv302.epil = phi i64 [ %indvars.iv.next303.epil, %.lr.ph234.epil ], [ %indvars.iv302.unr, %.loopexit218.loopexit.unr-lcssa ]
  %.3206232.epil = phi ptr [ %175, %.lr.ph234.epil ], [ %.3206232.unr, %.loopexit218.loopexit.unr-lcssa ]
  %epil.iter394 = phi i64 [ %epil.iter394.next, %.lr.ph234.epil ], [ 0, %.loopexit218.loopexit.unr-lcssa ]
  %indvars.iv.next303.epil = add nuw nsw i64 %indvars.iv302.epil, 1
  %172 = getelementptr inbounds double, ptr %11, i64 %indvars.iv302.epil
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = fmul double %98, %173
  %175 = getelementptr inbounds double, ptr %.3206232.epil, i64 %15
  store double %174, ptr %175, align 8, !tbaa !5
  %epil.iter394.next = add i64 %epil.iter394, 1
  %epil.iter394.cmp.not = icmp eq i64 %epil.iter394.next, %xtraiter393
  br i1 %epil.iter394.cmp.not, label %.loopexit218, label %.lr.ph234.epil, !llvm.loop !19

.loopexit218:                                     ; preds = %.loopexit218.loopexit.unr-lcssa, %.lr.ph234.epil, %.epilog-lcssa
  %.1193 = phi double [ 0.000000e+00, %.epilog-lcssa ], [ %.0192, %.lr.ph234.epil ], [ %.0192, %.loopexit218.loopexit.unr-lcssa ]
  %.0188 = phi double [ 0.000000e+00, %.epilog-lcssa ], [ %101, %.lr.ph234.epil ], [ %101, %.loopexit218.loopexit.unr-lcssa ]
  store double %.0188, ptr %.0199262, align 8, !tbaa !5
  %176 = fneg double %.1193
  %177 = getelementptr inbounds double, ptr %0, i64 %indvars.iv318
  store double %176, ptr %177, align 8, !tbaa !5
  br label %178

178:                                              ; preds = %.loopexit218, %29
  %179 = icmp eq i64 %indvars.iv316, 1
  br i1 %179, label %180, label %183

180:                                              ; preds = %178
  %181 = load double, ptr %.0199262, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %0, i64 %indvars.iv318
  store double %181, ptr %182, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %180, %178
  %184 = getelementptr inbounds i8, ptr %.0199262, i64 8
  %185 = icmp sgt i32 %.0.in270, 2
  br i1 %185, label %.lr.ph238.preheader, label %302

.lr.ph238.preheader:                              ; preds = %183
  %xtraiter398 = and i32 %35, 3
  %186 = icmp ult i32 %37, 3
  br i1 %186, label %._crit_edge239.unr-lcssa, label %.lr.ph238.preheader.new

.lr.ph238.preheader.new:                          ; preds = %.lr.ph238.preheader
  %unroll_iter402 = and i32 %35, -4
  br label %.lr.ph238

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

._crit_edge239.unr-lcssa:                         ; preds = %.lr.ph238, %.lr.ph238.preheader
  %.lcssa378.ph = phi double [ poison, %.lr.ph238.preheader ], [ %197, %.lr.ph238 ]
  %.1197236.unr = phi double [ 0.000000e+00, %.lr.ph238.preheader ], [ %197, %.lr.ph238 ]
  %.4207235.unr = phi ptr [ %184, %.lr.ph238.preheader ], [ %198, %.lr.ph238 ]
  %lcmp.mod400.not = icmp eq i32 %xtraiter398, 0
  br i1 %lcmp.mod400.not, label %._crit_edge239, label %.lr.ph238.epil

.lr.ph238.epil:                                   ; preds = %._crit_edge239.unr-lcssa, %.lr.ph238.epil
  %.1197236.epil = phi double [ %200, %.lr.ph238.epil ], [ %.1197236.unr, %._crit_edge239.unr-lcssa ]
  %.4207235.epil = phi ptr [ %201, %.lr.ph238.epil ], [ %.4207235.unr, %._crit_edge239.unr-lcssa ]
  %epil.iter399 = phi i32 [ %epil.iter399.next, %.lr.ph238.epil ], [ 0, %._crit_edge239.unr-lcssa ]
  %199 = load double, ptr %.4207235.epil, align 8, !tbaa !5
  %200 = tail call double @llvm.fmuladd.f64(double %199, double %199, double %.1197236.epil)
  %201 = getelementptr inbounds i8, ptr %.4207235.epil, i64 8
  %epil.iter399.next = add i32 %epil.iter399, 1
  %epil.iter399.cmp.not = icmp eq i32 %epil.iter399.next, %xtraiter398
  br i1 %epil.iter399.cmp.not, label %._crit_edge239, label %.lr.ph238.epil, !llvm.loop !21

._crit_edge239:                                   ; preds = %.lr.ph238.epil, %._crit_edge239.unr-lcssa
  %.lcssa378 = phi double [ %.lcssa378.ph, %._crit_edge239.unr-lcssa ], [ %200, %.lr.ph238.epil ]
  %202 = fcmp ogt double %.lcssa378, 0.000000e+00
  br i1 %202, label %203, label %.loopexit215

203:                                              ; preds = %._crit_edge239
  %204 = tail call double @sqrt(double noundef %.lcssa378) #7
  %205 = load double, ptr %184, align 8, !tbaa !5
  %206 = fcmp olt double %205, 0.000000e+00
  %207 = fneg double %204
  %.2194 = select i1 %206, double %207, double %204
  %208 = fdiv double %205, %.2194
  %209 = tail call double @llvm.fabs.f64(double %208)
  %210 = fadd double %209, 1.000000e+00
  %211 = tail call double @llvm.fmuladd.f64(double %205, double %.2194, double %.lcssa378)
  %212 = fdiv double 1.000000e+00, %211
  %213 = fadd double %205, %.2194
  store double %213, ptr %184, align 8, !tbaa !5
  %214 = fdiv double 1.000000e+00, %213
  %215 = sub nsw i64 %12, %indvars.iv318
  %216 = mul nsw i64 %215, %18
  %217 = icmp sgt i64 %216, %18
  br i1 %217, label %.lr.ph246.preheader.preheader, label %.lr.ph260.preheader

.lr.ph246.preheader.preheader:                    ; preds = %203
  %218 = getelementptr i8, ptr %26, i64 %54
  %219 = getelementptr i8, ptr %28, i64 %54
  %220 = getelementptr i8, ptr %219, i64 %59
  %xtraiter405 = and i32 %smax404, 3
  %221 = icmp slt i32 %33, 4
  %unroll_iter409 = and i32 %smax404, 2147483644
  %lcmp.mod407.not = icmp eq i32 %xtraiter405, 0
  %min.iters.check349 = icmp slt i32 %52, 4
  %n.vec352 = and i64 %53, 2147483644
  %ind.end354 = trunc nuw nsw i64 %n.vec352 to i32
  %222 = shl nuw nsw i64 %n.vec352, 3
  %223 = shl nuw nsw i64 %n.vec352, 3
  %ind.end358 = getelementptr i8, ptr %184, i64 %223
  %cmp.n375 = icmp eq i64 %n.vec352, %53
  br label %.lr.ph246.preheader

.lr.ph246.preheader:                              ; preds = %.lr.ph246.preheader.preheader, %._crit_edge252
  %indvar = phi i64 [ %indvar.next, %._crit_edge252 ], [ 0, %.lr.ph246.preheader.preheader ]
  %indvars.iv311 = phi i64 [ %indvars.iv.next312, %._crit_edge252 ], [ %15, %.lr.ph246.preheader.preheader ]
  %224 = mul i64 %21, %indvar
  %scevgep = getelementptr i8, ptr %218, i64 %224
  %scevgep342 = getelementptr i8, ptr %220, i64 %224
  %225 = getelementptr inbounds double, ptr %184, i64 %indvars.iv311
  br i1 %221, label %.lr.ph251.unr-lcssa, label %.lr.ph246

.lr.ph251.unr-lcssa:                              ; preds = %.lr.ph246, %.lr.ph246.preheader
  %.lcssa379.ph = phi double [ poison, %.lr.ph246.preheader ], [ %266, %.lr.ph246 ]
  %.1191243.unr = phi double [ 0.000000e+00, %.lr.ph246.preheader ], [ %266, %.lr.ph246 ]
  %.0201242.unr = phi ptr [ %225, %.lr.ph246.preheader ], [ %264, %.lr.ph246 ]
  %.5208241.unr = phi ptr [ %184, %.lr.ph246.preheader ], [ %262, %.lr.ph246 ]
  br i1 %lcmp.mod407.not, label %.lr.ph251, label %.lr.ph246.epil

.lr.ph246.epil:                                   ; preds = %.lr.ph251.unr-lcssa, %.lr.ph246.epil
  %.1191243.epil = phi double [ %230, %.lr.ph246.epil ], [ %.1191243.unr, %.lr.ph251.unr-lcssa ]
  %.0201242.epil = phi ptr [ %228, %.lr.ph246.epil ], [ %.0201242.unr, %.lr.ph251.unr-lcssa ]
  %.5208241.epil = phi ptr [ %226, %.lr.ph246.epil ], [ %.5208241.unr, %.lr.ph251.unr-lcssa ]
  %epil.iter406 = phi i32 [ %epil.iter406.next, %.lr.ph246.epil ], [ 0, %.lr.ph251.unr-lcssa ]
  %226 = getelementptr inbounds i8, ptr %.5208241.epil, i64 8
  %227 = load double, ptr %.5208241.epil, align 8, !tbaa !5
  %228 = getelementptr inbounds i8, ptr %.0201242.epil, i64 8
  %229 = load double, ptr %.0201242.epil, align 8, !tbaa !5
  %230 = tail call double @llvm.fmuladd.f64(double %227, double %229, double %.1191243.epil)
  %epil.iter406.next = add i32 %epil.iter406, 1
  %epil.iter406.cmp.not = icmp eq i32 %epil.iter406.next, %xtraiter405
  br i1 %epil.iter406.cmp.not, label %.lr.ph251, label %.lr.ph246.epil, !llvm.loop !22

.lr.ph251:                                        ; preds = %.lr.ph246.epil, %.lr.ph251.unr-lcssa
  %.lcssa379 = phi double [ %.lcssa379.ph, %.lr.ph251.unr-lcssa ], [ %230, %.lr.ph246.epil ]
  %231 = fneg double %.lcssa379
  %232 = fmul double %212, %231
  br i1 %min.iters.check349, label %scalar.ph348.preheader, label %vector.memcheck

scalar.ph348.preheader:                           ; preds = %middle.block347, %vector.memcheck, %.lr.ph251
  %.6250.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %.lr.ph251 ], [ %ind.end354, %middle.block347 ]
  %.1202249.ph = phi ptr [ %225, %vector.memcheck ], [ %225, %.lr.ph251 ], [ %ind.end356, %middle.block347 ]
  %.6209248.ph = phi ptr [ %184, %vector.memcheck ], [ %184, %.lr.ph251 ], [ %ind.end358, %middle.block347 ]
  %233 = sub i32 %smax411, %.6250.ph
  %xtraiter412 = and i32 %233, 3
  %lcmp.mod413.not = icmp eq i32 %xtraiter412, 0
  br i1 %lcmp.mod413.not, label %scalar.ph348.prol.loopexit, label %scalar.ph348.prol

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

scalar.ph348.prol.loopexit:                       ; preds = %scalar.ph348.prol, %scalar.ph348.preheader
  %.6250.unr = phi i32 [ %.6250.ph, %scalar.ph348.preheader ], [ %239, %scalar.ph348.prol ]
  %.1202249.unr = phi ptr [ %.1202249.ph, %scalar.ph348.preheader ], [ %236, %scalar.ph348.prol ]
  %.6209248.unr = phi ptr [ %.6209248.ph, %scalar.ph348.preheader ], [ %234, %scalar.ph348.prol ]
  %240 = sub i32 %.6250.ph, %smax411
  %241 = icmp ugt i32 %240, -4
  br i1 %241, label %._crit_edge252, label %scalar.ph348

vector.memcheck:                                  ; preds = %.lr.ph251
  %bound0 = icmp ult ptr %scevgep, %scevgep345
  %bound1 = icmp ult ptr %gep444, %scevgep342
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph348.preheader, label %vector.ph350

vector.ph350:                                     ; preds = %vector.memcheck
  %ind.end356 = getelementptr i8, ptr %225, i64 %222
  %broadcast.splatinsert372 = insertelement <2 x double> poison, double %232, i64 0
  %broadcast.splat373 = shufflevector <2 x double> %broadcast.splatinsert372, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body360

vector.body360:                                   ; preds = %vector.body360, %vector.ph350
  %index361 = phi i64 [ 0, %vector.ph350 ], [ %index.next374, %vector.body360 ]
  %offset.idx362 = shl i64 %index361, 3
  %next.gep363 = getelementptr i8, ptr %225, i64 %offset.idx362
  %offset.idx365 = shl i64 %index361, 3
  %next.gep366 = getelementptr i8, ptr %184, i64 %offset.idx365
  %242 = getelementptr i8, ptr %next.gep366, i64 16
  %wide.load368 = load <2 x double>, ptr %next.gep366, align 8, !tbaa !5, !alias.scope !24
  %wide.load369 = load <2 x double>, ptr %242, align 8, !tbaa !5, !alias.scope !24
  %243 = getelementptr i8, ptr %next.gep363, i64 16
  %wide.load370 = load <2 x double>, ptr %next.gep363, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %wide.load371 = load <2 x double>, ptr %243, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %244 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat373, <2 x double> %wide.load368, <2 x double> %wide.load370)
  %245 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat373, <2 x double> %wide.load369, <2 x double> %wide.load371)
  store <2 x double> %244, ptr %next.gep363, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  store <2 x double> %245, ptr %243, align 8, !tbaa !5, !alias.scope !27, !noalias !24
  %index.next374 = add nuw i64 %index361, 4
  %246 = icmp eq i64 %index.next374, %n.vec352
  br i1 %246, label %middle.block347, label %vector.body360, !llvm.loop !29

middle.block347:                                  ; preds = %vector.body360
  br i1 %cmp.n375, label %._crit_edge252, label %scalar.ph348.preheader

.lr.ph246:                                        ; preds = %.lr.ph246.preheader, %.lr.ph246
  %.1191243 = phi double [ %266, %.lr.ph246 ], [ 0.000000e+00, %.lr.ph246.preheader ]
  %.0201242 = phi ptr [ %264, %.lr.ph246 ], [ %225, %.lr.ph246.preheader ]
  %.5208241 = phi ptr [ %262, %.lr.ph246 ], [ %184, %.lr.ph246.preheader ]
  %niter410 = phi i32 [ %niter410.next.3, %.lr.ph246 ], [ 0, %.lr.ph246.preheader ]
  %247 = getelementptr inbounds i8, ptr %.5208241, i64 8
  %248 = load double, ptr %.5208241, align 8, !tbaa !5
  %249 = getelementptr inbounds i8, ptr %.0201242, i64 8
  %250 = load double, ptr %.0201242, align 8, !tbaa !5
  %251 = tail call double @llvm.fmuladd.f64(double %248, double %250, double %.1191243)
  %252 = getelementptr inbounds i8, ptr %.5208241, i64 16
  %253 = load double, ptr %247, align 8, !tbaa !5
  %254 = getelementptr inbounds i8, ptr %.0201242, i64 16
  %255 = load double, ptr %249, align 8, !tbaa !5
  %256 = tail call double @llvm.fmuladd.f64(double %253, double %255, double %251)
  %257 = getelementptr inbounds i8, ptr %.5208241, i64 24
  %258 = load double, ptr %252, align 8, !tbaa !5
  %259 = getelementptr inbounds i8, ptr %.0201242, i64 24
  %260 = load double, ptr %254, align 8, !tbaa !5
  %261 = tail call double @llvm.fmuladd.f64(double %258, double %260, double %256)
  %262 = getelementptr inbounds i8, ptr %.5208241, i64 32
  %263 = load double, ptr %257, align 8, !tbaa !5
  %264 = getelementptr inbounds i8, ptr %.0201242, i64 32
  %265 = load double, ptr %259, align 8, !tbaa !5
  %266 = tail call double @llvm.fmuladd.f64(double %263, double %265, double %261)
  %niter410.next.3 = add i32 %niter410, 4
  %niter410.ncmp.3 = icmp eq i32 %niter410.next.3, %unroll_iter409
  br i1 %niter410.ncmp.3, label %.lr.ph251.unr-lcssa, label %.lr.ph246, !llvm.loop !32

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

._crit_edge252:                                   ; preds = %scalar.ph348.prol.loopexit, %scalar.ph348, %middle.block347
  %indvars.iv.next312 = add nuw nsw i64 %indvars.iv311, %15
  %sext = shl i64 %indvars.iv.next312, 32
  %288 = ashr exact i64 %sext, 32
  %289 = icmp slt i64 %288, %216
  %indvar.next = add i64 %indvar, 1
  br i1 %289, label %.lr.ph246.preheader, label %.lr.ph260.preheader, !llvm.loop !34

.lr.ph260.preheader:                              ; preds = %._crit_edge252, %203
  %290 = getelementptr inbounds i8, ptr %.0199262, i64 16
  %min.iters.check = icmp slt i32 %62, 5
  br i1 %min.iters.check, label %.lr.ph260.preheader376, label %vector.ph

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

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %64
  br i1 %cmp.n, label %.loopexit215, label %.lr.ph260.preheader376

.lr.ph260.preheader376:                           ; preds = %middle.block, %.lr.ph260.preheader
  %.7258.ph = phi i32 [ 1, %.lr.ph260.preheader ], [ %ind.end, %middle.block ]
  %.7210257.ph = phi ptr [ %290, %.lr.ph260.preheader ], [ %ind.end337, %middle.block ]
  br label %.lr.ph260

.lr.ph260:                                        ; preds = %.lr.ph260.preheader376, %.lr.ph260
  %.7258 = phi i32 [ %299, %.lr.ph260 ], [ %.7258.ph, %.lr.ph260.preheader376 ]
  %.7210257 = phi ptr [ %296, %.lr.ph260 ], [ %.7210257.ph, %.lr.ph260.preheader376 ]
  %296 = getelementptr inbounds i8, ptr %.7210257, i64 8
  %297 = load double, ptr %.7210257, align 8, !tbaa !5
  %298 = fmul double %214, %297
  store double %298, ptr %.7210257, align 8, !tbaa !5
  %299 = add nuw nsw i32 %.7258, 1
  %exitcond315.not = icmp eq i32 %299, %smax314
  br i1 %exitcond315.not, label %.loopexit215, label %.lr.ph260, !llvm.loop !36

.loopexit215:                                     ; preds = %.lr.ph260, %middle.block, %._crit_edge239
  %.3195 = phi double [ 0.000000e+00, %._crit_edge239 ], [ %.2194, %middle.block ], [ %.2194, %.lr.ph260 ]
  %.1189 = phi double [ 0.000000e+00, %._crit_edge239 ], [ %210, %middle.block ], [ %210, %.lr.ph260 ]
  store double %.1189, ptr %184, align 8, !tbaa !5
  %300 = fneg double %.3195
  %301 = getelementptr inbounds double, ptr %13, i64 %indvars.iv318
  store double %300, ptr %301, align 8, !tbaa !5
  br label %302

302:                                              ; preds = %.loopexit215, %183
  %303 = icmp eq i32 %.0271, 1
  br i1 %303, label %304, label %307

304:                                              ; preds = %302
  %305 = load double, ptr %184, align 8, !tbaa !5
  %306 = getelementptr inbounds double, ptr %13, i64 %indvars.iv318
  store double %305, ptr %306, align 8, !tbaa !5
  br label %307

307:                                              ; preds = %302, %304
  %indvars.iv.next319 = add nuw nsw i64 %indvars.iv318, 1
  %indvars.iv.next317 = add nsw i64 %indvars.iv316, -1
  %308 = getelementptr inbounds double, ptr %.0199262, i64 %17
  %exitcond324.not = icmp eq i64 %indvars.iv.next319, %15
  br i1 %exitcond324.not, label %._crit_edge274, label %29, !llvm.loop !37

._crit_edge274:                                   ; preds = %307
  tail call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %1, ptr noundef %4, i32 noundef %5)
  tail call void @_ZN9MathTools6ldumatEPdS0_ii(ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %5)
  %309 = tail call noundef i32 @_ZN9MathTools5qrbdvEPdS0_S0_iS0_i(ptr noundef %0, ptr noundef %13, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5)
  br i1 %14, label %.lr.ph281, label %._crit_edge282

.lr.ph281:                                        ; preds = %._crit_edge274
  %310 = zext nneg i32 %5 to i64
  %xtraiter415 = and i32 %5, 3
  %311 = icmp ult i32 %5, 4
  %unroll_iter418 = and i32 %5, 2147483644
  %lcmp.mod417.not = icmp eq i32 %xtraiter415, 0
  br label %312

312:                                              ; preds = %..loopexit_crit_edge.us, %.lr.ph281
  %indvars.iv326 = phi i64 [ %indvars.iv.next327, %..loopexit_crit_edge.us ], [ 0, %.lr.ph281 ]
  %313 = getelementptr inbounds double, ptr %0, i64 %indvars.iv326
  %314 = load double, ptr %313, align 8, !tbaa !5
  %315 = fcmp olt double %314, 0.000000e+00
  br i1 %315, label %.lr.ph278.us, label %..loopexit_crit_edge.us

.lr.ph278.us:                                     ; preds = %312
  %316 = fneg double %314
  store double %316, ptr %313, align 8, !tbaa !5
  %317 = getelementptr inbounds double, ptr %4, i64 %indvars.iv326
  br i1 %311, label %..loopexit_crit_edge.us.loopexit.unr-lcssa, label %.lr.ph278.us.new

..loopexit_crit_edge.us.loopexit.unr-lcssa:       ; preds = %.lr.ph278.us.new, %.lr.ph278.us
  %.1200275.us.unr = phi ptr [ %317, %.lr.ph278.us ], [ %332, %.lr.ph278.us.new ]
  br i1 %lcmp.mod417.not, label %..loopexit_crit_edge.us, label %.epil.preheader414

.epil.preheader414:                               ; preds = %..loopexit_crit_edge.us.loopexit.unr-lcssa, %.epil.preheader414
  %.1200275.us.epil = phi ptr [ %320, %.epil.preheader414 ], [ %.1200275.us.unr, %..loopexit_crit_edge.us.loopexit.unr-lcssa ]
  %epil.iter416 = phi i32 [ %epil.iter416.next, %.epil.preheader414 ], [ 0, %..loopexit_crit_edge.us.loopexit.unr-lcssa ]
  %318 = load double, ptr %.1200275.us.epil, align 8, !tbaa !5
  %319 = fneg double %318
  store double %319, ptr %.1200275.us.epil, align 8, !tbaa !5
  %320 = getelementptr inbounds double, ptr %.1200275.us.epil, i64 %310
  %epil.iter416.next = add i32 %epil.iter416, 1
  %epil.iter416.cmp.not = icmp eq i32 %epil.iter416.next, %xtraiter415
  br i1 %epil.iter416.cmp.not, label %..loopexit_crit_edge.us, label %.epil.preheader414, !llvm.loop !38

..loopexit_crit_edge.us:                          ; preds = %..loopexit_crit_edge.us.loopexit.unr-lcssa, %.epil.preheader414, %312
  %indvars.iv.next327 = add nuw nsw i64 %indvars.iv326, 1
  %exitcond330.not = icmp eq i64 %indvars.iv.next327, %310
  br i1 %exitcond330.not, label %._crit_edge282, label %312, !llvm.loop !39

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

._crit_edge282.critedge:                          ; preds = %8
  tail call void @_ZN9MathTools6ldvmatEPdS0_i(ptr noundef %1, ptr noundef %4, i32 noundef %5)
  tail call void @_ZN9MathTools6ldumatEPdS0_ii(ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %5)
  %333 = tail call noundef i32 @_ZN9MathTools5qrbdvEPdS0_S0_iS0_i(ptr noundef %0, ptr noundef %13, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5)
  br label %._crit_edge282

._crit_edge282:                                   ; preds = %..loopexit_crit_edge.us, %._crit_edge282.critedge, %._crit_edge274
  tail call void @free(ptr noundef %11) #7
  br label %334

334:                                              ; preds = %6, %._crit_edge282
  %.0198 = phi i32 [ 0, %._crit_edge282 ], [ -1, %6 ]
  ret i32 %.0198
}

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

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

; 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 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #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