; LLVM IR from tivole/Numerary :: src/ordinary_differential_equations.ll (ZN8numerary8Numerary9dorpi_4_5EPFdddEPdddddiddd)

; 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: mustprogress uwtable
define dso_local noundef signext i16 @_ZN8numerary8Numerary9dorpi_4_5EPFdddEPdddddiddd(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, i32 noundef %6, double noundef %7, double noundef %8, double noundef %9) #0 align 2 {
  %11 = alloca i16, align 2
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %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 [2 x double], align 16
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store double %2, ptr %14, align 8, !tbaa !9
  store double %3, ptr %15, align 8, !tbaa !9
  store double %4, ptr %16, align 8, !tbaa !9
  store double %5, ptr %17, align 8, !tbaa !9
  store i32 %6, ptr %18, align 4, !tbaa !11
  store double %7, ptr %19, align 8, !tbaa !9
  store double %8, ptr %20, align 8, !tbaa !9
  store double %9, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  store double 0x3F96C16C16C16C17, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  store double 0x3FEC71C71C71C71C, ptr %36, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  store double 0x3F23FA39AB547995, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  store double 0x3ED8FAF982CE2F85, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  store double 0x3EDD70EF35979370, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #5
  store double 0x3E691F8471FFA35C, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  store i32 0, ptr %42, align 4, !tbaa !11
  %44 = load double, ptr %16, align 8, !tbaa !9
  %45 = load double, ptr %14, align 8, !tbaa !9
  %46 = fcmp olt double %44, %45
  br i1 %46, label %50, label %47

47:                                               ; preds = %10
  %48 = load double, ptr %15, align 8, !tbaa !9
  %49 = fcmp ole double %48, 0.000000e+00
  br i1 %49, label %50, label %51

50:                                               ; preds = %47, %10
  store i16 -2, ptr %11, align 2
  store i32 1, ptr %43, align 4
  br label %345

51:                                               ; preds = %47
  %52 = load double, ptr %15, align 8, !tbaa !9
  store double %52, ptr %22, align 8, !tbaa !9
  %53 = load ptr, ptr %13, align 8, !tbaa !5
  %54 = getelementptr inbounds double, ptr %53, i64 0
  %55 = load double, ptr %54, align 8, !tbaa !9
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds double, ptr %56, i64 1
  store double %55, ptr %57, align 8, !tbaa !9
  %58 = load double, ptr %16, align 8, !tbaa !9
  %59 = load double, ptr %14, align 8, !tbaa !9
  %60 = fcmp oeq double %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %51
  store i16 0, ptr %11, align 2
  store i32 1, ptr %43, align 4
  br label %345

62:                                               ; preds = %51
  %63 = load double, ptr %15, align 8, !tbaa !9
  %64 = load double, ptr %16, align 8, !tbaa !9
  %65 = load double, ptr %14, align 8, !tbaa !9
  %66 = fsub double %64, %65
  %67 = call noundef double @_ZN8numerary8Numerary3minEdd(double noundef %63, double noundef %66)
  store double %67, ptr %15, align 8, !tbaa !9
  %68 = load double, ptr %16, align 8, !tbaa !9
  %69 = load double, ptr %14, align 8, !tbaa !9
  %70 = fsub double %68, %69
  %71 = load double, ptr %17, align 8, !tbaa !9
  %72 = fdiv double %71, %70
  store double %72, ptr %17, align 8, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 0
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  store double %75, ptr %76, align 16, !tbaa !9
  br label %77

77:                                               ; preds = %339, %62
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = load double, ptr %16, align 8, !tbaa !9
  %80 = fcmp olt double %78, %79
  br i1 %80, label %81, label %340

81:                                               ; preds = %77
  store double 1.000000e+00, ptr %23, align 8, !tbaa !9
  store i32 0, ptr %41, align 4, !tbaa !11
  br label %82

82:                                               ; preds = %292, %81
  %83 = load i32, ptr %41, align 4, !tbaa !11
  %84 = load i32, ptr %18, align 4, !tbaa !11
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %295

