; LLVM IR from opensim-org/opensim-core :: OpenSim/Common/Lmdif.ll (Z7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_)

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

@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1 = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5 = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p25 = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p75 = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001 = external hidden global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero = external hidden global double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8, double noundef %9, ptr noundef %10, i32 noundef %11, double noundef %12, i32 noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24) #0 {
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca double, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca double, align 8
  %59 = alloca double, align 8
  %60 = alloca double, align 8
  %61 = alloca double, align 8
  %62 = alloca double, align 8
  %63 = alloca double, align 8
  %64 = alloca double, align 8
  %65 = alloca double, align 8
  %66 = alloca double, align 8
  %67 = alloca double, align 8
  %68 = alloca double, align 8
  %69 = alloca double, align 8
  %70 = alloca double, align 8
  %71 = alloca double, align 8
  %72 = alloca double, align 8
  %73 = alloca double, align 8
  store ptr %0, ptr %26, align 8, !tbaa !5
  store i32 %1, ptr %27, align 4, !tbaa !9
  store i32 %2, ptr %28, align 4, !tbaa !9
  store ptr %3, ptr %29, align 8, !tbaa !5
  store ptr %4, ptr %30, align 8, !tbaa !5
  store double %5, ptr %31, align 8, !tbaa !11
  store double %6, ptr %32, align 8, !tbaa !11
  store double %7, ptr %33, align 8, !tbaa !11
  store i32 %8, ptr %34, align 4, !tbaa !9
  store double %9, ptr %35, align 8, !tbaa !11
  store ptr %10, ptr %36, align 8, !tbaa !5
  store i32 %11, ptr %37, align 4, !tbaa !9
  store double %12, ptr %38, align 8, !tbaa !11
  store i32 %13, ptr %39, align 4, !tbaa !9
  store ptr %14, ptr %40, align 8, !tbaa !5
  store ptr %15, ptr %41, align 8, !tbaa !5
  store ptr %16, ptr %42, align 8, !tbaa !5
  store i32 %17, ptr %43, align 4, !tbaa !9
  store ptr %18, ptr %44, align 8, !tbaa !5
  store ptr %19, ptr %45, align 8, !tbaa !5
  store ptr %20, ptr %46, align 8, !tbaa !5
  store ptr %21, ptr %47, align 8, !tbaa !5
  store ptr %22, ptr %48, align 8, !tbaa !5
  store ptr %23, ptr %49, align 8, !tbaa !5
  store ptr %24, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #5
  %74 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 0, ptr %74, align 4, !tbaa !9
  store i32 0, ptr %52, align 4, !tbaa !9
  %75 = load ptr, ptr %41, align 8, !tbaa !5
  store i32 0, ptr %75, align 4, !tbaa !9
  %76 = load i32, ptr %28, align 4, !tbaa !9
  %77 = icmp sle i32 %76, 0
  br i1 %77, label %105, label %78

78:                                               ; preds = %25
  %79 = load i32, ptr %27, align 4, !tbaa !9
  %80 = load i32, ptr %28, align 4, !tbaa !9
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %105, label %82

82:                                               ; preds = %78
  %83 = load i32, ptr %43, align 4, !tbaa !9
  %84 = load i32, ptr %27, align 4, !tbaa !9
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %105, label %86

86:                                               ; preds = %82
  %87 = load double, ptr %31, align 8, !tbaa !11
  %88 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %89 = fcmp olt double %87, %88
  br i1 %89, label %105, label %90

90:                                               ; preds = %86
  %91 = load double, ptr %32, align 8, !tbaa !11
  %92 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %93 = fcmp olt double %91, %92
  br i1 %93, label %105, label %94

94:                                               ; preds = %90
  %95 = load double, ptr %33, align 8, !tbaa !11
  %96 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %97 = fcmp olt double %95, %96
  br i1 %97, label %105, label %98

98:                                               ; preds = %94
  %99 = load i32, ptr %34, align 4, !tbaa !9
  %100 = icmp sle i32 %99, 0
  br i1 %100, label %105, label %101

101:                                              ; preds = %98
  %102 = load double, ptr %38, align 8, !tbaa !11
  %103 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %104 = fcmp ole double %102, %103
  br i1 %104, label %105, label %106

105:                                              ; preds = %101, %98, %94, %90, %86, %82, %78, %25
  br label %891

106:                                              ; preds = %101
  %107 = load i32, ptr %37, align 4, !tbaa !9
  %108 = icmp eq i32 %107, 2
  br i1 %108, label %109, label %127

109:                                              ; preds = %106
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %123, %109
  %111 = load i32, ptr %56, align 4, !tbaa !9
  %112 = load i32, ptr %28, align 4, !tbaa !9
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %126

114:                                              ; preds = %110
  %115 = load ptr, ptr %36, align 8, !tbaa !5
  %116 = load i32, ptr %56, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !11
  %120 = fcmp ole double %119, 0.000000e+00
  br i1 %120, label %121, label %122

121:                                              ; preds = %114
  br label %891

122:                                              ; preds = %114
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %56, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %56, align 4, !tbaa !9
  br label %110, !llvm.loop !13

126:                                              ; preds = %110
  br label %127

127:                                              ; preds = %126, %106
  store i32 1, ptr %52, align 4, !tbaa !9
  %128 = load ptr, ptr %26, align 8, !tbaa !5
  %129 = load i32, ptr %27, align 4, !tbaa !9
  %130 = load i32, ptr %28, align 4, !tbaa !9
  %131 = load ptr, ptr %29, align 8, !tbaa !5
  %132 = load ptr, ptr %30, align 8, !tbaa !5
  %133 = load ptr, ptr %50, align 8, !tbaa !5
  call void %128(i32 noundef %129, i32 noundef %130, ptr noundef %131, ptr noundef %132, ptr noundef %52, ptr noundef %133)
  %134 = load ptr, ptr %41, align 8, !tbaa !5
  store i32 1, ptr %134, align 4, !tbaa !9
  %135 = load i32, ptr %52, align 4, !tbaa !9
  %136 = icmp slt i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %127
  br label %891

138:                                              ; preds = %127
  %139 = load i32, ptr %27, align 4, !tbaa !9
  %140 = load ptr, ptr %30, align 8, !tbaa !5
  %141 = call noundef double @_Z5enormiPd(i32 noundef %139, ptr noundef %140)
  store double %141, ptr %61, align 8, !tbaa !11
  %142 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  store double %142, ptr %64, align 8, !tbaa !11
  store i32 1, ptr %55, align 4, !tbaa !9
  br label %143

143:                                              ; preds = %890, %138
  store i32 2, ptr %52, align 4, !tbaa !9
  %144 = load ptr, ptr %26, align 8, !tbaa !5
  %145 = load i32, ptr %27, align 4, !tbaa !9
  %146 = load i32, ptr %28, align 4, !tbaa !9
  %147 = load ptr, ptr %29, align 8, !tbaa !5
  %148 = load ptr, ptr %30, align 8, !tbaa !5
  %149 = load ptr, ptr %42, align 8, !tbaa !5
  %150 = load i32, ptr %43, align 4, !tbaa !9
  %151 = load double, ptr %35, align 8, !tbaa !11
  %152 = load ptr, ptr %49, align 8, !tbaa !5
  %153 = load ptr, ptr %50, align 8, !tbaa !5
  call void @_Z6fdjac2PFviiPdS_PiPvEiiS_S_S_iS0_dS_S1_(ptr noundef %144, i32 noundef %145, i32 noundef %146, ptr noundef %147, ptr noundef %148, ptr noundef %149, i32 noundef %150, ptr noundef %52, double noundef %151, ptr noundef %152, ptr noundef %153)
  %154 = load i32, ptr %52, align 4, !tbaa !9
  %155 = icmp slt i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %143
  br label %891

157:                                              ; preds = %143
  %158 = load i32, ptr %39, align 4, !tbaa !9
  %159 = icmp sgt i32 %158, 0
  br i1 %159, label %160, label %178

160:                                              ; preds = %157
  store i32 0, ptr %52, align 4, !tbaa !9
  %161 = load i32, ptr %55, align 4, !tbaa !9
  %162 = sub nsw i32 %161, 1
  %163 = load i32, ptr %39, align 4, !tbaa !9
  %164 = call noundef i32 @_Z3modii(i32 noundef %162, i32 noundef %163)
  %165 = icmp eq i32 %164, 0
  br i1 %165, label %166, label %177

166:                                              ; preds = %160
  %167 = load ptr, ptr %26, align 8, !tbaa !5
  %168 = load i32, ptr %27, align 4, !tbaa !9
  %169 = load i32, ptr %28, align 4, !tbaa !9
  %170 = load ptr, ptr %29, align 8, !tbaa !5
  %171 = load ptr, ptr %30, align 8, !tbaa !5
  %172 = load ptr, ptr %50, align 8, !tbaa !5
  call void %167(i32 noundef %168, i32 noundef %169, ptr noundef %170, ptr noundef %171, ptr noundef %52, ptr noundef %172)
  %173 = load i32, ptr %52, align 4, !tbaa !9
  %174 = icmp slt i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %166
  br label %891

176:                                              ; preds = %166
  br label %177

177:                                              ; preds = %176, %160
  br label %178

178:                                              ; preds = %177, %157
  %179 = load i32, ptr %27, align 4, !tbaa !9
  %180 = load i32, ptr %28, align 4, !tbaa !9
  %181 = load ptr, ptr %42, align 8, !tbaa !5
  %182 = load i32, ptr %43, align 4, !tbaa !9
  %183 = load ptr, ptr %44, align 8, !tbaa !5
  %184 = load i32, ptr %28, align 4, !tbaa !9
  %185 = load ptr, ptr %46, align 8, !tbaa !5
  %186 = load ptr, ptr %47, align 8, !tbaa !5
  %187 = load ptr, ptr %48, align 8, !tbaa !5
  call void @_Z5qrfaciiPdiiPiiS_S_S_(i32 noundef %179, i32 noundef %180, ptr noundef %181, i32 noundef %182, i32 noundef 1, ptr noundef %183, i32 noundef %184, ptr noundef %185, ptr noundef %186, ptr noundef %187)
  %188 = load i32, ptr %55, align 4, !tbaa !9
  %189 = icmp eq i32 %188, 1
  br i1 %189, label %190, label %263

190:                                              ; preds = %178
  %191 = load i32, ptr %37, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 2
  br i1 %192, label %193, label %226

193:                                              ; preds = %190
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %222, %193
  %195 = load i32, ptr %56, align 4, !tbaa !9
  %196 = load i32, ptr %28, align 4, !tbaa !9
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %198, label %225

198:                                              ; preds = %194
  %199 = load ptr, ptr %47, align 8, !tbaa !5
  %200 = load i32, ptr %56, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = load ptr, ptr %36, align 8, !tbaa !5
  %205 = load i32, ptr %56, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %204, i64 %206
  store double %203, ptr %207, align 8, !tbaa !11
  %208 = load ptr, ptr %47, align 8, !tbaa !5
  %209 = load i32, ptr %56, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !11
  %213 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %214 = fcmp oeq double %212, %213
  br i1 %214, label %215, label %221

215:                                              ; preds = %198
  %216 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %217 = load ptr, ptr %36, align 8, !tbaa !5
  %218 = load i32, ptr %56, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  store double %216, ptr %220, align 8, !tbaa !11
  br label %221

221:                                              ; preds = %215, %198
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %56, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %56, align 4, !tbaa !9
  br label %194, !llvm.loop !15

225:                                              ; preds = %194
  br label %226

226:                                              ; preds = %225, %190
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %247, %226
  %228 = load i32, ptr %56, align 4, !tbaa !9
  %229 = load i32, ptr %28, align 4, !tbaa !9
  %230 = icmp slt i32 %228, %229
  br i1 %230, label %231, label %250

231:                                              ; preds = %227
  %232 = load ptr, ptr %36, align 8, !tbaa !5
  %233 = load i32, ptr %56, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds double, ptr %232, i64 %234
  %236 = load double, ptr %235, align 8, !tbaa !11
  %237 = load ptr, ptr %29, align 8, !tbaa !5
  %238 = load i32, ptr %56, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !11
  %242 = fmul double %236, %241
  %243 = load ptr, ptr %48, align 8, !tbaa !5
  %244 = load i32, ptr %56, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds double, ptr %243, i64 %245
  store double %242, ptr %246, align 8, !tbaa !11
  br label %247

247:                                              ; preds = %231
  %248 = load i32, ptr %56, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %56, align 4, !tbaa !9
  br label %227, !llvm.loop !16

250:                                              ; preds = %227
  %251 = load i32, ptr %28, align 4, !tbaa !9
  %252 = load ptr, ptr %48, align 8, !tbaa !5
  %253 = call noundef double @_Z5enormiPd(i32 noundef %251, ptr noundef %252)
  store double %253, ptr %73, align 8, !tbaa !11
  %254 = load double, ptr %38, align 8, !tbaa !11
  %255 = load double, ptr %73, align 8, !tbaa !11
  %256 = fmul double %254, %255
  store double %256, ptr %59, align 8, !tbaa !11
  %257 = load double, ptr %59, align 8, !tbaa !11
  %258 = call double @llvm.fabs.f64(double %257)
  %259 = fcmp ole double %258, 1.000000e-04
  br i1 %259, label %260, label %262

260:                                              ; preds = %250
  %261 = load double, ptr %38, align 8, !tbaa !11
  store double %261, ptr %59, align 8, !tbaa !11
  br label %262

262:                                              ; preds = %260, %250
  br label %263

263:                                              ; preds = %262, %178
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %264

264:                                              ; preds = %278, %263
  %265 = load i32, ptr %51, align 4, !tbaa !9
  %266 = load i32, ptr %27, align 4, !tbaa !9
  %267 = icmp slt i32 %265, %266
  br i1 %267, label %268, label %281

268:                                              ; preds = %264
  %269 = load ptr, ptr %30, align 8, !tbaa !5
  %270 = load i32, ptr %51, 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 ptr, ptr %49, align 8, !tbaa !5
  %275 = load i32, ptr %51, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds double, ptr %274, i64 %276
  store double %273, ptr %277, align 8, !tbaa !11
  br label %278

278:                                              ; preds = %268
  %279 = load i32, ptr %51, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %51, align 4, !tbaa !9
  br label %264, !llvm.loop !17

281:                                              ; preds = %264
  store i32 0, ptr %54, align 4, !tbaa !9
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %374, %281
  %283 = load i32, ptr %56, align 4, !tbaa !9
  %284 = load i32, ptr %28, align 4, !tbaa !9
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %286, label %377

286:                                              ; preds = %282
  %287 = load ptr, ptr %42, align 8, !tbaa !5
  %288 = load i32, ptr %54, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds double, ptr %287, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !11
  store double %291, ptr %72, align 8, !tbaa !11
  %292 = load double, ptr %72, align 8, !tbaa !11
  %293 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %294 = fcmp une double %292, %293
  br i1 %294, label %295, label %351

295:                                              ; preds = %286
  %296 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  store double %296, ptr %68, align 8, !tbaa !11
  %297 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %297, ptr %53, align 4, !tbaa !9
  %298 = load i32, ptr %56, align 4, !tbaa !9
  store i32 %298, ptr %51, align 4, !tbaa !9
  br label %299

299:                                              ; preds = %318, %295
  %300 = load i32, ptr %51, align 4, !tbaa !9
  %301 = load i32, ptr %27, align 4, !tbaa !9
  %302 = icmp slt i32 %300, %301
  br i1 %302, label %303, label %321

303:                                              ; preds = %299
  %304 = load ptr, ptr %42, align 8, !tbaa !5
  %305 = load i32, ptr %53, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds double, ptr %304, i64 %306
  %308 = load double, ptr %307, align 8, !tbaa !11
  %309 = load ptr, ptr %49, align 8, !tbaa !5
  %310 = load i32, ptr %51, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds double, ptr %309, i64 %311
  %313 = load double, ptr %312, align 8, !tbaa !11
  %314 = load double, ptr %68, align 8, !tbaa !11
  %315 = call double @llvm.fmuladd.f64(double %308, double %313, double %314)
  store double %315, ptr %68, align 8, !tbaa !11
  %316 = load i32, ptr %53, align 4, !tbaa !9
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %53, align 4, !tbaa !9
  br label %318

318:                                              ; preds = %303
  %319 = load i32, ptr %51, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %51, align 4, !tbaa !9
  br label %299, !llvm.loop !18

321:                                              ; preds = %299
  %322 = load double, ptr %68, align 8, !tbaa !11
  %323 = fneg double %322
  %324 = load double, ptr %72, align 8, !tbaa !11
  %325 = fdiv double %323, %324
  store double %325, ptr %69, align 8, !tbaa !11
  %326 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %326, ptr %53, align 4, !tbaa !9
  %327 = load i32, ptr %56, align 4, !tbaa !9
  store i32 %327, ptr %51, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %347, %321
  %329 = load i32, ptr %51, align 4, !tbaa !9
  %330 = load i32, ptr %27, align 4, !tbaa !9
  %331 = icmp slt i32 %329, %330
  br i1 %331, label %332, label %350

332:                                              ; preds = %328
  %333 = load ptr, ptr %42, align 8, !tbaa !5
  %334 = load i32, ptr %53, align 4, !tbaa !9
  %335 = sext i32 %334 to i64
  %336 = getelementptr inbounds double, ptr %333, i64 %335
  %337 = load double, ptr %336, align 8, !tbaa !11
  %338 = load double, ptr %69, align 8, !tbaa !11
  %339 = load ptr, ptr %49, align 8, !tbaa !5
  %340 = load i32, ptr %51, align 4, !tbaa !9
  %341 = sext i32 %340 to i64
  %342 = getelementptr inbounds double, ptr %339, i64 %341
  %343 = load double, ptr %342, align 8, !tbaa !11
  %344 = call double @llvm.fmuladd.f64(double %337, double %338, double %343)
  store double %344, ptr %342, align 8, !tbaa !11
  %345 = load i32, ptr %53, align 4, !tbaa !9
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %53, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %332
  %348 = load i32, ptr %51, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %51, align 4, !tbaa !9
  br label %328, !llvm.loop !19

