; LLVM IR from quantumlib/Stim :: src/stim/util_bot (error_decomp)

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

@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6) #4 personality ptr @__gxx_personality_v0 {
  %8 = alloca i1, align 1
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca i64, 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 double, align 8
  %42 = alloca double, align 8
  %43 = alloca double, align 8
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca double, align 8
  %47 = alloca double, align 8
  %48 = alloca double, align 8
  %49 = alloca double, align 8
  %50 = alloca double, align 8
  %51 = alloca double, align 8
  %52 = alloca double, align 8
  %53 = alloca double, align 8
  %54 = alloca double, align 8
  %55 = alloca double, align 8
  %56 = alloca double, align 8
  store double %0, ptr %9, align 8, !tbaa !5
  store double %1, ptr %10, align 8, !tbaa !5
  store double %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !11
  %57 = load double, ptr %9, align 8, !tbaa !5
  %58 = fcmp olt double %57, 0.000000e+00
  br i1 %58, label %72, label %59

59:                                               ; preds = %7
  %60 = load double, ptr %10, align 8, !tbaa !5
  %61 = fcmp olt double %60, 0.000000e+00
  br i1 %61, label %72, label %62

62:                                               ; preds = %59
  %63 = load double, ptr %11, align 8, !tbaa !5
  %64 = fcmp olt double %63, 0.000000e+00
  br i1 %64, label %72, label %65

65:                                               ; preds = %62
  %66 = load double, ptr %9, align 8, !tbaa !5
  %67 = load double, ptr %10, align 8, !tbaa !5
  %68 = fadd double %66, %67
  %69 = load double, ptr %11, align 8, !tbaa !5
  %70 = fadd double %68, %69
  %71 = fcmp ogt double %70, 1.000000e+00
  br i1 %71, label %72, label %79

72:                                               ; preds = %65, %62, %59, %7
  %73 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %73, ptr noundef @.str.1)
          to label %74 unwind label %75

74:                                               ; preds = %72
  call void @__cxa_throw(ptr %73, ptr @_ZTISt16invalid_argument, ptr @_ZNSt16invalid_argumentD1Ev) #7
  unreachable

75:                                               ; preds = %72
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  store ptr %77, ptr %16, align 8
  %78 = extractvalue { ptr, i32 } %76, 1
  store i32 %78, ptr %17, align 4
  call void @__cxa_free_exception(ptr %73) #6
  br label %345

79:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store double 0.000000e+00, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %80 = load double, ptr %9, align 8, !tbaa !5
  %81 = fsub double 1.000000e+00, %80
  %82 = load double, ptr %10, align 8, !tbaa !5
  %83 = fsub double %81, %82
  %84 = load double, ptr %11, align 8, !tbaa !5
  %85 = fsub double %83, %84
  store double %85, ptr %20, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %87 = load double, ptr %86, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  store double %87, ptr %18, align 8, !tbaa !5
  %88 = load double, ptr %18, align 8, !tbaa !5
  %89 = load double, ptr %9, align 8, !tbaa !5
  %90 = fcmp olt double %88, %89
  br i1 %90, label %91, label %107

91:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  %92 = load double, ptr %18, align 8, !tbaa !5
  %93 = load double, ptr %11, align 8, !tbaa !5
  %94 = load double, ptr %10, align 8, !tbaa !5
  %95 = load ptr, ptr %12, align 8, !tbaa !9
  %96 = load ptr, ptr %13, align 8, !tbaa !9
  %97 = load ptr, ptr %14, align 8, !tbaa !9
  %98 = load i64, ptr %15, align 8, !tbaa !11
  %99 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %92, double noundef %93, double noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, i64 noundef %98)
  %100 = zext i1 %99 to i8
  store i8 %100, ptr %21, align 1, !tbaa !13
  %101 = load ptr, ptr %12, align 8, !tbaa !9
  %102 = load double, ptr %101, align 8, !tbaa !5
  %103 = fsub double 1.000000e+00, %102
  %104 = load ptr, ptr %12, align 8, !tbaa !9
  store double %103, ptr %104, align 8, !tbaa !5
  %105 = load i8, ptr %21, align 1, !tbaa !13, !range !15, !noundef !16
  %106 = trunc i8 %105 to i1
  store i1 %106, ptr %8, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %343