86:                                               ; preds = %82
  %87 = load double, ptr %15, align 8, !tbaa !9
  %88 = fmul double 2.000000e-01, %87
  store double %88, ptr %34, align 8, !tbaa !9
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load double, ptr %14, align 8, !tbaa !9
  %91 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %92 = load double, ptr %91, align 16, !tbaa !9
  %93 = call noundef double %89(double noundef %90, double noundef %92)
  store double %93, ptr %27, align 8, !tbaa !9
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load double, ptr %14, align 8, !tbaa !9
  %96 = load double, ptr %34, align 8, !tbaa !9
  %97 = fadd double %95, %96
  %98 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %99 = load double, ptr %98, align 16, !tbaa !9
  %100 = load double, ptr %34, align 8, !tbaa !9
  %101 = load double, ptr %27, align 8, !tbaa !9
  %102 = call double @llvm.fmuladd.f64(double %100, double %101, double %99)
  %103 = call noundef double %94(double noundef %97, double noundef %102)
  store double %103, ptr %28, align 8, !tbaa !9
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load double, ptr %14, align 8, !tbaa !9
  %106 = load double, ptr %15, align 8, !tbaa !9
  %107 = call double @llvm.fmuladd.f64(double 3.000000e-01, double %106, double %105)
  %108 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %109 = load double, ptr %108, align 16, !tbaa !9
  %110 = load double, ptr %15, align 8, !tbaa !9
  %111 = load double, ptr %27, align 8, !tbaa !9
  %112 = load double, ptr %28, align 8, !tbaa !9
  %113 = fmul double 2.250000e-01, %112
  %114 = call double @llvm.fmuladd.f64(double 0x3FB3333333333333, double %111, double %113)
  %115 = call double @llvm.fmuladd.f64(double %110, double %114, double %109)
  %116 = call noundef double %104(double noundef %107, double noundef %115)
  store double %116, ptr %29, align 8, !tbaa !9
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load double, ptr %14, align 8, !tbaa !9
  %119 = load double, ptr %15, align 8, !tbaa !9
  %120 = call double @llvm.fmuladd.f64(double 8.000000e-01, double %119, double %118)
  %121 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %122 = load double, ptr %121, align 16, !tbaa !9
  %123 = load double, ptr %15, align 8, !tbaa !9
  %124 = fmul double 0x3F96C16C16C16C17, %123
  %125 = load double, ptr %27, align 8, !tbaa !9
  %126 = load double, ptr %28, align 8, !tbaa !9
  %127 = fmul double 1.680000e+02, %126
  %128 = fneg double %127
  %129 = call double @llvm.fmuladd.f64(double 4.400000e+01, double %125, double %128)
  %130 = load double, ptr %29, align 8, !tbaa !9
  %131 = call double @llvm.fmuladd.f64(double 1.600000e+02, double %130, double %129)
  %132 = call double @llvm.fmuladd.f64(double %124, double %131, double %122)
  %133 = call noundef double %117(double noundef %120, double noundef %132)
  store double %133, ptr %30, align 8, !tbaa !9
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load double, ptr %14, align 8, !tbaa !9
  %136 = load double, ptr %15, align 8, !tbaa !9
  %137 = call double @llvm.fmuladd.f64(double 0x3FEC71C71C71C71C, double %136, double %135)
  %138 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %139 = load double, ptr %138, align 16, !tbaa !9
  %140 = load double, ptr %15, align 8, !tbaa !9
  %141 = fmul double 0x3F23FA39AB547995, %140
  %142 = load double, ptr %27, align 8, !tbaa !9
  %143 = load double, ptr %28, align 8, !tbaa !9
  %144 = fmul double 7.608000e+04, %143
  %145 = fneg double %144
  %146 = call double @llvm.fmuladd.f64(double 1.937200e+04, double %142, double %145)
  %147 = load double, ptr %29, align 8, !tbaa !9
  %148 = call double @llvm.fmuladd.f64(double 6.444800e+04, double %147, double %146)
  %149 = load double, ptr %30, align 8, !tbaa !9
  %150 = call double @llvm.fmuladd.f64(double -1.908000e+03, double %149, double %148)
  %151 = call double @llvm.fmuladd.f64(double %141, double %150, double %139)
  %152 = call noundef double %134(double noundef %137, double noundef %151)
  store double %152, ptr %31, align 8, !tbaa !9
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load double, ptr %14, align 8, !tbaa !9
  %155 = load double, ptr %15, align 8, !tbaa !9
  %156 = fadd double %154, %155
  %157 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %158 = load double, ptr %157, align 16, !tbaa !9
  %159 = load double, ptr %15, align 8, !tbaa !9
  %160 = fmul double 0x3ED8FAF982CE2F85, %159
  %161 = load double, ptr %27, align 8, !tbaa !9
  %162 = load double, ptr %28, align 8, !tbaa !9
  %163 = fmul double 1.806240e+06, %162
  %164 = fneg double %163
  %165 = call double @llvm.fmuladd.f64(double 4.779010e+05, double %161, double %164)
  %166 = load double, ptr %29, align 8, !tbaa !9
  %167 = call double @llvm.fmuladd.f64(double 0x4136D18000000000, double %166, double %165)
  %168 = load double, ptr %30, align 8, !tbaa !9
  %169 = call double @llvm.fmuladd.f64(double 4.674600e+04, double %168, double %167)
  %170 = load double, ptr %31, align 8, !tbaa !9
  %171 = call double @llvm.fmuladd.f64(double -4.592700e+04, double %170, double %169)
  %172 = call double @llvm.fmuladd.f64(double %160, double %171, double %158)
  %173 = call noundef double %153(double noundef %156, double noundef %172)
  store double %173, ptr %32, align 8, !tbaa !9
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load double, ptr %14, align 8, !tbaa !9
  %176 = load double, ptr %15, align 8, !tbaa !9
  %177 = fadd double %175, %176
  %178 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %179 = load double, ptr %178, align 16, !tbaa !9
  %180 = load double, ptr %15, align 8, !tbaa !9
  %181 = fmul double 0x3EDD70EF35979370, %180
  %182 = load double, ptr %27, align 8, !tbaa !9
  %183 = load double, ptr %29, align 8, !tbaa !9
  %184 = fmul double 6.400000e+04, %183
  %185 = call double @llvm.fmuladd.f64(double 1.298500e+04, double %182, double %184)
  %186 = load double, ptr %30, align 8, !tbaa !9
  %187 = call double @llvm.fmuladd.f64(double 9.275000e+04, double %186, double %185)
  %188 = load double, ptr %31, align 8, !tbaa !9
  %189 = call double @llvm.fmuladd.f64(double -4.592700e+04, double %188, double %187)
  %190 = load double, ptr %32, align 8, !tbaa !9
  %191 = call double @llvm.fmuladd.f64(double 1.865600e+04, double %190, double %189)
  %192 = call double @llvm.fmuladd.f64(double %181, double %191, double %179)
  %193 = call noundef double %174(double noundef %177, double noundef %192)
  store double %193, ptr %33, align 8, !tbaa !9
  %194 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %195 = load double, ptr %194, align 16, !tbaa !9
  %196 = load double, ptr %15, align 8, !tbaa !9
  %197 = fmul double 0x3E691F8471FFA35C, %196
  %198 = load double, ptr %27, align 8, !tbaa !9
  %199 = load double, ptr %29, align 8, !tbaa !9
  %200 = fmul double 9.690880e+06, %199
  %201 = call double @llvm.fmuladd.f64(double 0x413D518100000000, double %198, double %200)
  %202 = load double, ptr %30, align 8, !tbaa !9
  %203 = call double @llvm.fmuladd.f64(double 0x4169075BC0000000, double %202, double %201)
  %204 = load double, ptr %31, align 8, !tbaa !9
  %205 = call double @llvm.fmuladd.f64(double 0xC156221FC0000000, double %204, double %203)
  %206 = load double, ptr %32, align 8, !tbaa !9
  %207 = call double @llvm.fmuladd.f64(double 0x413D094000000000, double %206, double %205)
  %208 = load double, ptr %33, align 8, !tbaa !9
  %209 = call double @llvm.fmuladd.f64(double 5.342400e+05, double %208, double %207)
  %210 = call double @llvm.fmuladd.f64(double %197, double %209, double %195)
  %211 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %212 = getelementptr inbounds double, ptr %211, i64 1
  store double %210, ptr %212, align 8, !tbaa !9
  %213 = load double, ptr %27, align 8, !tbaa !9
  %214 = load double, ptr %29, align 8, !tbaa !9
  %215 = fmul double 9.088000e+04, %214
  %216 = fneg double %215
  %217 = call double @llvm.fmuladd.f64(double 2.634100e+04, double %213, double %216)
  %218 = load double, ptr %30, align 8, !tbaa !9
  %219 = call double @llvm.fmuladd.f64(double 7.902300e+05, double %218, double %217)
  %220 = load double, ptr %31, align 8, !tbaa !9
  %221 = call double @llvm.fmuladd.f64(double 0xC13095DB00000000, double %220, double %219)
  %222 = load double, ptr %32, align 8, !tbaa !9
  %223 = call double @llvm.fmuladd.f64(double 8.954880e+05, double %222, double %221)
  %224 = load double, ptr %33, align 8, !tbaa !9
  %225 = call double @llvm.fmuladd.f64(double -5.342400e+05, double %224, double %223)
  %226 = fmul double 0x3E691F8471FFA35C, %225
  %227 = call double @llvm.fabs.f64(double %226)
  store double %227, ptr %24, align 8, !tbaa !9
  %228 = load double, ptr %24, align 8, !tbaa !9
  %229 = load double, ptr %19, align 8, !tbaa !9
  %230 = fcmp olt double %228, %229
  br i1 %230, label %231, label %233