350:                                              ; preds = %328
  br label %351

351:                                              ; preds = %350, %286
  %352 = load ptr, ptr %46, align 8, !tbaa !5
  %353 = load i32, ptr %56, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds double, ptr %352, i64 %354
  %356 = load double, ptr %355, align 8, !tbaa !11
  %357 = load ptr, ptr %42, align 8, !tbaa !5
  %358 = load i32, ptr %54, align 4, !tbaa !9
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds double, ptr %357, i64 %359
  store double %356, ptr %360, align 8, !tbaa !11
  %361 = load i32, ptr %27, align 4, !tbaa !9
  %362 = add nsw i32 %361, 1
  %363 = load i32, ptr %54, align 4, !tbaa !9
  %364 = add nsw i32 %363, %362
  store i32 %364, ptr %54, align 4, !tbaa !9
  %365 = load ptr, ptr %49, align 8, !tbaa !5
  %366 = load i32, ptr %56, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds double, ptr %365, i64 %367
  %369 = load double, ptr %368, align 8, !tbaa !11
  %370 = load ptr, ptr %45, align 8, !tbaa !5
  %371 = load i32, ptr %56, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds double, ptr %370, i64 %372
  store double %369, ptr %373, align 8, !tbaa !11
  br label %374

374:                                              ; preds = %351
  %375 = load i32, ptr %56, align 4, !tbaa !9
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %56, align 4, !tbaa !9
  br label %282, !llvm.loop !20

377:                                              ; preds = %282
  %378 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  store double %378, ptr %63, align 8, !tbaa !11
  %379 = load double, ptr %61, align 8, !tbaa !11
  %380 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %381 = fcmp une double %379, %380
  br i1 %381, label %382, label %446

382:                                              ; preds = %377
  store i32 0, ptr %54, align 4, !tbaa !9
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %383

383:                                              ; preds = %442, %382
  %384 = load i32, ptr %56, align 4, !tbaa !9
  %385 = load i32, ptr %28, align 4, !tbaa !9
  %386 = icmp slt i32 %384, %385
  br i1 %386, label %387, label %445

387:                                              ; preds = %383
  %388 = load ptr, ptr %44, align 8, !tbaa !5
  %389 = load i32, ptr %56, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds i32, ptr %388, i64 %390
  %392 = load i32, ptr %391, align 4, !tbaa !9
  store i32 %392, ptr %57, align 4, !tbaa !9
  %393 = load ptr, ptr %47, align 8, !tbaa !5
  %394 = load i32, ptr %57, align 4, !tbaa !9
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds double, ptr %393, i64 %395
  %397 = load double, ptr %396, align 8, !tbaa !11
  %398 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %399 = fcmp une double %397, %398
  br i1 %399, label %400, label %438

400:                                              ; preds = %387
  %401 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  store double %401, ptr %68, align 8, !tbaa !11
  %402 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %402, ptr %53, align 4, !tbaa !9
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %403

403:                                              ; preds = %424, %400
  %404 = load i32, ptr %51, align 4, !tbaa !9
  %405 = load i32, ptr %56, align 4, !tbaa !9
  %406 = icmp sle i32 %404, %405
  br i1 %406, label %407, label %427

407:                                              ; preds = %403
  %408 = load ptr, ptr %42, align 8, !tbaa !5
  %409 = load i32, ptr %53, align 4, !tbaa !9
  %410 = sext i32 %409 to i64
  %411 = getelementptr inbounds double, ptr %408, i64 %410
  %412 = load double, ptr %411, align 8, !tbaa !11
  %413 = load ptr, ptr %45, align 8, !tbaa !5
  %414 = load i32, ptr %51, align 4, !tbaa !9
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds double, ptr %413, i64 %415
  %417 = load double, ptr %416, align 8, !tbaa !11
  %418 = load double, ptr %61, align 8, !tbaa !11
  %419 = fdiv double %417, %418
  %420 = load double, ptr %68, align 8, !tbaa !11
  %421 = call double @llvm.fmuladd.f64(double %412, double %419, double %420)
  store double %421, ptr %68, align 8, !tbaa !11
  %422 = load i32, ptr %53, align 4, !tbaa !9
  %423 = add nsw i32 %422, 1
  store i32 %423, ptr %53, align 4, !tbaa !9
  br label %424

424:                                              ; preds = %407
  %425 = load i32, ptr %51, align 4, !tbaa !9
  %426 = add nsw i32 %425, 1
  store i32 %426, ptr %51, align 4, !tbaa !9
  br label %403, !llvm.loop !21

427:                                              ; preds = %403
  %428 = load double, ptr %63, align 8, !tbaa !11
  %429 = load double, ptr %68, align 8, !tbaa !11
  %430 = load ptr, ptr %47, align 8, !tbaa !5
  %431 = load i32, ptr %57, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds double, ptr %430, i64 %432
  %434 = load double, ptr %433, align 8, !tbaa !11
  %435 = fdiv double %429, %434
  %436 = call double @llvm.fabs.f64(double %435)
  %437 = call noundef double @_Z5dmax1dd(double noundef %428, double noundef %436)
  store double %437, ptr %63, align 8, !tbaa !11
  br label %438

438:                                              ; preds = %427, %387
  %439 = load i32, ptr %27, align 4, !tbaa !9
  %440 = load i32, ptr %54, align 4, !tbaa !9
  %441 = add nsw i32 %440, %439
  store i32 %441, ptr %54, align 4, !tbaa !9
  br label %442

442:                                              ; preds = %438
  %443 = load i32, ptr %56, align 4, !tbaa !9
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %56, align 4, !tbaa !9
  br label %383, !llvm.loop !22

445:                                              ; preds = %383
  br label %446

446:                                              ; preds = %445, %377
  %447 = load double, ptr %63, align 8, !tbaa !11
  %448 = load double, ptr %33, align 8, !tbaa !11
  %449 = fcmp ole double %447, %448
  br i1 %449, label %450, label %452

450:                                              ; preds = %446
  %451 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 4, ptr %451, align 4, !tbaa !9
  br label %452

452:                                              ; preds = %450, %446
  %453 = load ptr, ptr %40, align 8, !tbaa !5
  %454 = load i32, ptr %453, align 4, !tbaa !9
  %455 = icmp ne i32 %454, 0
  br i1 %455, label %456, label %457

456:                                              ; preds = %452
  br label %891

457:                                              ; preds = %452
  %458 = load i32, ptr %37, align 4, !tbaa !9
  %459 = icmp ne i32 %458, 2
  br i1 %459, label %460, label %485

460:                                              ; preds = %457
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %461

461:                                              ; preds = %481, %460
  %462 = load i32, ptr %56, align 4, !tbaa !9
  %463 = load i32, ptr %28, align 4, !tbaa !9
  %464 = icmp slt i32 %462, %463
  br i1 %464, label %465, label %484

465:                                              ; preds = %461
  %466 = load ptr, ptr %36, align 8, !tbaa !5
  %467 = load i32, ptr %56, align 4, !tbaa !9
  %468 = sext i32 %467 to i64
  %469 = getelementptr inbounds double, ptr %466, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !11
  %471 = load ptr, ptr %47, align 8, !tbaa !5
  %472 = load i32, ptr %56, align 4, !tbaa !9
  %473 = sext i32 %472 to i64
  %474 = getelementptr inbounds double, ptr %471, i64 %473
  %475 = load double, ptr %474, align 8, !tbaa !11
  %476 = call noundef double @_Z5dmax1dd(double noundef %470, double noundef %475)
  %477 = load ptr, ptr %36, align 8, !tbaa !5
  %478 = load i32, ptr %56, align 4, !tbaa !9
  %479 = sext i32 %478 to i64
  %480 = getelementptr inbounds double, ptr %477, i64 %479
  store double %476, ptr %480, align 8, !tbaa !11
  br label %481

481:                                              ; preds = %465
  %482 = load i32, ptr %56, align 4, !tbaa !9
  %483 = add nsw i32 %482, 1
  store i32 %483, ptr %56, align 4, !tbaa !9
  br label %461, !llvm.loop !23

484:                                              ; preds = %461
  br label %485

485:                                              ; preds = %484, %457
  br label %486

486:                                              ; preds = %889, %485
  %487 = load i32, ptr %28, align 4, !tbaa !9
  %488 = load ptr, ptr %42, align 8, !tbaa !5
  %489 = load i32, ptr %43, align 4, !tbaa !9
  %490 = load ptr, ptr %44, align 8, !tbaa !5
  %491 = load ptr, ptr %36, align 8, !tbaa !5
  %492 = load ptr, ptr %45, align 8, !tbaa !5
  %493 = load double, ptr %59, align 8, !tbaa !11
  %494 = load ptr, ptr %46, align 8, !tbaa !5
  %495 = load ptr, ptr %47, align 8, !tbaa !5
  %496 = load ptr, ptr %48, align 8, !tbaa !5
  %497 = load ptr, ptr %49, align 8, !tbaa !5
  call void @_Z5lmpariPdiPiS_S_dS_S_S_S_S_(i32 noundef %487, ptr noundef %488, i32 noundef %489, ptr noundef %490, ptr noundef %491, ptr noundef %492, double noundef %493, ptr noundef %64, ptr noundef %494, ptr noundef %495, ptr noundef %496, ptr noundef %497)
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %498

498:                                              ; preds = %543, %486
  %499 = load i32, ptr %56, align 4, !tbaa !9
  %500 = load i32, ptr %28, align 4, !tbaa !9
  %501 = icmp slt i32 %499, %500
  br i1 %501, label %502, label %546

502:                                              ; preds = %498
  %503 = load ptr, ptr %46, align 8, !tbaa !5
  %504 = load i32, ptr %56, align 4, !tbaa !9
  %505 = sext i32 %504 to i64
  %506 = getelementptr inbounds double, ptr %503, i64 %505
  %507 = load double, ptr %506, align 8, !tbaa !11
  %508 = fneg double %507
  %509 = load ptr, ptr %46, align 8, !tbaa !5
  %510 = load i32, ptr %56, align 4, !tbaa !9
  %511 = sext i32 %510 to i64
  %512 = getelementptr inbounds double, ptr %509, i64 %511
  store double %508, ptr %512, align 8, !tbaa !11
  %513 = load ptr, ptr %29, align 8, !tbaa !5
  %514 = load i32, ptr %56, align 4, !tbaa !9
  %515 = sext i32 %514 to i64
  %516 = getelementptr inbounds double, ptr %513, i64 %515
  %517 = load double, ptr %516, align 8, !tbaa !11
  %518 = load ptr, ptr %46, align 8, !tbaa !5
  %519 = load i32, ptr %56, align 4, !tbaa !9
  %520 = sext i32 %519 to i64
  %521 = getelementptr inbounds double, ptr %518, i64 %520
  %522 = load double, ptr %521, align 8, !tbaa !11
  %523 = fadd double %517, %522
  %524 = load ptr, ptr %47, align 8, !tbaa !5
  %525 = load i32, ptr %56, align 4, !tbaa !9
  %526 = sext i32 %525 to i64
  %527 = getelementptr inbounds double, ptr %524, i64 %526
  store double %523, ptr %527, align 8, !tbaa !11
  %528 = load ptr, ptr %36, align 8, !tbaa !5
  %529 = load i32, ptr %56, align 4, !tbaa !9
  %530 = sext i32 %529 to i64
  %531 = getelementptr inbounds double, ptr %528, i64 %530
  %532 = load double, ptr %531, align 8, !tbaa !11
  %533 = load ptr, ptr %46, align 8, !tbaa !5
  %534 = load i32, ptr %56, align 4, !tbaa !9
  %535 = sext i32 %534 to i64
  %536 = getelementptr inbounds double, ptr %533, i64 %535
  %537 = load double, ptr %536, align 8, !tbaa !11
  %538 = fmul double %532, %537
  %539 = load ptr, ptr %48, align 8, !tbaa !5
  %540 = load i32, ptr %56, align 4, !tbaa !9
  %541 = sext i32 %540 to i64
  %542 = getelementptr inbounds double, ptr %539, i64 %541
  store double %538, ptr %542, align 8, !tbaa !11
  br label %543

543:                                              ; preds = %502
  %544 = load i32, ptr %56, align 4, !tbaa !9
  %545 = add nsw i32 %544, 1
  store i32 %545, ptr %56, align 4, !tbaa !9
  br label %498, !llvm.loop !24

546:                                              ; preds = %498
  %547 = load i32, ptr %28, align 4, !tbaa !9
  %548 = load ptr, ptr %48, align 8, !tbaa !5
  %549 = call noundef double @_Z5enormiPd(i32 noundef %547, ptr noundef %548)
  store double %549, ptr %65, align 8, !tbaa !11
  %550 = load i32, ptr %55, align 4, !tbaa !9
  %551 = icmp eq i32 %550, 1
  br i1 %551, label %552, label %556

552:                                              ; preds = %546
  %553 = load double, ptr %59, align 8, !tbaa !11
  %554 = load double, ptr %65, align 8, !tbaa !11
  %555 = call noundef double @_Z5dmin1dd(double noundef %553, double noundef %554)
  store double %555, ptr %59, align 8, !tbaa !11
  br label %556

556:                                              ; preds = %552, %546
  store i32 1, ptr %52, align 4, !tbaa !9
  %557 = load ptr, ptr %26, align 8, !tbaa !5
  %558 = load i32, ptr %27, align 4, !tbaa !9
  %559 = load i32, ptr %28, align 4, !tbaa !9
  %560 = load ptr, ptr %47, align 8, !tbaa !5
  %561 = load ptr, ptr %49, align 8, !tbaa !5
  %562 = load ptr, ptr %50, align 8, !tbaa !5
  call void %557(i32 noundef %558, i32 noundef %559, ptr noundef %560, ptr noundef %561, ptr noundef %52, ptr noundef %562)
  %563 = load ptr, ptr %41, align 8, !tbaa !5
  %564 = load i32, ptr %563, align 4, !tbaa !9
  %565 = add nsw i32 %564, 1
  store i32 %565, ptr %563, align 4, !tbaa !9
  %566 = load i32, ptr %52, align 4, !tbaa !9
  %567 = icmp slt i32 %566, 0
  br i1 %567, label %568, label %569

568:                                              ; preds = %556
  br label %891

569:                                              ; preds = %556
  %570 = load i32, ptr %27, align 4, !tbaa !9
  %571 = load ptr, ptr %49, align 8, !tbaa !5
  %572 = call noundef double @_Z5enormiPd(i32 noundef %570, ptr noundef %571)
  store double %572, ptr %62, align 8, !tbaa !11
  %573 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %574 = fneg double %573
  store double %574, ptr %58, align 8, !tbaa !11
  %575 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !11
  %576 = load double, ptr %62, align 8, !tbaa !11
  %577 = fmul double %575, %576
  %578 = load double, ptr %61, align 8, !tbaa !11
  %579 = fcmp olt double %577, %578
  br i1 %579, label %580, label %589

580:                                              ; preds = %569
  %581 = load double, ptr %62, align 8, !tbaa !11
  %582 = load double, ptr %61, align 8, !tbaa !11
  %583 = fdiv double %581, %582
  store double %583, ptr %69, align 8, !tbaa !11
  %584 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %585 = load double, ptr %69, align 8, !tbaa !11
  %586 = load double, ptr %69, align 8, !tbaa !11
  %587 = fneg double %585
  %588 = call double @llvm.fmuladd.f64(double %587, double %586, double %584)
  store double %588, ptr %58, align 8, !tbaa !11
  br label %589

589:                                              ; preds = %580, %569
  store i32 0, ptr %54, align 4, !tbaa !9
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %590

590:                                              ; preds = %637, %589
  %591 = load i32, ptr %56, align 4, !tbaa !9
  %592 = load i32, ptr %28, align 4, !tbaa !9
  %593 = icmp slt i32 %591, %592
  br i1 %593, label %594, label %640

594:                                              ; preds = %590
  %595 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %596 = load ptr, ptr %48, align 8, !tbaa !5
  %597 = load i32, ptr %56, align 4, !tbaa !9
  %598 = sext i32 %597 to i64
  %599 = getelementptr inbounds double, ptr %596, i64 %598
  store double %595, ptr %599, align 8, !tbaa !11
  %600 = load ptr, ptr %44, align 8, !tbaa !5
  %601 = load i32, ptr %56, align 4, !tbaa !9
  %602 = sext i32 %601 to i64
  %603 = getelementptr inbounds i32, ptr %600, i64 %602
  %604 = load i32, ptr %603, align 4, !tbaa !9
  store i32 %604, ptr %57, align 4, !tbaa !9
  %605 = load ptr, ptr %46, align 8, !tbaa !5
  %606 = load i32, ptr %57, align 4, !tbaa !9
  %607 = sext i32 %606 to i64
  %608 = getelementptr inbounds double, ptr %605, i64 %607
  %609 = load double, ptr %608, align 8, !tbaa !11
  store double %609, ptr %69, align 8, !tbaa !11
  %610 = load i32, ptr %54, align 4, !tbaa !9
  store i32 %610, ptr %53, align 4, !tbaa !9
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %611

611:                                              ; preds = %630, %594
  %612 = load i32, ptr %51, align 4, !tbaa !9
  %613 = load i32, ptr %56, align 4, !tbaa !9
  %614 = icmp sle i32 %612, %613
  br i1 %614, label %615, label %633

