; LLVM IR from bbenligiray/stag :: src/ED/LineSegment.ll (Z7LineFitPdS_iS_S_S_Pi)

; 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
declare double @sqrt(double noundef) #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z7LineFitPdS_iS_S_S_Pi(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i32, align 4
  %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 ptr, align 8
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = icmp slt i32 %39, 2
  br i1 %40, label %41, label %42

41:                                               ; preds = %7
  br label %306

42:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = sitofp i32 %43 to double
  store double %44, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %65, %42
  %46 = load i32, ptr %20, align 4, !tbaa !9
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %68

50:                                               ; preds = %45
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %20, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds double, ptr %51, i64 %53
  %55 = load double, ptr %54, align 8, !tbaa !11
  %56 = load double, ptr %16, align 8, !tbaa !11
  %57 = fadd double %56, %55
  store double %57, ptr %16, align 8, !tbaa !11
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %20, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = load double, ptr %17, align 8, !tbaa !11
  %64 = fadd double %63, %62
  store double %64, ptr %17, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %50
  %66 = load i32, ptr %20, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %20, align 4, !tbaa !9
  br label %45, !llvm.loop !13

68:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %69 = load double, ptr %16, align 8, !tbaa !11
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = sitofp i32 %70 to double
  %72 = fdiv double %69, %71
  store double %72, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %73 = load double, ptr %17, align 8, !tbaa !11
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = sitofp i32 %74 to double
  %76 = fdiv double %73, %75
  store double %76, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  store double 0.000000e+00, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %115, %68
  %78 = load i32, ptr %25, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %118

82:                                               ; preds = %77
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %25, 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 = load double, ptr %21, align 8, !tbaa !11
  %89 = fsub double %87, %88
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i32, ptr %25, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = load double, ptr %21, align 8, !tbaa !11
  %96 = fsub double %94, %95
  %97 = load double, ptr %23, align 8, !tbaa !11
  %98 = call double @llvm.fmuladd.f64(double %89, double %96, double %97)
  store double %98, ptr %23, align 8, !tbaa !11
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr %25, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  %104 = load double, ptr %22, align 8, !tbaa !11
  %105 = fsub double %103, %104
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load i32, ptr %25, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds double, ptr %106, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load double, ptr %22, align 8, !tbaa !11
  %112 = fsub double %110, %111
  %113 = load double, ptr %24, align 8, !tbaa !11
  %114 = call double @llvm.fmuladd.f64(double %105, double %112, double %113)
  store double %114, ptr %24, align 8, !tbaa !11
  br label %115

115:                                              ; preds = %82
  %116 = load i32, ptr %25, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %25, align 4, !tbaa !9
  br label %77, !llvm.loop !15

118:                                              ; preds = %81
  %119 = load double, ptr %23, align 8, !tbaa !11
  %120 = load double, ptr %24, align 8, !tbaa !11
  %121 = fcmp olt double %119, %120
  br i1 %121, label %122, label %130

122:                                              ; preds = %118
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 1, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %124, ptr %26, align 8, !tbaa !5
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %125, ptr %8, align 8, !tbaa !5
  %126 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %126, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %127 = load double, ptr %16, align 8, !tbaa !11
  store double %127, ptr %27, align 8, !tbaa !11
  %128 = load double, ptr %17, align 8, !tbaa !11
  store double %128, ptr %16, align 8, !tbaa !11
  %129 = load double, ptr %27, align 8, !tbaa !11
  store double %129, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %132

130:                                              ; preds = %118
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %131, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %130, %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %163, %132
  %134 = load i32, ptr %28, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %166

138:                                              ; preds = %133
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = load i32, ptr %28, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !11
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load i32, ptr %28, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !11
  %149 = load double, ptr %18, align 8, !tbaa !11
  %150 = call double @llvm.fmuladd.f64(double %143, double %148, double %149)
  store double %150, ptr %18, align 8, !tbaa !11
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = load i32, ptr %28, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !11
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = load i32, ptr %28, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = load double, ptr %19, align 8, !tbaa !11
  %162 = call double @llvm.fmuladd.f64(double %155, double %160, double %161)
  store double %162, ptr %19, align 8, !tbaa !11
  br label %163