107:                                              ; preds = %79
  %108 = load double, ptr %18, align 8, !tbaa !5
  %109 = load double, ptr %10, align 8, !tbaa !5
  %110 = fcmp olt double %108, %109
  br i1 %110, label %111, label %127

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %112 = load double, ptr %11, align 8, !tbaa !5
  %113 = load double, ptr %18, align 8, !tbaa !5
  %114 = load double, ptr %9, align 8, !tbaa !5
  %115 = load ptr, ptr %12, align 8, !tbaa !9
  %116 = load ptr, ptr %13, align 8, !tbaa !9
  %117 = load ptr, ptr %14, align 8, !tbaa !9
  %118 = load i64, ptr %15, align 8, !tbaa !11
  %119 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %112, double noundef %113, double noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117, i64 noundef %118)
  %120 = zext i1 %119 to i8
  store i8 %120, ptr %23, align 1, !tbaa !13
  %121 = load ptr, ptr %13, align 8, !tbaa !9
  %122 = load double, ptr %121, align 8, !tbaa !5
  %123 = fsub double 1.000000e+00, %122
  %124 = load ptr, ptr %13, align 8, !tbaa !9
  store double %123, ptr %124, align 8, !tbaa !5
  %125 = load i8, ptr %23, align 1, !tbaa !13, !range !15, !noundef !16
  %126 = trunc i8 %125 to i1
  store i1 %126, ptr %8, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %343

127:                                              ; preds = %107
  %128 = load double, ptr %18, align 8, !tbaa !5
  %129 = load double, ptr %11, align 8, !tbaa !5
  %130 = fcmp olt double %128, %129
  br i1 %130, label %131, label %147

131:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %132 = load double, ptr %10, align 8, !tbaa !5
  %133 = load double, ptr %9, align 8, !tbaa !5
  %134 = load double, ptr %18, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !9
  %136 = load ptr, ptr %13, align 8, !tbaa !9
  %137 = load ptr, ptr %14, align 8, !tbaa !9
  %138 = load i64, ptr %15, align 8, !tbaa !11
  %139 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %132, double noundef %133, double noundef %134, ptr noundef %135, ptr noundef %136, ptr noundef %137, i64 noundef %138)
  %140 = zext i1 %139 to i8
  store i8 %140, ptr %24, align 1, !tbaa !13
  %141 = load ptr, ptr %14, align 8, !tbaa !9
  %142 = load double, ptr %141, align 8, !tbaa !5
  %143 = fsub double 1.000000e+00, %142
  %144 = load ptr, ptr %14, align 8, !tbaa !9
  store double %143, ptr %144, align 8, !tbaa !5
  %145 = load i8, ptr %24, align 1, !tbaa !13, !range !15, !noundef !16
  %146 = trunc i8 %145 to i1
  store i1 %146, ptr %8, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %343

147:                                              ; preds = %127
  %148 = load double, ptr %9, align 8, !tbaa !5
  %149 = load double, ptr %11, align 8, !tbaa !5
  %150 = fadd double %148, %149
  %151 = fcmp olt double %150, 5.000000e-01
  br i1 %151, label %152, label %218

152:                                              ; preds = %147
  %153 = load double, ptr %9, align 8, !tbaa !5
  %154 = load double, ptr %10, align 8, !tbaa !5
  %155 = fadd double %153, %154
  %156 = fcmp olt double %155, 5.000000e-01
  br i1 %156, label %157, label %218

157:                                              ; preds = %152
  %158 = load double, ptr %10, align 8, !tbaa !5
  %159 = load double, ptr %11, align 8, !tbaa !5
  %160 = fadd double %158, %159
  %161 = fcmp olt double %160, 5.000000e-01
  br i1 %161, label %162, label %218

162:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %163 = load double, ptr %9, align 8, !tbaa !5
  %164 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %163, double 1.000000e+00)
  %165 = load double, ptr %11, align 8, !tbaa !5
  %166 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %165, double %164)
  %167 = call double @sqrt(double noundef %166) #6
  store double %167, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %168 = load double, ptr %9, align 8, !tbaa !5
  %169 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %168, double 1.000000e+00)
  %170 = load double, ptr %10, align 8, !tbaa !5
  %171 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %170, double %169)
  %172 = call double @sqrt(double noundef %171) #6
  store double %172, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %173 = load double, ptr %10, align 8, !tbaa !5
  %174 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %173, double 1.000000e+00)
  %175 = load double, ptr %11, align 8, !tbaa !5
  %176 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %175, double %174)
  %177 = call double @sqrt(double noundef %176) #6
  store double %177, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %178 = load double, ptr %25, align 8, !tbaa !5
  %179 = fmul double 5.000000e-01, %178
  %180 = load double, ptr %26, align 8, !tbaa !5
  %181 = fmul double %179, %180
  %182 = load double, ptr %27, align 8, !tbaa !5
  %183 = fdiv double %181, %182
  %184 = fsub double 5.000000e-01, %183
  store double %184, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %185 = load double, ptr %26, align 8, !tbaa !5
  %186 = fmul double 5.000000e-01, %185
  %187 = load double, ptr %27, align 8, !tbaa !5
  %188 = fmul double %186, %187
  %189 = load double, ptr %25, align 8, !tbaa !5
  %190 = fdiv double %188, %189
  %191 = fsub double 5.000000e-01, %190
  store double %191, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %192 = load double, ptr %25, align 8, !tbaa !5
  %193 = fmul double 5.000000e-01, %192
  %194 = load double, ptr %27, align 8, !tbaa !5
  %195 = fmul double %193, %194
  %196 = load double, ptr %26, align 8, !tbaa !5
  %197 = fdiv double %195, %196
  %198 = fsub double 5.000000e-01, %197
  store double %198, ptr %30, align 8, !tbaa !5
  %199 = load double, ptr %28, align 8, !tbaa !5
  %200 = fcmp oge double %199, 0.000000e+00
  br i1 %200, label %201, label %214

201:                                              ; preds = %162
  %202 = load double, ptr %29, align 8, !tbaa !5
  %203 = fcmp oge double %202, 0.000000e+00
  br i1 %203, label %204, label %214

204:                                              ; preds = %201
  %205 = load double, ptr %30, align 8, !tbaa !5
  %206 = fcmp oge double %205, 0.000000e+00
  br i1 %206, label %207, label %214

207:                                              ; preds = %204
  %208 = load double, ptr %28, align 8, !tbaa !5
  %209 = load ptr, ptr %12, align 8, !tbaa !9
  store double %208, ptr %209, align 8, !tbaa !5
  %210 = load double, ptr %29, align 8, !tbaa !5
  %211 = load ptr, ptr %13, align 8, !tbaa !9
  store double %210, ptr %211, align 8, !tbaa !5
  %212 = load double, ptr %30, align 8, !tbaa !5
  %213 = load ptr, ptr %14, align 8, !tbaa !9
  store double %212, ptr %213, align 8, !tbaa !5
  store i1 true, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %215

214:                                              ; preds = %204, %201, %162
  store i32 0, ptr %22, align 4
  br label %215

215:                                              ; preds = %214, %207
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  %216 = load i32, ptr %22, align 4
  switch i32 %216, label %343 [
    i32 0, label %217
  ]

217:                                              ; preds = %215
  br label %218

218:                                              ; preds = %217, %157, %152, %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %219 = load double, ptr %9, align 8, !tbaa !5
  store double %219, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %220 = load double, ptr %10, align 8, !tbaa !5
  store double %220, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %221 = load double, ptr %11, align 8, !tbaa !5
  store double %221, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  store i64 0, ptr %34, align 8, !tbaa !11
  br label %222