615:                                              ; preds = %611
  %616 = load ptr, ptr %42, align 8, !tbaa !5
  %617 = load i32, ptr %53, align 4, !tbaa !9
  %618 = sext i32 %617 to i64
  %619 = getelementptr inbounds double, ptr %616, i64 %618
  %620 = load double, ptr %619, align 8, !tbaa !11
  %621 = load double, ptr %69, align 8, !tbaa !11
  %622 = load ptr, ptr %48, align 8, !tbaa !5
  %623 = load i32, ptr %51, align 4, !tbaa !9
  %624 = sext i32 %623 to i64
  %625 = getelementptr inbounds double, ptr %622, i64 %624
  %626 = load double, ptr %625, align 8, !tbaa !11
  %627 = call double @llvm.fmuladd.f64(double %620, double %621, double %626)
  store double %627, ptr %625, align 8, !tbaa !11
  %628 = load i32, ptr %53, align 4, !tbaa !9
  %629 = add nsw i32 %628, 1
  store i32 %629, ptr %53, align 4, !tbaa !9
  br label %630

630:                                              ; preds = %615
  %631 = load i32, ptr %51, align 4, !tbaa !9
  %632 = add nsw i32 %631, 1
  store i32 %632, ptr %51, align 4, !tbaa !9
  br label %611, !llvm.loop !25

633:                                              ; preds = %611
  %634 = load i32, ptr %27, align 4, !tbaa !9
  %635 = load i32, ptr %54, align 4, !tbaa !9
  %636 = add nsw i32 %635, %634
  store i32 %636, ptr %54, align 4, !tbaa !9
  br label %637

637:                                              ; preds = %633
  %638 = load i32, ptr %56, align 4, !tbaa !9
  %639 = add nsw i32 %638, 1
  store i32 %639, ptr %56, align 4, !tbaa !9
  br label %590, !llvm.loop !26

640:                                              ; preds = %590
  %641 = load i32, ptr %28, align 4, !tbaa !9
  %642 = load ptr, ptr %48, align 8, !tbaa !5
  %643 = call noundef double @_Z5enormiPd(i32 noundef %641, ptr noundef %642)
  %644 = load double, ptr %61, align 8, !tbaa !11
  %645 = fdiv double %643, %644
  store double %645, ptr %70, align 8, !tbaa !11
  %646 = load double, ptr %64, align 8, !tbaa !11
  %647 = call double @sqrt(double noundef %646) #5
  %648 = load double, ptr %65, align 8, !tbaa !11
  %649 = fmul double %647, %648
  %650 = load double, ptr %61, align 8, !tbaa !11
  %651 = fdiv double %649, %650
  store double %651, ptr %71, align 8, !tbaa !11
  %652 = load double, ptr %70, align 8, !tbaa !11
  %653 = load double, ptr %70, align 8, !tbaa !11
  %654 = load double, ptr %71, align 8, !tbaa !11
  %655 = load double, ptr %71, align 8, !tbaa !11
  %656 = fmul double %654, %655
  %657 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %658 = fdiv double %656, %657
  %659 = call double @llvm.fmuladd.f64(double %652, double %653, double %658)
  store double %659, ptr %66, align 8, !tbaa !11
  %660 = load double, ptr %70, align 8, !tbaa !11
  %661 = load double, ptr %70, align 8, !tbaa !11
  %662 = load double, ptr %71, align 8, !tbaa !11
  %663 = load double, ptr %71, align 8, !tbaa !11
  %664 = fmul double %662, %663
  %665 = call double @llvm.fmuladd.f64(double %660, double %661, double %664)
  %666 = fneg double %665
  store double %666, ptr %60, align 8, !tbaa !11
  %667 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  store double %667, ptr %67, align 8, !tbaa !11
  %668 = load double, ptr %66, align 8, !tbaa !11
  %669 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %670 = fcmp une double %668, %669
  br i1 %670, label %671, label %675

671:                                              ; preds = %640
  %672 = load double, ptr %58, align 8, !tbaa !11
  %673 = load double, ptr %66, align 8, !tbaa !11
  %674 = fdiv double %672, %673
  store double %674, ptr %67, align 8, !tbaa !11
  br label %675

675:                                              ; preds = %671, %640
  %676 = load double, ptr %67, align 8, !tbaa !11
  %677 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p25, align 8, !tbaa !11
  %678 = fcmp ole double %676, %677
  br i1 %678, label %679, label %717

679:                                              ; preds = %675
  %680 = load double, ptr %58, align 8, !tbaa !11
  %681 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %682 = fcmp oge double %680, %681
  br i1 %682, label %683, label %685

683:                                              ; preds = %679
  %684 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  store double %684, ptr %69, align 8, !tbaa !11
  br label %694

685:                                              ; preds = %679
  %686 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %687 = load double, ptr %60, align 8, !tbaa !11
  %688 = fmul double %686, %687
  %689 = load double, ptr %60, align 8, !tbaa !11
  %690 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %691 = load double, ptr %58, align 8, !tbaa !11
  %692 = call double @llvm.fmuladd.f64(double %690, double %691, double %689)
  %693 = fdiv double %688, %692
  store double %693, ptr %69, align 8, !tbaa !11
  br label %694

694:                                              ; preds = %685, %683
  %695 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !11
  %696 = load double, ptr %62, align 8, !tbaa !11
  %697 = fmul double %695, %696
  %698 = load double, ptr %61, align 8, !tbaa !11
  %699 = fcmp oge double %697, %698
  br i1 %699, label %704, label %700

700:                                              ; preds = %694
  %701 = load double, ptr %69, align 8, !tbaa !11
  %702 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !11
  %703 = fcmp olt double %701, %702
  br i1 %703, label %704, label %706

704:                                              ; preds = %700, %694
  %705 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !11
  store double %705, ptr %69, align 8, !tbaa !11
  br label %706

706:                                              ; preds = %704, %700
  %707 = load double, ptr %69, align 8, !tbaa !11
  %708 = load double, ptr %59, align 8, !tbaa !11
  %709 = load double, ptr %65, align 8, !tbaa !11
  %710 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !11
  %711 = fdiv double %709, %710
  %712 = call noundef double @_Z5dmin1dd(double noundef %708, double noundef %711)
  %713 = fmul double %707, %712
  store double %713, ptr %59, align 8, !tbaa !11
  %714 = load double, ptr %64, align 8, !tbaa !11
  %715 = load double, ptr %69, align 8, !tbaa !11
  %716 = fdiv double %714, %715
  store double %716, ptr %64, align 8, !tbaa !11
  br label %733

717:                                              ; preds = %675
  %718 = load double, ptr %64, align 8, !tbaa !11
  %719 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !11
  %720 = fcmp oeq double %718, %719
  br i1 %720, label %725, label %721

721:                                              ; preds = %717
  %722 = load double, ptr %67, align 8, !tbaa !11
  %723 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p75, align 8, !tbaa !11
  %724 = fcmp oge double %722, %723
  br i1 %724, label %725, label %732

725:                                              ; preds = %721, %717
  %726 = load double, ptr %65, align 8, !tbaa !11
  %727 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %728 = fdiv double %726, %727
  store double %728, ptr %59, align 8, !tbaa !11
  %729 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %730 = load double, ptr %64, align 8, !tbaa !11
  %731 = fmul double %729, %730
  store double %731, ptr %64, align 8, !tbaa !11
  br label %732

732:                                              ; preds = %725, %721
  br label %733

733:                                              ; preds = %732, %706
  %734 = load double, ptr %67, align 8, !tbaa !11
  %735 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001, align 8, !tbaa !11
  %736 = fcmp oge double %734, %735
  br i1 %736, label %737, label %795

737:                                              ; preds = %733
  store i32 0, ptr %56, align 4, !tbaa !9
  br label %738

738:                                              ; preds = %767, %737
  %739 = load i32, ptr %56, align 4, !tbaa !9
  %740 = load i32, ptr %28, align 4, !tbaa !9
  %741 = icmp slt i32 %739, %740
  br i1 %741, label %742, label %770

742:                                              ; preds = %738
  %743 = load ptr, ptr %47, align 8, !tbaa !5
  %744 = load i32, ptr %56, align 4, !tbaa !9
  %745 = sext i32 %744 to i64
  %746 = getelementptr inbounds double, ptr %743, i64 %745
  %747 = load double, ptr %746, align 8, !tbaa !11
  %748 = load ptr, ptr %29, align 8, !tbaa !5
  %749 = load i32, ptr %56, align 4, !tbaa !9
  %750 = sext i32 %749 to i64
  %751 = getelementptr inbounds double, ptr %748, i64 %750
  store double %747, ptr %751, align 8, !tbaa !11
  %752 = load ptr, ptr %36, align 8, !tbaa !5
  %753 = load i32, ptr %56, align 4, !tbaa !9
  %754 = sext i32 %753 to i64
  %755 = getelementptr inbounds double, ptr %752, i64 %754
  %756 = load double, ptr %755, align 8, !tbaa !11
  %757 = load ptr, ptr %29, align 8, !tbaa !5
  %758 = load i32, ptr %56, align 4, !tbaa !9
  %759 = sext i32 %758 to i64
  %760 = getelementptr inbounds double, ptr %757, i64 %759
  %761 = load double, ptr %760, align 8, !tbaa !11
  %762 = fmul double %756, %761
  %763 = load ptr, ptr %47, align 8, !tbaa !5
  %764 = load i32, ptr %56, align 4, !tbaa !9
  %765 = sext i32 %764 to i64
  %766 = getelementptr inbounds double, ptr %763, i64 %765
  store double %762, ptr %766, align 8, !tbaa !11
  br label %767

767:                                              ; preds = %742
  %768 = load i32, ptr %56, align 4, !tbaa !9
  %769 = add nsw i32 %768, 1
  store i32 %769, ptr %56, align 4, !tbaa !9
  br label %738, !llvm.loop !27

770:                                              ; preds = %738
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %771

771:                                              ; preds = %785, %770
  %772 = load i32, ptr %51, align 4, !tbaa !9
  %773 = load i32, ptr %27, align 4, !tbaa !9
  %774 = icmp slt i32 %772, %773
  br i1 %774, label %775, label %788

775:                                              ; preds = %771
  %776 = load ptr, ptr %49, align 8, !tbaa !5
  %777 = load i32, ptr %51, align 4, !tbaa !9
  %778 = sext i32 %777 to i64
  %779 = getelementptr inbounds double, ptr %776, i64 %778
  %780 = load double, ptr %779, align 8, !tbaa !11
  %781 = load ptr, ptr %30, align 8, !tbaa !5
  %782 = load i32, ptr %51, align 4, !tbaa !9
  %783 = sext i32 %782 to i64
  %784 = getelementptr inbounds double, ptr %781, i64 %783
  store double %780, ptr %784, align 8, !tbaa !11
  br label %785

785:                                              ; preds = %775
  %786 = load i32, ptr %51, align 4, !tbaa !9
  %787 = add nsw i32 %786, 1
  store i32 %787, ptr %51, align 4, !tbaa !9
  br label %771, !llvm.loop !28

788:                                              ; preds = %771
  %789 = load i32, ptr %28, align 4, !tbaa !9
  %790 = load ptr, ptr %47, align 8, !tbaa !5
  %791 = call noundef double @_Z5enormiPd(i32 noundef %789, ptr noundef %790)
  store double %791, ptr %73, align 8, !tbaa !11
  %792 = load double, ptr %62, align 8, !tbaa !11
  store double %792, ptr %61, align 8, !tbaa !11
  %793 = load i32, ptr %55, align 4, !tbaa !9
  %794 = add nsw i32 %793, 1
  store i32 %794, ptr %55, align 4, !tbaa !9
  br label %795

795:                                              ; preds = %788, %733
  %796 = load double, ptr %58, align 8, !tbaa !11
  %797 = call double @llvm.fabs.f64(double %796)
  %798 = load double, ptr %31, align 8, !tbaa !11
  %799 = fcmp ole double %797, %798
  br i1 %799, label %800, label %812

800:                                              ; preds = %795
  %801 = load double, ptr %66, align 8, !tbaa !11
  %802 = load double, ptr %31, align 8, !tbaa !11
  %803 = fcmp ole double %801, %802
  br i1 %803, label %804, label %812

804:                                              ; preds = %800
  %805 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %806 = load double, ptr %67, align 8, !tbaa !11
  %807 = fmul double %805, %806
  %808 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %809 = fcmp ole double %807, %808
  br i1 %809, label %810, label %812

810:                                              ; preds = %804
  %811 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 1, ptr %811, align 4, !tbaa !9
  br label %812

812:                                              ; preds = %810, %804, %800, %795
  %813 = load double, ptr %59, align 8, !tbaa !11
  %814 = load double, ptr %32, align 8, !tbaa !11
  %815 = load double, ptr %73, align 8, !tbaa !11
  %816 = fmul double %814, %815
  %817 = fcmp ole double %813, %816
  br i1 %817, label %818, label %820

818:                                              ; preds = %812
  %819 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 2, ptr %819, align 4, !tbaa !9
  br label %820

820:                                              ; preds = %818, %812
  %821 = load double, ptr %58, align 8, !tbaa !11
  %822 = call double @llvm.fabs.f64(double %821)
  %823 = load double, ptr %31, align 8, !tbaa !11
  %824 = fcmp ole double %822, %823
  br i1 %824, label %825, label %841

825:                                              ; preds = %820
  %826 = load double, ptr %66, align 8, !tbaa !11
  %827 = load double, ptr %31, align 8, !tbaa !11
  %828 = fcmp ole double %826, %827
  br i1 %828, label %829, label %841

829:                                              ; preds = %825
  %830 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %831 = load double, ptr %67, align 8, !tbaa !11
  %832 = fmul double %830, %831
  %833 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %834 = fcmp ole double %832, %833
  br i1 %834, label %835, label %841

835:                                              ; preds = %829
  %836 = load ptr, ptr %40, align 8, !tbaa !5
  %837 = load i32, ptr %836, align 4, !tbaa !9
  %838 = icmp eq i32 %837, 2
  br i1 %838, label %839, label %841

839:                                              ; preds = %835
  %840 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 3, ptr %840, align 4, !tbaa !9
  br label %841

841:                                              ; preds = %839, %835, %829, %825, %820
  %842 = load ptr, ptr %40, align 8, !tbaa !5
  %843 = load i32, ptr %842, align 4, !tbaa !9
  %844 = icmp ne i32 %843, 0
  br i1 %844, label %845, label %846

845:                                              ; preds = %841
  br label %891

846:                                              ; preds = %841
  %847 = load ptr, ptr %41, align 8, !tbaa !5
  %848 = load i32, ptr %847, align 4, !tbaa !9
  %849 = load i32, ptr %34, align 4, !tbaa !9
  %850 = icmp sge i32 %848, %849
  br i1 %850, label %851, label %853

851:                                              ; preds = %846
  %852 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 5, ptr %852, align 4, !tbaa !9
  br label %853

853:                                              ; preds = %851, %846
  %854 = load double, ptr %58, align 8, !tbaa !11
  %855 = call double @llvm.fabs.f64(double %854)
  %856 = fcmp ole double %855, 1.200000e-16
  br i1 %856, label %857, label %868

857:                                              ; preds = %853
  %858 = load double, ptr %66, align 8, !tbaa !11
  %859 = fcmp ole double %858, 1.200000e-16
  br i1 %859, label %860, label %868

860:                                              ; preds = %857
  %861 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !11
  %862 = load double, ptr %67, align 8, !tbaa !11
  %863 = fmul double %861, %862
  %864 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !11
  %865 = fcmp ole double %863, %864
  br i1 %865, label %866, label %868

866:                                              ; preds = %860
  %867 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 6, ptr %867, align 4, !tbaa !9
  br label %868

868:                                              ; preds = %866, %860, %857, %853
  %869 = load double, ptr %59, align 8, !tbaa !11
  %870 = load double, ptr %73, align 8, !tbaa !11
  %871 = fmul double 1.200000e-16, %870
  %872 = fcmp ole double %869, %871
  br i1 %872, label %873, label %875

873:                                              ; preds = %868
  %874 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 7, ptr %874, align 4, !tbaa !9
  br label %875

875:                                              ; preds = %873, %868
  %876 = load double, ptr %63, align 8, !tbaa !11
  %877 = fcmp ole double %876, 1.200000e-16
  br i1 %877, label %878, label %880

878:                                              ; preds = %875
  %879 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 8, ptr %879, align 4, !tbaa !9
  br label %880

880:                                              ; preds = %878, %875
  %881 = load ptr, ptr %40, align 8, !tbaa !5
  %882 = load i32, ptr %881, align 4, !tbaa !9
  %883 = icmp ne i32 %882, 0
  br i1 %883, label %884, label %885

884:                                              ; preds = %880
  br label %891

885:                                              ; preds = %880
  %886 = load double, ptr %67, align 8, !tbaa !11
  %887 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001, align 8, !tbaa !11
  %888 = fcmp olt double %886, %887
  br i1 %888, label %889, label %890

889:                                              ; preds = %885
  br label %486

890:                                              ; preds = %885
  br label %143

891:                                              ; preds = %884, %845, %568, %456, %175, %156, %137, %121, %105
  %892 = load i32, ptr %52, align 4, !tbaa !9
  %893 = icmp slt i32 %892, 0
  br i1 %893, label %894, label %897

894:                                              ; preds = %891
  %895 = load i32, ptr %52, align 4, !tbaa !9
  %896 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 %895, ptr %896, align 4, !tbaa !9
  br label %897