231:                                              ; preds = %86
  %232 = load double, ptr %21, align 8, !tbaa !9
  store double %232, ptr %23, align 8, !tbaa !9
  br label %295

233:                                              ; preds = %86
  %234 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %235 = load double, ptr %234, align 16, !tbaa !9
  %236 = call double @llvm.fabs.f64(double %235)
  %237 = load double, ptr %19, align 8, !tbaa !9
  %238 = fcmp olt double %236, %237
  br i1 %238, label %239, label %241

239:                                              ; preds = %233
  %240 = load double, ptr %17, align 8, !tbaa !9
  br label %245

241:                                              ; preds = %233
  %242 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  %243 = load double, ptr %242, align 16, !tbaa !9
  %244 = call double @llvm.fabs.f64(double %243)
  br label %245

245:                                              ; preds = %241, %239
  %246 = phi double [ %240, %239 ], [ %244, %241 ]
  store double %246, ptr %25, align 8, !tbaa !9
  %247 = load double, ptr %17, align 8, !tbaa !9
  %248 = load double, ptr %25, align 8, !tbaa !9
  %249 = fmul double %247, %248
  %250 = load double, ptr %24, align 8, !tbaa !9
  %251 = fdiv double %249, %250
  %252 = call double @sqrt(double noundef %251) #5
  %253 = call double @sqrt(double noundef %252) #5
  %254 = fmul double 8.000000e-01, %253
  store double %254, ptr %23, align 8, !tbaa !9
  %255 = load double, ptr %23, align 8, !tbaa !9
  %256 = load double, ptr %20, align 8, !tbaa !9
  %257 = call noundef double @_ZN8numerary8Numerary3maxEdd(double noundef %255, double noundef %256)
  %258 = load double, ptr %21, align 8, !tbaa !9
  %259 = call noundef double @_ZN8numerary8Numerary3minEdd(double noundef %257, double noundef %258)
  store double %259, ptr %23, align 8, !tbaa !9
  %260 = load double, ptr %24, align 8, !tbaa !9
  %261 = load double, ptr %17, align 8, !tbaa !9
  %262 = load double, ptr %25, align 8, !tbaa !9
  %263 = fmul double %261, %262
  %264 = fcmp olt double %260, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %245
  br label %295