163:                                              ; preds = %138
  %164 = load i32, ptr %28, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %28, align 4, !tbaa !9
  br label %133, !llvm.loop !16

166:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %167 = load double, ptr %15, align 8, !tbaa !11
  %168 = load double, ptr %18, align 8, !tbaa !11
  %169 = load double, ptr %16, align 8, !tbaa !11
  %170 = load double, ptr %16, align 8, !tbaa !11
  %171 = fmul double %169, %170
  %172 = fneg double %171
  %173 = call double @llvm.fmuladd.f64(double %167, double %168, double %172)
  store double %173, ptr %29, align 8, !tbaa !11
  %174 = load double, ptr %18, align 8, !tbaa !11
  %175 = load double, ptr %17, align 8, !tbaa !11
  %176 = load double, ptr %16, align 8, !tbaa !11
  %177 = load double, ptr %19, align 8, !tbaa !11
  %178 = fmul double %176, %177
  %179 = fneg double %178
  %180 = call double @llvm.fmuladd.f64(double %174, double %175, double %179)
  %181 = load double, ptr %29, align 8, !tbaa !11
  %182 = fdiv double %180, %181
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  store double %182, ptr %183, align 8, !tbaa !11
  %184 = load double, ptr %15, align 8, !tbaa !11
  %185 = load double, ptr %19, align 8, !tbaa !11
  %186 = load double, ptr %16, align 8, !tbaa !11
  %187 = load double, ptr %17, align 8, !tbaa !11
  %188 = fmul double %186, %187
  %189 = fneg double %188
  %190 = call double @llvm.fmuladd.f64(double %184, double %185, double %189)
  %191 = load double, ptr %29, align 8, !tbaa !11
  %192 = fdiv double %190, %191
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  store double %192, ptr %193, align 8, !tbaa !11
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load double, ptr %194, align 8, !tbaa !11
  %196 = fcmp oeq double %195, 0.000000e+00
  br i1 %196, label %197, label %224

197:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %215, %197
  %199 = load i32, ptr %31, align 4, !tbaa !9
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = icmp slt i32 %199, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  br label %218

203:                                              ; preds = %198
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = load double, ptr %204, align 8, !tbaa !11
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = load i32, ptr %31, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %206, i64 %208
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = fsub double %205, %210
  %212 = call double @llvm.fabs.f64(double %211)
  %213 = load double, ptr %30, align 8, !tbaa !11
  %214 = fadd double %213, %212
  store double %214, ptr %30, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %203
  %216 = load i32, ptr %31, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %31, align 4, !tbaa !9
  br label %198, !llvm.loop !17

218:                                              ; preds = %202
  %219 = load double, ptr %30, align 8, !tbaa !11
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = sitofp i32 %220 to double
  %222 = fdiv double %219, %221
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  store double %222, ptr %223, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %305

224:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  store double 0.000000e+00, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %295, %224
  %226 = load i32, ptr %33, align 4, !tbaa !9
  %227 = load i32, ptr %10, align 4, !tbaa !9
  %228 = icmp slt i32 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  br label %298

230:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = fdiv double -1.000000e+00, %232
  store double %233, ptr %34, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %33, align 4, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds double, ptr %234, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !11
  %239 = load double, ptr %34, align 8, !tbaa !11
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = load i32, ptr %33, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !11
  %245 = fneg double %239
  %246 = call double @llvm.fmuladd.f64(double %245, double %244, double %238)
  store double %246, ptr %35, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %247 = load ptr, ptr %11, align 8, !tbaa !5
  %248 = load double, ptr %247, align 8, !tbaa !11
  %249 = load double, ptr %35, align 8, !tbaa !11
  %250 = fsub double %248, %249
  %251 = load double, ptr %34, align 8, !tbaa !11
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = load double, ptr %252, align 8, !tbaa !11
  %254 = fsub double %251, %253
  %255 = fdiv double %250, %254
  store double %255, ptr %36, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = load double, ptr %256, align 8, !tbaa !11
  %258 = load ptr, ptr %12, align 8, !tbaa !5
  %259 = load double, ptr %258, align 8, !tbaa !11
  %260 = load double, ptr %36, align 8, !tbaa !11
  %261 = call double @llvm.fmuladd.f64(double %259, double %260, double %257)
  store double %261, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = load i32, ptr %33, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds double, ptr %262, i64 %264
  %266 = load double, ptr %265, align 8, !tbaa !11
  %267 = load double, ptr %36, align 8, !tbaa !11
  %268 = fsub double %266, %267
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = load i32, ptr %33, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds double, ptr %269, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = load double, ptr %36, align 8, !tbaa !11
  %275 = fsub double %273, %274
  %276 = load ptr, ptr %9, align 8, !tbaa !5
  %277 = load i32, ptr %33, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !11
  %281 = load double, ptr %37, align 8, !tbaa !11
  %282 = fsub double %280, %281
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = load i32, ptr %33, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  %287 = load double, ptr %286, align 8, !tbaa !11
  %288 = load double, ptr %37, align 8, !tbaa !11
  %289 = fsub double %287, %288
  %290 = fmul double %282, %289
  %291 = call double @llvm.fmuladd.f64(double %268, double %275, double %290)
  store double %291, ptr %38, align 8, !tbaa !11
  %292 = load double, ptr %38, align 8, !tbaa !11
  %293 = load double, ptr %32, align 8, !tbaa !11
  %294 = fadd double %293, %292
  store double %294, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  br label %295

295:                                              ; preds = %230
  %296 = load i32, ptr %33, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %33, align 4, !tbaa !9
  br label %225, !llvm.loop !18

298:                                              ; preds = %229
  %299 = load double, ptr %32, align 8, !tbaa !11
  %300 = load i32, ptr %10, align 4, !tbaa !9
  %301 = sitofp i32 %300 to double
  %302 = fdiv double %299, %301
  %303 = call double @sqrt(double noundef %302) #4
  %304 = load ptr, ptr %13, align 8, !tbaa !5
  store double %303, ptr %304, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  br label %305

305:                                              ; preds = %298, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %306

306:                                              ; preds = %305, %41
  ret void
}

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


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

; Function Attrs: mustprogress nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable
define dso_local void @_Z7LineFitPdS_iS_S_S_Pi(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #2 {
  %8 = icmp slt i32 %2, 2
  br i1 %8, label %177, label %9

9:                                                ; preds = %7
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %10 = icmp ult i32 %2, 4
  br i1 %10, label %.lr.ph.preheader.unr-lcssa, label %.new

.new:                                             ; preds = %9
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %23

.lr.ph.preheader.unr-lcssa:                       ; preds = %23, %9
  %.lcssa206.ph = phi <2 x double> [ poison, %9 ], [ %52, %23 ]
  %indvars.iv.unr = phi i64 [ 0, %9 ], [ %indvars.iv.next.3, %23 ]
  %.unr = phi <2 x double> [ zeroinitializer, %9 ], [ %52, %23 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.lr.ph.preheader.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.lr.ph.preheader.unr-lcssa ]
  %11 = phi <2 x double> [ %18, %.epil.preheader ], [ %.unr, %.lr.ph.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.lr.ph.preheader.unr-lcssa ]
  %12 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.epil
  %13 = load double, ptr %12, align 8, !tbaa !5
  %14 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.epil
  %15 = load double, ptr %14, align 8, !tbaa !5
  %16 = insertelement <2 x double> poison, double %13, i64 0
  %17 = insertelement <2 x double> %16, double %15, i64 1
  %18 = fadd <2 x double> %11, %17
  %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 %.lr.ph.preheader, label %.epil.preheader, !llvm.loop !9

.lr.ph.preheader:                                 ; preds = %.epil.preheader, %.lr.ph.preheader.unr-lcssa
  %.lcssa206 = phi <2 x double> [ %.lcssa206.ph, %.lr.ph.preheader.unr-lcssa ], [ %18, %.epil.preheader ]
  %19 = uitofp nneg i32 %2 to double
  %20 = insertelement <2 x double> poison, double %19, i64 0
  %21 = shufflevector <2 x double> %20, <2 x double> poison, <2 x i32> zeroinitializer
  %22 = fdiv <2 x double> %.lcssa206, %21
  %xtraiter208 = and i64 %wide.trip.count, 1
  %unroll_iter213 = and i64 %wide.trip.count, 2147483646
  br label %.lr.ph

23:                                               ; preds = %23, %.new
  %indvars.iv = phi i64 [ 0, %.new ], [ %indvars.iv.next.3, %23 ]
  %24 = phi <2 x double> [ zeroinitializer, %.new ], [ %52, %23 ]
  %niter = phi i64 [ 0, %.new ], [ %niter.next.3, %23 ]
  %25 = getelementptr inbounds double, ptr %0, i64 %indvars.iv
  %26 = load double, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !5
  %29 = insertelement <2 x double> poison, double %26, i64 0
  %30 = insertelement <2 x double> %29, double %28, i64 1
  %31 = fadd <2 x double> %24, %30
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %32 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next
  %33 = load double, ptr %32, align 8, !tbaa !5
  %34 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next
  %35 = load double, ptr %34, align 8, !tbaa !5
  %36 = insertelement <2 x double> poison, double %33, i64 0
  %37 = insertelement <2 x double> %36, double %35, i64 1
  %38 = fadd <2 x double> %31, %37
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %39 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.1
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.1
  %42 = load double, ptr %41, align 8, !tbaa !5
  %43 = insertelement <2 x double> poison, double %40, i64 0
  %44 = insertelement <2 x double> %43, double %42, i64 1
  %45 = fadd <2 x double> %38, %44
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %46 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next.2
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next.2
  %49 = load double, ptr %48, align 8, !tbaa !5
  %50 = insertelement <2 x double> poison, double %47, i64 0
  %51 = insertelement <2 x double> %50, double %49, i64 1
  %52 = fadd <2 x double> %45, %51
  %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 %.lr.ph.preheader.unr-lcssa, label %23, !llvm.loop !11

.lr.ph145.preheader.unr-lcssa:                    ; preds = %.lr.ph
  %lcmp.mod211.not = icmp eq i64 %xtraiter208, 0
  br i1 %lcmp.mod211.not, label %.lr.ph145.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.lr.ph145.preheader.unr-lcssa
  %53 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next168.1
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next168.1
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = insertelement <2 x double> poison, double %54, i64 0
  %58 = insertelement <2 x double> %57, double %56, i64 1
  %59 = fsub <2 x double> %58, %22
  %60 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %59, <2 x double> %59, <2 x double> %82)
  br label %.lr.ph145.preheader