897:                                              ; preds = %894, %891
  store i32 0, ptr %52, align 4, !tbaa !9
  %898 = load i32, ptr %39, align 4, !tbaa !9
  %899 = icmp sgt i32 %898, 0
  br i1 %899, label %900, label %907

900:                                              ; preds = %897
  %901 = load ptr, ptr %26, align 8, !tbaa !5
  %902 = load i32, ptr %27, align 4, !tbaa !9
  %903 = load i32, ptr %28, align 4, !tbaa !9
  %904 = load ptr, ptr %29, align 8, !tbaa !5
  %905 = load ptr, ptr %30, align 8, !tbaa !5
  %906 = load ptr, ptr %50, align 8, !tbaa !5
  call void %901(i32 noundef %902, i32 noundef %903, ptr noundef %904, ptr noundef %905, ptr noundef %52, ptr noundef %906)
  br label %907

907:                                              ; preds = %900, %897
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5enormiPd(i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6fdjac2PFviiPdS_PiPvEiiS_S_S_iS0_dS_S1_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, double noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5dmax1dd(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5lmpariPdiPiS_S_dS_S_S_S_S_(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5dmin1dd(double noundef, double noundef) #2

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

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

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

@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1 = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5 = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p25 = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p75 = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001 = external hidden local_unnamed_addr global double, align 8
@_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero = external hidden local_unnamed_addr global double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8, double noundef %9, ptr noundef %10, i32 noundef %11, double noundef %12, i32 noundef %13, ptr nocapture noundef %14, ptr nocapture noundef %15, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24) local_unnamed_addr #0 {
  %26 = ptrtoint ptr %3 to i64
  %27 = ptrtoint ptr %10 to i64
  %28 = ptrtoint ptr %22 to i64
  %29 = ptrtoint ptr %4 to i64
  %30 = ptrtoint ptr %23 to i64
  %31 = ptrtoint ptr %4 to i64
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  store i32 0, ptr %32, align 4, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !5
  %34 = icmp slt i32 %2, 1
  %35 = icmp slt i32 %1, %2
  %or.cond399 = or i1 %34, %35
  %36 = icmp slt i32 %17, %1
  %or.cond400 = or i1 %or.cond399, %36
  br i1 %or.cond400, label %.loopexit427, label %37

37:                                               ; preds = %25
  %38 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %39 = fcmp ogt double %38, %5
  %40 = fcmp ogt double %38, %6
  %or.cond401 = or i1 %39, %40
  br i1 %or.cond401, label %.loopexit427, label %41

41:                                               ; preds = %37
  %42 = fcmp ule double %38, %7
  %43 = icmp sgt i32 %8, 0
  %or.cond.not423 = and i1 %43, %42
  %44 = fcmp ult double %38, %12
  %or.cond402 = and i1 %44, %or.cond.not423
  br i1 %or.cond402, label %45, label %.loopexit427

45:                                               ; preds = %41
  %46 = icmp eq i32 %11, 2
  br i1 %46, label %.lr.ph.preheader, label %.loopexit439

.lr.ph.preheader:                                 ; preds = %45
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph

47:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit439, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph.preheader, %47
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %47 ]
  %48 = getelementptr inbounds double, ptr %10, i64 %indvars.iv
  %49 = load double, ptr %48, align 8, !tbaa !9
  %50 = fcmp ugt double %49, 0.000000e+00
  br i1 %50, label %47, label %.loopexit427

.loopexit439:                                     ; preds = %47, %45
  store i32 1, ptr %32, align 4, !tbaa !5
  call void %0(i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %32, ptr noundef %24)
  store i32 1, ptr %15, align 4, !tbaa !5
  %51 = load i32, ptr %32, align 4, !tbaa !5
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %.thread421, label %53

53:                                               ; preds = %.loopexit439
  %54 = call noundef double @_Z5enormiPd(i32 noundef %1, ptr noundef %4)
  %55 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  store double %55, ptr %33, align 8, !tbaa !9
  store i32 2, ptr %32, align 4, !tbaa !5
  call void @_Z6fdjac2PFviiPdS_PiPvEiiS_S_S_iS0_dS_S1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %16, i32 noundef %17, ptr noundef nonnull %32, double noundef %9, ptr noundef %23, ptr noundef %24)
  %56 = load i32, ptr %32, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %.thread421, label %.lr.ph514

.lr.ph514:                                        ; preds = %53
  %58 = icmp sgt i32 %13, 0
  %59 = icmp sgt i32 %1, 0
  %60 = add i32 %1, 1
  %61 = zext i32 %60 to i64
  %62 = sext i32 %1 to i64
  %63 = zext i32 %1 to i64
  %wide.trip.count552 = zext nneg i32 %2 to i64
  %wide.trip.count557 = zext nneg i32 %2 to i64
  %wide.trip.count589 = zext nneg i32 %2 to i64
  %wide.trip.count613 = zext nneg i32 %2 to i64
  %wide.trip.count618 = zext nneg i32 %2 to i64
  %wide.trip.count623 = zext nneg i32 %2 to i64
  %wide.trip.count647 = zext nneg i32 %2 to i64
  %wide.trip.count652 = zext nneg i32 %2 to i64
  %64 = sub i64 %31, %30
  %65 = shl nuw nsw i64 %wide.trip.count552, 3
  %scevgep = getelementptr i8, ptr %3, i64 %65
  %scevgep736 = getelementptr i8, ptr %21, i64 %65
  %scevgep737 = getelementptr i8, ptr %10, i64 %65
  %66 = shl nsw i64 %62, 3
  %67 = shl nsw i64 %62, 3
  %68 = add nsw i64 %67, 8
  %69 = shl nuw nsw i64 %wide.trip.count552, 3
  %scevgep784 = getelementptr i8, ptr %20, i64 %69
  %scevgep785 = getelementptr i8, ptr %21, i64 %69
  %scevgep786 = getelementptr i8, ptr %22, i64 %69
  %scevgep787 = getelementptr i8, ptr %3, i64 %69
  %scevgep788 = getelementptr i8, ptr %10, i64 %69
  %70 = shl nuw nsw i64 %63, 3
  %scevgep841 = getelementptr i8, ptr %23, i64 %70
  %71 = shl nuw nsw i64 %61, 3
  %72 = shl nuw nsw i64 %61, 3
  %73 = add nsw i64 %72, -8
  %74 = sub i64 %30, %29
  %75 = sub i64 %28, %27
  %76 = sub i64 %28, %26
  %77 = shl nuw nsw i64 %wide.trip.count552, 3
  %scevgep904 = getelementptr i8, ptr %10, i64 %77
  %scevgep905 = getelementptr i8, ptr %21, i64 %77
  %min.iters.check919 = icmp ult i32 %2, 8
  %bound0906 = icmp ugt ptr %scevgep905, %10
  %bound1907 = icmp ugt ptr %scevgep904, %21
  %found.conflict908 = and i1 %bound0906, %bound1907
  %bound0909 = icmp ult ptr %10, getelementptr inbounds (i8, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, i64 8)
  %bound1910 = icmp ugt ptr %scevgep904, @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero
  %found.conflict911 = and i1 %bound0909, %bound1910
  %conflict.rdx912 = or i1 %found.conflict908, %found.conflict911
  %bound0913 = icmp ult ptr %10, getelementptr inbounds (i8, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, i64 8)
  %bound1914 = icmp ugt ptr %scevgep904, @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one
  %found.conflict915 = and i1 %bound0913, %bound1914
  %conflict.rdx916 = or i1 %conflict.rdx912, %found.conflict915
  %n.vec922 = and i64 %wide.trip.count552, 2147483644
  %cmp.n939 = icmp eq i64 %n.vec922, %wide.trip.count552
  %xtraiter = and i64 %wide.trip.count552, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %78 = add nsw i64 %wide.trip.count552, -1
  %min.iters.check890 = icmp ult i32 %2, 4
  %diff.check885 = icmp ult i64 %75, 32
  %diff.check886 = icmp ult i64 %76, 32
  %conflict.rdx887 = or i1 %diff.check885, %diff.check886
  %n.vec893 = and i64 %wide.trip.count552, 2147483644
  %cmp.n902 = icmp eq i64 %n.vec893, %wide.trip.count552
  %xtraiter982 = and i64 %wide.trip.count552, 3
  %lcmp.mod983.not = icmp eq i64 %xtraiter982, 0
  %min.iters.check873 = icmp ult i32 %1, 4
  %diff.check870 = icmp ult i64 %74, 32
  %or.cond941 = or i1 %min.iters.check873, %diff.check870
  %n.vec876 = and i64 %63, 2147483644
  %cmp.n883 = icmp eq i64 %n.vec876, %63
  %xtraiter984 = and i64 %63, 3
  %lcmp.mod985.not = icmp eq i64 %xtraiter984, 0
  %79 = getelementptr i8, ptr %16, i64 %70
  %80 = add nsw i64 %63, -1
  %invariant.gep = getelementptr i8, ptr %16, i64 8
  %invariant.gep1030 = getelementptr i8, ptr %23, i64 8
  %invariant.gep1032 = getelementptr inbounds i8, ptr %16, i64 8
  %min.iters.check826 = icmp ult i32 %2, 14
  %bound0789 = icmp ugt ptr %scevgep785, %20
  %bound1790 = icmp ugt ptr %scevgep784, %21
  %found.conflict791 = and i1 %bound0789, %bound1790
  %bound0792 = icmp ugt ptr %scevgep786, %20
  %bound1793 = icmp ugt ptr %scevgep784, %22
  %found.conflict794 = and i1 %bound0792, %bound1793
  %conflict.rdx795 = or i1 %found.conflict791, %found.conflict794
  %bound0796 = icmp ugt ptr %scevgep787, %20
  %bound1797 = icmp ugt ptr %scevgep784, %3
  %found.conflict798 = and i1 %bound0796, %bound1797
  %conflict.rdx799 = or i1 %conflict.rdx795, %found.conflict798
  %bound0800 = icmp ugt ptr %scevgep788, %20
  %bound1801 = icmp ugt ptr %scevgep784, %10
  %found.conflict802 = and i1 %bound0800, %bound1801
  %conflict.rdx803 = or i1 %conflict.rdx799, %found.conflict802
  %bound0804 = icmp ugt ptr %scevgep786, %21
  %bound1805 = icmp ugt ptr %scevgep785, %22
  %found.conflict806 = and i1 %bound0804, %bound1805
  %conflict.rdx807 = or i1 %conflict.rdx803, %found.conflict806
  %bound0808 = icmp ugt ptr %scevgep787, %21
  %bound1809 = icmp ugt ptr %scevgep785, %3
  %found.conflict810 = and i1 %bound0808, %bound1809
  %conflict.rdx811 = or i1 %conflict.rdx807, %found.conflict810
  %bound0812 = icmp ugt ptr %scevgep788, %21
  %bound1813 = icmp ugt ptr %scevgep785, %10
  %found.conflict814 = and i1 %bound0812, %bound1813
  %conflict.rdx815 = or i1 %conflict.rdx811, %found.conflict814
  %bound0816 = icmp ugt ptr %scevgep787, %22
  %bound1817 = icmp ugt ptr %scevgep786, %3
  %found.conflict818 = and i1 %bound0816, %bound1817
  %conflict.rdx819 = or i1 %conflict.rdx815, %found.conflict818
  %bound0820 = icmp ugt ptr %scevgep788, %22
  %bound1821 = icmp ugt ptr %scevgep786, %10
  %found.conflict822 = and i1 %bound0820, %bound1821
  %conflict.rdx823 = or i1 %conflict.rdx819, %found.conflict822
  %n.vec829 = and i64 %wide.trip.count552, 2147483646
  %cmp.n838 = icmp eq i64 %n.vec829, %wide.trip.count552
  %invariant.gep1038 = getelementptr i8, ptr %16, i64 8
  %invariant.gep1040 = getelementptr i8, ptr %22, i64 8
  %invariant.gep1034 = getelementptr i8, ptr %16, i64 8
  %invariant.gep1036 = getelementptr i8, ptr %22, i64 8
  %min.iters.check747 = icmp ult i32 %2, 8
  %bound0 = icmp ugt ptr %scevgep736, %3
  %bound1 = icmp ugt ptr %scevgep, %21
  %found.conflict = and i1 %bound0, %bound1
  %bound0738 = icmp ugt ptr %scevgep737, %3
  %bound1739 = icmp ugt ptr %scevgep, %10
  %found.conflict740 = and i1 %bound0738, %bound1739
  %conflict.rdx = or i1 %found.conflict, %found.conflict740
  %bound0741 = icmp ugt ptr %scevgep737, %21
  %bound1742 = icmp ugt ptr %scevgep736, %10
  %found.conflict743 = and i1 %bound0741, %bound1742
  %conflict.rdx744 = or i1 %conflict.rdx, %found.conflict743
  %n.vec750 = and i64 %wide.trip.count552, 2147483644
  %cmp.n759 = icmp eq i64 %n.vec750, %wide.trip.count552
  %xtraiter996 = and i64 %wide.trip.count552, 1
  %lcmp.mod997.not = icmp eq i64 %xtraiter996, 0
  %81 = add nsw i64 %wide.trip.count552, -1
  %min.iters.check = icmp ult i32 %1, 4
  %diff.check = icmp ult i64 %64, 32
  %or.cond942 = or i1 %min.iters.check, %diff.check
  %n.vec = and i64 %63, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %63
  %xtraiter999 = and i64 %63, 3
  %lcmp.mod1000.not = icmp eq i64 %xtraiter999, 0
  br label %84

.loopexit428:                                     ; preds = %501
  store i32 2, ptr %32, align 4, !tbaa !5
  call void @_Z6fdjac2PFviiPdS_PiPvEiiS_S_S_iS0_dS_S1_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %16, i32 noundef %17, ptr noundef nonnull %32, double noundef %9, ptr noundef %23, ptr noundef %24)
  %82 = load i32, ptr %32, align 4, !tbaa !5
  %83 = icmp slt i32 %82, 0
  br i1 %83, label %.thread421, label %84

84:                                               ; preds = %.lr.ph514, %.loopexit428
  %.0512 = phi double [ undef, %.lr.ph514 ], [ %.3, %.loopexit428 ]
  %.0353511 = phi i32 [ 1, %.lr.ph514 ], [ %.2355, %.loopexit428 ]
  %.0365509 = phi double [ %54, %.lr.ph514 ], [ %.2367, %.loopexit428 ]
  %.0369508 = phi double [ undef, %.lr.ph514 ], [ %.4373, %.loopexit428 ]
  br i1 %58, label %85, label %92

85:                                               ; preds = %84
  store i32 0, ptr %32, align 4, !tbaa !5
  %86 = add nsw i32 %.0353511, -1
  %87 = call noundef i32 @_Z3modii(i32 noundef %86, i32 noundef %13)
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %85
  call void %0(i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %32, ptr noundef %24)
  %90 = load i32, ptr %32, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %.thread421, label %92

92:                                               ; preds = %85, %89, %84
  call void @_Z5qrfaciiPdiiPiiS_S_S_(i32 noundef %1, i32 noundef %2, ptr noundef %16, i32 noundef %17, i32 noundef 1, ptr noundef %18, i32 noundef %2, ptr noundef %20, ptr noundef %21, ptr noundef %22)
  %93 = icmp eq i32 %.0353511, 1
  br i1 %93, label %94, label %185

94:                                               ; preds = %92
  br i1 %46, label %.lr.ph463.preheader, label %.lr.ph461.preheader

.lr.ph461.preheader:                              ; preds = %94
  %brmerge = select i1 %min.iters.check919, i1 true, i1 %conflict.rdx916
  br i1 %brmerge, label %.lr.ph461.preheader949, label %vector.ph920

vector.ph920:                                     ; preds = %.lr.ph461.preheader
  %95 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9, !alias.scope !13
  %broadcast.splatinsert930 = insertelement <2 x double> poison, double %95, i64 0
  %broadcast.splat931 = shufflevector <2 x double> %broadcast.splatinsert930, <2 x double> poison, <2 x i32> zeroinitializer
  %96 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9, !alias.scope !16
  %97 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8
  br label %vector.body924

vector.body924:                                   ; preds = %pred.store.continue937, %vector.ph920
  %index925 = phi i64 [ 0, %vector.ph920 ], [ %index.next938, %pred.store.continue937 ]
  %98 = or disjoint i64 %index925, 2
  %99 = getelementptr inbounds double, ptr %21, i64 %index925
  %100 = getelementptr inbounds i8, ptr %99, i64 16
  %wide.load926 = load <2 x double>, ptr %99, align 8, !tbaa !9, !alias.scope !18
  %wide.load927 = load <2 x double>, ptr %100, align 8, !tbaa !9, !alias.scope !18
  %101 = getelementptr inbounds double, ptr %10, i64 %index925
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  store <2 x double> %wide.load926, ptr %101, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  store <2 x double> %wide.load927, ptr %102, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  %103 = fcmp oeq <2 x double> %wide.load926, %broadcast.splat931
  %104 = fcmp oeq <2 x double> %wide.load927, %broadcast.splat931
  %105 = extractelement <2 x i1> %103, i64 0
  br i1 %105, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body924
  %106 = getelementptr inbounds double, ptr %10, i64 %index925
  store double %97, ptr %106, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body924
  %107 = extractelement <2 x i1> %103, i64 1
  br i1 %107, label %pred.store.if932, label %pred.store.continue933

pred.store.if932:                                 ; preds = %pred.store.continue
  %108 = or disjoint i64 %index925, 1
  %109 = getelementptr inbounds double, ptr %10, i64 %108
  store double %96, ptr %109, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  br label %pred.store.continue933

pred.store.continue933:                           ; preds = %pred.store.if932, %pred.store.continue
  %110 = extractelement <2 x i1> %104, i64 0
  br i1 %110, label %pred.store.if934, label %pred.store.continue935

