; LLVM IR from robinrodricks/InspiritImage :: Inspirit.Assurf/clib/rpp (rpp_quintic)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

42:                                               ; preds = %4
  store i32 0, ptr %5, align 4
  store i32 1, ptr %28, align 4
  br label %404

43:                                               ; preds = %4
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 4
  %46 = load double, ptr %45, align 8, !tbaa !11
  store double %46, ptr %12, align 8, !tbaa !11
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds double, ptr %47, i64 3
  %49 = load double, ptr %48, align 8, !tbaa !11
  store double %49, ptr %13, align 8, !tbaa !11
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds double, ptr %50, i64 2
  %52 = load double, ptr %51, align 8, !tbaa !11
  store double %52, ptr %14, align 8, !tbaa !11
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 1
  %55 = load double, ptr %54, align 8, !tbaa !11
  store double %55, ptr %15, align 8, !tbaa !11
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 0
  %58 = load double, ptr %57, align 8, !tbaa !11
  store double %58, ptr %16, align 8, !tbaa !11
  %59 = load double, ptr %13, align 8, !tbaa !11
  %60 = load double, ptr %13, align 8, !tbaa !11
  %61 = fmul double %59, %60
  %62 = load double, ptr %12, align 8, !tbaa !11
  %63 = fmul double 8.000000e+00, %62
  %64 = load double, ptr %14, align 8, !tbaa !11
  %65 = fmul double %63, %64
  %66 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %61, double %65)
  %67 = load double, ptr %12, align 8, !tbaa !11
  %68 = load double, ptr %12, align 8, !tbaa !11
  %69 = fmul double %67, %68
  %70 = fmul double 8.000000e+00, %69
  %71 = fdiv double %66, %70
  store double %71, ptr %17, align 8, !tbaa !11
  %72 = load double, ptr %13, align 8, !tbaa !11
  %73 = load double, ptr %13, align 8, !tbaa !11
  %74 = fmul double %72, %73
  %75 = load double, ptr %13, align 8, !tbaa !11
  %76 = load double, ptr %12, align 8, !tbaa !11
  %77 = fmul double 4.000000e+00, %76
  %78 = load double, ptr %13, align 8, !tbaa !11
  %79 = fmul double %77, %78
  %80 = load double, ptr %14, align 8, !tbaa !11
  %81 = fmul double %79, %80
  %82 = fneg double %81
  %83 = call double @llvm.fmuladd.f64(double %74, double %75, double %82)
  %84 = load double, ptr %15, align 8, !tbaa !11
  %85 = fmul double 8.000000e+00, %84
  %86 = load double, ptr %12, align 8, !tbaa !11
  %87 = load double, ptr %12, align 8, !tbaa !11
  %88 = fmul double %86, %87
  %89 = call double @llvm.fmuladd.f64(double %85, double %88, double %83)
  %90 = load double, ptr %12, align 8, !tbaa !11
  %91 = load double, ptr %12, align 8, !tbaa !11
  %92 = fmul double %90, %91
  %93 = load double, ptr %12, align 8, !tbaa !11
  %94 = fmul double %92, %93
  %95 = fmul double 8.000000e+00, %94
  %96 = fdiv double %89, %95
  store double %96, ptr %18, align 8, !tbaa !11
  %97 = load double, ptr %13, align 8, !tbaa !11
  %98 = load double, ptr %13, align 8, !tbaa !11
  %99 = fmul double %97, %98
  %100 = load double, ptr %13, align 8, !tbaa !11
  %101 = fmul double %99, %100
  %102 = load double, ptr %13, align 8, !tbaa !11
  %103 = fmul double %101, %102
  %104 = load double, ptr %12, align 8, !tbaa !11
  %105 = fmul double 1.600000e+01, %104
  %106 = load double, ptr %13, align 8, !tbaa !11
  %107 = load double, ptr %13, align 8, !tbaa !11
  %108 = fmul double %106, %107
  %109 = fmul double %105, %108
  %110 = load double, ptr %14, align 8, !tbaa !11
  %111 = fmul double %109, %110
  %112 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %103, double %111)
  %113 = load double, ptr %12, align 8, !tbaa !11
  %114 = load double, ptr %12, align 8, !tbaa !11
  %115 = fmul double %113, %114
  %116 = fmul double 6.400000e+01, %115
  %117 = load double, ptr %13, align 8, !tbaa !11
  %118 = fmul double %116, %117
  %119 = load double, ptr %15, align 8, !tbaa !11
  %120 = fneg double %118
  %121 = call double @llvm.fmuladd.f64(double %120, double %119, double %112)
  %122 = load double, ptr %12, align 8, !tbaa !11
  %123 = load double, ptr %12, align 8, !tbaa !11
  %124 = fmul double %122, %123
  %125 = load double, ptr %12, align 8, !tbaa !11
  %126 = fmul double %124, %125
  %127 = fmul double 2.560000e+02, %126
  %128 = load double, ptr %16, align 8, !tbaa !11
  %129 = call double @llvm.fmuladd.f64(double %127, double %128, double %121)
  %130 = load double, ptr %12, align 8, !tbaa !11
  %131 = load double, ptr %12, align 8, !tbaa !11
  %132 = fmul double %130, %131
  %133 = load double, ptr %12, align 8, !tbaa !11
  %134 = fmul double %132, %133
  %135 = load double, ptr %12, align 8, !tbaa !11
  %136 = fmul double %134, %135
  %137 = fmul double 2.560000e+02, %136
  %138 = fdiv double %129, %137
  store double %138, ptr %19, align 8, !tbaa !11
  %139 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 3
  store double 8.000000e+00, ptr %139, align 8, !tbaa !11
  %140 = load double, ptr %17, align 8, !tbaa !11
  %141 = fmul double -4.000000e+00, %140
  %142 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 2
  store double %141, ptr %142, align 16, !tbaa !11
  %143 = load double, ptr %19, align 8, !tbaa !11
  %144 = fmul double -8.000000e+00, %143
  %145 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 1
  store double %144, ptr %145, align 8, !tbaa !11
  %146 = load double, ptr %17, align 8, !tbaa !11
  %147 = fmul double 4.000000e+00, %146
  %148 = load double, ptr %19, align 8, !tbaa !11
  %149 = load double, ptr %18, align 8, !tbaa !11
  %150 = load double, ptr %18, align 8, !tbaa !11
  %151 = fmul double %149, %150
  %152 = fneg double %151
  %153 = call double @llvm.fmuladd.f64(double %147, double %148, double %152)
  %154 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
  store double %153, ptr %154, align 16, !tbaa !11
  %155 = getelementptr inbounds [4 x double], ptr %10, i64 0, i64 0
  %156 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %157 = call i32 @cubic(ptr noundef %155, ptr noundef %156, ptr noundef %26)
  store double 0xD47D42AEA2879F2E, ptr %20, align 8, !tbaa !11
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %178, %43
  %159 = load i32, ptr %27, align 4, !tbaa !9
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = icmp slt i32 %159, %160
  br i1 %161, label %162, label %181

