; LLVM IR from stillwater-sc/universal :: applications/accuracy/roots/rpoly_ak1.ll (Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store i32 %3, ptr %15, align 4, !tbaa !9
  store ptr %4, ptr %16, align 8, !tbaa !5
  store i32 %5, ptr %17, align 4, !tbaa !9
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !5
  store ptr %9, ptr %21, align 8, !tbaa !5
  store ptr %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = sub nsw i32 %34, 1
  store i32 %35, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  store double 0.000000e+00, ptr %33, align 8, !tbaa !11
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %36, align 4, !tbaa !9
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %37, align 4, !tbaa !9
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load double, ptr %38, align 8, !tbaa !11
  store double %39, ptr %32, align 8, !tbaa !11
  br label %40

40:                                               ; preds = %269, %11
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = getelementptr inbounds double, ptr %41, i64 0
  %43 = load double, ptr %42, align 8, !tbaa !11
  store double %43, ptr %31, align 8, !tbaa !11
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 0
  store double %43, ptr %45, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %63, %40
  %47 = load i32, ptr %23, align 4, !tbaa !9
  %48 = load i32, ptr %17, align 4, !tbaa !9
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %50, label %66

50:                                               ; preds = %46
  %51 = load double, ptr %31, align 8, !tbaa !11
  %52 = load double, ptr %32, align 8, !tbaa !11
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = load i32, ptr %23, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds double, ptr %53, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = call double @llvm.fmuladd.f64(double %51, double %52, double %57)
  store double %58, ptr %31, align 8, !tbaa !11
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  %60 = load i32, ptr %23, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %59, i64 %61
  store double %58, ptr %62, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %50
  %64 = load i32, ptr %23, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %23, align 4, !tbaa !9
  br label %46, !llvm.loop !13

66:                                               ; preds = %46
  %67 = load double, ptr %31, align 8, !tbaa !11
  %68 = call double @llvm.fabs.f64(double %67)
  store double %68, ptr %28, align 8, !tbaa !11
  %69 = load double, ptr %32, align 8, !tbaa !11
  %70 = call double @llvm.fabs.f64(double %69)
  store double %70, ptr %29, align 8, !tbaa !11
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = getelementptr inbounds double, ptr %71, i64 0
  %73 = load double, ptr %72, align 8, !tbaa !11
  %74 = call double @llvm.fabs.f64(double %73)
  %75 = fmul double 5.000000e-01, %74
  store double %75, ptr %26, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %90, %66
  %77 = load i32, ptr %23, align 4, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = icmp slt i32 %77, %78
  br i1 %79, label %80, label %93

80:                                               ; preds = %76
  %81 = load double, ptr %26, align 8, !tbaa !11
  %82 = load double, ptr %29, align 8, !tbaa !11
  %83 = load ptr, ptr %18, align 8, !tbaa !5
  %84 = load i32, ptr %23, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds double, ptr %83, i64 %85
  %87 = load double, ptr %86, align 8, !tbaa !11
  %88 = call double @llvm.fabs.f64(double %87)
  %89 = call double @llvm.fmuladd.f64(double %81, double %82, double %88)
  store double %89, ptr %26, align 8, !tbaa !11
  br label %90

90:                                               ; preds = %80
  %91 = load i32, ptr %23, align 4, !tbaa !9
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %23, align 4, !tbaa !9
  br label %76, !llvm.loop !15

93:                                               ; preds = %76
  %94 = load double, ptr %28, align 8, !tbaa !11
  %95 = load double, ptr %26, align 8, !tbaa !11
  %96 = load double, ptr %28, align 8, !tbaa !11
  %97 = fneg double %96
  %98 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %95, double %97)
  %99 = fmul double 0x3CF4000000000000, %98
  %100 = fcmp ole double %94, %99
  br i1 %100, label %101, label %106

101:                                              ; preds = %93
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  store i32 1, ptr %102, align 4, !tbaa !9
  %103 = load double, ptr %32, align 8, !tbaa !11
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  store double %103, ptr %104, align 8, !tbaa !11
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %105, align 8, !tbaa !11
  br label %274

106:                                              ; preds = %93
  %107 = load i32, ptr %24, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %24, align 4, !tbaa !9
  %109 = load i32, ptr %24, align 4, !tbaa !9
  %110 = icmp sgt i32 %109, 10
  br i1 %110, label %111, label %112

111:                                              ; preds = %106
  br label %274

112:                                              ; preds = %106
  %113 = load i32, ptr %24, align 4, !tbaa !9
  %114 = icmp sge i32 %113, 2
  br i1 %114, label %115, label %134

115:                                              ; preds = %112
  %116 = load double, ptr %33, align 8, !tbaa !11
  %117 = call double @llvm.fabs.f64(double %116)
  %118 = load double, ptr %33, align 8, !tbaa !11
  %119 = fneg double %118
  %120 = load double, ptr %32, align 8, !tbaa !11
  %121 = fadd double %119, %120
  %122 = call double @llvm.fabs.f64(double %121)
  %123 = fmul double 1.000000e-03, %122
  %124 = fcmp ole double %117, %123
  br i1 %124, label %125, label %133

125:                                              ; preds = %115
  %126 = load double, ptr %28, align 8, !tbaa !11
  %127 = load double, ptr %30, align 8, !tbaa !11
  %128 = fcmp ogt double %126, %127
  br i1 %128, label %129, label %133

129:                                              ; preds = %125
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %130, align 4, !tbaa !9
  %131 = load double, ptr %32, align 8, !tbaa !11
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  store double %131, ptr %132, align 8, !tbaa !11
  br label %274

133:                                              ; preds = %125, %115
  br label %134