pred.store.if934:                                 ; preds = %pred.store.continue933
  %111 = getelementptr inbounds double, ptr %10, i64 %98
  store double %96, ptr %111, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  br label %pred.store.continue935

pred.store.continue935:                           ; preds = %pred.store.if934, %pred.store.continue933
  %112 = extractelement <2 x i1> %104, i64 1
  br i1 %112, label %pred.store.if936, label %pred.store.continue937

pred.store.if936:                                 ; preds = %pred.store.continue935
  %113 = or disjoint i64 %index925, 3
  %114 = getelementptr inbounds double, ptr %10, i64 %113
  store double %96, ptr %114, align 8, !tbaa !9, !alias.scope !20, !noalias !22
  br label %pred.store.continue937

pred.store.continue937:                           ; preds = %pred.store.if936, %pred.store.continue935
  %index.next938 = add nuw i64 %index925, 4
  %115 = icmp eq i64 %index.next938, %n.vec922
  br i1 %115, label %middle.block917, label %vector.body924, !llvm.loop !23

middle.block917:                                  ; preds = %pred.store.continue937
  br i1 %cmp.n939, label %.lr.ph463.preheader, label %.lr.ph461.preheader949

.lr.ph461.preheader949:                           ; preds = %.lr.ph461.preheader, %middle.block917
  %indvars.iv549.ph = phi i64 [ 0, %.lr.ph461.preheader ], [ %n.vec922, %middle.block917 ]
  br i1 %lcmp.mod.not, label %.lr.ph461.prol.loopexit, label %.lr.ph461.prol

.lr.ph461.prol:                                   ; preds = %.lr.ph461.preheader949
  %116 = getelementptr inbounds double, ptr %21, i64 %indvars.iv549.ph
  %117 = load double, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %10, i64 %indvars.iv549.ph
  store double %117, ptr %118, align 8, !tbaa !9
  %119 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %120 = fcmp oeq double %117, %119
  br i1 %120, label %121, label %.lr.ph461.prol.loopexit.unr-lcssa

121:                                              ; preds = %.lr.ph461.prol
  %122 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  store double %122, ptr %118, align 8, !tbaa !9
  br label %.lr.ph461.prol.loopexit.unr-lcssa

.lr.ph461.prol.loopexit.unr-lcssa:                ; preds = %121, %.lr.ph461.prol
  %indvars.iv.next550.prol = or disjoint i64 %indvars.iv549.ph, 1
  br label %.lr.ph461.prol.loopexit

.lr.ph461.prol.loopexit:                          ; preds = %.lr.ph461.prol.loopexit.unr-lcssa, %.lr.ph461.preheader949
  %indvars.iv549.unr = phi i64 [ %indvars.iv549.ph, %.lr.ph461.preheader949 ], [ %indvars.iv.next550.prol, %.lr.ph461.prol.loopexit.unr-lcssa ]
  %123 = icmp eq i64 %indvars.iv549.ph, %78
  br i1 %123, label %.lr.ph463.preheader, label %.lr.ph461

.lr.ph461:                                        ; preds = %.lr.ph461.prol.loopexit, %138
  %indvars.iv549 = phi i64 [ %indvars.iv.next550.1, %138 ], [ %indvars.iv549.unr, %.lr.ph461.prol.loopexit ]
  %124 = getelementptr inbounds double, ptr %21, i64 %indvars.iv549
  %125 = load double, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds double, ptr %10, i64 %indvars.iv549
  store double %125, ptr %126, align 8, !tbaa !9
  %127 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %128 = fcmp oeq double %125, %127
  br i1 %128, label %129, label %.lr.ph461.1

129:                                              ; preds = %.lr.ph461
  %130 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  store double %130, ptr %126, align 8, !tbaa !9
  br label %.lr.ph461.1

.lr.ph461.1:                                      ; preds = %.lr.ph461, %129
  %indvars.iv.next550 = add nuw nsw i64 %indvars.iv549, 1
  %131 = getelementptr inbounds double, ptr %21, i64 %indvars.iv.next550
  %132 = load double, ptr %131, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next550
  store double %132, ptr %133, align 8, !tbaa !9
  %134 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %135 = fcmp oeq double %132, %134
  br i1 %135, label %136, label %138

136:                                              ; preds = %.lr.ph461.1
  %137 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  store double %137, ptr %133, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %136, %.lr.ph461.1
  %indvars.iv.next550.1 = add nuw nsw i64 %indvars.iv549, 2
  %exitcond553.not.1 = icmp eq i64 %indvars.iv.next550.1, %wide.trip.count552
  br i1 %exitcond553.not.1, label %.lr.ph463.preheader, label %.lr.ph461, !llvm.loop !26

.lr.ph463.preheader:                              ; preds = %.lr.ph461.prol.loopexit, %138, %middle.block917, %94
  %brmerge1042 = or i1 %min.iters.check890, %conflict.rdx887
  br i1 %brmerge1042, label %.lr.ph463.preheader948, label %vector.body895

vector.body895:                                   ; preds = %.lr.ph463.preheader, %vector.body895
  %index896 = phi i64 [ %index.next901, %vector.body895 ], [ 0, %.lr.ph463.preheader ]
  %139 = getelementptr inbounds double, ptr %10, i64 %index896
  %140 = getelementptr inbounds i8, ptr %139, i64 16
  %wide.load897 = load <2 x double>, ptr %139, align 8, !tbaa !9
  %wide.load898 = load <2 x double>, ptr %140, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %3, i64 %index896
  %142 = getelementptr inbounds i8, ptr %141, i64 16
  %wide.load899 = load <2 x double>, ptr %141, align 8, !tbaa !9
  %wide.load900 = load <2 x double>, ptr %142, align 8, !tbaa !9
  %143 = fmul <2 x double> %wide.load897, %wide.load899
  %144 = fmul <2 x double> %wide.load898, %wide.load900
  %145 = getelementptr inbounds double, ptr %22, i64 %index896
  %146 = getelementptr inbounds i8, ptr %145, i64 16
  store <2 x double> %143, ptr %145, align 8, !tbaa !9
  store <2 x double> %144, ptr %146, align 8, !tbaa !9
  %index.next901 = add nuw i64 %index896, 4
  %147 = icmp eq i64 %index.next901, %n.vec893
  br i1 %147, label %middle.block888, label %vector.body895, !llvm.loop !27

middle.block888:                                  ; preds = %vector.body895
  br i1 %cmp.n902, label %._crit_edge, label %.lr.ph463.preheader948

.lr.ph463.preheader948:                           ; preds = %.lr.ph463.preheader, %middle.block888
  %indvars.iv554.ph = phi i64 [ 0, %.lr.ph463.preheader ], [ %n.vec893, %middle.block888 ]
  br i1 %lcmp.mod983.not, label %.lr.ph463.prol.loopexit, label %.lr.ph463.prol

.lr.ph463.prol:                                   ; preds = %.lr.ph463.preheader948, %.lr.ph463.prol
  %indvars.iv554.prol = phi i64 [ %indvars.iv.next555.prol, %.lr.ph463.prol ], [ %indvars.iv554.ph, %.lr.ph463.preheader948 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph463.prol ], [ 0, %.lr.ph463.preheader948 ]
  %148 = getelementptr inbounds double, ptr %10, i64 %indvars.iv554.prol
  %149 = load double, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds double, ptr %3, i64 %indvars.iv554.prol
  %151 = load double, ptr %150, align 8, !tbaa !9
  %152 = fmul double %149, %151
  %153 = getelementptr inbounds double, ptr %22, i64 %indvars.iv554.prol
  store double %152, ptr %153, align 8, !tbaa !9
  %indvars.iv.next555.prol = add nuw nsw i64 %indvars.iv554.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter982
  br i1 %prol.iter.cmp.not, label %.lr.ph463.prol.loopexit, label %.lr.ph463.prol, !llvm.loop !28

.lr.ph463.prol.loopexit:                          ; preds = %.lr.ph463.prol, %.lr.ph463.preheader948
  %indvars.iv554.unr = phi i64 [ %indvars.iv554.ph, %.lr.ph463.preheader948 ], [ %indvars.iv.next555.prol, %.lr.ph463.prol ]
  %154 = sub nsw i64 %indvars.iv554.ph, %wide.trip.count552
  %155 = icmp ugt i64 %154, -4
  br i1 %155, label %._crit_edge, label %.lr.ph463

.lr.ph463:                                        ; preds = %.lr.ph463.prol.loopexit, %.lr.ph463
  %indvars.iv554 = phi i64 [ %indvars.iv.next555.3, %.lr.ph463 ], [ %indvars.iv554.unr, %.lr.ph463.prol.loopexit ]
  %156 = getelementptr inbounds double, ptr %10, i64 %indvars.iv554
  %157 = load double, ptr %156, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %3, i64 %indvars.iv554
  %159 = load double, ptr %158, align 8, !tbaa !9
  %160 = fmul double %157, %159
  %161 = getelementptr inbounds double, ptr %22, i64 %indvars.iv554
  store double %160, ptr %161, align 8, !tbaa !9
  %indvars.iv.next555 = add nuw nsw i64 %indvars.iv554, 1
  %162 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next555
  %163 = load double, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next555
  %165 = load double, ptr %164, align 8, !tbaa !9
  %166 = fmul double %163, %165
  %167 = getelementptr inbounds double, ptr %22, i64 %indvars.iv.next555
  store double %166, ptr %167, align 8, !tbaa !9
  %indvars.iv.next555.1 = add nuw nsw i64 %indvars.iv554, 2
  %168 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next555.1
  %169 = load double, ptr %168, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next555.1
  %171 = load double, ptr %170, align 8, !tbaa !9
  %172 = fmul double %169, %171
  %173 = getelementptr inbounds double, ptr %22, i64 %indvars.iv.next555.1
  store double %172, ptr %173, align 8, !tbaa !9
  %indvars.iv.next555.2 = add nuw nsw i64 %indvars.iv554, 3
  %174 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next555.2
  %175 = load double, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next555.2
  %177 = load double, ptr %176, align 8, !tbaa !9
  %178 = fmul double %175, %177
  %179 = getelementptr inbounds double, ptr %22, i64 %indvars.iv.next555.2
  store double %178, ptr %179, align 8, !tbaa !9
  %indvars.iv.next555.3 = add nuw nsw i64 %indvars.iv554, 4
  %exitcond558.not.3 = icmp eq i64 %indvars.iv.next555.3, %wide.trip.count557
  br i1 %exitcond558.not.3, label %._crit_edge, label %.lr.ph463, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph463.prol.loopexit, %.lr.ph463, %middle.block888
  %180 = call noundef double @_Z5enormiPd(i32 noundef %2, ptr noundef %22)
  %181 = fmul double %180, %12
  %182 = call double @llvm.fabs.f64(double %181)
  %183 = fcmp ugt double %182, 1.000000e-04
  br i1 %183, label %185, label %184

184:                                              ; preds = %._crit_edge
  br label %185

185:                                              ; preds = %._crit_edge, %184, %92
  %.1370 = phi double [ %12, %184 ], [ %181, %._crit_edge ], [ %.0369508, %92 ]
  %.1 = phi double [ %180, %184 ], [ %180, %._crit_edge ], [ %.0512, %92 ]
  br i1 %59, label %.lr.ph466.preheader, label %.lr.ph480.preheader

.lr.ph466.preheader:                              ; preds = %185
  br i1 %or.cond941, label %.lr.ph466.preheader947, label %vector.body878

vector.body878:                                   ; preds = %.lr.ph466.preheader, %vector.body878
  %index879 = phi i64 [ %index.next882, %vector.body878 ], [ 0, %.lr.ph466.preheader ]
  %186 = getelementptr inbounds double, ptr %4, i64 %index879
  %187 = getelementptr inbounds i8, ptr %186, i64 16
  %wide.load880 = load <2 x double>, ptr %186, align 8, !tbaa !9
  %wide.load881 = load <2 x double>, ptr %187, align 8, !tbaa !9
  %188 = getelementptr inbounds double, ptr %23, i64 %index879
  %189 = getelementptr inbounds i8, ptr %188, i64 16
  store <2 x double> %wide.load880, ptr %188, align 8, !tbaa !9
  store <2 x double> %wide.load881, ptr %189, align 8, !tbaa !9
  %index.next882 = add nuw i64 %index879, 4
  %190 = icmp eq i64 %index.next882, %n.vec876
  br i1 %190, label %middle.block871, label %vector.body878, !llvm.loop !31

middle.block871:                                  ; preds = %vector.body878
  br i1 %cmp.n883, label %.lr.ph480.preheader, label %.lr.ph466.preheader947

.lr.ph466.preheader947:                           ; preds = %middle.block871, %.lr.ph466.preheader
  %indvars.iv559.ph = phi i64 [ 0, %.lr.ph466.preheader ], [ %n.vec876, %middle.block871 ]
  br i1 %lcmp.mod985.not, label %.lr.ph466.prol.loopexit, label %.lr.ph466.prol

.lr.ph466.prol:                                   ; preds = %.lr.ph466.preheader947, %.lr.ph466.prol
  %indvars.iv559.prol = phi i64 [ %indvars.iv.next560.prol, %.lr.ph466.prol ], [ %indvars.iv559.ph, %.lr.ph466.preheader947 ]
  %prol.iter986 = phi i64 [ %prol.iter986.next, %.lr.ph466.prol ], [ 0, %.lr.ph466.preheader947 ]
  %191 = getelementptr inbounds double, ptr %4, i64 %indvars.iv559.prol
  %192 = load double, ptr %191, align 8, !tbaa !9
  %193 = getelementptr inbounds double, ptr %23, i64 %indvars.iv559.prol
  store double %192, ptr %193, align 8, !tbaa !9
  %indvars.iv.next560.prol = add nuw nsw i64 %indvars.iv559.prol, 1
  %prol.iter986.next = add i64 %prol.iter986, 1
  %prol.iter986.cmp.not = icmp eq i64 %prol.iter986.next, %xtraiter984
  br i1 %prol.iter986.cmp.not, label %.lr.ph466.prol.loopexit, label %.lr.ph466.prol, !llvm.loop !32

.lr.ph466.prol.loopexit:                          ; preds = %.lr.ph466.prol, %.lr.ph466.preheader947
  %indvars.iv559.unr = phi i64 [ %indvars.iv559.ph, %.lr.ph466.preheader947 ], [ %indvars.iv.next560.prol, %.lr.ph466.prol ]
  %194 = sub nsw i64 %indvars.iv559.ph, %63
  %195 = icmp ugt i64 %194, -4
  br i1 %195, label %.lr.ph480.preheader, label %.lr.ph466

.lr.ph466:                                        ; preds = %.lr.ph466.prol.loopexit, %.lr.ph466
  %indvars.iv559 = phi i64 [ %indvars.iv.next560.3, %.lr.ph466 ], [ %indvars.iv559.unr, %.lr.ph466.prol.loopexit ]
  %196 = getelementptr inbounds double, ptr %4, i64 %indvars.iv559
  %197 = load double, ptr %196, align 8, !tbaa !9
  %198 = getelementptr inbounds double, ptr %23, i64 %indvars.iv559
  store double %197, ptr %198, align 8, !tbaa !9
  %indvars.iv.next560 = add nuw nsw i64 %indvars.iv559, 1
  %199 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next560
  %200 = load double, ptr %199, align 8, !tbaa !9
  %201 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next560
  store double %200, ptr %201, align 8, !tbaa !9
  %indvars.iv.next560.1 = add nuw nsw i64 %indvars.iv559, 2
  %202 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next560.1
  %203 = load double, ptr %202, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next560.1
  store double %203, ptr %204, align 8, !tbaa !9
  %indvars.iv.next560.2 = add nuw nsw i64 %indvars.iv559, 3
  %205 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next560.2
  %206 = load double, ptr %205, align 8, !tbaa !9
  %207 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next560.2
  store double %206, ptr %207, align 8, !tbaa !9
  %indvars.iv.next560.3 = add nuw nsw i64 %indvars.iv559, 4
  %exitcond563.not.3 = icmp eq i64 %indvars.iv.next560.3, %63
  br i1 %exitcond563.not.3, label %.lr.ph480.preheader, label %.lr.ph466, !llvm.loop !33

.lr.ph480.preheader:                              ; preds = %.lr.ph466.prol.loopexit, %.lr.ph466, %middle.block871, %185
  br label %.lr.ph480

.lr.ph480:                                        ; preds = %.lr.ph480.preheader, %.loopexit
  %indvars.iv568 = phi i64 [ %indvars.iv.next569, %.loopexit ], [ 0, %.lr.ph480.preheader ]
  %indvars.iv564 = phi i64 [ %indvars.iv.next565, %.loopexit ], [ 0, %.lr.ph480.preheader ]
  %208 = sub nsw i64 %63, %indvars.iv564
  %209 = shl i64 %indvars.iv564, 3
  %scevgep840 = getelementptr i8, ptr %23, i64 %209
  %210 = mul i64 %71, %indvars.iv564
  %scevgep842 = getelementptr i8, ptr %16, i64 %210
  %211 = mul i64 %73, %indvars.iv564
  %scevgep843 = getelementptr i8, ptr %79, i64 %211
  %212 = getelementptr inbounds double, ptr %16, i64 %indvars.iv568
  %213 = load double, ptr %212, align 8, !tbaa !9
  %214 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %215 = fcmp une double %213, %214
  br i1 %215, label %.preheader426, label %.loopexit

.preheader426:                                    ; preds = %.lr.ph480
  %216 = icmp slt i64 %indvars.iv564, %62
  br i1 %216, label %.lr.ph470, label %.loopexit