162:                                              ; preds = %158
  %163 = load double, ptr %20, align 8, !tbaa !11
  %164 = load i32, ptr %27, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %165
  %167 = load double, ptr %166, align 8, !tbaa !11
  %168 = fcmp ogt double %163, %167
  br i1 %168, label %169, label %171

169:                                              ; preds = %162
  %170 = load double, ptr %20, align 8, !tbaa !11
  br label %176

171:                                              ; preds = %162
  %172 = load i32, ptr %27, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !11
  br label %176

176:                                              ; preds = %171, %169
  %177 = phi double [ %170, %169 ], [ %175, %171 ]
  store double %177, ptr %20, align 8, !tbaa !11
  br label %178

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

181:                                              ; preds = %158
  %182 = load double, ptr %20, align 8, !tbaa !11
  %183 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  store double %182, ptr %183, align 16, !tbaa !11
  %184 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %185 = load double, ptr %184, align 16, !tbaa !11
  %186 = load double, ptr %17, align 8, !tbaa !11
  %187 = fneg double %186
  %188 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %185, double %187)
  store double %188, ptr %21, align 8, !tbaa !11
  %189 = load double, ptr %21, align 8, !tbaa !11
  %190 = call double @sqrt(double noundef %189) #4
  store double %190, ptr %23, align 8, !tbaa !11
  %191 = load double, ptr %18, align 8, !tbaa !11
  %192 = load double, ptr %23, align 8, !tbaa !11
  %193 = fmul double 2.000000e+00, %192
  %194 = fdiv double %191, %193
  store double %194, ptr %22, align 8, !tbaa !11
  %195 = load double, ptr %21, align 8, !tbaa !11
  %196 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %197 = load double, ptr %196, align 16, !tbaa !11
  %198 = load double, ptr %22, align 8, !tbaa !11
  %199 = fadd double %197, %198
  %200 = call double @llvm.fmuladd.f64(double -4.000000e+00, double %199, double %195)
  store double %200, ptr %24, align 8, !tbaa !11
  %201 = load double, ptr %21, align 8, !tbaa !11
  %202 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %203 = load double, ptr %202, align 16, !tbaa !11
  %204 = load double, ptr %22, align 8, !tbaa !11
  %205 = fsub double %203, %204
  %206 = call double @llvm.fmuladd.f64(double -4.000000e+00, double %205, double %201)
  store double %206, ptr %25, align 8, !tbaa !11
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %207