.lr.ph145.preheader:                              ; preds = %.lr.ph145.preheader.unr-lcssa, %.lr.ph.epil
  %.lcssa205 = phi <2 x double> [ %82, %.lr.ph145.preheader.unr-lcssa ], [ %60, %.lr.ph.epil ]
  %61 = extractelement <2 x double> %.lcssa205, i64 0
  %62 = extractelement <2 x double> %.lcssa205, i64 1
  %63 = fcmp olt double %61, %62
  %. = zext i1 %63 to i32
  %64 = extractelement <2 x double> %.lcssa206, i64 0
  %65 = extractelement <2 x double> %.lcssa206, i64 1
  %.0115..0116 = select i1 %63, double %64, double %65
  %.0116..0115 = select i1 %63, double %65, double %64
  %.131 = select i1 %63, ptr %0, ptr %1
  %.132 = select i1 %63, ptr %1, ptr %0
  store i32 %., ptr %6, align 4, !tbaa !13
  %smax = tail call i32 @llvm.smax.i32(i32 %2, i32 1)
  %wide.trip.count175 = zext nneg i32 %smax to i64
  %xtraiter215 = and i64 %wide.trip.count175, 1
  %unroll_iter220 = and i64 %wide.trip.count175, 2147483646
  br label %.lr.ph145

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader
  %indvars.iv167 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next168.1, %.lr.ph ]
  %66 = phi <2 x double> [ zeroinitializer, %.lr.ph.preheader ], [ %82, %.lr.ph ]
  %niter214 = phi i64 [ 0, %.lr.ph.preheader ], [ %niter214.next.1, %.lr.ph ]
  %67 = getelementptr inbounds double, ptr %0, i64 %indvars.iv167
  %68 = load double, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds double, ptr %1, i64 %indvars.iv167
  %70 = load double, ptr %69, align 8, !tbaa !5
  %71 = insertelement <2 x double> poison, double %68, i64 0
  %72 = insertelement <2 x double> %71, double %70, i64 1
  %73 = fsub <2 x double> %72, %22
  %74 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %73, <2 x double> %73, <2 x double> %66)
  %indvars.iv.next168 = or disjoint i64 %indvars.iv167, 1
  %75 = getelementptr inbounds double, ptr %0, i64 %indvars.iv.next168
  %76 = load double, ptr %75, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %1, i64 %indvars.iv.next168
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = insertelement <2 x double> poison, double %76, i64 0
  %80 = insertelement <2 x double> %79, double %78, i64 1
  %81 = fsub <2 x double> %80, %22
  %82 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %81, <2 x double> %81, <2 x double> %74)
  %indvars.iv.next168.1 = add nuw nsw i64 %indvars.iv167, 2
  %niter214.next.1 = add i64 %niter214, 2
  %niter214.ncmp.1 = icmp eq i64 %niter214.next.1, %unroll_iter213
  br i1 %niter214.ncmp.1, label %.lr.ph145.preheader.unr-lcssa, label %.lr.ph, !llvm.loop !15