222:                                              ; preds = %330, %218
  %223 = load i64, ptr %34, align 8, !tbaa !11
  %224 = load i64, ptr %15, align 8, !tbaa !11
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  store i32 2, ptr %22, align 4
  br label %333

227:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %228 = load double, ptr %31, align 8, !tbaa !5
  %229 = load double, ptr %32, align 8, !tbaa !5
  %230 = fmul double %228, %229
  store double %230, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %231 = load double, ptr %31, align 8, !tbaa !5
  %232 = load double, ptr %33, align 8, !tbaa !5
  %233 = fmul double %231, %232
  store double %233, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %234 = load double, ptr %32, align 8, !tbaa !5
  %235 = load double, ptr %33, align 8, !tbaa !5
  %236 = fmul double %234, %235
  store double %236, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %237 = load double, ptr %31, align 8, !tbaa !5
  %238 = fsub double 1.000000e+00, %237
  store double %238, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %239 = load double, ptr %32, align 8, !tbaa !5
  %240 = fsub double 1.000000e+00, %239
  store double %240, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %241 = load double, ptr %33, align 8, !tbaa !5
  %242 = fsub double 1.000000e+00, %241
  store double %242, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %243 = load double, ptr %38, align 8, !tbaa !5
  %244 = load double, ptr %39, align 8, !tbaa !5
  %245 = fmul double %243, %244
  store double %245, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %246 = load double, ptr %38, align 8, !tbaa !5
  %247 = load double, ptr %40, align 8, !tbaa !5
  %248 = fmul double %246, %247
  store double %248, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %249 = load double, ptr %39, align 8, !tbaa !5
  %250 = load double, ptr %40, align 8, !tbaa !5
  %251 = fmul double %249, %250
  store double %251, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %252 = load double, ptr %31, align 8, !tbaa !5
  %253 = load double, ptr %43, align 8, !tbaa !5
  %254 = load double, ptr %38, align 8, !tbaa !5
  %255 = load double, ptr %37, align 8, !tbaa !5
  %256 = fmul double %254, %255
  %257 = call double @llvm.fmuladd.f64(double %252, double %253, double %256)
  store double %257, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %258 = load double, ptr %32, align 8, !tbaa !5
  %259 = load double, ptr %42, align 8, !tbaa !5
  %260 = load double, ptr %39, align 8, !tbaa !5
  %261 = load double, ptr %36, align 8, !tbaa !5
  %262 = fmul double %260, %261
  %263 = call double @llvm.fmuladd.f64(double %258, double %259, double %262)
  store double %263, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %264 = load double, ptr %33, align 8, !tbaa !5
  %265 = load double, ptr %41, align 8, !tbaa !5
  %266 = load double, ptr %40, align 8, !tbaa !5
  %267 = load double, ptr %35, align 8, !tbaa !5
  %268 = fmul double %266, %267
  %269 = call double @llvm.fmuladd.f64(double %264, double %265, double %268)
  store double %269, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %270 = load double, ptr %44, align 8, !tbaa !5
  %271 = load double, ptr %9, align 8, !tbaa !5
  %272 = fsub double %270, %271
  store double %272, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %273 = load double, ptr %45, align 8, !tbaa !5
  %274 = load double, ptr %10, align 8, !tbaa !5
  %275 = fsub double %273, %274
  store double %275, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %276 = load double, ptr %46, align 8, !tbaa !5
  %277 = load double, ptr %11, align 8, !tbaa !5
  %278 = fsub double %276, %277
  store double %278, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %279 = load double, ptr %47, align 8, !tbaa !5
  %280 = call double @llvm.fabs.f64(double %279)
  %281 = load double, ptr %48, align 8, !tbaa !5
  %282 = call double @llvm.fabs.f64(double %281)
  %283 = fadd double %280, %282
  %284 = load double, ptr %49, align 8, !tbaa !5
  %285 = call double @llvm.fabs.f64(double %284)
  %286 = fadd double %283, %285
  store double %286, ptr %50, align 8, !tbaa !5
  %287 = load double, ptr %50, align 8, !tbaa !5
  %288 = fcmp olt double %287, 0x3D06849B86A12B9B
  br i1 %288, label %289, label %296