207:                                              ; preds = %215, %181
  %208 = load i32, ptr %27, align 4, !tbaa !9
  %209 = icmp slt i32 %208, 4
  br i1 %209, label %210, label %218

210:                                              ; preds = %207
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = load i32, ptr %27, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %211, i64 %213
  store double 0.000000e+00, ptr %214, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %210
  %216 = load i32, ptr %27, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %27, align 4, !tbaa !9
  br label %207, !llvm.loop !15

218:                                              ; preds = %207
  %219 = load double, ptr %24, align 8, !tbaa !11
  %220 = fcmp oge double %219, 0.000000e+00
  br i1 %220, label %221, label %256

221:                                              ; preds = %218
  %222 = load double, ptr %25, align 8, !tbaa !11
  %223 = fcmp oge double %222, 0.000000e+00
  br i1 %223, label %224, label %256

224:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %225 = load double, ptr %24, align 8, !tbaa !11
  %226 = call double @sqrt(double noundef %225) #4
  store double %226, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %227 = load double, ptr %25, align 8, !tbaa !11
  %228 = call double @sqrt(double noundef %227) #4
  store double %228, ptr %30, align 8, !tbaa !11
  %229 = load double, ptr %23, align 8, !tbaa !11
  %230 = load double, ptr %29, align 8, !tbaa !11
  %231 = fadd double %229, %230
  %232 = fmul double 5.000000e-01, %231
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 0
  store double %232, ptr %234, align 8, !tbaa !11
  %235 = load double, ptr %23, align 8, !tbaa !11
  %236 = load double, ptr %29, align 8, !tbaa !11
  %237 = fsub double %235, %236
  %238 = fmul double 5.000000e-01, %237
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = getelementptr inbounds double, ptr %239, i64 1
  store double %238, ptr %240, align 8, !tbaa !11
  %241 = load double, ptr %23, align 8, !tbaa !11
  %242 = fneg double %241
  %243 = load double, ptr %30, align 8, !tbaa !11
  %244 = fadd double %242, %243
  %245 = fmul double 5.000000e-01, %244
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  %247 = getelementptr inbounds double, ptr %246, i64 2
  store double %245, ptr %247, align 8, !tbaa !11
  %248 = load double, ptr %23, align 8, !tbaa !11
  %249 = fneg double %248
  %250 = load double, ptr %30, align 8, !tbaa !11
  %251 = fsub double %249, %250
  %252 = fmul double 5.000000e-01, %251
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = getelementptr inbounds double, ptr %253, i64 3
  store double %252, ptr %254, align 8, !tbaa !11
  %255 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 4, ptr %255, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %385

256:                                              ; preds = %221, %218
  %257 = load double, ptr %24, align 8, !tbaa !11
  %258 = fcmp oge double %257, 0.000000e+00
  br i1 %258, label %259, label %296

259:                                              ; preds = %256
  %260 = load double, ptr %25, align 8, !tbaa !11
  %261 = fcmp olt double %260, 0.000000e+00
  br i1 %261, label %262, label %296