._crit_edge146.unr-lcssa:                         ; preds = %.lr.ph145
  %lcmp.mod218.not = icmp eq i64 %xtraiter215, 0
  br i1 %lcmp.mod218.not, label %._crit_edge146, label %.lr.ph145.epil

.lr.ph145.epil:                                   ; preds = %._crit_edge146.unr-lcssa
  %83 = getelementptr inbounds double, ptr %.132, i64 %indvars.iv.next173.1
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv.next173.1
  %86 = load double, ptr %85, align 8, !tbaa !5
  %87 = insertelement <2 x double> poison, double %84, i64 0
  %88 = shufflevector <2 x double> %87, <2 x double> poison, <2 x i32> zeroinitializer
  %89 = insertelement <2 x double> %87, double %86, i64 1
  %90 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %88, <2 x double> %89, <2 x double> %132)
  br label %._crit_edge146

._crit_edge146:                                   ; preds = %._crit_edge146.unr-lcssa, %.lr.ph145.epil
  %.lcssa204 = phi <2 x double> [ %132, %._crit_edge146.unr-lcssa ], [ %90, %.lr.ph145.epil ]
  %91 = fneg double %.0116..0115
  %92 = insertelement <2 x double> poison, double %.0116..0115, i64 1
  %93 = shufflevector <2 x double> %92, <2 x double> %.lcssa204, <2 x i32> <i32 3, i32 1>
  %94 = insertelement <2 x double> poison, double %91, i64 0
  %95 = shufflevector <2 x double> %94, <2 x double> poison, <2 x i32> zeroinitializer
  %96 = fmul <2 x double> %93, %95
  %97 = shufflevector <2 x double> %.lcssa204, <2 x double> poison, <2 x i32> zeroinitializer
  %98 = insertelement <2 x double> poison, double %.0115..0116, i64 0
  %99 = insertelement <2 x double> %98, double %19, i64 1
  %100 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %97, <2 x double> %99, <2 x double> %96)
  %101 = extractelement <2 x double> %100, i64 0
  %102 = extractelement <2 x double> %100, i64 1
  %103 = fdiv double %101, %102
  store double %103, ptr %3, align 8, !tbaa !5
  %104 = fneg double %64
  %105 = fmul double %65, %104
  %106 = extractelement <2 x double> %.lcssa204, i64 1
  %107 = tail call double @llvm.fmuladd.f64(double %19, double %106, double %105)
  %108 = fdiv double %107, %102
  store double %108, ptr %4, align 8, !tbaa !5
  %109 = fcmp oeq double %108, 0.000000e+00
  br i1 %109, label %.lr.ph156, label %.lr.ph151

.lr.ph151:                                        ; preds = %._crit_edge146
  %110 = fdiv double -1.000000e+00, %108
  %111 = fneg double %110
  %112 = load double, ptr %3, align 8, !tbaa !5
  %113 = fsub double %110, %108
  %smax180 = tail call i32 @llvm.smax.i32(i32 %2, i32 1)
  %wide.trip.count181 = zext nneg i32 %smax180 to i64
  br label %162