289:                                              ; preds = %227
  %290 = load double, ptr %31, align 8, !tbaa !5
  %291 = load ptr, ptr %12, align 8, !tbaa !9
  store double %290, ptr %291, align 8, !tbaa !5
  %292 = load double, ptr %32, align 8, !tbaa !5
  %293 = load ptr, ptr %13, align 8, !tbaa !9
  store double %292, ptr %293, align 8, !tbaa !5
  %294 = load double, ptr %33, align 8, !tbaa !5
  %295 = load ptr, ptr %14, align 8, !tbaa !9
  store double %294, ptr %295, align 8, !tbaa !5
  store i1 true, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %327

296:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #6
  %297 = load double, ptr %43, align 8, !tbaa !5
  %298 = load double, ptr %37, align 8, !tbaa !5
  %299 = fsub double %297, %298
  store double %299, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #6
  %300 = load double, ptr %42, align 8, !tbaa !5
  %301 = load double, ptr %36, align 8, !tbaa !5
  %302 = fsub double %300, %301
  store double %302, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #6
  %303 = load double, ptr %41, align 8, !tbaa !5
  %304 = load double, ptr %36, align 8, !tbaa !5
  %305 = fsub double %303, %304
  store double %305, ptr %53, align 8, !tbaa !5
  %306 = load double, ptr %47, align 8, !tbaa !5
  %307 = load double, ptr %51, align 8, !tbaa !5
  %308 = fdiv double %306, %307
  %309 = load double, ptr %31, align 8, !tbaa !5
  %310 = fsub double %309, %308
  store double %310, ptr %31, align 8, !tbaa !5
  %311 = load double, ptr %48, align 8, !tbaa !5
  %312 = load double, ptr %52, align 8, !tbaa !5
  %313 = fdiv double %311, %312
  %314 = load double, ptr %32, align 8, !tbaa !5
  %315 = fsub double %314, %313
  store double %315, ptr %32, align 8, !tbaa !5
  %316 = load double, ptr %49, align 8, !tbaa !5
  %317 = load double, ptr %53, align 8, !tbaa !5
  %318 = fdiv double %316, %317
  %319 = load double, ptr %33, align 8, !tbaa !5
  %320 = fsub double %319, %318
  store double %320, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #6
  store double 0.000000e+00, ptr %54, align 8, !tbaa !5
  %321 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %54)
  %322 = load double, ptr %321, align 8, !tbaa !5
  store double %322, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #6
  store double 0.000000e+00, ptr %55, align 8, !tbaa !5
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %55)
  %324 = load double, ptr %323, align 8, !tbaa !5
  store double %324, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #6
  store double 0.000000e+00, ptr %56, align 8, !tbaa !5
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %326 = load double, ptr %325, align 8, !tbaa !5
  store double %326, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #6
  store i32 0, ptr %22, align 4
  br label %327

327:                                              ; preds = %296, %289
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  %328 = load i32, ptr %22, align 4
  switch i32 %328, label %333 [
    i32 0, label %329
  ]

329:                                              ; preds = %327
  br label %330

330:                                              ; preds = %329
  %331 = load i64, ptr %34, align 8, !tbaa !11
  %332 = add i64 %331, 1
  store i64 %332, ptr %34, align 8, !tbaa !11
  br label %222, !llvm.loop !17

333:                                              ; preds = %327, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  %334 = load i32, ptr %22, align 4
  switch i32 %334, label %342 [
    i32 2, label %335
  ]

335:                                              ; preds = %333
  %336 = load double, ptr %31, align 8, !tbaa !5
  %337 = load ptr, ptr %12, align 8, !tbaa !9
  store double %336, ptr %337, align 8, !tbaa !5
  %338 = load double, ptr %32, align 8, !tbaa !5
  %339 = load ptr, ptr %13, align 8, !tbaa !9
  store double %338, ptr %339, align 8, !tbaa !5
  %340 = load double, ptr %33, align 8, !tbaa !5
  %341 = load ptr, ptr %14, align 8, !tbaa !9
  store double %340, ptr %341, align 8, !tbaa !5
  store i1 false, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %342