262:                                              ; preds = %259
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %263 = load double, ptr %24, align 8, !tbaa !11
  %264 = call double @sqrt(double noundef %263) #4
  store double %264, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  %265 = load double, ptr %25, align 8, !tbaa !11
  %266 = fmul double -2.500000e-01, %265
  %267 = call double @sqrt(double noundef %266) #4
  store double %267, ptr %32, align 8, !tbaa !11
  %268 = load double, ptr %23, align 8, !tbaa !11
  %269 = load double, ptr %31, align 8, !tbaa !11
  %270 = fadd double %268, %269
  %271 = fmul double 5.000000e-01, %270
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds double, ptr %272, i64 0
  store double %271, ptr %273, align 8, !tbaa !11
  %274 = load double, ptr %23, align 8, !tbaa !11
  %275 = load double, ptr %31, align 8, !tbaa !11
  %276 = fsub double %274, %275
  %277 = fmul double 5.000000e-01, %276
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds double, ptr %278, i64 1
  store double %277, ptr %279, align 8, !tbaa !11
  %280 = load double, ptr %23, align 8, !tbaa !11
  %281 = fmul double -5.000000e-01, %280
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds double, ptr %282, i64 2
  store double %281, ptr %283, align 8, !tbaa !11
  %284 = load double, ptr %23, align 8, !tbaa !11
  %285 = fmul double -5.000000e-01, %284
  %286 = load ptr, ptr %7, align 8, !tbaa !5
  %287 = getelementptr inbounds double, ptr %286, i64 3
  store double %285, ptr %287, align 8, !tbaa !11
  %288 = load double, ptr %32, align 8, !tbaa !11
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 2
  store double %288, ptr %290, align 8, !tbaa !11
  %291 = load double, ptr %32, align 8, !tbaa !11
  %292 = fneg double %291
  %293 = load ptr, ptr %8, align 8, !tbaa !5
  %294 = getelementptr inbounds double, ptr %293, i64 3
  store double %292, ptr %294, align 8, !tbaa !11
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 2, ptr %295, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  br label %384

296:                                              ; preds = %259, %256
  %297 = load double, ptr %24, align 8, !tbaa !11
  %298 = fcmp olt double %297, 0.000000e+00
  br i1 %298, label %299, label %338

299:                                              ; preds = %296
  %300 = load double, ptr %25, align 8, !tbaa !11
  %301 = fcmp oge double %300, 0.000000e+00
  br i1 %301, label %302, label %338

302:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  %303 = load double, ptr %24, align 8, !tbaa !11
  %304 = fmul double -2.500000e-01, %303
  %305 = call double @sqrt(double noundef %304) #4
  store double %305, ptr %33, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %306 = load double, ptr %25, align 8, !tbaa !11
  %307 = call double @sqrt(double noundef %306) #4
  store double %307, ptr %34, align 8, !tbaa !11
  %308 = load double, ptr %23, align 8, !tbaa !11
  %309 = fneg double %308
  %310 = load double, ptr %34, align 8, !tbaa !11
  %311 = fadd double %309, %310
  %312 = fmul double 5.000000e-01, %311
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = getelementptr inbounds double, ptr %313, i64 0
  store double %312, ptr %314, align 8, !tbaa !11
  %315 = load double, ptr %23, align 8, !tbaa !11
  %316 = fneg double %315
  %317 = load double, ptr %34, align 8, !tbaa !11
  %318 = fsub double %316, %317
  %319 = fmul double 5.000000e-01, %318
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = getelementptr inbounds double, ptr %320, i64 1
  store double %319, ptr %321, align 8, !tbaa !11
  %322 = load double, ptr %23, align 8, !tbaa !11
  %323 = fmul double 5.000000e-01, %322
  %324 = load ptr, ptr %7, align 8, !tbaa !5
  %325 = getelementptr inbounds double, ptr %324, i64 2
  store double %323, ptr %325, align 8, !tbaa !11
  %326 = load double, ptr %23, align 8, !tbaa !11
  %327 = fmul double 5.000000e-01, %326
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = getelementptr inbounds double, ptr %328, i64 3
  store double %327, ptr %329, align 8, !tbaa !11
  %330 = load double, ptr %33, align 8, !tbaa !11
  %331 = load ptr, ptr %8, align 8, !tbaa !5
  %332 = getelementptr inbounds double, ptr %331, i64 2
  store double %330, ptr %332, align 8, !tbaa !11
  %333 = load double, ptr %33, align 8, !tbaa !11
  %334 = fneg double %333
  %335 = load ptr, ptr %8, align 8, !tbaa !5
  %336 = getelementptr inbounds double, ptr %335, i64 3
  store double %334, ptr %336, align 8, !tbaa !11
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 2, ptr %337, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  br label %383