134:                                              ; preds = %133, %112
  %135 = load double, ptr %28, align 8, !tbaa !11
  store double %135, ptr %30, align 8, !tbaa !11
  %136 = load ptr, ptr %21, align 8, !tbaa !5
  %137 = getelementptr inbounds double, ptr %136, i64 0
  %138 = load double, ptr %137, align 8, !tbaa !11
  store double %138, ptr %27, align 8, !tbaa !11
  %139 = load ptr, ptr %22, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 0
  store double %138, ptr %140, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %158, %134
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %145, label %161

145:                                              ; preds = %141
  %146 = load double, ptr %27, align 8, !tbaa !11
  %147 = load double, ptr %32, align 8, !tbaa !11
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = call double @llvm.fmuladd.f64(double %146, double %147, double %152)
  store double %153, ptr %27, align 8, !tbaa !11
  %154 = load ptr, ptr %22, align 8, !tbaa !5
  %155 = load i32, ptr %23, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  store double %153, ptr %157, align 8, !tbaa !11
  br label %158

158:                                              ; preds = %145
  %159 = load i32, ptr %23, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %23, align 4, !tbaa !9
  br label %141, !llvm.loop !16

161:                                              ; preds = %141
  %162 = load double, ptr %27, align 8, !tbaa !11
  %163 = call double @llvm.fabs.f64(double %162)
  %164 = load ptr, ptr %21, align 8, !tbaa !5
  %165 = load i32, ptr %25, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = call double @llvm.fabs.f64(double %168)
  %170 = fmul double %169, 1.000000e+01
  %171 = fmul double %170, 0x3CB0000000000000
  %172 = fcmp ogt double %163, %171
  br i1 %172, label %173, label %209

173:                                              ; preds = %161
  %174 = load double, ptr %31, align 8, !tbaa !11
  %175 = load double, ptr %27, align 8, !tbaa !11
  %176 = fdiv double %174, %175
  %177 = fneg double %176
  store double %177, ptr %33, align 8, !tbaa !11
  %178 = load ptr, ptr %18, align 8, !tbaa !5
  %179 = getelementptr inbounds double, ptr %178, i64 0
  %180 = load double, ptr %179, align 8, !tbaa !11
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %181, i64 0
  store double %180, ptr %182, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %205, %173
  %184 = load i32, ptr %23, align 4, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %187, label %208

187:                                              ; preds = %183
  %188 = load double, ptr %33, align 8, !tbaa !11
  %189 = load ptr, ptr %22, align 8, !tbaa !5
  %190 = load i32, ptr %23, align 4, !tbaa !9
  %191 = sub nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %189, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !11
  %195 = load ptr, ptr %18, align 8, !tbaa !5
  %196 = load i32, ptr %23, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !11
  %200 = call double @llvm.fmuladd.f64(double %188, double %194, double %199)
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = load i32, ptr %23, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  store double %200, ptr %204, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %187
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %23, align 4, !tbaa !9
  br label %183, !llvm.loop !17

208:                                              ; preds = %183
  br label %231

209:                                              ; preds = %161
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 0
  store double 0.000000e+00, ptr %211, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %227, %209
  %213 = load i32, ptr %23, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = icmp slt i32 %213, %214
  br i1 %215, label %216, label %230

216:                                              ; preds = %212
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  %218 = load i32, ptr %23, align 4, !tbaa !9
  %219 = sub nsw i32 %218, 1
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %217, i64 %220
  %222 = load double, ptr %221, align 8, !tbaa !11
  %223 = load ptr, ptr %21, align 8, !tbaa !5
  %224 = load i32, ptr %23, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %223, i64 %225
  store double %222, ptr %226, align 8, !tbaa !11
  br label %227

227:                                              ; preds = %216
  %228 = load i32, ptr %23, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %23, align 4, !tbaa !9
  br label %212, !llvm.loop !18

230:                                              ; preds = %212
  br label %231

231:                                              ; preds = %230, %208
  %232 = load ptr, ptr %21, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i64 0
  %234 = load double, ptr %233, align 8, !tbaa !11
  store double %234, ptr %27, align 8, !tbaa !11
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %235

235:                                              ; preds = %248, %231
  %236 = load i32, ptr %23, align 4, !tbaa !9
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = icmp slt i32 %236, %237
  br i1 %238, label %239, label %251

239:                                              ; preds = %235
  %240 = load double, ptr %27, align 8, !tbaa !11
  %241 = load double, ptr %32, align 8, !tbaa !11
  %242 = load ptr, ptr %21, align 8, !tbaa !5
  %243 = load i32, ptr %23, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds double, ptr %242, i64 %244
  %246 = load double, ptr %245, align 8, !tbaa !11
  %247 = call double @llvm.fmuladd.f64(double %240, double %241, double %246)
  store double %247, ptr %27, align 8, !tbaa !11
  br label %248

248:                                              ; preds = %239
  %249 = load i32, ptr %23, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %23, align 4, !tbaa !9
  br label %235, !llvm.loop !19

251:                                              ; preds = %235
  %252 = load double, ptr %27, align 8, !tbaa !11
  %253 = call double @llvm.fabs.f64(double %252)
  %254 = load ptr, ptr %21, align 8, !tbaa !5
  %255 = load i32, ptr %25, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !11
  %259 = call double @llvm.fabs.f64(double %258)
  %260 = fmul double %259, 1.000000e+01
  %261 = fmul double %260, 0x3CB0000000000000
  %262 = fcmp ogt double %253, %261
  br i1 %262, label %263, label %268

263:                                              ; preds = %251
  %264 = load double, ptr %31, align 8, !tbaa !11
  %265 = load double, ptr %27, align 8, !tbaa !11
  %266 = fdiv double %264, %265
  %267 = fneg double %266
  br label %269

268:                                              ; preds = %251
  br label %269