.lr.ph470:                                        ; preds = %.preheader426, %.lr.ph470
  %indvars.iv570 = phi i64 [ %indvars.iv.next571, %.lr.ph470 ], [ %indvars.iv568, %.preheader426 ]
  %indvars.iv566 = phi i64 [ %indvars.iv.next567, %.lr.ph470 ], [ %indvars.iv564, %.preheader426 ]
  %.0350467 = phi double [ %221, %.lr.ph470 ], [ %214, %.preheader426 ]
  %217 = getelementptr inbounds double, ptr %16, i64 %indvars.iv570
  %218 = load double, ptr %217, align 8, !tbaa !9
  %219 = getelementptr inbounds double, ptr %23, i64 %indvars.iv566
  %220 = load double, ptr %219, align 8, !tbaa !9
  %221 = call double @llvm.fmuladd.f64(double %218, double %220, double %.0350467)
  %indvars.iv.next571 = add nuw nsw i64 %indvars.iv570, 1
  %indvars.iv.next567 = add nuw nsw i64 %indvars.iv566, 1
  %exitcond576.not = icmp eq i64 %indvars.iv.next567, %63
  br i1 %exitcond576.not, label %._crit_edge471, label %.lr.ph470, !llvm.loop !34

._crit_edge471:                                   ; preds = %.lr.ph470
  %222 = fneg double %221
  %223 = fdiv double %222, %213
  br i1 %216, label %.lr.ph475.preheader, label %.loopexit

.lr.ph475.preheader:                              ; preds = %._crit_edge471
  %min.iters.check849 = icmp ult i64 %208, 4
  br i1 %min.iters.check849, label %.lr.ph475.preheader946, label %vector.memcheck839

vector.memcheck839:                               ; preds = %.lr.ph475.preheader
  %bound0844 = icmp ult ptr %scevgep840, %scevgep843
  %bound1845 = icmp ult ptr %scevgep842, %scevgep841
  %found.conflict846 = and i1 %bound0844, %bound1845
  br i1 %found.conflict846, label %.lr.ph475.preheader946, label %vector.ph850

vector.ph850:                                     ; preds = %vector.memcheck839
  %n.vec852 = and i64 %208, -4
  %ind.end853 = add i64 %indvars.iv568, %n.vec852
  %ind.end855 = add i64 %indvars.iv564, %n.vec852
  %broadcast.splatinsert865 = insertelement <2 x double> poison, double %223, i64 0
  %broadcast.splat866 = shufflevector <2 x double> %broadcast.splatinsert865, <2 x double> poison, <2 x i32> zeroinitializer
  %224 = getelementptr double, ptr %16, i64 %indvars.iv568
  %225 = getelementptr double, ptr %23, i64 %indvars.iv564
  br label %vector.body857

vector.body857:                                   ; preds = %vector.body857, %vector.ph850
  %index858 = phi i64 [ 0, %vector.ph850 ], [ %index.next867, %vector.body857 ]
  %226 = getelementptr double, ptr %224, i64 %index858
  %227 = getelementptr inbounds i8, ptr %226, i64 16
  %wide.load861 = load <2 x double>, ptr %226, align 8, !tbaa !9, !alias.scope !35
  %wide.load862 = load <2 x double>, ptr %227, align 8, !tbaa !9, !alias.scope !35
  %228 = getelementptr double, ptr %225, i64 %index858
  %229 = getelementptr inbounds i8, ptr %228, i64 16
  %wide.load863 = load <2 x double>, ptr %228, align 8, !tbaa !9, !alias.scope !38, !noalias !35
  %wide.load864 = load <2 x double>, ptr %229, align 8, !tbaa !9, !alias.scope !38, !noalias !35
  %230 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load861, <2 x double> %broadcast.splat866, <2 x double> %wide.load863)
  %231 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load862, <2 x double> %broadcast.splat866, <2 x double> %wide.load864)
  store <2 x double> %230, ptr %228, align 8, !tbaa !9, !alias.scope !38, !noalias !35
  store <2 x double> %231, ptr %229, align 8, !tbaa !9, !alias.scope !38, !noalias !35
  %index.next867 = add nuw i64 %index858, 4
  %232 = icmp eq i64 %index.next867, %n.vec852
  br i1 %232, label %middle.block847, label %vector.body857, !llvm.loop !40

middle.block847:                                  ; preds = %vector.body857
  %cmp.n868 = icmp eq i64 %208, %n.vec852
  br i1 %cmp.n868, label %.loopexit, label %.lr.ph475.preheader946

.lr.ph475.preheader946:                           ; preds = %middle.block847, %vector.memcheck839, %.lr.ph475.preheader
  %indvars.iv579.ph = phi i64 [ %indvars.iv568, %vector.memcheck839 ], [ %indvars.iv568, %.lr.ph475.preheader ], [ %ind.end853, %middle.block847 ]
  %indvars.iv577.ph = phi i64 [ %indvars.iv564, %vector.memcheck839 ], [ %indvars.iv564, %.lr.ph475.preheader ], [ %ind.end855, %middle.block847 ]
  %233 = sub i64 %63, %indvars.iv577.ph
  %xtraiter987 = and i64 %233, 1
  %lcmp.mod988.not = icmp eq i64 %xtraiter987, 0
  br i1 %lcmp.mod988.not, label %.lr.ph475.prol.loopexit, label %.lr.ph475.prol

.lr.ph475.prol:                                   ; preds = %.lr.ph475.preheader946
  %234 = getelementptr inbounds double, ptr %16, i64 %indvars.iv579.ph
  %235 = load double, ptr %234, align 8, !tbaa !9
  %236 = getelementptr inbounds double, ptr %23, i64 %indvars.iv577.ph
  %237 = load double, ptr %236, align 8, !tbaa !9
  %238 = call double @llvm.fmuladd.f64(double %235, double %223, double %237)
  store double %238, ptr %236, align 8, !tbaa !9
  %indvars.iv.next580.prol = add nuw nsw i64 %indvars.iv579.ph, 1
  %indvars.iv.next578.prol = add nuw nsw i64 %indvars.iv577.ph, 1
  br label %.lr.ph475.prol.loopexit

.lr.ph475.prol.loopexit:                          ; preds = %.lr.ph475.prol, %.lr.ph475.preheader946
  %indvars.iv579.unr = phi i64 [ %indvars.iv579.ph, %.lr.ph475.preheader946 ], [ %indvars.iv.next580.prol, %.lr.ph475.prol ]
  %indvars.iv577.unr = phi i64 [ %indvars.iv577.ph, %.lr.ph475.preheader946 ], [ %indvars.iv.next578.prol, %.lr.ph475.prol ]
  %239 = icmp eq i64 %indvars.iv577.ph, %80
  br i1 %239, label %.loopexit, label %.lr.ph475

.lr.ph475:                                        ; preds = %.lr.ph475.prol.loopexit, %.lr.ph475
  %indvars.iv579 = phi i64 [ %indvars.iv.next580.1, %.lr.ph475 ], [ %indvars.iv579.unr, %.lr.ph475.prol.loopexit ]
  %indvars.iv577 = phi i64 [ %indvars.iv.next578.1, %.lr.ph475 ], [ %indvars.iv577.unr, %.lr.ph475.prol.loopexit ]
  %240 = getelementptr inbounds double, ptr %16, i64 %indvars.iv579
  %241 = load double, ptr %240, align 8, !tbaa !9
  %242 = getelementptr inbounds double, ptr %23, i64 %indvars.iv577
  %243 = load double, ptr %242, align 8, !tbaa !9
  %244 = call double @llvm.fmuladd.f64(double %241, double %223, double %243)
  store double %244, ptr %242, align 8, !tbaa !9
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv579
  %245 = load double, ptr %gep, align 8, !tbaa !9
  %gep1031 = getelementptr double, ptr %invariant.gep1030, i64 %indvars.iv577
  %246 = load double, ptr %gep1031, align 8, !tbaa !9
  %247 = call double @llvm.fmuladd.f64(double %245, double %223, double %246)
  store double %247, ptr %gep1031, align 8, !tbaa !9
  %indvars.iv.next580.1 = add nuw nsw i64 %indvars.iv579, 2
  %indvars.iv.next578.1 = add nuw nsw i64 %indvars.iv577, 2
  %exitcond585.not.1 = icmp eq i64 %indvars.iv.next578.1, %63
  br i1 %exitcond585.not.1, label %.loopexit, label %.lr.ph475, !llvm.loop !41

.loopexit:                                        ; preds = %.lr.ph475.prol.loopexit, %.lr.ph475, %middle.block847, %.preheader426, %._crit_edge471, %.lr.ph480
  %248 = getelementptr inbounds double, ptr %20, i64 %indvars.iv564
  %249 = load double, ptr %248, align 8, !tbaa !9
  store double %249, ptr %212, align 8, !tbaa !9
  %indvars.iv.next569 = add nuw nsw i64 %indvars.iv568, %61
  %250 = getelementptr inbounds double, ptr %23, i64 %indvars.iv564
  %251 = load double, ptr %250, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %19, i64 %indvars.iv564
  store double %251, ptr %252, align 8, !tbaa !9
  %indvars.iv.next565 = add nuw nsw i64 %indvars.iv564, 1
  %exitcond590.not = icmp eq i64 %indvars.iv.next565, %wide.trip.count589
  br i1 %exitcond590.not, label %._crit_edge481, label %.lr.ph480, !llvm.loop !42

._crit_edge481:                                   ; preds = %.loopexit
  %253 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %254 = fcmp oeq double %.0365509, %253
  br i1 %254, label %.loopexit432, label %.lr.ph488

.lr.ph488:                                        ; preds = %._crit_edge481, %284
  %255 = phi double [ %285, %284 ], [ %253, %._crit_edge481 ]
  %indvars.iv606 = phi i64 [ %indvars.iv.next607, %284 ], [ 0, %._crit_edge481 ]
  %indvars.iv604 = phi i64 [ %indvars.iv.next605, %284 ], [ 1, %._crit_edge481 ]
  %indvars.iv593 = phi i64 [ %indvars.iv.next594, %284 ], [ 0, %._crit_edge481 ]
  %.0362485 = phi double [ %.1363, %284 ], [ %253, %._crit_edge481 ]
  %256 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv606
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds double, ptr %21, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !9
  %261 = fcmp une double %260, %255
  br i1 %261, label %.preheader425.preheader, label %284

.preheader425.preheader:                          ; preds = %.lr.ph488
  %xtraiter990 = and i64 %indvars.iv604, 1
  %262 = icmp eq i64 %indvars.iv606, 0
  br i1 %262, label %.unr-lcssa, label %.preheader425.preheader.new

.preheader425.preheader.new:                      ; preds = %.preheader425.preheader
  %unroll_iter = and i64 %indvars.iv604, -2
  br label %.preheader425

.preheader425:                                    ; preds = %.preheader425, %.preheader425.preheader.new
  %indvars.iv595 = phi i64 [ %indvars.iv593, %.preheader425.preheader.new ], [ %indvars.iv.next596.1, %.preheader425 ]
  %indvars.iv591 = phi i64 [ 0, %.preheader425.preheader.new ], [ %indvars.iv.next592.1, %.preheader425 ]
  %.1351482 = phi double [ %255, %.preheader425.preheader.new ], [ %273, %.preheader425 ]
  %niter = phi i64 [ 0, %.preheader425.preheader.new ], [ %niter.next.1, %.preheader425 ]
  %263 = getelementptr inbounds double, ptr %16, i64 %indvars.iv595
  %264 = load double, ptr %263, align 8, !tbaa !9
  %265 = getelementptr inbounds double, ptr %19, i64 %indvars.iv591
  %266 = load double, ptr %265, align 8, !tbaa !9
  %267 = fdiv double %266, %.0365509
  %268 = call double @llvm.fmuladd.f64(double %264, double %267, double %.1351482)
  %indvars.iv.next592 = or disjoint i64 %indvars.iv591, 1
  %gep1033 = getelementptr inbounds double, ptr %invariant.gep1032, i64 %indvars.iv595
  %269 = load double, ptr %gep1033, align 8, !tbaa !9
  %270 = getelementptr inbounds double, ptr %19, i64 %indvars.iv.next592
  %271 = load double, ptr %270, align 8, !tbaa !9
  %272 = fdiv double %271, %.0365509
  %273 = call double @llvm.fmuladd.f64(double %269, double %272, double %268)
  %indvars.iv.next596.1 = add nuw nsw i64 %indvars.iv595, 2
  %indvars.iv.next592.1 = add nuw nsw i64 %indvars.iv591, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.unr-lcssa, label %.preheader425, !llvm.loop !43

.unr-lcssa:                                       ; preds = %.preheader425, %.preheader425.preheader
  %.lcssa953.ph = phi double [ poison, %.preheader425.preheader ], [ %273, %.preheader425 ]
  %indvars.iv595.unr = phi i64 [ %indvars.iv593, %.preheader425.preheader ], [ %indvars.iv.next596.1, %.preheader425 ]
  %indvars.iv591.unr = phi i64 [ 0, %.preheader425.preheader ], [ %indvars.iv.next592.1, %.preheader425 ]
  %.1351482.unr = phi double [ %255, %.preheader425.preheader ], [ %273, %.preheader425 ]
  %lcmp.mod991.not = icmp eq i64 %xtraiter990, 0
  br i1 %lcmp.mod991.not, label %280, label %.preheader425.epil

.preheader425.epil:                               ; preds = %.unr-lcssa
  %274 = getelementptr inbounds double, ptr %16, i64 %indvars.iv595.unr
  %275 = load double, ptr %274, align 8, !tbaa !9
  %276 = getelementptr inbounds double, ptr %19, i64 %indvars.iv591.unr
  %277 = load double, ptr %276, align 8, !tbaa !9
  %278 = fdiv double %277, %.0365509
  %279 = call double @llvm.fmuladd.f64(double %275, double %278, double %.1351482.unr)
  br label %280

280:                                              ; preds = %.unr-lcssa, %.preheader425.epil
  %.lcssa953 = phi double [ %.lcssa953.ph, %.unr-lcssa ], [ %279, %.preheader425.epil ]
  %281 = fdiv double %.lcssa953, %260
  %282 = call double @llvm.fabs.f64(double %281)
  %283 = call noundef double @_Z5dmax1dd(double noundef %.0362485, double noundef %282)
  %.pre = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  br label %284

284:                                              ; preds = %280, %.lr.ph488
  %285 = phi double [ %.pre, %280 ], [ %255, %.lr.ph488 ]
  %.1363 = phi double [ %283, %280 ], [ %.0362485, %.lr.ph488 ]
  %indvars.iv.next594 = add nuw nsw i64 %indvars.iv593, %63
  %indvars.iv.next607 = add nuw nsw i64 %indvars.iv606, 1
  %indvars.iv.next605 = add nuw i64 %indvars.iv604, 1
  %exitcond614.not = icmp eq i64 %indvars.iv.next607, %wide.trip.count613
  br i1 %exitcond614.not, label %.loopexit432, label %.lr.ph488, !llvm.loop !44

.loopexit432:                                     ; preds = %284, %._crit_edge481
  %.2364 = phi double [ %253, %._crit_edge481 ], [ %.1363, %284 ]
  %286 = fcmp ugt double %.2364, %7
  br i1 %286, label %287, label %.loopexit427.sink.split

287:                                              ; preds = %.loopexit432
  %.pr = load i32, ptr %14, align 4, !tbaa !5
  %.not392 = icmp eq i32 %.pr, 0
  br i1 %.not392, label %288, label %.loopexit427

288:                                              ; preds = %287
  br i1 %46, label %.loopexit430, label %.lr.ph491

.lr.ph491:                                        ; preds = %288, %.lr.ph491
  %indvars.iv615 = phi i64 [ %indvars.iv.next616, %.lr.ph491 ], [ 0, %288 ]
  %289 = getelementptr inbounds double, ptr %10, i64 %indvars.iv615
  %290 = load double, ptr %289, align 8, !tbaa !9
  %291 = getelementptr inbounds double, ptr %21, i64 %indvars.iv615
  %292 = load double, ptr %291, align 8, !tbaa !9
  %293 = call noundef double @_Z5dmax1dd(double noundef %290, double noundef %292)
  store double %293, ptr %289, align 8, !tbaa !9
  %indvars.iv.next616 = add nuw nsw i64 %indvars.iv615, 1
  %exitcond619.not = icmp eq i64 %indvars.iv.next616, %wide.trip.count618
  br i1 %exitcond619.not, label %.loopexit430, label %.lr.ph491, !llvm.loop !45

.loopexit430:                                     ; preds = %.lr.ph491, %288
  %294 = fcmp ole double %.2364, 1.200000e-16
  br label %.lr.ph494.preheader