.lr.ph156:                                        ; preds = %._crit_edge146
  %114 = load double, ptr %3, align 8, !tbaa !5
  %xtraiter223 = and i64 %wide.trip.count175, 3
  %115 = icmp slt i32 %2, 4
  br i1 %115, label %._crit_edge157.unr-lcssa, label %.lr.ph156.new

.lr.ph156.new:                                    ; preds = %.lr.ph156
  %unroll_iter227 = and i64 %wide.trip.count175, 2147483644
  br label %139

.lr.ph145:                                        ; preds = %.lr.ph145, %.lr.ph145.preheader
  %indvars.iv172 = phi i64 [ 0, %.lr.ph145.preheader ], [ %indvars.iv.next173.1, %.lr.ph145 ]
  %116 = phi <2 x double> [ zeroinitializer, %.lr.ph145.preheader ], [ %132, %.lr.ph145 ]
  %niter221 = phi i64 [ 0, %.lr.ph145.preheader ], [ %niter221.next.1, %.lr.ph145 ]
  %117 = getelementptr inbounds double, ptr %.132, i64 %indvars.iv172
  %118 = load double, ptr %117, align 8, !tbaa !5
  %119 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv172
  %120 = load double, ptr %119, align 8, !tbaa !5
  %121 = insertelement <2 x double> poison, double %118, i64 0
  %122 = shufflevector <2 x double> %121, <2 x double> poison, <2 x i32> zeroinitializer
  %123 = insertelement <2 x double> %121, double %120, i64 1
  %124 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %122, <2 x double> %123, <2 x double> %116)
  %indvars.iv.next173 = or disjoint i64 %indvars.iv172, 1
  %125 = getelementptr inbounds double, ptr %.132, i64 %indvars.iv.next173
  %126 = load double, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv.next173
  %128 = load double, ptr %127, align 8, !tbaa !5
  %129 = insertelement <2 x double> poison, double %126, i64 0
  %130 = shufflevector <2 x double> %129, <2 x double> poison, <2 x i32> zeroinitializer
  %131 = insertelement <2 x double> %129, double %128, i64 1
  %132 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %130, <2 x double> %131, <2 x double> %124)
  %indvars.iv.next173.1 = add nuw nsw i64 %indvars.iv172, 2
  %niter221.next.1 = add i64 %niter221, 2
  %niter221.ncmp.1 = icmp eq i64 %niter221.next.1, %unroll_iter220
  br i1 %niter221.ncmp.1, label %._crit_edge146.unr-lcssa, label %.lr.ph145, !llvm.loop !16

._crit_edge157.unr-lcssa:                         ; preds = %139, %.lr.ph156
  %.lcssa.ph = phi double [ poison, %.lr.ph156 ], [ %159, %139 ]
  %indvars.iv183.unr = phi i64 [ 0, %.lr.ph156 ], [ %indvars.iv.next184.3, %139 ]
  %.0122154.unr = phi double [ 0.000000e+00, %.lr.ph156 ], [ %159, %139 ]
  %lcmp.mod225.not = icmp eq i64 %xtraiter223, 0
  br i1 %lcmp.mod225.not, label %._crit_edge157, label %.epil.preheader222

.epil.preheader222:                               ; preds = %._crit_edge157.unr-lcssa, %.epil.preheader222
  %indvars.iv183.epil = phi i64 [ %indvars.iv.next184.epil, %.epil.preheader222 ], [ %indvars.iv183.unr, %._crit_edge157.unr-lcssa ]
  %.0122154.epil = phi double [ %137, %.epil.preheader222 ], [ %.0122154.unr, %._crit_edge157.unr-lcssa ]
  %epil.iter224 = phi i64 [ %epil.iter224.next, %.epil.preheader222 ], [ 0, %._crit_edge157.unr-lcssa ]
  %133 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv183.epil
  %134 = load double, ptr %133, align 8, !tbaa !5
  %135 = fsub double %114, %134
  %136 = tail call double @llvm.fabs.f64(double %135)
  %137 = fadd double %.0122154.epil, %136
  %indvars.iv.next184.epil = add nuw nsw i64 %indvars.iv183.epil, 1
  %epil.iter224.next = add i64 %epil.iter224, 1
  %epil.iter224.cmp.not = icmp eq i64 %epil.iter224.next, %xtraiter223
  br i1 %epil.iter224.cmp.not, label %._crit_edge157, label %.epil.preheader222, !llvm.loop !17