269:                                              ; preds = %268, %263
  %270 = phi double [ %267, %263 ], [ 0.000000e+00, %268 ]
  store double %270, ptr %33, align 8, !tbaa !11
  %271 = load double, ptr %33, align 8, !tbaa !11
  %272 = load double, ptr %32, align 8, !tbaa !11
  %273 = fadd double %272, %271
  store double %273, ptr %32, align 8, !tbaa !11
  br label %40, !llvm.loop !20

274:                                              ; preds = %129, %111, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ 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}


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

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

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_Z10RealIT_ak1PiS_PdiS0_iS0_S0_S0_S0_S0_(ptr nocapture noundef writeonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, i32 noundef %5, ptr nocapture noundef %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8, ptr nocapture noundef %9, ptr nocapture noundef %10) local_unnamed_addr #1 {
  %12 = ptrtoint ptr %10 to i64
  %13 = ptrtoint ptr %9 to i64
  %14 = ptrtoint ptr %6 to i64
  %15 = ptrtoint ptr %10 to i64
  %16 = ptrtoint ptr %9 to i64
  store i32 0, ptr %1, align 4, !tbaa !5
  store i32 0, ptr %0, align 4, !tbaa !5
  %17 = load double, ptr %2, align 8, !tbaa !9
  %18 = icmp sgt i32 %5, 1
  %invariant.gep138 = getelementptr i8, ptr %9, i64 -8
  %19 = icmp sgt i32 %3, 1
  %20 = sext i32 %3 to i64
  %gep139 = getelementptr double, ptr %invariant.gep138, i64 %20
  %invariant.gep = getelementptr i8, ptr %10, i64 -8
  %wide.trip.count = zext i32 %5 to i64
  %wide.trip.count155 = zext i32 %3 to i64
  %wide.trip.count160 = zext nneg i32 %3 to i64
  %wide.trip.count165 = zext nneg i32 %3 to i64
  %21 = add i64 %16, 8
  %22 = sub i64 %21, %15
  %23 = sub i64 %16, %14
  %24 = add nsw i64 %wide.trip.count155, -1
  %25 = add i64 %13, 8
  %26 = sub i64 %25, %12
  %27 = add nsw i64 %wide.trip.count155, -1
  %28 = add nsw i64 %wide.trip.count, -1
  %29 = add nsw i64 %wide.trip.count, -2
  %30 = add nsw i64 %wide.trip.count155, -1
  %31 = add nsw i64 %wide.trip.count155, -2
  %xtraiter = and i64 %28, 3
  %32 = icmp ult i64 %29, 3
  %unroll_iter = and i64 %28, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %xtraiter216 = and i64 %28, 3
  %33 = icmp ult i64 %29, 3
  %unroll_iter220 = and i64 %28, -4
  %invariant.gep249 = getelementptr inbounds i8, ptr %6, i64 8
  %invariant.gep251 = getelementptr inbounds i8, ptr %6, i64 16
  %invariant.gep253 = getelementptr inbounds i8, ptr %6, i64 24
  %lcmp.mod218.not = icmp eq i64 %xtraiter216, 0
  %xtraiter222 = and i64 %30, 3
  %34 = icmp ult i64 %31, 3
  %unroll_iter226 = and i64 %30, -4
  %lcmp.mod224.not = icmp eq i64 %xtraiter222, 0
  %min.iters.check193 = icmp ult i32 %3, 5
  %diff.check190 = icmp ult i64 %26, 32
  %or.cond206 = or i1 %min.iters.check193, %diff.check190
  %n.vec196 = and i64 %27, -4
  %ind.end197 = or disjoint i64 %n.vec196, 1
  %cmp.n205 = icmp eq i64 %27, %n.vec196
  %invariant.gep255 = getelementptr i8, ptr %9, i64 8
  %min.iters.check = icmp ult i32 %3, 5
  %diff.check = icmp ult i64 %22, 32
  %diff.check185 = icmp ult i64 %23, 32
  %conflict.rdx = or i1 %diff.check, %diff.check185
  %n.vec = and i64 %24, -4
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %24, %n.vec
  %35 = and i64 %wide.trip.count155, 1
  %lcmp.mod231.not.not = icmp eq i64 %35, 0
  %36 = add nsw i64 %wide.trip.count155, -1
  %xtraiter233 = and i64 %30, 3
  %37 = icmp ult i64 %31, 3
  %unroll_iter237 = and i64 %30, -4
  %invariant.gep257 = getelementptr inbounds i8, ptr %9, i64 8
  %invariant.gep259 = getelementptr inbounds i8, ptr %9, i64 16
  %invariant.gep261 = getelementptr inbounds i8, ptr %9, i64 24
  %lcmp.mod235.not = icmp eq i64 %xtraiter233, 0
  br label %38