.lr.ph494.preheader:                              ; preds = %501, %.loopexit430
  %.2371 = phi double [ %.1370, %.loopexit430 ], [ %.4373, %501 ]
  %.1366 = phi double [ %.0365509, %.loopexit430 ], [ %.2367, %501 ]
  %.1354 = phi i32 [ %.0353511, %.loopexit430 ], [ %.2355, %501 ]
  %.2 = phi double [ %.1, %.loopexit430 ], [ %.3, %501 ]
  call void @_Z5lmpariPdiPiS_S_dS_S_S_S_S_(i32 noundef %2, ptr noundef %16, i32 noundef %17, ptr noundef %18, ptr noundef %10, ptr noundef %19, double noundef %.2371, ptr noundef nonnull %33, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
  %brmerge1043 = select i1 %min.iters.check826, i1 true, i1 %conflict.rdx823
  br i1 %brmerge1043, label %.lr.ph494.preheader945, label %vector.body831

vector.body831:                                   ; preds = %.lr.ph494.preheader, %vector.body831
  %index832 = phi i64 [ %index.next837, %vector.body831 ], [ 0, %.lr.ph494.preheader ]
  %295 = getelementptr inbounds double, ptr %20, i64 %index832
  %wide.load833 = load <2 x double>, ptr %295, align 8, !tbaa !9, !alias.scope !46, !noalias !49
  %296 = fneg <2 x double> %wide.load833
  store <2 x double> %296, ptr %295, align 8, !tbaa !9, !alias.scope !46, !noalias !49
  %297 = getelementptr inbounds double, ptr %3, i64 %index832
  %wide.load834 = load <2 x double>, ptr %297, align 8, !tbaa !9, !alias.scope !54
  %298 = fsub <2 x double> %wide.load834, %wide.load833
  %299 = getelementptr inbounds double, ptr %21, i64 %index832
  store <2 x double> %298, ptr %299, align 8, !tbaa !9, !alias.scope !55, !noalias !56
  %300 = getelementptr inbounds double, ptr %10, i64 %index832
  %wide.load835 = load <2 x double>, ptr %300, align 8, !tbaa !9, !alias.scope !57
  %wide.load836 = load <2 x double>, ptr %295, align 8, !tbaa !9, !alias.scope !46, !noalias !49
  %301 = fmul <2 x double> %wide.load835, %wide.load836
  %302 = getelementptr inbounds double, ptr %22, i64 %index832
  store <2 x double> %301, ptr %302, align 8, !tbaa !9, !alias.scope !58, !noalias !59
  %index.next837 = add nuw i64 %index832, 2
  %303 = icmp eq i64 %index.next837, %n.vec829
  br i1 %303, label %middle.block824, label %vector.body831, !llvm.loop !60

middle.block824:                                  ; preds = %vector.body831
  br i1 %cmp.n838, label %._crit_edge495, label %.lr.ph494.preheader945

.lr.ph494.preheader945:                           ; preds = %.lr.ph494.preheader, %middle.block824
  %indvars.iv620.ph = phi i64 [ 0, %.lr.ph494.preheader ], [ %n.vec829, %middle.block824 ]
  br label %.lr.ph494

.lr.ph494:                                        ; preds = %.lr.ph494.preheader945, %.lr.ph494
  %indvars.iv620 = phi i64 [ %indvars.iv.next621, %.lr.ph494 ], [ %indvars.iv620.ph, %.lr.ph494.preheader945 ]
  %304 = getelementptr inbounds double, ptr %20, i64 %indvars.iv620
  %305 = load double, ptr %304, align 8, !tbaa !9
  %306 = fneg double %305
  store double %306, ptr %304, align 8, !tbaa !9
  %307 = getelementptr inbounds double, ptr %3, i64 %indvars.iv620
  %308 = load double, ptr %307, align 8, !tbaa !9
  %309 = fsub double %308, %305
  %310 = getelementptr inbounds double, ptr %21, i64 %indvars.iv620
  store double %309, ptr %310, align 8, !tbaa !9
  %311 = getelementptr inbounds double, ptr %10, i64 %indvars.iv620
  %312 = load double, ptr %311, align 8, !tbaa !9
  %313 = load double, ptr %304, align 8, !tbaa !9
  %314 = fmul double %312, %313
  %315 = getelementptr inbounds double, ptr %22, i64 %indvars.iv620
  store double %314, ptr %315, align 8, !tbaa !9
  %indvars.iv.next621 = add nuw nsw i64 %indvars.iv620, 1
  %exitcond624.not = icmp eq i64 %indvars.iv.next621, %wide.trip.count623
  br i1 %exitcond624.not, label %._crit_edge495, label %.lr.ph494, !llvm.loop !61

._crit_edge495:                                   ; preds = %.lr.ph494, %middle.block824
  %316 = call noundef double @_Z5enormiPd(i32 noundef %2, ptr noundef %22)
  %317 = icmp eq i32 %.1354, 1
  br i1 %317, label %318, label %320

318:                                              ; preds = %._crit_edge495
  %319 = call noundef double @_Z5dmin1dd(double noundef %.2371, double noundef %316)
  br label %320

320:                                              ; preds = %318, %._crit_edge495
  %.3372 = phi double [ %319, %318 ], [ %.2371, %._crit_edge495 ]
  store i32 1, ptr %32, align 4, !tbaa !5
  call void %0(i32 noundef %1, i32 noundef %2, ptr noundef %21, ptr noundef %23, ptr noundef nonnull %32, ptr noundef %24)
  %321 = load i32, ptr %15, align 4, !tbaa !5
  %322 = add nsw i32 %321, 1
  store i32 %322, ptr %15, align 4, !tbaa !5
  %323 = load i32, ptr %32, align 4, !tbaa !5
  %324 = icmp slt i32 %323, 0
  br i1 %324, label %.thread421, label %.lr.ph501.preheader

.lr.ph501.preheader:                              ; preds = %320
  %325 = call noundef double @_Z5enormiPd(i32 noundef %1, ptr noundef %23)
  %326 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  %327 = fneg double %326
  %328 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8, !tbaa !9
  %329 = fmul double %325, %328
  %330 = fcmp olt double %329, %.1366
  %331 = fdiv double %325, %.1366
  %332 = fneg double %331
  %333 = call double @llvm.fmuladd.f64(double %332, double %331, double %326)
  %.0368 = select i1 %330, double %333, double %327
  br label %.lr.ph501

.lr.ph501:                                        ; preds = %.lr.ph501.preheader, %.loopexit940
  %indvars.iv640 = phi i64 [ 0, %.lr.ph501.preheader ], [ %indvars.iv.next641, %.loopexit940 ]
  %indvars.iv638 = phi i64 [ 1, %.lr.ph501.preheader ], [ %indvars.iv.next639, %.loopexit940 ]
  %indvars.iv627 = phi i64 [ 0, %.lr.ph501.preheader ], [ %indvars.iv.next628, %.loopexit940 ]
  %334 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %335 = getelementptr inbounds double, ptr %22, i64 %indvars.iv640
  store double %334, ptr %335, align 8, !tbaa !9
  %336 = getelementptr inbounds i32, ptr %18, i64 %indvars.iv640
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %20, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !9
  %min.iters.check769 = icmp ult i64 %indvars.iv638, 4
  br i1 %min.iters.check769, label %scalar.ph768.preheader, label %vector.memcheck760

vector.memcheck760:                               ; preds = %.lr.ph501
  %341 = mul i64 %68, %indvars.iv640
  %gep1039 = getelementptr i8, ptr %invariant.gep1038, i64 %341
  %342 = mul i64 %66, %indvars.iv640
  %scevgep762 = getelementptr i8, ptr %16, i64 %342
  %343 = shl i64 %indvars.iv640, 3
  %gep1041 = getelementptr i8, ptr %invariant.gep1040, i64 %343
  %bound0764 = icmp ugt ptr %gep1039, %22
  %bound1765 = icmp ult ptr %scevgep762, %gep1041
  %found.conflict766 = and i1 %bound0764, %bound1765
  br i1 %found.conflict766, label %scalar.ph768.preheader, label %vector.ph770

vector.ph770:                                     ; preds = %vector.memcheck760
  %n.vec772 = and i64 %indvars.iv638, 9223372036854775804
  %ind.end = add i64 %indvars.iv627, %n.vec772
  %broadcast.splatinsert = insertelement <2 x double> poison, double %340, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  %344 = getelementptr double, ptr %16, i64 %indvars.iv627
  br label %vector.body775

vector.body775:                                   ; preds = %vector.body775, %vector.ph770
  %index776 = phi i64 [ 0, %vector.ph770 ], [ %index.next781, %vector.body775 ]
  %345 = getelementptr double, ptr %344, i64 %index776
  %346 = getelementptr inbounds i8, ptr %345, i64 16
  %wide.load777 = load <2 x double>, ptr %345, align 8, !tbaa !9, !alias.scope !62
  %wide.load778 = load <2 x double>, ptr %346, align 8, !tbaa !9, !alias.scope !62
  %347 = getelementptr inbounds double, ptr %22, i64 %index776
  %348 = getelementptr inbounds i8, ptr %347, i64 16
  %wide.load779 = load <2 x double>, ptr %347, align 8, !tbaa !9, !alias.scope !65, !noalias !62
  %wide.load780 = load <2 x double>, ptr %348, align 8, !tbaa !9, !alias.scope !65, !noalias !62
  %349 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load777, <2 x double> %broadcast.splat, <2 x double> %wide.load779)
  %350 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %wide.load778, <2 x double> %broadcast.splat, <2 x double> %wide.load780)
  store <2 x double> %349, ptr %347, align 8, !tbaa !9, !alias.scope !65, !noalias !62
  store <2 x double> %350, ptr %348, align 8, !tbaa !9, !alias.scope !65, !noalias !62
  %index.next781 = add nuw i64 %index776, 4
  %351 = icmp eq i64 %index.next781, %n.vec772
  br i1 %351, label %middle.block767, label %vector.body775, !llvm.loop !67

middle.block767:                                  ; preds = %vector.body775
  %cmp.n782 = icmp eq i64 %indvars.iv638, %n.vec772
  br i1 %cmp.n782, label %.loopexit940, label %scalar.ph768.preheader

scalar.ph768.preheader:                           ; preds = %middle.block767, %vector.memcheck760, %.lr.ph501
  %indvars.iv629.ph = phi i64 [ %indvars.iv627, %vector.memcheck760 ], [ %indvars.iv627, %.lr.ph501 ], [ %ind.end, %middle.block767 ]
  %indvars.iv625.ph = phi i64 [ 0, %vector.memcheck760 ], [ 0, %.lr.ph501 ], [ %n.vec772, %middle.block767 ]
  %xtraiter993 = and i64 %indvars.iv638, 1
  %lcmp.mod994.not = icmp eq i64 %xtraiter993, 0
  br i1 %lcmp.mod994.not, label %scalar.ph768.prol.loopexit, label %scalar.ph768.prol

scalar.ph768.prol:                                ; preds = %scalar.ph768.preheader
  %352 = getelementptr inbounds double, ptr %16, i64 %indvars.iv629.ph
  %353 = load double, ptr %352, align 8, !tbaa !9
  %354 = getelementptr inbounds double, ptr %22, i64 %indvars.iv625.ph
  %355 = load double, ptr %354, align 8, !tbaa !9
  %356 = call double @llvm.fmuladd.f64(double %353, double %340, double %355)
  store double %356, ptr %354, align 8, !tbaa !9
  %indvars.iv.next630.prol = add nsw i64 %indvars.iv629.ph, 1
  %indvars.iv.next626.prol = or disjoint i64 %indvars.iv625.ph, 1
  br label %scalar.ph768.prol.loopexit

scalar.ph768.prol.loopexit:                       ; preds = %scalar.ph768.prol, %scalar.ph768.preheader
  %indvars.iv629.unr = phi i64 [ %indvars.iv629.ph, %scalar.ph768.preheader ], [ %indvars.iv.next630.prol, %scalar.ph768.prol ]
  %indvars.iv625.unr = phi i64 [ %indvars.iv625.ph, %scalar.ph768.preheader ], [ %indvars.iv.next626.prol, %scalar.ph768.prol ]
  %357 = icmp eq i64 %indvars.iv640, %indvars.iv625.ph
  br i1 %357, label %.loopexit940, label %scalar.ph768

scalar.ph768:                                     ; preds = %scalar.ph768.prol.loopexit, %scalar.ph768
  %indvars.iv629 = phi i64 [ %indvars.iv.next630.1, %scalar.ph768 ], [ %indvars.iv629.unr, %scalar.ph768.prol.loopexit ]
  %indvars.iv625 = phi i64 [ %indvars.iv.next626.1, %scalar.ph768 ], [ %indvars.iv625.unr, %scalar.ph768.prol.loopexit ]
  %358 = getelementptr inbounds double, ptr %16, i64 %indvars.iv629
  %359 = load double, ptr %358, align 8, !tbaa !9
  %360 = getelementptr inbounds double, ptr %22, i64 %indvars.iv625
  %361 = load double, ptr %360, align 8, !tbaa !9
  %362 = call double @llvm.fmuladd.f64(double %359, double %340, double %361)
  store double %362, ptr %360, align 8, !tbaa !9
  %gep1035 = getelementptr double, ptr %invariant.gep1034, i64 %indvars.iv629
  %363 = load double, ptr %gep1035, align 8, !tbaa !9
  %gep1037 = getelementptr double, ptr %invariant.gep1036, i64 %indvars.iv625
  %364 = load double, ptr %gep1037, align 8, !tbaa !9
  %365 = call double @llvm.fmuladd.f64(double %363, double %340, double %364)
  store double %365, ptr %gep1037, align 8, !tbaa !9
  %indvars.iv.next630.1 = add nsw i64 %indvars.iv629, 2
  %indvars.iv.next626.1 = add nuw nsw i64 %indvars.iv625, 2
  %exitcond637.not.1 = icmp eq i64 %indvars.iv.next626.1, %indvars.iv638
  br i1 %exitcond637.not.1, label %.loopexit940, label %scalar.ph768, !llvm.loop !68

.loopexit940:                                     ; preds = %scalar.ph768.prol.loopexit, %scalar.ph768, %middle.block767
  %indvars.iv.next628 = add i64 %indvars.iv627, %62
  %indvars.iv.next641 = add nuw nsw i64 %indvars.iv640, 1
  %indvars.iv.next639 = add nuw nsw i64 %indvars.iv638, 1
  %exitcond648.not = icmp eq i64 %indvars.iv.next641, %wide.trip.count647
  br i1 %exitcond648.not, label %._crit_edge502, label %.lr.ph501, !llvm.loop !69

._crit_edge502:                                   ; preds = %.loopexit940
  %366 = call noundef double @_Z5enormiPd(i32 noundef %2, ptr noundef %22)
  %367 = fdiv double %366, %.1366
  %368 = load double, ptr %33, align 8, !tbaa !9
  %369 = call double @sqrt(double noundef %368) #6
  %370 = fmul double %316, %369
  %371 = fdiv double %370, %.1366
  %372 = fmul double %371, %371
  %373 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !9
  %374 = fdiv double %372, %373
  %375 = call double @llvm.fmuladd.f64(double %367, double %367, double %374)
  %376 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E4zero, align 8, !tbaa !9
  %377 = fcmp une double %375, %376
  %378 = fdiv double %.0368, %375
  %.0352 = select i1 %377, double %378, double %376
  %379 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p25, align 8, !tbaa !9
  %380 = fcmp ugt double %.0352, %379
  br i1 %380, label %397, label %381

381:                                              ; preds = %._crit_edge502
  %382 = call double @llvm.fmuladd.f64(double %367, double %367, double %372)
  %383 = fneg double %382
  %384 = fcmp ult double %.0368, %376
  %385 = fmul double %373, %383
  %386 = call double @llvm.fmuladd.f64(double %373, double %.0368, double %383)
  %387 = fdiv double %385, %386
  %.0348 = select i1 %384, double %387, double %373
  %388 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p1, align 8
  %389 = fmul double %325, %388
  %390 = fcmp oge double %389, %.1366
  %391 = fcmp olt double %.0348, %388
  %or.cond403 = select i1 %390, i1 true, i1 %391
  %.1349 = select i1 %or.cond403, double %388, double %.0348
  %392 = fdiv double %316, %388
  %393 = call noundef double @_Z5dmin1dd(double noundef %.3372, double noundef %392)
  %394 = fmul double %393, %.1349
  %395 = load double, ptr %33, align 8, !tbaa !9
  %396 = fdiv double %395, %.1349
  store double %396, ptr %33, align 8, !tbaa !9
  br label %405

397:                                              ; preds = %._crit_edge502
  %398 = load double, ptr %33, align 8, !tbaa !9
  %399 = fcmp une double %398, %376
  %400 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3p75, align 8
  %401 = fcmp ult double %.0352, %400
  %or.cond405 = select i1 %399, i1 %401, i1 false
  br i1 %or.cond405, label %405, label %402

402:                                              ; preds = %397
  %403 = fdiv double %316, %373
  %404 = fmul double %373, %398
  store double %404, ptr %33, align 8, !tbaa !9
  br label %405

405:                                              ; preds = %397, %402, %381
  %.4373 = phi double [ %394, %381 ], [ %403, %402 ], [ %.3372, %397 ]
  %406 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001, align 8, !tbaa !9
  %407 = fcmp ult double %.0352, %406
  br i1 %407, label %460, label %.lr.ph504.preheader

.lr.ph504.preheader:                              ; preds = %405
  %brmerge1044 = select i1 %min.iters.check747, i1 true, i1 %conflict.rdx744
  br i1 %brmerge1044, label %.lr.ph504.preheader944, label %vector.body752

.lr.ph504.preheader944:                           ; preds = %.lr.ph504.preheader, %middle.block745
  %indvars.iv649.ph = phi i64 [ 0, %.lr.ph504.preheader ], [ %n.vec750, %middle.block745 ]
  br i1 %lcmp.mod997.not, label %.lr.ph504.prol.loopexit, label %.lr.ph504.prol

.lr.ph504.prol:                                   ; preds = %.lr.ph504.preheader944
  %408 = getelementptr inbounds double, ptr %21, i64 %indvars.iv649.ph
  %409 = load double, ptr %408, align 8, !tbaa !9
  %410 = getelementptr inbounds double, ptr %3, i64 %indvars.iv649.ph
  store double %409, ptr %410, align 8, !tbaa !9
  %411 = getelementptr inbounds double, ptr %10, i64 %indvars.iv649.ph
  %412 = load double, ptr %411, align 8, !tbaa !9
  %413 = fmul double %409, %412
  store double %413, ptr %408, align 8, !tbaa !9
  %indvars.iv.next650.prol = or disjoint i64 %indvars.iv649.ph, 1
  br label %.lr.ph504.prol.loopexit