338:                                              ; preds = %299, %296
  %339 = load double, ptr %24, align 8, !tbaa !11
  %340 = fcmp olt double %339, 0.000000e+00
  br i1 %340, label %341, label %382

341:                                              ; preds = %338
  %342 = load double, ptr %25, align 8, !tbaa !11
  %343 = fcmp olt double %342, 0.000000e+00
  br i1 %343, label %344, label %382

344:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %345 = load double, ptr %24, align 8, !tbaa !11
  %346 = fmul double -2.500000e-01, %345
  %347 = call double @sqrt(double noundef %346) #4
  store double %347, ptr %35, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %348 = load double, ptr %25, align 8, !tbaa !11
  %349 = fmul double -2.500000e-01, %348
  %350 = call double @sqrt(double noundef %349) #4
  store double %350, ptr %36, align 8, !tbaa !11
  %351 = load double, ptr %23, align 8, !tbaa !11
  %352 = fmul double -5.000000e-01, %351
  %353 = load ptr, ptr %7, align 8, !tbaa !5
  %354 = getelementptr inbounds double, ptr %353, i64 0
  store double %352, ptr %354, align 8, !tbaa !11
  %355 = load double, ptr %23, align 8, !tbaa !11
  %356 = fmul double -5.000000e-01, %355
  %357 = load ptr, ptr %7, align 8, !tbaa !5
  %358 = getelementptr inbounds double, ptr %357, i64 1
  store double %356, ptr %358, align 8, !tbaa !11
  %359 = load double, ptr %36, align 8, !tbaa !11
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds double, ptr %360, i64 0
  store double %359, ptr %361, align 8, !tbaa !11
  %362 = load double, ptr %36, align 8, !tbaa !11
  %363 = fneg double %362
  %364 = load ptr, ptr %8, align 8, !tbaa !5
  %365 = getelementptr inbounds double, ptr %364, i64 1
  store double %363, ptr %365, align 8, !tbaa !11
  %366 = load double, ptr %23, align 8, !tbaa !11
  %367 = fmul double 5.000000e-01, %366
  %368 = load ptr, ptr %7, align 8, !tbaa !5
  %369 = getelementptr inbounds double, ptr %368, i64 2
  store double %367, ptr %369, align 8, !tbaa !11
  %370 = load double, ptr %23, align 8, !tbaa !11
  %371 = fmul double 5.000000e-01, %370
  %372 = load ptr, ptr %7, align 8, !tbaa !5
  %373 = getelementptr inbounds double, ptr %372, i64 3
  store double %371, ptr %373, align 8, !tbaa !11
  %374 = load double, ptr %35, align 8, !tbaa !11
  %375 = load ptr, ptr %8, align 8, !tbaa !5
  %376 = getelementptr inbounds double, ptr %375, i64 2
  store double %374, ptr %376, align 8, !tbaa !11
  %377 = load double, ptr %35, align 8, !tbaa !11
  %378 = fneg double %377
  %379 = load ptr, ptr %8, align 8, !tbaa !5
  %380 = getelementptr inbounds double, ptr %379, i64 3
  store double %378, ptr %380, align 8, !tbaa !11
  %381 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %381, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  br label %382

382:                                              ; preds = %344, %341, %338
  br label %383

383:                                              ; preds = %382, %302
  br label %384

384:                                              ; preds = %383, %262
  br label %385

385:                                              ; preds = %384, %224
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %386

386:                                              ; preds = %400, %385
  %387 = load i32, ptr %27, align 4, !tbaa !9
  %388 = icmp slt i32 %387, 4
  br i1 %388, label %389, label %403

389:                                              ; preds = %386
  %390 = load double, ptr %13, align 8, !tbaa !11
  %391 = load double, ptr %12, align 8, !tbaa !11
  %392 = fmul double 4.000000e+00, %391
  %393 = fdiv double %390, %392
  %394 = load ptr, ptr %7, align 8, !tbaa !5
  %395 = load i32, ptr %27, align 4, !tbaa !9
  %396 = sext i32 %395 to i64
  %397 = getelementptr inbounds double, ptr %394, i64 %396
  %398 = load double, ptr %397, align 8, !tbaa !11
  %399 = fsub double %398, %393
  store double %399, ptr %397, align 8, !tbaa !11
  br label %400