38:                                               ; preds = %._crit_edge136, %11
  %.098 = phi i32 [ 0, %11 ], [ %87, %._crit_edge136 ]
  %.096 = phi double [ 0.000000e+00, %11 ], [ %60, %._crit_edge136 ]
  %.094 = phi double [ %17, %11 ], [ %193, %._crit_edge136 ]
  %.0 = phi double [ 0.000000e+00, %11 ], [ %192, %._crit_edge136 ]
  %39 = load double, ptr %4, align 8, !tbaa !9
  store double %39, ptr %6, align 8, !tbaa !9
  br i1 %18, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %38
  br i1 %32, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %.095111 = phi double [ %54, %.lr.ph ], [ %39, %.lr.ph.preheader ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %40 = getelementptr inbounds double, ptr %4, i64 %indvars.iv
  %41 = load double, ptr %40, align 8, !tbaa !9
  %42 = tail call double @llvm.fmuladd.f64(double %.095111, double %.094, double %41)
  %43 = getelementptr inbounds double, ptr %6, i64 %indvars.iv
  store double %42, ptr %43, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = tail call double @llvm.fmuladd.f64(double %42, double %.094, double %45)
  %47 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next
  store double %46, ptr %47, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %48 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.1
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = tail call double @llvm.fmuladd.f64(double %46, double %.094, double %49)
  %51 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next.1
  store double %50, ptr %51, align 8, !tbaa !9
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %52 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next.2
  %53 = load double, ptr %52, align 8, !tbaa !9
  %54 = tail call double @llvm.fmuladd.f64(double %50, double %.094, double %53)
  %55 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next.2
  store double %54, ptr %55, align 8, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %54, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.095111.unr = phi double [ %39, %.lr.ph.preheader ], [ %54, %.lr.ph ]
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.095111.epil = phi double [ %58, %.lr.ph.epil ], [ %.095111.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %56 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.epil
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = tail call double @llvm.fmuladd.f64(double %.095111.epil, double %.094, double %57)
  %59 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.epil
  store double %58, ptr %59, align 8, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %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 %._crit_edge, label %.lr.ph.epil, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %38
  %.095.lcssa = phi double [ %39, %38 ], [ %.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %58, %.lr.ph.epil ]
  %60 = tail call double @llvm.fabs.f64(double %.095.lcssa)
  %61 = tail call double @llvm.fabs.f64(double %.094)
  %62 = tail call double @llvm.fabs.f64(double %39)
  %63 = fmul double %62, 5.000000e-01
  br i1 %18, label %.lr.ph115.preheader, label %._crit_edge116

.lr.ph115.preheader:                              ; preds = %._crit_edge
  br i1 %33, label %._crit_edge116.loopexit.unr-lcssa, label %.lr.ph115

.lr.ph115:                                        ; preds = %.lr.ph115.preheader, %.lr.ph115
  %indvars.iv147 = phi i64 [ %indvars.iv.next148.3, %.lr.ph115 ], [ 1, %.lr.ph115.preheader ]
  %.0101112 = phi double [ %76, %.lr.ph115 ], [ %63, %.lr.ph115.preheader ]
  %niter221 = phi i64 [ %niter221.next.3, %.lr.ph115 ], [ 0, %.lr.ph115.preheader ]
  %64 = getelementptr inbounds double, ptr %6, i64 %indvars.iv147
  %65 = load double, ptr %64, align 8, !tbaa !9
  %66 = tail call double @llvm.fabs.f64(double %65)
  %67 = tail call double @llvm.fmuladd.f64(double %.0101112, double %61, double %66)
  %gep250 = getelementptr inbounds double, ptr %invariant.gep249, i64 %indvars.iv147
  %68 = load double, ptr %gep250, align 8, !tbaa !9
  %69 = tail call double @llvm.fabs.f64(double %68)
  %70 = tail call double @llvm.fmuladd.f64(double %67, double %61, double %69)
  %gep252 = getelementptr inbounds double, ptr %invariant.gep251, i64 %indvars.iv147
  %71 = load double, ptr %gep252, align 8, !tbaa !9
  %72 = tail call double @llvm.fabs.f64(double %71)
  %73 = tail call double @llvm.fmuladd.f64(double %70, double %61, double %72)
  %gep254 = getelementptr inbounds double, ptr %invariant.gep253, i64 %indvars.iv147
  %74 = load double, ptr %gep254, align 8, !tbaa !9
  %75 = tail call double @llvm.fabs.f64(double %74)
  %76 = tail call double @llvm.fmuladd.f64(double %73, double %61, double %75)
  %indvars.iv.next148.3 = add nuw nsw i64 %indvars.iv147, 4
  %niter221.next.3 = add i64 %niter221, 4
  %niter221.ncmp.3 = icmp eq i64 %niter221.next.3, %unroll_iter220
  br i1 %niter221.ncmp.3, label %._crit_edge116.loopexit.unr-lcssa, label %.lr.ph115, !llvm.loop !15

._crit_edge116.loopexit.unr-lcssa:                ; preds = %.lr.ph115, %.lr.ph115.preheader
  %.lcssa210.ph = phi double [ poison, %.lr.ph115.preheader ], [ %76, %.lr.ph115 ]
  %indvars.iv147.unr = phi i64 [ 1, %.lr.ph115.preheader ], [ %indvars.iv.next148.3, %.lr.ph115 ]
  %.0101112.unr = phi double [ %63, %.lr.ph115.preheader ], [ %76, %.lr.ph115 ]
  br i1 %lcmp.mod218.not, label %._crit_edge116, label %.lr.ph115.epil

.lr.ph115.epil:                                   ; preds = %._crit_edge116.loopexit.unr-lcssa, %.lr.ph115.epil
  %indvars.iv147.epil = phi i64 [ %indvars.iv.next148.epil, %.lr.ph115.epil ], [ %indvars.iv147.unr, %._crit_edge116.loopexit.unr-lcssa ]
  %.0101112.epil = phi double [ %80, %.lr.ph115.epil ], [ %.0101112.unr, %._crit_edge116.loopexit.unr-lcssa ]
  %epil.iter217 = phi i64 [ %epil.iter217.next, %.lr.ph115.epil ], [ 0, %._crit_edge116.loopexit.unr-lcssa ]
  %77 = getelementptr inbounds double, ptr %6, i64 %indvars.iv147.epil
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = tail call double @llvm.fabs.f64(double %78)
  %80 = tail call double @llvm.fmuladd.f64(double %.0101112.epil, double %61, double %79)
  %indvars.iv.next148.epil = add nuw nsw i64 %indvars.iv147.epil, 1
  %epil.iter217.next = add i64 %epil.iter217, 1
  %epil.iter217.cmp.not = icmp eq i64 %epil.iter217.next, %xtraiter216
  br i1 %epil.iter217.cmp.not, label %._crit_edge116, label %.lr.ph115.epil, !llvm.loop !16

._crit_edge116:                                   ; preds = %._crit_edge116.loopexit.unr-lcssa, %.lr.ph115.epil, %._crit_edge
  %.0101.lcssa = phi double [ %63, %._crit_edge ], [ %.lcssa210.ph, %._crit_edge116.loopexit.unr-lcssa ], [ %80, %.lr.ph115.epil ]
  %81 = fneg double %60
  %82 = tail call double @llvm.fmuladd.f64(double %.0101.lcssa, double 2.000000e+00, double %81)
  %83 = fmul double %82, 0x3CF4000000000000
  %84 = fcmp ugt double %60, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %._crit_edge116
  store i32 1, ptr %1, align 4, !tbaa !5
  store double %.094, ptr %7, align 8, !tbaa !9
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  br label %.loopexit107

86:                                               ; preds = %._crit_edge116
  %87 = add nuw nsw i32 %.098, 1
  switch i32 %.098, label %88 [
    i32 10, label %.loopexit107
    i32 0, label %96
  ]

88:                                               ; preds = %86
  %89 = tail call double @llvm.fabs.f64(double %.0)
  %90 = fsub double %.094, %.0
  %91 = tail call double @llvm.fabs.f64(double %90)
  %92 = fmul double %91, 1.000000e-03
  %93 = fcmp ole double %89, %92
  %94 = fcmp ogt double %60, %.096
  %or.cond = select i1 %93, i1 %94, i1 false
  br i1 %or.cond, label %95, label %96

95:                                               ; preds = %88
  store i32 1, ptr %0, align 4, !tbaa !5
  store double %.094, ptr %2, align 8, !tbaa !9
  br label %.loopexit107

96:                                               ; preds = %86, %88
  %97 = load double, ptr %9, align 8, !tbaa !9
  store double %97, ptr %10, align 8, !tbaa !9
  br i1 %19, label %.lr.ph121.preheader, label %._crit_edge122

.lr.ph121.preheader:                              ; preds = %96
  br i1 %34, label %._crit_edge122.loopexit.unr-lcssa, label %.lr.ph121

.lr.ph121:                                        ; preds = %.lr.ph121.preheader, %.lr.ph121
  %indvars.iv152 = phi i64 [ %indvars.iv.next153.3, %.lr.ph121 ], [ 1, %.lr.ph121.preheader ]
  %.099118 = phi double [ %112, %.lr.ph121 ], [ %97, %.lr.ph121.preheader ]
  %niter227 = phi i64 [ %niter227.next.3, %.lr.ph121 ], [ 0, %.lr.ph121.preheader ]
  %98 = getelementptr inbounds double, ptr %9, i64 %indvars.iv152
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = tail call double @llvm.fmuladd.f64(double %.099118, double %.094, double %99)
  %101 = getelementptr inbounds double, ptr %10, i64 %indvars.iv152
  store double %100, ptr %101, align 8, !tbaa !9
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %102 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next153
  %103 = load double, ptr %102, align 8, !tbaa !9
  %104 = tail call double @llvm.fmuladd.f64(double %100, double %.094, double %103)
  %105 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next153
  store double %104, ptr %105, align 8, !tbaa !9
  %indvars.iv.next153.1 = add nuw nsw i64 %indvars.iv152, 2
  %106 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next153.1
  %107 = load double, ptr %106, align 8, !tbaa !9
  %108 = tail call double @llvm.fmuladd.f64(double %104, double %.094, double %107)
  %109 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next153.1
  store double %108, ptr %109, align 8, !tbaa !9
  %indvars.iv.next153.2 = add nuw nsw i64 %indvars.iv152, 3
  %110 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next153.2
  %111 = load double, ptr %110, align 8, !tbaa !9
  %112 = tail call double @llvm.fmuladd.f64(double %108, double %.094, double %111)
  %113 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next153.2
  store double %112, ptr %113, align 8, !tbaa !9
  %indvars.iv.next153.3 = add nuw nsw i64 %indvars.iv152, 4
  %niter227.next.3 = add i64 %niter227, 4
  %niter227.ncmp.3 = icmp eq i64 %niter227.next.3, %unroll_iter226
  br i1 %niter227.ncmp.3, label %._crit_edge122.loopexit.unr-lcssa, label %.lr.ph121, !llvm.loop !17

._crit_edge122.loopexit.unr-lcssa:                ; preds = %.lr.ph121, %.lr.ph121.preheader
  %.lcssa211.ph = phi double [ poison, %.lr.ph121.preheader ], [ %112, %.lr.ph121 ]
  %indvars.iv152.unr = phi i64 [ 1, %.lr.ph121.preheader ], [ %indvars.iv.next153.3, %.lr.ph121 ]
  %.099118.unr = phi double [ %97, %.lr.ph121.preheader ], [ %112, %.lr.ph121 ]
  br i1 %lcmp.mod224.not, label %._crit_edge122, label %.lr.ph121.epil

.lr.ph121.epil:                                   ; preds = %._crit_edge122.loopexit.unr-lcssa, %.lr.ph121.epil
  %indvars.iv152.epil = phi i64 [ %indvars.iv.next153.epil, %.lr.ph121.epil ], [ %indvars.iv152.unr, %._crit_edge122.loopexit.unr-lcssa ]
  %.099118.epil = phi double [ %116, %.lr.ph121.epil ], [ %.099118.unr, %._crit_edge122.loopexit.unr-lcssa ]
  %epil.iter223 = phi i64 [ %epil.iter223.next, %.lr.ph121.epil ], [ 0, %._crit_edge122.loopexit.unr-lcssa ]
  %114 = getelementptr inbounds double, ptr %9, i64 %indvars.iv152.epil
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = tail call double @llvm.fmuladd.f64(double %.099118.epil, double %.094, double %115)
  %117 = getelementptr inbounds double, ptr %10, i64 %indvars.iv152.epil
  store double %116, ptr %117, align 8, !tbaa !9
  %indvars.iv.next153.epil = add nuw nsw i64 %indvars.iv152.epil, 1
  %epil.iter223.next = add i64 %epil.iter223, 1
  %epil.iter223.cmp.not = icmp eq i64 %epil.iter223.next, %xtraiter222
  br i1 %epil.iter223.cmp.not, label %._crit_edge122, label %.lr.ph121.epil, !llvm.loop !18

._crit_edge122:                                   ; preds = %._crit_edge122.loopexit.unr-lcssa, %.lr.ph121.epil, %96
  %.099.lcssa = phi double [ %97, %96 ], [ %.lcssa211.ph, %._crit_edge122.loopexit.unr-lcssa ], [ %116, %.lr.ph121.epil ]
  %118 = tail call double @llvm.fabs.f64(double %.099.lcssa)
  %119 = load double, ptr %gep139, align 8, !tbaa !9
  %120 = tail call double @llvm.fabs.f64(double %119)
  %121 = fmul double %120, 1.000000e+01
  %122 = fmul double %121, 0x3CB0000000000000
  %123 = fcmp ogt double %118, %122
  br i1 %123, label %124, label %153

124:                                              ; preds = %._crit_edge122
  %125 = fneg double %.095.lcssa
  %126 = fdiv double %125, %.099.lcssa
  %127 = load double, ptr %6, align 8, !tbaa !9
  store double %127, ptr %9, align 8, !tbaa !9
  br i1 %19, label %.lr.ph131.preheader, label %._crit_edge136

.lr.ph131.preheader:                              ; preds = %124
  %brmerge = or i1 %min.iters.check, %conflict.rdx
  br i1 %brmerge, label %.lr.ph131.preheader207, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph131.preheader
  %broadcast.splatinsert = insertelement <2 x double> poison, double %126, 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 = or disjoint i64 %index, 1
  %128 = getelementptr double, ptr %10, i64 %index
  %129 = getelementptr i8, ptr %128, i64 16
  %wide.load = load <2 x double>, ptr %128, align 8, !tbaa !9
  %wide.load186 = load <2 x double>, ptr %129, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %6, i64 %offset.idx
  %131 = getelementptr inbounds i8, ptr %130, i64 16
  %wide.load187 = load <2 x double>, ptr %130, align 8, !tbaa !9
  %wide.load188 = load <2 x double>, ptr %131, align 8, !tbaa !9
  %132 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load187)
  %133 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load186, <2 x double> %wide.load188)
  %134 = getelementptr inbounds double, ptr %9, i64 %offset.idx
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  store <2 x double> %132, ptr %134, align 8, !tbaa !9
  store <2 x double> %133, ptr %135, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %136 = icmp eq i64 %index.next, %n.vec
  br i1 %136, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %.lr.ph131.preheader207