342:                                              ; preds = %335, %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %343

343:                                              ; preds = %342, %215, %131, %111, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %344 = load i1, ptr %8, align 1
  ret i1 %344

345:                                              ; preds = %75
  %346 = load ptr, ptr %16, align 8
  %347 = load i32, ptr %17, align 4
  %348 = insertvalue { ptr, i32 } poison, ptr %346, 0
  %349 = insertvalue { ptr, i32 } %348, i32 %347, 1
  resume { ptr, i32 } %349
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

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

!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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

@_ZTISt16invalid_argument = external constant ptr
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt16invalid_argumentD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = fcmp olt double %0, 0.000000e+00
  %17 = fcmp olt double %1, 0.000000e+00
  %or.cond = or i1 %16, %17
  %18 = fcmp olt double %2, 0.000000e+00
  %or.cond5 = or i1 %or.cond, %18
  br i1 %or.cond5, label %23, label %19

19:                                               ; preds = %7
  %20 = fadd double %0, %1
  %21 = fadd double %20, %2
  %22 = fcmp ogt double %21, 1.000000e+00
  br i1 %22, label %23, label %28

23:                                               ; preds = %19, %7
  %24 = tail call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZNSt16invalid_argumentC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull @.str.1)
          to label %25 unwind label %26

25:                                               ; preds = %23
  tail call void @__cxa_throw(ptr nonnull %24, ptr nonnull @_ZTISt16invalid_argument, ptr nonnull @_ZNSt16invalid_argumentD1Ev) #9
  unreachable

26:                                               ; preds = %23
  %27 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %24) #8
  resume { ptr, i32 } %27

28:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  store double 0.000000e+00, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %29 = fsub double 1.000000e+00, %0
  %30 = fsub double %29, %1
  %31 = fsub double %30, %2
  store double %31, ptr %9, align 8, !tbaa !5
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %33 = load double, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  %34 = fcmp olt double %33, %0
  br i1 %34, label %35, label %39

35:                                               ; preds = %28
  %36 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %33, double noundef %2, double noundef %1, ptr noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6)
  %37 = load double, ptr %3, align 8, !tbaa !5
  %38 = fsub double 1.000000e+00, %37
  store double %38, ptr %3, align 8, !tbaa !5
  br label %140

39:                                               ; preds = %28
  %40 = fcmp olt double %33, %1
  br i1 %40, label %41, label %45

41:                                               ; preds = %39
  %42 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %2, double noundef %33, double noundef %0, ptr noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6)
  %43 = load double, ptr %4, align 8, !tbaa !5
  %44 = fsub double 1.000000e+00, %43
  store double %44, ptr %4, align 8, !tbaa !5
  br label %140

45:                                               ; preds = %39
  %46 = fcmp olt double %33, %2
  br i1 %46, label %47, label %51

47:                                               ; preds = %45
  %48 = call noundef zeroext i1 @_ZN4stim45try_disjoint_to_independent_xyz_errors_approxEdddPdS0_S0_m(double noundef %1, double noundef %0, double noundef %33, ptr noundef %3, ptr noundef %4, ptr noundef %5, i64 noundef %6)
  %49 = load double, ptr %5, align 8, !tbaa !5
  %50 = fsub double 1.000000e+00, %49
  store double %50, ptr %5, align 8, !tbaa !5
  br label %140

51:                                               ; preds = %45
  %52 = fadd double %0, %2
  %53 = fcmp olt double %52, 5.000000e-01
  %54 = fcmp olt double %20, 5.000000e-01
  %or.cond151 = and i1 %54, %53
  %55 = fadd double %1, %2
  %56 = fcmp olt double %55, 5.000000e-01
  %or.cond153 = and i1 %56, %or.cond151
  br i1 %or.cond153, label %57, label %.critedge