400:                                              ; preds = %389
  %401 = load i32, ptr %27, align 4, !tbaa !9
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %27, align 4, !tbaa !9
  br label %386, !llvm.loop !16

403:                                              ; preds = %386
  store i32 0, ptr %5, align 4
  store i32 1, ptr %28, align 4
  br label %404

404:                                              ; preds = %403, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #4
  %405 = load i32, ptr %5, align 4
  ret i32 %405
}

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @quartic(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %5 = alloca [4 x double], align 16
  %6 = alloca [3 x double], align 16
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load double, ptr %8, align 8, !tbaa !9
  %10 = fcmp oeq double %9, 0.000000e+00
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load double, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load double, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds i8, ptr %0, i64 8
  %17 = load double, ptr %16, align 8, !tbaa !9
  %18 = load double, ptr %0, align 8, !tbaa !9
  %19 = fmul double %9, 8.000000e+00
  %20 = fmul double %19, %15
  %21 = fmul double %9, 4.000000e+00
  %22 = fneg double %21
  %23 = fmul double %13, %22
  %24 = fmul double %23, %15
  %25 = fmul double %17, 8.000000e+00
  %26 = fmul double %9, 1.600000e+01
  %27 = getelementptr inbounds i8, ptr %5, i64 24
  store double 8.000000e+00, ptr %27, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %5, i64 8
  %29 = fmul double %9, %9
  %30 = fmul double %9, %29
  %31 = insertelement <2 x double> poison, double %30, i64 0
  %32 = insertelement <2 x double> %31, double %13, i64 1
  %33 = insertelement <2 x double> %32, double 2.560000e+02, i64 0
  %34 = fmul <2 x double> %32, %33
  %35 = extractelement <2 x double> %34, i64 1
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %13, double %24)
  %37 = tail call double @llvm.fmuladd.f64(double %25, double %29, double %36)
  %38 = fmul double %30, 8.000000e+00
  %39 = fdiv double %37, %38
  %40 = fmul double %13, %35
  %41 = fmul double %13, %40
  %42 = fmul double %26, %35
  %43 = fmul double %15, %42
  %44 = tail call double @llvm.fmuladd.f64(double %41, double -3.000000e+00, double %43)
  %45 = fmul double %29, -6.400000e+01
  %46 = fmul double %45, %13
  %47 = tail call double @llvm.fmuladd.f64(double %46, double %17, double %44)
  %48 = insertelement <2 x double> <double poison, double -3.000000e+00>, double %18, i64 0
  %49 = insertelement <2 x double> poison, double %47, i64 0
  %50 = insertelement <2 x double> %49, double %20, i64 1
  %51 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %34, <2 x double> %48, <2 x double> %50)
  %52 = fmul double %9, %30
  %53 = insertelement <2 x double> poison, double %52, i64 0
  %54 = insertelement <2 x double> %53, double %29, i64 1
  %55 = fmul <2 x double> %54, <double 2.560000e+02, double 8.000000e+00>
  %56 = fdiv <2 x double> %51, %55
  %57 = fmul <2 x double> %56, <double -8.000000e+00, double -4.000000e+00>
  store <2 x double> %57, ptr %28, align 8, !tbaa !9
  %58 = extractelement <2 x double> %56, i64 1
  %59 = fmul double %58, 4.000000e+00
  %60 = fneg double %39
  %61 = fmul double %39, %60
  %62 = extractelement <2 x double> %56, i64 0
  %63 = tail call double @llvm.fmuladd.f64(double %59, double %62, double %61)
  store double %63, ptr %5, align 16, !tbaa !9
  %64 = call i32 @cubic(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7)
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = icmp sgt i32 %65, 0
  br i1 %66, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %11
  %wide.trip.count = zext nneg i32 %65 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %67 = icmp ult i32 %65, 4
  br i1 %67, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.3, %.lr.ph ]
  %.0159170 = phi double [ 0xD47D42AEA2879F2E, %.lr.ph.preheader.new ], [ %.0159..3, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.3, %.lr.ph ]
  %68 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 %indvars.iv
  %69 = load double, ptr %68, align 16, !tbaa !9
  %70 = fcmp ogt double %.0159170, %69
  %.0159. = select i1 %70, double %.0159170, double %69
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %71 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 %indvars.iv.next
  %72 = load double, ptr %71, align 8, !tbaa !9
  %73 = fcmp ogt double %.0159., %72
  %.0159..1 = select i1 %73, double %.0159., double %72
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %74 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 %indvars.iv.next.1
  %75 = load double, ptr %74, align 16, !tbaa !9
  %76 = fcmp ogt double %.0159..1, %75
  %.0159..2 = select i1 %76, double %.0159..1, double %75
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %77 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 %indvars.iv.next.2
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fcmp ogt double %.0159..2, %78
  %.0159..3 = select i1 %79, double %.0159..2, double %78
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.0159..lcssa.ph = phi double [ poison, %.lr.ph.preheader ], [ %.0159..3, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.3, %.lr.ph ]
  %.0159170.unr = phi double [ 0xD47D42AEA2879F2E, %.lr.ph.preheader ], [ %.0159..3, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph.epil ], [ %indvars.iv.unr, %._crit_edge.loopexit.unr-lcssa ]
  %.0159170.epil = phi double [ %.0159..epil, %.lr.ph.epil ], [ %.0159170.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %80 = getelementptr inbounds [3 x double], ptr %6, i64 0, i64 %indvars.iv.epil
  %81 = load double, ptr %80, align 8, !tbaa !9
  %82 = fcmp ogt double %.0159170.epil, %81
  %.0159..epil = select i1 %82, double %.0159170.epil, double %81
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %11
  %.0159.lcssa = phi double [ 0xD47D42AEA2879F2E, %11 ], [ %.0159..lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %.0159..epil, %.lr.ph.epil ]
  store double %.0159.lcssa, ptr %6, align 16, !tbaa !9
  %83 = fneg double %58
  %84 = call double @llvm.fmuladd.f64(double %.0159.lcssa, double 2.000000e+00, double %83)
  %85 = call double @sqrt(double noundef %84) #6
  %86 = fmul double %85, 2.000000e+00
  %87 = fdiv double %39, %86
  %88 = load double, ptr %6, align 16, !tbaa !9
  %89 = fadd double %88, %87
  %90 = fsub double %88, %87
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %2, i8 0, i64 32, i1 false), !tbaa !9
  %91 = call double @llvm.fmuladd.f64(double %89, double -4.000000e+00, double %84)
  %92 = call double @llvm.fmuladd.f64(double %90, double -4.000000e+00, double %84)
  %93 = fcmp oge double %91, 0.000000e+00
  %94 = fcmp oge double %92, 0.000000e+00
  %or.cond = select i1 %93, i1 %94, i1 false
  br i1 %or.cond, label %95, label %109