.lr.ph131.preheader207:                           ; preds = %.lr.ph131.preheader, %middle.block
  %indvars.iv162.ph = phi i64 [ 1, %.lr.ph131.preheader ], [ %ind.end, %middle.block ]
  br i1 %lcmp.mod231.not.not, label %.lr.ph131.prol, label %.lr.ph131.prol.loopexit

.lr.ph131.prol:                                   ; preds = %.lr.ph131.preheader207
  %gep128.prol = getelementptr double, ptr %invariant.gep, i64 %indvars.iv162.ph
  %137 = load double, ptr %gep128.prol, align 8, !tbaa !9
  %138 = getelementptr inbounds double, ptr %6, i64 %indvars.iv162.ph
  %139 = load double, ptr %138, align 8, !tbaa !9
  %140 = tail call double @llvm.fmuladd.f64(double %126, double %137, double %139)
  %141 = getelementptr inbounds double, ptr %9, i64 %indvars.iv162.ph
  store double %140, ptr %141, align 8, !tbaa !9
  %indvars.iv.next163.prol = add nuw nsw i64 %indvars.iv162.ph, 1
  br label %.lr.ph131.prol.loopexit

.lr.ph131.prol.loopexit:                          ; preds = %.lr.ph131.prol, %.lr.ph131.preheader207
  %indvars.iv162.unr = phi i64 [ %indvars.iv162.ph, %.lr.ph131.preheader207 ], [ %indvars.iv.next163.prol, %.lr.ph131.prol ]
  %142 = icmp eq i64 %indvars.iv162.ph, %36
  br i1 %142, label %.loopexit, label %.lr.ph131