57:                                               ; preds = %51
  %58 = call double @llvm.fmuladd.f64(double %0, double -2.000000e+00, double 1.000000e+00)
  %59 = call double @llvm.fmuladd.f64(double %2, double -2.000000e+00, double %58)
  %60 = call double @sqrt(double noundef %59) #8
  %61 = call double @llvm.fmuladd.f64(double %1, double -2.000000e+00, double %58)
  %62 = call double @sqrt(double noundef %61) #8
  %63 = call double @llvm.fmuladd.f64(double %1, double -2.000000e+00, double 1.000000e+00)
  %64 = call double @llvm.fmuladd.f64(double %2, double -2.000000e+00, double %63)
  %65 = call double @sqrt(double noundef %64) #8
  %66 = insertelement <2 x double> poison, double %60, i64 0
  %67 = insertelement <2 x double> %66, double %62, i64 1
  %68 = fmul <2 x double> %67, <double 5.000000e-01, double 5.000000e-01>
  %69 = insertelement <2 x double> poison, double %62, i64 0
  %70 = insertelement <2 x double> %69, double %65, i64 1
  %71 = fmul <2 x double> %68, %70
  %72 = shufflevector <2 x double> %70, <2 x double> %66, <2 x i32> <i32 1, i32 2>
  %73 = fdiv <2 x double> %71, %72
  %74 = fsub <2 x double> <double 5.000000e-01, double 5.000000e-01>, %73
  %75 = extractelement <2 x double> %68, i64 0
  %76 = fmul double %75, %65
  %77 = fdiv double %76, %62
  %78 = fsub double 5.000000e-01, %77
  %79 = fcmp ult <2 x double> %74, zeroinitializer
  %shift = shufflevector <2 x i1> %79, <2 x i1> poison, <2 x i32> <i32 1, i32 poison>
  %80 = or <2 x i1> %79, %shift
  %or.cond7.not150 = extractelement <2 x i1> %80, i64 0
  %81 = fcmp ult double %78, 0.000000e+00
  %or.cond9.not = or i1 %81, %or.cond7.not150
  br i1 %or.cond9.not, label %.critedge, label %82

82:                                               ; preds = %57
  %83 = extractelement <2 x double> %74, i64 0
  store double %83, ptr %3, align 8, !tbaa !5
  %84 = extractelement <2 x double> %74, i64 1
  store double %84, ptr %4, align 8, !tbaa !5
  store double %78, ptr %5, align 8, !tbaa !5
  br label %140

.critedge:                                        ; preds = %57, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  store double %0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  store double %1, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %.not160.not = icmp eq i64 %6, 0
  br i1 %.not160.not, label %.critedge155, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.critedge
  %85 = insertelement <2 x double> poison, double %1, i64 0
  %86 = insertelement <2 x double> %85, double %0, i64 1
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %118
  %87 = phi double [ %138, %118 ], [ %2, %.lr.ph.preheader ]
  %.not162 = phi i1 [ %.not, %118 ], [ true, %.lr.ph.preheader ]
  %.0141161 = phi i64 [ %139, %118 ], [ 0, %.lr.ph.preheader ]
  %88 = load double, ptr %10, align 8, !tbaa !5
  %89 = load double, ptr %11, align 8, !tbaa !5
  %90 = fmul double %88, %89
  %91 = fsub double 1.000000e+00, %87
  %92 = fmul double %90, %91
  %93 = insertelement <2 x double> poison, double %88, i64 0
  %94 = insertelement <2 x double> %93, double %89, i64 1
  %95 = insertelement <2 x double> poison, double %87, i64 0
  %96 = shufflevector <2 x double> %95, <2 x double> poison, <2 x i32> zeroinitializer
  %97 = fmul <2 x double> %94, %96
  %98 = fsub <2 x double> <double 1.000000e+00, double 1.000000e+00>, %94
  %shift189 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %99 = fmul <2 x double> %98, %shift189
  %100 = extractelement <2 x double> %99, i64 0
  %101 = insertelement <2 x double> poison, double %91, i64 0
  %102 = shufflevector <2 x double> %101, <2 x double> poison, <2 x i32> zeroinitializer
  %103 = fmul <2 x double> %98, %102
  %104 = shufflevector <2 x double> %98, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %105 = fmul <2 x double> %104, %97
  %106 = insertelement <2 x double> poison, double %89, i64 0
  %107 = insertelement <2 x double> %106, double %88, i64 1
  %108 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %107, <2 x double> %103, <2 x double> %105)
  %109 = call double @llvm.fmuladd.f64(double %87, double %100, double %92)
  %110 = fsub <2 x double> %108, %86
  %111 = fsub double %109, %2
  %112 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %110)
  %shift190 = shufflevector <2 x double> %112, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %113 = fadd <2 x double> %shift190, %112
  %114 = extractelement <2 x double> %113, i64 0
  %115 = call double @llvm.fabs.f64(double %111)
  %116 = fadd double %115, %114
  %117 = fcmp uge double %116, 0x3D06849B86A12B9B
  br i1 %117, label %118, label %.critedge155