95:                                               ; preds = %._crit_edge
  %96 = call double @sqrt(double noundef %91) #6
  %97 = call double @sqrt(double noundef %92) #6
  %98 = fadd double %85, %96
  %99 = fsub double %85, %96
  %100 = insertelement <2 x double> poison, double %98, i64 0
  %101 = insertelement <2 x double> %100, double %99, i64 1
  %102 = fmul <2 x double> %101, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %102, ptr %1, align 8, !tbaa !9
  %103 = fneg double %85
  %104 = fsub double %97, %85
  %105 = fmul double %104, 5.000000e-01
  %106 = getelementptr inbounds i8, ptr %1, i64 16
  store double %105, ptr %106, align 8, !tbaa !9
  %107 = fsub double %103, %97
  %108 = fmul double %107, 5.000000e-01
  br label %.loopexit.loopexit.sink.split

109:                                              ; preds = %._crit_edge
  %110 = fcmp olt double %92, 0.000000e+00
  %or.cond3 = select i1 %93, i1 %110, i1 false
  br i1 %or.cond3, label %111, label %125

111:                                              ; preds = %109
  %112 = call double @sqrt(double noundef %91) #6
  %113 = fmul double %92, -2.500000e-01
  %114 = call double @sqrt(double noundef %113) #6
  %115 = fadd double %85, %112
  %116 = fsub double %85, %112
  %117 = insertelement <2 x double> poison, double %115, i64 0
  %118 = insertelement <2 x double> %117, double %116, i64 1
  %119 = fmul <2 x double> %118, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %119, ptr %1, align 8, !tbaa !9
  %120 = fmul double %85, -5.000000e-01
  %121 = getelementptr inbounds i8, ptr %1, i64 16
  store double %120, ptr %121, align 8, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %1, i64 24
  store double %120, ptr %122, align 8, !tbaa !9
  %123 = getelementptr inbounds i8, ptr %2, i64 16
  store double %114, ptr %123, align 8, !tbaa !9
  %124 = fneg double %114
  br label %.loopexit.loopexit.sink.split