266:                                              ; preds = %245
  %267 = load double, ptr %23, align 8, !tbaa !9
  %268 = load double, ptr %15, align 8, !tbaa !9
  %269 = fmul double %268, %267
  store double %269, ptr %15, align 8, !tbaa !9
  %270 = load double, ptr %14, align 8, !tbaa !9
  %271 = load double, ptr %15, align 8, !tbaa !9
  %272 = fadd double %270, %271
  %273 = load double, ptr %16, align 8, !tbaa !9
  %274 = fcmp ogt double %272, %273
  br i1 %274, label %275, label %279

275:                                              ; preds = %266
  %276 = load double, ptr %16, align 8, !tbaa !9
  %277 = load double, ptr %14, align 8, !tbaa !9
  %278 = fsub double %276, %277
  store double %278, ptr %15, align 8, !tbaa !9
  br label %291

279:                                              ; preds = %266
  %280 = load double, ptr %14, align 8, !tbaa !9
  %281 = load double, ptr %15, align 8, !tbaa !9
  %282 = fadd double %280, %281
  %283 = load double, ptr %15, align 8, !tbaa !9
  %284 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %283, double %282)
  %285 = load double, ptr %16, align 8, !tbaa !9
  %286 = fcmp ogt double %284, %285
  br i1 %286, label %287, label %290