118:                                              ; preds = %.lr.ph
  %119 = fsub <2 x double> %103, %97
  %120 = extractelement <2 x double> %119, i64 1
  %121 = fsub <2 x double> %103, %97
  %122 = extractelement <2 x double> %121, i64 0
  %123 = fsub <2 x double> %99, %97
  %124 = extractelement <2 x double> %123, i64 0
  %125 = extractelement <2 x double> %110, i64 1
  %126 = fdiv double %125, %120
  %127 = fsub double %88, %126
  store double %127, ptr %10, align 8, !tbaa !5
  %128 = extractelement <2 x double> %110, i64 0
  %129 = fdiv double %128, %122
  %130 = fsub double %89, %129
  store double %130, ptr %11, align 8, !tbaa !5
  %131 = fdiv double %111, %124
  %132 = fsub double %87, %131
  store double %132, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %134 = load double, ptr %133, align 8, !tbaa !5
  store double %134, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %136 = load double, ptr %135, align 8, !tbaa !5
  store double %136, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %138 = load double, ptr %137, align 8, !tbaa !5
  store double %138, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  %139 = add nuw i64 %.0141161, 1
  %.not = icmp ult i64 %139, %6
  %exitcond.not = icmp eq i64 %139, %6
  br i1 %exitcond.not, label %.critedge155.loopexit, label %.lr.ph, !llvm.loop !9

.critedge155.loopexit:                            ; preds = %118
  %.pre = load double, ptr %10, align 8, !tbaa !5
  %.pre170 = load double, ptr %11, align 8, !tbaa !5
  br label %.critedge155

.critedge155:                                     ; preds = %.lr.ph, %.critedge, %.critedge155.loopexit
  %storemerge172 = phi double [ %0, %.critedge ], [ %.pre, %.critedge155.loopexit ], [ %88, %.lr.ph ]
  %storemerge171 = phi double [ %1, %.critedge ], [ %.pre170, %.critedge155.loopexit ], [ %89, %.lr.ph ]
  %.not157 = phi i1 [ false, %.critedge ], [ %.not, %.critedge155.loopexit ], [ %.not162, %.lr.ph ]
  %storemerge = phi double [ %2, %.critedge ], [ %138, %.critedge155.loopexit ], [ %87, %.lr.ph ]
  store double %storemerge172, ptr %3, align 8, !tbaa !5
  store double %storemerge171, ptr %4, align 8, !tbaa !5
  store double %storemerge, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %140

140:                                              ; preds = %82, %.critedge155, %47, %41, %35
  %.6 = phi i1 [ %36, %35 ], [ %42, %41 ], [ %48, %47 ], [ %.not157, %.critedge155 ], [ true, %82 ]
  ret i1 %.6
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

; Function Attrs: mustprogress 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 <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #7

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

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

!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"}


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