.lr.ph131:                                        ; preds = %.lr.ph131.prol.loopexit, %.lr.ph131
  %indvars.iv162 = phi i64 [ %indvars.iv.next163.1, %.lr.ph131 ], [ %indvars.iv162.unr, %.lr.ph131.prol.loopexit ]
  %gep128 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv162
  %143 = load double, ptr %gep128, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %6, i64 %indvars.iv162
  %145 = load double, ptr %144, align 8, !tbaa !9
  %146 = tail call double @llvm.fmuladd.f64(double %126, double %143, double %145)
  %147 = getelementptr inbounds double, ptr %9, i64 %indvars.iv162
  store double %146, ptr %147, align 8, !tbaa !9
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %gep128.1 = getelementptr double, ptr %10, i64 %indvars.iv162
  %148 = load double, ptr %gep128.1, align 8, !tbaa !9
  %149 = getelementptr inbounds double, ptr %6, i64 %indvars.iv.next163
  %150 = load double, ptr %149, align 8, !tbaa !9
  %151 = tail call double @llvm.fmuladd.f64(double %126, double %148, double %150)
  %152 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next163
  store double %151, ptr %152, align 8, !tbaa !9
  %indvars.iv.next163.1 = add nuw nsw i64 %indvars.iv162, 2
  %exitcond166.not.1 = icmp eq i64 %indvars.iv.next163.1, %wide.trip.count165
  br i1 %exitcond166.not.1, label %.loopexit, label %.lr.ph131, !llvm.loop !22