125:                                              ; preds = %109
  %126 = fcmp olt double %91, 0.000000e+00
  %or.cond5 = select i1 %126, i1 %94, i1 false
  br i1 %or.cond5, label %127, label %143

127:                                              ; preds = %125
  %128 = fmul double %91, -2.500000e-01
  %129 = call double @sqrt(double noundef %128) #6
  %130 = call double @sqrt(double noundef %92) #6
  %131 = fneg double %85
  %132 = insertelement <2 x double> poison, double %130, i64 0
  %133 = insertelement <2 x double> %132, double %131, i64 1
  %134 = insertelement <2 x double> poison, double %85, i64 0
  %135 = insertelement <2 x double> %134, double %130, i64 1
  %136 = fsub <2 x double> %133, %135
  %137 = fmul <2 x double> %136, <double 5.000000e-01, double 5.000000e-01>
  store <2 x double> %137, ptr %1, align 8, !tbaa !9
  %138 = fmul double %85, 5.000000e-01
  %139 = getelementptr inbounds i8, ptr %1, i64 16
  store double %138, ptr %139, align 8, !tbaa !9
  %140 = getelementptr inbounds i8, ptr %1, i64 24
  store double %138, ptr %140, align 8, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %2, i64 16
  store double %129, ptr %141, align 8, !tbaa !9
  %142 = fneg double %129
  br label %.loopexit.loopexit.sink.split

143:                                              ; preds = %125
  %or.cond7 = select i1 %126, i1 %110, i1 false
  br i1 %or.cond7, label %144, label %.loopexit.loopexit

144:                                              ; preds = %143
  %145 = fmul double %91, -2.500000e-01
  %146 = call double @sqrt(double noundef %145) #6
  %147 = fmul double %92, -2.500000e-01
  %148 = call double @sqrt(double noundef %147) #6
  %149 = fmul double %85, -5.000000e-01
  store double %149, ptr %1, align 8, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %1, i64 8
  store double %149, ptr %150, align 8, !tbaa !9
  store double %148, ptr %2, align 8, !tbaa !9
  %151 = fneg double %148
  %152 = getelementptr inbounds i8, ptr %2, i64 8
  store double %151, ptr %152, align 8, !tbaa !9
  %153 = fmul double %85, 5.000000e-01
  %154 = getelementptr inbounds i8, ptr %1, i64 16
  store double %153, ptr %154, align 8, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %1, i64 24
  store double %153, ptr %155, align 8, !tbaa !9
  %156 = getelementptr inbounds i8, ptr %2, i64 16
  store double %146, ptr %156, align 8, !tbaa !9
  %157 = fneg double %146
  br label %.loopexit.loopexit.sink.split

.loopexit.loopexit.sink.split:                    ; preds = %95, %127, %144, %111
  %.sink183 = phi ptr [ %2, %111 ], [ %2, %144 ], [ %2, %127 ], [ %1, %95 ]
  %.sink181 = phi double [ %124, %111 ], [ %157, %144 ], [ %142, %127 ], [ %108, %95 ]
  %.sink = phi i32 [ 2, %111 ], [ 0, %144 ], [ 2, %127 ], [ 4, %95 ]
  %158 = getelementptr inbounds i8, ptr %.sink183, i64 24
  store double %.sink181, ptr %158, align 8, !tbaa !9
  store i32 %.sink, ptr %3, align 4, !tbaa !5
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %.loopexit.loopexit.sink.split, %143
  %159 = fdiv double %13, %21
  %160 = load <2 x double>, ptr %1, align 8, !tbaa !9
  %161 = insertelement <2 x double> poison, double %159, i64 0
  %162 = shufflevector <2 x double> %161, <2 x double> poison, <2 x i32> zeroinitializer
  %163 = fsub <2 x double> %160, %162
  store <2 x double> %163, ptr %1, align 8, !tbaa !9
  %164 = getelementptr inbounds i8, ptr %1, i64 16
  %165 = load <2 x double>, ptr %164, align 8, !tbaa !9
  %166 = fsub <2 x double> %165, %162
  store <2 x double> %166, ptr %164, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  ret i32 0
}

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

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

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

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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


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