.lr.ph504.prol.loopexit:                          ; preds = %.lr.ph504.prol, %.lr.ph504.preheader944
  %indvars.iv649.unr = phi i64 [ %indvars.iv649.ph, %.lr.ph504.preheader944 ], [ %indvars.iv.next650.prol, %.lr.ph504.prol ]
  %414 = icmp eq i64 %indvars.iv649.ph, %81
  br i1 %414, label %.preheader, label %.lr.ph504

vector.body752:                                   ; preds = %.lr.ph504.preheader, %vector.body752
  %index753 = phi i64 [ %index.next758, %vector.body752 ], [ 0, %.lr.ph504.preheader ]
  %415 = getelementptr inbounds double, ptr %21, i64 %index753
  %416 = getelementptr inbounds i8, ptr %415, i64 16
  %wide.load754 = load <2 x double>, ptr %415, align 8, !tbaa !9, !alias.scope !70, !noalias !73
  %wide.load755 = load <2 x double>, ptr %416, align 8, !tbaa !9, !alias.scope !70, !noalias !73
  %417 = getelementptr inbounds double, ptr %3, i64 %index753
  %418 = getelementptr inbounds i8, ptr %417, i64 16
  store <2 x double> %wide.load754, ptr %417, align 8, !tbaa !9, !alias.scope !75, !noalias !77
  store <2 x double> %wide.load755, ptr %418, align 8, !tbaa !9, !alias.scope !75, !noalias !77
  %419 = getelementptr inbounds double, ptr %10, i64 %index753
  %420 = getelementptr inbounds i8, ptr %419, i64 16
  %wide.load756 = load <2 x double>, ptr %419, align 8, !tbaa !9, !alias.scope !73
  %wide.load757 = load <2 x double>, ptr %420, align 8, !tbaa !9, !alias.scope !73
  %421 = fmul <2 x double> %wide.load754, %wide.load756
  %422 = fmul <2 x double> %wide.load755, %wide.load757
  store <2 x double> %421, ptr %415, align 8, !tbaa !9, !alias.scope !70, !noalias !73
  store <2 x double> %422, ptr %416, align 8, !tbaa !9, !alias.scope !70, !noalias !73
  %index.next758 = add nuw i64 %index753, 4
  %423 = icmp eq i64 %index.next758, %n.vec750
  br i1 %423, label %middle.block745, label %vector.body752, !llvm.loop !78

middle.block745:                                  ; preds = %vector.body752
  br i1 %cmp.n759, label %.preheader, label %.lr.ph504.preheader944

.preheader:                                       ; preds = %.lr.ph504.prol.loopexit, %.lr.ph504, %middle.block745
  br i1 %59, label %.lr.ph506.preheader, label %._crit_edge507

.lr.ph506.preheader:                              ; preds = %.preheader
  br i1 %or.cond942, label %.lr.ph506.preheader943, label %vector.body

.lr.ph506.preheader943:                           ; preds = %middle.block, %.lr.ph506.preheader
  %indvars.iv654.ph = phi i64 [ 0, %.lr.ph506.preheader ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod1000.not, label %.lr.ph506.prol.loopexit, label %.lr.ph506.prol

.lr.ph506.prol:                                   ; preds = %.lr.ph506.preheader943, %.lr.ph506.prol
  %indvars.iv654.prol = phi i64 [ %indvars.iv.next655.prol, %.lr.ph506.prol ], [ %indvars.iv654.ph, %.lr.ph506.preheader943 ]
  %prol.iter1001 = phi i64 [ %prol.iter1001.next, %.lr.ph506.prol ], [ 0, %.lr.ph506.preheader943 ]
  %424 = getelementptr inbounds double, ptr %23, i64 %indvars.iv654.prol
  %425 = load double, ptr %424, align 8, !tbaa !9
  %426 = getelementptr inbounds double, ptr %4, i64 %indvars.iv654.prol
  store double %425, ptr %426, align 8, !tbaa !9
  %indvars.iv.next655.prol = add nuw nsw i64 %indvars.iv654.prol, 1
  %prol.iter1001.next = add i64 %prol.iter1001, 1
  %prol.iter1001.cmp.not = icmp eq i64 %prol.iter1001.next, %xtraiter999
  br i1 %prol.iter1001.cmp.not, label %.lr.ph506.prol.loopexit, label %.lr.ph506.prol, !llvm.loop !79

.lr.ph506.prol.loopexit:                          ; preds = %.lr.ph506.prol, %.lr.ph506.preheader943
  %indvars.iv654.unr = phi i64 [ %indvars.iv654.ph, %.lr.ph506.preheader943 ], [ %indvars.iv.next655.prol, %.lr.ph506.prol ]
  %427 = sub nsw i64 %indvars.iv654.ph, %63
  %428 = icmp ugt i64 %427, -4
  br i1 %428, label %._crit_edge507, label %.lr.ph506

vector.body:                                      ; preds = %.lr.ph506.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph506.preheader ]
  %429 = getelementptr inbounds double, ptr %23, i64 %index
  %430 = getelementptr inbounds i8, ptr %429, i64 16
  %wide.load = load <2 x double>, ptr %429, align 8, !tbaa !9
  %wide.load734 = load <2 x double>, ptr %430, align 8, !tbaa !9
  %431 = getelementptr inbounds double, ptr %4, i64 %index
  %432 = getelementptr inbounds i8, ptr %431, i64 16
  store <2 x double> %wide.load, ptr %431, align 8, !tbaa !9
  store <2 x double> %wide.load734, ptr %432, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %433 = icmp eq i64 %index.next, %n.vec
  br i1 %433, label %middle.block, label %vector.body, !llvm.loop !80

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge507, label %.lr.ph506.preheader943

.lr.ph504:                                        ; preds = %.lr.ph504.prol.loopexit, %.lr.ph504
  %indvars.iv649 = phi i64 [ %indvars.iv.next650.1, %.lr.ph504 ], [ %indvars.iv649.unr, %.lr.ph504.prol.loopexit ]
  %434 = getelementptr inbounds double, ptr %21, i64 %indvars.iv649
  %435 = load double, ptr %434, align 8, !tbaa !9
  %436 = getelementptr inbounds double, ptr %3, i64 %indvars.iv649
  store double %435, ptr %436, align 8, !tbaa !9
  %437 = getelementptr inbounds double, ptr %10, i64 %indvars.iv649
  %438 = load double, ptr %437, align 8, !tbaa !9
  %439 = fmul double %435, %438
  store double %439, ptr %434, align 8, !tbaa !9
  %indvars.iv.next650 = add nuw nsw i64 %indvars.iv649, 1
  %440 = getelementptr inbounds double, ptr %21, i64 %indvars.iv.next650
  %441 = load double, ptr %440, align 8, !tbaa !9
  %442 = getelementptr inbounds double, ptr %3, i64 %indvars.iv.next650
  store double %441, ptr %442, align 8, !tbaa !9
  %443 = getelementptr inbounds double, ptr %10, i64 %indvars.iv.next650
  %444 = load double, ptr %443, align 8, !tbaa !9
  %445 = fmul double %441, %444
  store double %445, ptr %440, align 8, !tbaa !9
  %indvars.iv.next650.1 = add nuw nsw i64 %indvars.iv649, 2
  %exitcond653.not.1 = icmp eq i64 %indvars.iv.next650.1, %wide.trip.count652
  br i1 %exitcond653.not.1, label %.preheader, label %.lr.ph504, !llvm.loop !81

.lr.ph506:                                        ; preds = %.lr.ph506.prol.loopexit, %.lr.ph506
  %indvars.iv654 = phi i64 [ %indvars.iv.next655.3, %.lr.ph506 ], [ %indvars.iv654.unr, %.lr.ph506.prol.loopexit ]
  %446 = getelementptr inbounds double, ptr %23, i64 %indvars.iv654
  %447 = load double, ptr %446, align 8, !tbaa !9
  %448 = getelementptr inbounds double, ptr %4, i64 %indvars.iv654
  store double %447, ptr %448, align 8, !tbaa !9
  %indvars.iv.next655 = add nuw nsw i64 %indvars.iv654, 1
  %449 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next655
  %450 = load double, ptr %449, align 8, !tbaa !9
  %451 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next655
  store double %450, ptr %451, align 8, !tbaa !9
  %indvars.iv.next655.1 = add nuw nsw i64 %indvars.iv654, 2
  %452 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next655.1
  %453 = load double, ptr %452, align 8, !tbaa !9
  %454 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next655.1
  store double %453, ptr %454, align 8, !tbaa !9
  %indvars.iv.next655.2 = add nuw nsw i64 %indvars.iv654, 3
  %455 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next655.2
  %456 = load double, ptr %455, align 8, !tbaa !9
  %457 = getelementptr inbounds double, ptr %4, i64 %indvars.iv.next655.2
  store double %456, ptr %457, align 8, !tbaa !9
  %indvars.iv.next655.3 = add nuw nsw i64 %indvars.iv654, 4
  %exitcond658.not.3 = icmp eq i64 %indvars.iv.next655.3, %63
  br i1 %exitcond658.not.3, label %._crit_edge507, label %.lr.ph506, !llvm.loop !82

._crit_edge507:                                   ; preds = %.lr.ph506.prol.loopexit, %.lr.ph506, %middle.block, %.preheader
  %458 = call noundef double @_Z5enormiPd(i32 noundef %2, ptr noundef %21)
  %459 = add nsw i32 %.1354, 1
  br label %460

460:                                              ; preds = %._crit_edge507, %405
  %.2367 = phi double [ %325, %._crit_edge507 ], [ %.1366, %405 ]
  %.2355 = phi i32 [ %459, %._crit_edge507 ], [ %.1354, %405 ]
  %.3 = phi double [ %458, %._crit_edge507 ], [ %.2, %405 ]
  %461 = call double @llvm.fabs.f64(double %.0368)
  %462 = fcmp ugt double %461, %5
  %463 = fcmp ugt double %375, %5
  %or.cond407 = or i1 %462, %463
  br i1 %or.cond407, label %470, label %464

464:                                              ; preds = %460
  %465 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !9
  %466 = fmul double %.0352, %465
  %467 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  %468 = fcmp ugt double %466, %467
  br i1 %468, label %470, label %469

469:                                              ; preds = %464
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %470

470:                                              ; preds = %469, %464, %460
  %471 = fmul double %.3, %6
  %472 = fcmp ugt double %.4373, %471
  br i1 %472, label %474, label %473

473:                                              ; preds = %470
  store i32 2, ptr %14, align 4, !tbaa !5
  br label %474

474:                                              ; preds = %473, %470
  br i1 %or.cond407, label %.thread-pre-split411_crit_edge, label %475

.thread-pre-split411_crit_edge:                   ; preds = %474
  %.pr412.pre = load i32, ptr %14, align 4, !tbaa !5
  br label %thread-pre-split411

475:                                              ; preds = %474
  %476 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !9
  %477 = fmul double %.0352, %476
  %478 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  %479 = fcmp ole double %477, %478
  %.pr412.pre660 = load i32, ptr %14, align 4, !tbaa !5
  %480 = icmp eq i32 %.pr412.pre660, 2
  %or.cond = select i1 %479, i1 %480, i1 false
  br i1 %or.cond, label %.loopexit427.sink.split, label %thread-pre-split411

thread-pre-split411:                              ; preds = %475, %.thread-pre-split411_crit_edge
  %481 = phi i32 [ %.pr412.pre, %.thread-pre-split411_crit_edge ], [ %.pr412.pre660, %475 ]
  %.not394 = icmp eq i32 %481, 0
  br i1 %.not394, label %482, label %.loopexit427

482:                                              ; preds = %thread-pre-split411
  %483 = load i32, ptr %15, align 4, !tbaa !5
  %.not395 = icmp slt i32 %483, %8
  br i1 %.not395, label %485, label %484

484:                                              ; preds = %482
  store i32 5, ptr %14, align 4, !tbaa !5
  br label %485

485:                                              ; preds = %484, %482
  %486 = fcmp ole double %461, 1.200000e-16
  %487 = fcmp ole double %375, 1.200000e-16
  %or.cond3 = and i1 %486, %487
  br i1 %or.cond3, label %488, label %493

488:                                              ; preds = %485
  %489 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E2p5, align 8, !tbaa !9
  %490 = fmul double %.0352, %489
  %491 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E3one, align 8, !tbaa !9
  %492 = fcmp ugt double %490, %491
  br i1 %492, label %493, label %.thread665

493:                                              ; preds = %488, %485
  %494 = fmul double %.3, 1.200000e-16
  %495 = fcmp ole double %.4373, %494
  %496 = or i1 %294, %495
  br i1 %496, label %.thread417, label %500

.thread665:                                       ; preds = %488
  store i32 6, ptr %14, align 4, !tbaa !5
  %497 = fmul double %.3, 1.200000e-16
  %498 = fcmp ole double %.4373, %497
  %499 = or i1 %294, %498
  br i1 %499, label %.thread417, label %.loopexit427

.thread417:                                       ; preds = %493, %.thread665
  %simplifycfg.merge = select i1 %294, i32 8, i32 7
  br label %.loopexit427.sink.split

500:                                              ; preds = %493
  br i1 %.not395, label %501, label %.loopexit427

501:                                              ; preds = %500
  %502 = load double, ptr @_ZZ7lmdif_CPFviiPdS_PiPvEiiS_S_dddidS_idiS0_S0_S_iS0_S_S_S_S_S_S1_E5p0001, align 8, !tbaa !9
  %503 = fcmp olt double %.0352, %502
  br i1 %503, label %.lr.ph494.preheader, label %.loopexit428

.loopexit427.sink.split:                          ; preds = %.loopexit432, %475, %.thread417
  %simplifycfg.merge.sink = phi i32 [ %simplifycfg.merge, %.thread417 ], [ 3, %475 ], [ 4, %.loopexit432 ]
  store i32 %simplifycfg.merge.sink, ptr %14, align 4, !tbaa !5
  br label %.loopexit427

.loopexit427:                                     ; preds = %.lr.ph, %287, %500, %thread-pre-split411, %.loopexit427.sink.split, %.thread665, %25, %37, %41
  %.pr420 = load i32, ptr %32, align 4, !tbaa !5
  %504 = icmp slt i32 %.pr420, 0
  br i1 %504, label %.thread421, label %506

.thread421:                                       ; preds = %89, %.loopexit428, %320, %53, %.loopexit439, %.loopexit427
  %505 = phi i32 [ %.pr420, %.loopexit427 ], [ %51, %.loopexit439 ], [ %56, %53 ], [ %323, %320 ], [ %90, %89 ], [ %82, %.loopexit428 ]
  store i32 %505, ptr %14, align 4, !tbaa !5
  br label %506

506:                                              ; preds = %.thread421, %.loopexit427
  store i32 0, ptr %32, align 4, !tbaa !5
  %507 = icmp sgt i32 %13, 0
  br i1 %507, label %508, label %509

508:                                              ; preds = %506
  call void %0(i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %32, ptr noundef %24)
  br label %509

509:                                              ; preds = %508, %506
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5enormiPd(i32 noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3modii(i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5dmax1dd(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z5dmin1dd(double noundef, double noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!14}
!14 = distinct !{!14, !15}
!15 = distinct !{!15, !"LVerDomain"}
!16 = !{!17}
!17 = distinct !{!17, !15}
!18 = !{!19}
!19 = distinct !{!19, !15}
!20 = !{!21}
!21 = distinct !{!21, !15}
!22 = !{!19, !14, !17}
!23 = distinct !{!23, !12, !24, !25}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !12, !24}
!27 = distinct !{!27, !12, !24, !25}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.unroll.disable"}
!30 = distinct !{!30, !12, !24}
!31 = distinct !{!31, !12, !24, !25}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !12, !24}
!34 = distinct !{!34, !12}
!35 = !{!36}
!36 = distinct !{!36, !37}
!37 = distinct !{!37, !"LVerDomain"}
!38 = !{!39}
!39 = distinct !{!39, !37}
!40 = distinct !{!40, !12, !24, !25}
!41 = distinct !{!41, !12, !24}
!42 = distinct !{!42, !12}
!43 = distinct !{!43, !12}
!44 = distinct !{!44, !12}
!45 = distinct !{!45, !12}
!46 = !{!47}
!47 = distinct !{!47, !48}
!48 = distinct !{!48, !"LVerDomain"}
!49 = !{!50, !51, !52, !53}
!50 = distinct !{!50, !48}
!51 = distinct !{!51, !48}
!52 = distinct !{!52, !48}
!53 = distinct !{!53, !48}
!54 = !{!52}
!55 = !{!50}
!56 = !{!51, !52, !53}
!57 = !{!53}
!58 = !{!51}
!59 = !{!52, !53}
!60 = distinct !{!60, !12, !24, !25}
!61 = distinct !{!61, !12, !24}
!62 = !{!63}
!63 = distinct !{!63, !64}
!64 = distinct !{!64, !"LVerDomain"}
!65 = !{!66}
!66 = distinct !{!66, !64}
!67 = distinct !{!67, !12, !24, !25}
!68 = distinct !{!68, !12, !24}
!69 = distinct !{!69, !12}
!70 = !{!71}
!71 = distinct !{!71, !72}
!72 = distinct !{!72, !"LVerDomain"}
!73 = !{!74}
!74 = distinct !{!74, !72}
!75 = !{!76}
!76 = distinct !{!76, !72}
!77 = !{!71, !74}
!78 = distinct !{!78, !12, !24, !25}
!79 = distinct !{!79, !29}
!80 = distinct !{!80, !12, !24, !25}
!81 = distinct !{!81, !12, !24}
!82 = distinct !{!82, !12, !24}


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