153:                                              ; preds = %._crit_edge122
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  br i1 %19, label %.lr.ph126.preheader, label %._crit_edge136

.lr.ph126.preheader:                              ; preds = %153
  br i1 %or.cond206, label %.lr.ph126.preheader208, label %vector.body199

vector.body199:                                   ; preds = %.lr.ph126.preheader, %vector.body199
  %index200 = phi i64 [ %index.next204, %vector.body199 ], [ 0, %.lr.ph126.preheader ]
  %offset.idx201 = or disjoint i64 %index200, 1
  %154 = getelementptr double, ptr %10, i64 %index200
  %155 = getelementptr i8, ptr %154, i64 16
  %wide.load202 = load <2 x double>, ptr %154, align 8, !tbaa !9
  %wide.load203 = load <2 x double>, ptr %155, align 8, !tbaa !9
  %156 = getelementptr inbounds double, ptr %9, i64 %offset.idx201
  %157 = getelementptr inbounds i8, ptr %156, i64 16
  store <2 x double> %wide.load202, ptr %156, align 8, !tbaa !9
  store <2 x double> %wide.load203, ptr %157, align 8, !tbaa !9
  %index.next204 = add nuw i64 %index200, 4
  %158 = icmp eq i64 %index.next204, %n.vec196
  br i1 %158, label %middle.block191, label %vector.body199, !llvm.loop !23

middle.block191:                                  ; preds = %vector.body199
  br i1 %cmp.n205, label %.loopexit, label %.lr.ph126.preheader208

.lr.ph126.preheader208:                           ; preds = %middle.block191, %.lr.ph126.preheader
  %indvars.iv157.ph = phi i64 [ 1, %.lr.ph126.preheader ], [ %ind.end197, %middle.block191 ]
  %159 = sub nsw i64 %wide.trip.count155, %indvars.iv157.ph
  %xtraiter228 = and i64 %159, 3
  %lcmp.mod229.not = icmp eq i64 %xtraiter228, 0
  br i1 %lcmp.mod229.not, label %.lr.ph126.prol.loopexit, label %.lr.ph126.prol

.lr.ph126.prol:                                   ; preds = %.lr.ph126.preheader208, %.lr.ph126.prol
  %indvars.iv157.prol = phi i64 [ %indvars.iv.next158.prol, %.lr.ph126.prol ], [ %indvars.iv157.ph, %.lr.ph126.preheader208 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph126.prol ], [ 0, %.lr.ph126.preheader208 ]
  %gep.prol = getelementptr double, ptr %invariant.gep, i64 %indvars.iv157.prol
  %160 = load double, ptr %gep.prol, align 8, !tbaa !9
  %161 = getelementptr inbounds double, ptr %9, i64 %indvars.iv157.prol
  store double %160, ptr %161, align 8, !tbaa !9
  %indvars.iv.next158.prol = add nuw nsw i64 %indvars.iv157.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter228
  br i1 %prol.iter.cmp.not, label %.lr.ph126.prol.loopexit, label %.lr.ph126.prol, !llvm.loop !24

.lr.ph126.prol.loopexit:                          ; preds = %.lr.ph126.prol, %.lr.ph126.preheader208
  %indvars.iv157.unr = phi i64 [ %indvars.iv157.ph, %.lr.ph126.preheader208 ], [ %indvars.iv.next158.prol, %.lr.ph126.prol ]
  %162 = sub nsw i64 %indvars.iv157.ph, %wide.trip.count155
  %163 = icmp ugt i64 %162, -4
  br i1 %163, label %.loopexit, label %.lr.ph126

.lr.ph126:                                        ; preds = %.lr.ph126.prol.loopexit, %.lr.ph126
  %indvars.iv157 = phi i64 [ %indvars.iv.next158.3, %.lr.ph126 ], [ %indvars.iv157.unr, %.lr.ph126.prol.loopexit ]
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv157
  %164 = load double, ptr %gep, align 8, !tbaa !9
  %165 = getelementptr inbounds double, ptr %9, i64 %indvars.iv157
  store double %164, ptr %165, align 8, !tbaa !9
  %gep.1 = getelementptr double, ptr %10, i64 %indvars.iv157
  %166 = load double, ptr %gep.1, align 8, !tbaa !9
  %gep256 = getelementptr double, ptr %invariant.gep255, i64 %indvars.iv157
  store double %166, ptr %gep256, align 8, !tbaa !9
  %indvars.iv.next158.1 = add nuw nsw i64 %indvars.iv157, 2
  %gep.2 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next158.1
  %167 = load double, ptr %gep.2, align 8, !tbaa !9
  %168 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next158.1
  store double %167, ptr %168, align 8, !tbaa !9
  %indvars.iv.next158.2 = add nuw nsw i64 %indvars.iv157, 3
  %gep.3 = getelementptr double, ptr %invariant.gep, i64 %indvars.iv.next158.2
  %169 = load double, ptr %gep.3, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %9, i64 %indvars.iv.next158.2
  store double %169, ptr %170, align 8, !tbaa !9
  %indvars.iv.next158.3 = add nuw nsw i64 %indvars.iv157, 4
  %exitcond161.not.3 = icmp eq i64 %indvars.iv.next158.3, %wide.trip.count160
  br i1 %exitcond161.not.3, label %.loopexit, label %.lr.ph126, !llvm.loop !25