287:                                              ; preds = %279
  %288 = load double, ptr %15, align 8, !tbaa !9
  %289 = fmul double 5.000000e-01, %288
  store double %289, ptr %15, align 8, !tbaa !9
  br label %290

290:                                              ; preds = %287, %279
  br label %291

291:                                              ; preds = %290, %275
  br label %292

292:                                              ; preds = %291
  %293 = load i32, ptr %41, align 4, !tbaa !11
  %294 = add nsw i32 %293, 1
  store i32 %294, ptr %41, align 4, !tbaa !11
  br label %82, !llvm.loop !13

295:                                              ; preds = %265, %231, %82
  %296 = load i32, ptr %41, align 4, !tbaa !11
  %297 = load i32, ptr %18, align 4, !tbaa !11
  %298 = icmp sge i32 %296, %297
  br i1 %298, label %299, label %303

299:                                              ; preds = %295
  %300 = load double, ptr %15, align 8, !tbaa !9
  %301 = load double, ptr %23, align 8, !tbaa !9
  %302 = fmul double %300, %301
  store double %302, ptr %22, align 8, !tbaa !9
  store i16 -1, ptr %11, align 2
  store i32 1, ptr %43, align 4
  br label %345

303:                                              ; preds = %295
  %304 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 1
  %305 = load double, ptr %304, align 8, !tbaa !9
  %306 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 0
  store double %305, ptr %306, align 16, !tbaa !9
  %307 = load double, ptr %15, align 8, !tbaa !9
  %308 = load double, ptr %14, align 8, !tbaa !9
  %309 = fadd double %308, %307
  store double %309, ptr %14, align 8, !tbaa !9
  %310 = load double, ptr %23, align 8, !tbaa !9
  %311 = load double, ptr %15, align 8, !tbaa !9
  %312 = fmul double %311, %310
  store double %312, ptr %15, align 8, !tbaa !9
  %313 = load double, ptr %15, align 8, !tbaa !9
  store double %313, ptr %22, align 8, !tbaa !9
  %314 = load i32, ptr %42, align 4, !tbaa !11
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %317

316:                                              ; preds = %303
  br label %340

317:                                              ; preds = %303
  %318 = load double, ptr %14, align 8, !tbaa !9
  %319 = load double, ptr %15, align 8, !tbaa !9
  %320 = fadd double %318, %319
  %321 = load double, ptr %16, align 8, !tbaa !9
  %322 = fcmp ogt double %320, %321
  br i1 %322, label %323, label %327

323:                                              ; preds = %317
  store i32 1, ptr %42, align 4, !tbaa !11
  %324 = load double, ptr %16, align 8, !tbaa !9
  %325 = load double, ptr %14, align 8, !tbaa !9
  %326 = fsub double %324, %325
  store double %326, ptr %15, align 8, !tbaa !9
  br label %339