._crit_edge157:                                   ; preds = %.epil.preheader222, %._crit_edge157.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge157.unr-lcssa ], [ %137, %.epil.preheader222 ]
  %138 = fdiv double %.lcssa, %19
  br label %176

139:                                              ; preds = %139, %.lr.ph156.new
  %indvars.iv183 = phi i64 [ 0, %.lr.ph156.new ], [ %indvars.iv.next184.3, %139 ]
  %.0122154 = phi double [ 0.000000e+00, %.lr.ph156.new ], [ %159, %139 ]
  %niter228 = phi i64 [ 0, %.lr.ph156.new ], [ %niter228.next.3, %139 ]
  %140 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv183
  %141 = load double, ptr %140, align 8, !tbaa !5
  %142 = fsub double %114, %141
  %143 = tail call double @llvm.fabs.f64(double %142)
  %144 = fadd double %.0122154, %143
  %indvars.iv.next184 = or disjoint i64 %indvars.iv183, 1
  %145 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv.next184
  %146 = load double, ptr %145, align 8, !tbaa !5
  %147 = fsub double %114, %146
  %148 = tail call double @llvm.fabs.f64(double %147)
  %149 = fadd double %144, %148
  %indvars.iv.next184.1 = or disjoint i64 %indvars.iv183, 2
  %150 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv.next184.1
  %151 = load double, ptr %150, align 8, !tbaa !5
  %152 = fsub double %114, %151
  %153 = tail call double @llvm.fabs.f64(double %152)
  %154 = fadd double %149, %153
  %indvars.iv.next184.2 = or disjoint i64 %indvars.iv183, 3
  %155 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv.next184.2
  %156 = load double, ptr %155, align 8, !tbaa !5
  %157 = fsub double %114, %156
  %158 = tail call double @llvm.fabs.f64(double %157)
  %159 = fadd double %154, %158
  %indvars.iv.next184.3 = add nuw nsw i64 %indvars.iv183, 4
  %niter228.next.3 = add i64 %niter228, 4
  %niter228.ncmp.3 = icmp eq i64 %niter228.next.3, %unroll_iter227
  br i1 %niter228.ncmp.3, label %._crit_edge157.unr-lcssa, label %139, !llvm.loop !18

._crit_edge152:                                   ; preds = %162
  %160 = fdiv double %175, %19
  %161 = tail call double @sqrt(double noundef %160) #4
  br label %176

162:                                              ; preds = %.lr.ph151, %162
  %indvars.iv177 = phi i64 [ 0, %.lr.ph151 ], [ %indvars.iv.next178, %162 ]
  %.0120149 = phi double [ 0.000000e+00, %.lr.ph151 ], [ %175, %162 ]
  %163 = getelementptr inbounds double, ptr %.131, i64 %indvars.iv177
  %164 = load double, ptr %163, align 8, !tbaa !5
  %165 = getelementptr inbounds double, ptr %.132, i64 %indvars.iv177
  %166 = load double, ptr %165, align 8, !tbaa !5
  %167 = tail call double @llvm.fmuladd.f64(double %111, double %166, double %164)
  %168 = fsub double %112, %167
  %169 = fdiv double %168, %113
  %170 = tail call double @llvm.fmuladd.f64(double %108, double %169, double %112)
  %171 = fsub double %166, %169
  %172 = fsub double %164, %170
  %173 = fmul double %172, %172
  %174 = tail call double @llvm.fmuladd.f64(double %171, double %171, double %173)
  %175 = fadd double %.0120149, %174
  %indvars.iv.next178 = add nuw nsw i64 %indvars.iv177, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next178, %wide.trip.count181
  br i1 %exitcond182.not, label %._crit_edge152, label %162, !llvm.loop !19

176:                                              ; preds = %._crit_edge152, %._crit_edge157
  %storemerge130 = phi double [ %161, %._crit_edge152 ], [ %138, %._crit_edge157 ]
  store double %storemerge130, ptr %5, align 8, !tbaa !5
  br label %177

177:                                              ; preds = %7, %176
  ret void
}

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind memory(readwrite, inaccessiblemem: write) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


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