.loopexit:                                        ; preds = %.lr.ph126.prol.loopexit, %.lr.ph126, %.lr.ph131.prol.loopexit, %.lr.ph131, %middle.block191, %middle.block
  %171 = phi double [ %127, %middle.block ], [ 0.000000e+00, %middle.block191 ], [ %127, %.lr.ph131 ], [ %127, %.lr.ph131.prol.loopexit ], [ 0.000000e+00, %.lr.ph126 ], [ 0.000000e+00, %.lr.ph126.prol.loopexit ]
  br i1 %19, label %.lr.ph135.preheader, label %._crit_edge136

.lr.ph135.preheader:                              ; preds = %.loopexit
  br i1 %37, label %._crit_edge136.loopexit.unr-lcssa, label %.lr.ph135

.lr.ph135:                                        ; preds = %.lr.ph135.preheader, %.lr.ph135
  %indvars.iv167 = phi i64 [ %indvars.iv.next168.3, %.lr.ph135 ], [ 1, %.lr.ph135.preheader ]
  %.1100132 = phi double [ %180, %.lr.ph135 ], [ %171, %.lr.ph135.preheader ]
  %niter238 = phi i64 [ %niter238.next.3, %.lr.ph135 ], [ 0, %.lr.ph135.preheader ]
  %172 = getelementptr inbounds double, ptr %9, i64 %indvars.iv167
  %173 = load double, ptr %172, align 8, !tbaa !9
  %174 = tail call double @llvm.fmuladd.f64(double %.1100132, double %.094, double %173)
  %gep258 = getelementptr inbounds double, ptr %invariant.gep257, i64 %indvars.iv167
  %175 = load double, ptr %gep258, align 8, !tbaa !9
  %176 = tail call double @llvm.fmuladd.f64(double %174, double %.094, double %175)
  %gep260 = getelementptr inbounds double, ptr %invariant.gep259, i64 %indvars.iv167
  %177 = load double, ptr %gep260, align 8, !tbaa !9
  %178 = tail call double @llvm.fmuladd.f64(double %176, double %.094, double %177)
  %gep262 = getelementptr inbounds double, ptr %invariant.gep261, i64 %indvars.iv167
  %179 = load double, ptr %gep262, align 8, !tbaa !9
  %180 = tail call double @llvm.fmuladd.f64(double %178, double %.094, double %179)
  %indvars.iv.next168.3 = add nuw nsw i64 %indvars.iv167, 4
  %niter238.next.3 = add i64 %niter238, 4
  %niter238.ncmp.3 = icmp eq i64 %niter238.next.3, %unroll_iter237
  br i1 %niter238.ncmp.3, label %._crit_edge136.loopexit.unr-lcssa, label %.lr.ph135, !llvm.loop !26

._crit_edge136.loopexit.unr-lcssa:                ; preds = %.lr.ph135, %.lr.ph135.preheader
  %.lcssa212.ph = phi double [ poison, %.lr.ph135.preheader ], [ %180, %.lr.ph135 ]
  %indvars.iv167.unr = phi i64 [ 1, %.lr.ph135.preheader ], [ %indvars.iv.next168.3, %.lr.ph135 ]
  %.1100132.unr = phi double [ %171, %.lr.ph135.preheader ], [ %180, %.lr.ph135 ]
  br i1 %lcmp.mod235.not, label %._crit_edge136, label %.lr.ph135.epil

.lr.ph135.epil:                                   ; preds = %._crit_edge136.loopexit.unr-lcssa, %.lr.ph135.epil
  %indvars.iv167.epil = phi i64 [ %indvars.iv.next168.epil, %.lr.ph135.epil ], [ %indvars.iv167.unr, %._crit_edge136.loopexit.unr-lcssa ]
  %.1100132.epil = phi double [ %183, %.lr.ph135.epil ], [ %.1100132.unr, %._crit_edge136.loopexit.unr-lcssa ]
  %epil.iter234 = phi i64 [ %epil.iter234.next, %.lr.ph135.epil ], [ 0, %._crit_edge136.loopexit.unr-lcssa ]
  %181 = getelementptr inbounds double, ptr %9, i64 %indvars.iv167.epil
  %182 = load double, ptr %181, align 8, !tbaa !9
  %183 = tail call double @llvm.fmuladd.f64(double %.1100132.epil, double %.094, double %182)
  %indvars.iv.next168.epil = add nuw nsw i64 %indvars.iv167.epil, 1
  %epil.iter234.next = add i64 %epil.iter234, 1
  %epil.iter234.cmp.not = icmp eq i64 %epil.iter234.next, %xtraiter233
  br i1 %epil.iter234.cmp.not, label %._crit_edge136, label %.lr.ph135.epil, !llvm.loop !27

._crit_edge136:                                   ; preds = %._crit_edge136.loopexit.unr-lcssa, %.lr.ph135.epil, %124, %153, %.loopexit
  %.1100.lcssa = phi double [ %171, %.loopexit ], [ %127, %124 ], [ 0.000000e+00, %153 ], [ %.lcssa212.ph, %._crit_edge136.loopexit.unr-lcssa ], [ %183, %.lr.ph135.epil ]
  %184 = tail call double @llvm.fabs.f64(double %.1100.lcssa)
  %185 = load double, ptr %gep139, align 8, !tbaa !9
  %186 = tail call double @llvm.fabs.f64(double %185)
  %187 = fmul double %186, 1.000000e+01
  %188 = fmul double %187, 0x3CB0000000000000
  %189 = fcmp ogt double %184, %188
  %190 = fneg double %.095.lcssa
  %191 = fdiv double %190, %.1100.lcssa
  %192 = select i1 %189, double %191, double 0.000000e+00
  %193 = fadd double %.094, %192
  br label %38, !llvm.loop !28

.loopexit107:                                     ; preds = %86, %95, %85
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !12, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !12, !20}
!23 = distinct !{!23, !12, !20, !21}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !12, !20}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !12}


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