327:                                              ; preds = %317
  %328 = load double, ptr %14, align 8, !tbaa !9
  %329 = load double, ptr %15, align 8, !tbaa !9
  %330 = fadd double %328, %329
  %331 = load double, ptr %15, align 8, !tbaa !9
  %332 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %331, double %330)
  %333 = load double, ptr %16, align 8, !tbaa !9
  %334 = fcmp ogt double %332, %333
  br i1 %334, label %335, label %338

335:                                              ; preds = %327
  %336 = load double, ptr %15, align 8, !tbaa !9
  %337 = fmul double 5.000000e-01, %336
  store double %337, ptr %15, align 8, !tbaa !9
  br label %338

338:                                              ; preds = %335, %327
  br label %339

339:                                              ; preds = %338, %323
  br label %77, !llvm.loop !15

340:                                              ; preds = %316, %77
  %341 = getelementptr inbounds [2 x double], ptr %26, i64 0, i64 1
  %342 = load double, ptr %341, align 8, !tbaa !9
  %343 = load ptr, ptr %13, align 8, !tbaa !5
  %344 = getelementptr inbounds double, ptr %343, i64 1
  store double %342, ptr %344, align 8, !tbaa !9
  store i16 0, ptr %11, align 2
  store i32 1, ptr %43, align 4
  br label %345

345:                                              ; preds = %340, %299, %61, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %346 = load i16, ptr %11, align 2
  ret i16 %346
}

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

declare noundef double @_ZN8numerary8Numerary3minEdd(double noundef, double noundef) #2

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

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

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

declare noundef double @_ZN8numerary8Numerary3maxEdd(double noundef, double noundef) #2

; 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 = { "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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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

; Function Attrs: mustprogress uwtable
define dso_local noundef signext range(i16 -2, 1) i16 @_ZN8numerary8Numerary9dorpi_4_5EPFdddEPdddddiddd(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, i32 noundef %6, double noundef %7, double noundef %8, double noundef %9) local_unnamed_addr #0 align 2 {
  %11 = fcmp olt double %4, %2
  %12 = fcmp ole double %3, 0.000000e+00
  %or.cond = or i1 %12, %11
  br i1 %or.cond, label %.loopexit, label %13

13:                                               ; preds = %10
  %14 = load double, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 8
  store double %14, ptr %15, align 8, !tbaa !5
  %16 = fcmp oeq double %4, %2
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %13
  %18 = fsub double %4, %2
  %19 = tail call noundef double @_ZN8numerary8Numerary3minEdd(double noundef %3, double noundef %18)
  %20 = fdiv double %5, %18
  %21 = fcmp olt double %2, %4
  br i1 %21, label %.preheader.lr.ph, label %._crit_edge

.preheader.lr.ph:                                 ; preds = %17
  %22 = icmp sgt i32 %6, 0
  br i1 %22, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %23 = load double, ptr %1, align 8, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %120
  %.0175 = phi i32 [ %.1, %120 ], [ 0, %.preheader.preheader ]
  %.0140174 = phi double [ %55, %120 ], [ %2, %.preheader.preheader ]
  %.0141173 = phi double [ %.3, %120 ], [ %19, %.preheader.preheader ]
  %.sroa.0.0172 = phi double [ %108, %120 ], [ %23, %.preheader.preheader ]
  %24 = tail call double @llvm.fabs.f64(double %.sroa.0.0172)
  %25 = fcmp olt double %24, %7
  %26 = select i1 %25, double %20, double %24
  %27 = fmul double %20, %26
  %28 = fsub double %4, %.0140174
  br label %29

29:                                               ; preds = %.preheader, %98
  %.0138171 = phi i32 [ 0, %.preheader ], [ %99, %98 ]
  %.1142170 = phi double [ %.0141173, %.preheader ], [ %.2, %98 ]
  %30 = fmul double %.1142170, 2.000000e-01
  %31 = tail call noundef double %0(double noundef %.0140174, double noundef %.sroa.0.0172)
  %32 = fadd double %.0140174, %30
  %33 = tail call double @llvm.fmuladd.f64(double %30, double %31, double %.sroa.0.0172)
  %34 = tail call noundef double %0(double noundef %32, double noundef %33)
  %35 = tail call double @llvm.fmuladd.f64(double %.1142170, double 3.000000e-01, double %.0140174)
  %36 = fmul double %34, 2.250000e-01
  %37 = tail call double @llvm.fmuladd.f64(double %31, double 0x3FB3333333333333, double %36)
  %38 = tail call double @llvm.fmuladd.f64(double %.1142170, double %37, double %.sroa.0.0172)
  %39 = tail call noundef double %0(double noundef %35, double noundef %38)
  %40 = tail call double @llvm.fmuladd.f64(double %.1142170, double 8.000000e-01, double %.0140174)
  %41 = fmul double %.1142170, 0x3F96C16C16C16C17
  %42 = fmul double %34, -1.680000e+02
  %43 = tail call double @llvm.fmuladd.f64(double %31, double 4.400000e+01, double %42)
  %44 = tail call double @llvm.fmuladd.f64(double %39, double 1.600000e+02, double %43)
  %45 = tail call double @llvm.fmuladd.f64(double %41, double %44, double %.sroa.0.0172)
  %46 = tail call noundef double %0(double noundef %40, double noundef %45)
  %47 = tail call double @llvm.fmuladd.f64(double %.1142170, double 0x3FEC71C71C71C71C, double %.0140174)
  %48 = fmul double %.1142170, 0x3F23FA39AB547995
  %49 = fmul double %34, -7.608000e+04
  %50 = tail call double @llvm.fmuladd.f64(double %31, double 1.937200e+04, double %49)
  %51 = tail call double @llvm.fmuladd.f64(double %39, double 6.444800e+04, double %50)
  %52 = tail call double @llvm.fmuladd.f64(double %46, double -1.908000e+03, double %51)
  %53 = tail call double @llvm.fmuladd.f64(double %48, double %52, double %.sroa.0.0172)
  %54 = tail call noundef double %0(double noundef %47, double noundef %53)
  %55 = fadd double %.0140174, %.1142170
  %56 = fmul double %.1142170, 0x3ED8FAF982CE2F85
  %57 = fmul double %34, -1.806240e+06
  %58 = tail call double @llvm.fmuladd.f64(double %31, double 4.779010e+05, double %57)
  %59 = tail call double @llvm.fmuladd.f64(double %39, double 0x4136D18000000000, double %58)
  %60 = tail call double @llvm.fmuladd.f64(double %46, double 4.674600e+04, double %59)
  %61 = tail call double @llvm.fmuladd.f64(double %54, double -4.592700e+04, double %60)
  %62 = tail call double @llvm.fmuladd.f64(double %56, double %61, double %.sroa.0.0172)
  %63 = tail call noundef double %0(double noundef %55, double noundef %62)
  %64 = fmul double %.1142170, 0x3EDD70EF35979370
  %65 = fmul double %39, 6.400000e+04
  %66 = tail call double @llvm.fmuladd.f64(double %31, double 1.298500e+04, double %65)
  %67 = tail call double @llvm.fmuladd.f64(double %46, double 9.275000e+04, double %66)
  %68 = tail call double @llvm.fmuladd.f64(double %54, double -4.592700e+04, double %67)
  %69 = tail call double @llvm.fmuladd.f64(double %63, double 1.865600e+04, double %68)
  %70 = tail call double @llvm.fmuladd.f64(double %64, double %69, double %.sroa.0.0172)
  %71 = tail call noundef double %0(double noundef %55, double noundef %70)
  %72 = fmul double %39, -9.088000e+04
  %73 = tail call double @llvm.fmuladd.f64(double %31, double 2.634100e+04, double %72)
  %74 = tail call double @llvm.fmuladd.f64(double %46, double 7.902300e+05, double %73)
  %75 = tail call double @llvm.fmuladd.f64(double %54, double 0xC13095DB00000000, double %74)
  %76 = tail call double @llvm.fmuladd.f64(double %63, double 8.954880e+05, double %75)
  %77 = tail call double @llvm.fmuladd.f64(double %71, double -5.342400e+05, double %76)
  %78 = fmul double %77, 0x3E691F8471FFA35C
  %79 = tail call double @llvm.fabs.f64(double %78)
  %80 = fcmp olt double %79, %7
  br i1 %80, label %100, label %81

81:                                               ; preds = %29
  %82 = fdiv double %27, %79
  %83 = tail call double @sqrt(double noundef %82) #4
  %84 = tail call double @sqrt(double noundef %83) #4
  %85 = fmul double %84, 8.000000e-01
  %86 = tail call noundef double @_ZN8numerary8Numerary3maxEdd(double noundef %85, double noundef %8)
  %87 = tail call noundef double @_ZN8numerary8Numerary3minEdd(double noundef %86, double noundef %9)
  %88 = fcmp olt double %79, %27
  br i1 %88, label %100, label %89

89:                                               ; preds = %81
  %90 = fmul double %.1142170, %87
  %91 = fadd double %.0140174, %90
  %92 = fcmp ogt double %91, %4
  br i1 %92, label %98, label %93

93:                                               ; preds = %89
  %94 = tail call double @llvm.fmuladd.f64(double %90, double 5.000000e-01, double %91)
  %95 = fcmp ogt double %94, %4
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = fmul double %90, 5.000000e-01
  br label %98

98:                                               ; preds = %89, %96, %93
  %.2 = phi double [ %97, %96 ], [ %90, %93 ], [ %28, %89 ]
  %99 = add nuw nsw i32 %.0138171, 1
  %exitcond.not = icmp eq i32 %99, %6
  br i1 %exitcond.not, label %.loopexit, label %29, !llvm.loop !9

100:                                              ; preds = %29, %81
  %.1144.ph = phi double [ %9, %29 ], [ %87, %81 ]
  %101 = fmul double %.1142170, 0x3E691F8471FFA35C
  %102 = fmul double %39, 9.690880e+06
  %103 = tail call double @llvm.fmuladd.f64(double %31, double 0x413D518100000000, double %102)
  %104 = tail call double @llvm.fmuladd.f64(double %46, double 0x4169075BC0000000, double %103)
  %105 = tail call double @llvm.fmuladd.f64(double %54, double 0xC156221FC0000000, double %104)
  %106 = tail call double @llvm.fmuladd.f64(double %63, double 0x413D094000000000, double %105)
  %107 = tail call double @llvm.fmuladd.f64(double %71, double 5.342400e+05, double %106)
  %108 = tail call double @llvm.fmuladd.f64(double %101, double %107, double %.sroa.0.0172)
  %109 = fmul double %.1142170, %.1144.ph
  %.not152 = icmp eq i32 %.0175, 0
  br i1 %.not152, label %110, label %._crit_edge

110:                                              ; preds = %100
  %111 = fadd double %55, %109
  %112 = fcmp ogt double %111, %4
  br i1 %112, label %113, label %115

113:                                              ; preds = %110
  %114 = fsub double %4, %55
  br label %120

115:                                              ; preds = %110
  %116 = tail call double @llvm.fmuladd.f64(double %109, double 5.000000e-01, double %111)
  %117 = fcmp ogt double %116, %4
  br i1 %117, label %118, label %120

118:                                              ; preds = %115
  %119 = fmul double %109, 5.000000e-01
  br label %120

120:                                              ; preds = %115, %118, %113
  %.3 = phi double [ %114, %113 ], [ %119, %118 ], [ %109, %115 ]
  %.1 = phi i32 [ 1, %113 ], [ 0, %118 ], [ 0, %115 ]
  %121 = fcmp olt double %55, %4
  br i1 %121, label %.preheader, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %120, %100, %17
  %.sroa.14.3 = phi double [ undef, %17 ], [ %108, %100 ], [ %108, %120 ]
  store double %.sroa.14.3, ptr %15, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %98, %.preheader.lr.ph, %13, %10, %._crit_edge
  %.0139 = phi i16 [ 0, %._crit_edge ], [ -2, %10 ], [ 0, %13 ], [ -1, %.preheader.lr.ph ], [ -1, %98 ]
  ret i16 %.0139
}

declare noundef double @_ZN8numerary8Numerary3minEdd(double noundef, double noundef) local_unnamed_addr #1

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

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

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

declare noundef double @_ZN8numerary8Numerary3maxEdd(double noundef, double noundef) local_unnamed_addr #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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