; LLVM IR from rvillegasm/NuMath :: src/singleVariableEquations/openMethods (secant)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZTIN6numath20DenominatorExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN6numath13IterExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN6numath23singleVariableEquations6secantEPFddEddidPKcRSt6vectorIS5_IdSaIdEESaIS7_EE(ptr noundef %0, double noundef %1, double noundef %2, i32 noundef %3, double noundef %4, ptr noundef %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %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 i32, align 4
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::initializer_list", align 8
  %25 = alloca [4 x double], align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.std::vector", align 8
  %30 = alloca %"class.std::initializer_list", align 8
  %31 = alloca [4 x double], align 8
  %32 = alloca %"class.std::allocator", align 1
  %33 = alloca %"class.std::vector", align 8
  %34 = alloca %"class.std::initializer_list", align 8
  %35 = alloca [4 x double], align 8
  %36 = alloca %"class.std::allocator", align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store double %1, ptr %10, align 8, !tbaa !9
  store double %2, ptr %11, align 8, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !11
  store double %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load double, ptr %10, align 8, !tbaa !9
  %39 = call noundef double %37(double noundef %38)
  store double %39, ptr %17, align 8, !tbaa !9
  %40 = load double, ptr %17, align 8, !tbaa !9
  %41 = fcmp oeq double %40, 0.000000e+00
  br i1 %41, label %42, label %44

42:                                               ; preds = %7
  %43 = load double, ptr %10, align 8, !tbaa !9
  store double %43, ptr %8, align 8
  store i32 1, ptr %22, align 4
  br label %207

44:                                               ; preds = %7
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = load double, ptr %11, align 8, !tbaa !9
  %47 = call noundef double %45(double noundef %46)
  store double %47, ptr %18, align 8, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !11
  %48 = load double, ptr %13, align 8, !tbaa !9
  %49 = fadd double %48, 1.000000e+00
  store double %49, ptr %19, align 8, !tbaa !9
  %50 = load double, ptr %18, align 8, !tbaa !9
  %51 = load double, ptr %17, align 8, !tbaa !9
  %52 = fsub double %50, %51
  store double %52, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  %53 = load i32, ptr %16, align 4, !tbaa !11
  %54 = sitofp i32 %53 to double
  store double %54, ptr %25, align 8, !tbaa !9
  %55 = getelementptr inbounds double, ptr %25, i64 1
  %56 = load double, ptr %10, align 8, !tbaa !9
  store double %56, ptr %55, align 8, !tbaa !9
  %57 = getelementptr inbounds double, ptr %25, i64 2
  %58 = load double, ptr %17, align 8, !tbaa !9
  store double %58, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds double, ptr %25, i64 3
  %60 = load double, ptr %19, align 8, !tbaa !9
  store double %60, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 0
  store ptr %25, ptr %61, align 8, !tbaa !13
  %62 = getelementptr inbounds %"class.std::initializer_list", ptr %24, i32 0, i32 1
  store i64 4, ptr %62, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  %63 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %66 = load i64, ptr %65, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr %64, i64 %66, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %67 unwind label %159

67:                                               ; preds = %44
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 8 dereferenceable(24) %23)
          to label %69 unwind label %163

69:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #8
  %70 = load i32, ptr %16, align 4, !tbaa !11
  %71 = sitofp i32 %70 to double
  store double %71, ptr %31, align 8, !tbaa !9
  %72 = getelementptr inbounds double, ptr %31, i64 1
  %73 = load double, ptr %11, align 8, !tbaa !9
  store double %73, ptr %72, align 8, !tbaa !9
  %74 = getelementptr inbounds double, ptr %31, i64 2
  %75 = load double, ptr %18, align 8, !tbaa !9
  store double %75, ptr %74, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %31, i64 3
  %77 = load double, ptr %19, align 8, !tbaa !9
  store double %77, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 0
  store ptr %31, ptr %78, align 8, !tbaa !13
  %79 = getelementptr inbounds %"class.std::initializer_list", ptr %30, i32 0, i32 1
  store i64 4, ptr %79, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #8
  %80 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %83 = load i64, ptr %82, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr %81, i64 %83, ptr noundef nonnull align 1 dereferenceable(1) %32)
          to label %84 unwind label %167

84:                                               ; preds = %69
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 8 dereferenceable(24) %29)
          to label %86 unwind label %171

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %158, %86
  %88 = load double, ptr %19, align 8, !tbaa !9
  %89 = load double, ptr %13, align 8, !tbaa !9
  %90 = fcmp ogt double %88, %89
  br i1 %90, label %91, label %101

91:                                               ; preds = %87
  %92 = load double, ptr %18, align 8, !tbaa !9
  %93 = fcmp une double %92, 0.000000e+00
  br i1 %93, label %94, label %101

94:                                               ; preds = %91
  %95 = load double, ptr %21, align 8, !tbaa !9
  %96 = fcmp une double %95, 0.000000e+00
  br i1 %96, label %97, label %101

97:                                               ; preds = %94
  %98 = load i32, ptr %16, align 4, !tbaa !11
  %99 = load i32, ptr %12, align 4, !tbaa !11
  %100 = icmp slt i32 %98, %99
  br label %101

101:                                              ; preds = %97, %94, %91, %87
  %102 = phi i1 [ false, %94 ], [ false, %91 ], [ false, %87 ], [ %100, %97 ]
  br i1 %102, label %103, label %184

103:                                              ; preds = %101
  %104 = load double, ptr %11, align 8, !tbaa !9
  %105 = load double, ptr %18, align 8, !tbaa !9
  %106 = load double, ptr %11, align 8, !tbaa !9
  %107 = load double, ptr %10, align 8, !tbaa !9
  %108 = fsub double %106, %107
  %109 = fmul double %105, %108
  %110 = load double, ptr %21, align 8, !tbaa !9
  %111 = fdiv double %109, %110
  %112 = fsub double %104, %111
  store double %112, ptr %20, align 8, !tbaa !9
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = call i32 @strcmp(ptr noundef %113, ptr noundef @.str) #9
  %115 = icmp eq i32 %114, 0
  br i1 %115, label %116, label %121

116:                                              ; preds = %103
  %117 = load double, ptr %20, align 8, !tbaa !9
  %118 = load double, ptr %11, align 8, !tbaa !9
  %119 = fsub double %117, %118
  %120 = call double @llvm.fabs.f64(double %119)
  br label %128

121:                                              ; preds = %103
  %122 = load double, ptr %20, align 8, !tbaa !9
  %123 = load double, ptr %11, align 8, !tbaa !9
  %124 = fsub double %122, %123
  %125 = load double, ptr %20, align 8, !tbaa !9
  %126 = fdiv double %124, %125
  %127 = call double @llvm.fabs.f64(double %126)
  br label %128

128:                                              ; preds = %121, %116
  %129 = phi double [ %120, %116 ], [ %127, %121 ]
  store double %129, ptr %19, align 8, !tbaa !9
  %130 = load double, ptr %11, align 8, !tbaa !9
  store double %130, ptr %10, align 8, !tbaa !9
  %131 = load double, ptr %18, align 8, !tbaa !9
  store double %131, ptr %17, align 8, !tbaa !9
  %132 = load double, ptr %20, align 8, !tbaa !9
  store double %132, ptr %11, align 8, !tbaa !9
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load double, ptr %11, align 8, !tbaa !9
  %135 = invoke noundef double %133(double noundef %134)
          to label %136 unwind label %171

136:                                              ; preds = %128
  store double %135, ptr %18, align 8, !tbaa !9
  %137 = load double, ptr %18, align 8, !tbaa !9
  %138 = load double, ptr %17, align 8, !tbaa !9
  %139 = fsub double %137, %138
  store double %139, ptr %21, align 8, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !11
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %35) #8
  %142 = load i32, ptr %16, align 4, !tbaa !11
  %143 = sitofp i32 %142 to double
  store double %143, ptr %35, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %35, i64 1
  %145 = load double, ptr %11, align 8, !tbaa !9
  store double %145, ptr %144, align 8, !tbaa !9
  %146 = getelementptr inbounds double, ptr %35, i64 2
  %147 = load double, ptr %18, align 8, !tbaa !9
  store double %147, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds double, ptr %35, i64 3
  %149 = load double, ptr %19, align 8, !tbaa !9
  store double %149, ptr %148, align 8, !tbaa !9
  %150 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 0
  store ptr %35, ptr %150, align 8, !tbaa !13
  %151 = getelementptr inbounds %"class.std::initializer_list", ptr %34, i32 0, i32 1
  store i64 4, ptr %151, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #8
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  %152 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %153 = load ptr, ptr %152, align 8
  %154 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %155 = load i64, ptr %154, align 8
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr %153, i64 %155, ptr noundef nonnull align 1 dereferenceable(1) %36)
          to label %156 unwind label %175

156:                                              ; preds = %136
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #8
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %157, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %158 unwind label %179

158:                                              ; preds = %156
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %87, !llvm.loop !17

159:                                              ; preds = %44
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %27, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %28, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %206

163:                                              ; preds = %67
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %27, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %28, align 4
  br label %205

167:                                              ; preds = %69
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %27, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %28, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #8
  br label %204

171:                                              ; preds = %200, %198, %128, %84
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %27, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %28, align 4
  br label %203

175:                                              ; preds = %136
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %27, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %28, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %36) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %35) #8
  br label %183

179:                                              ; preds = %156
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %27, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %28, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #8
  br label %183

183:                                              ; preds = %179, %175
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br label %203

184:                                              ; preds = %101
  %185 = load double, ptr %18, align 8, !tbaa !9
  %186 = fcmp oeq double %185, 0.000000e+00
  br i1 %186, label %187, label %189

187:                                              ; preds = %184
  %188 = load double, ptr %11, align 8, !tbaa !9
  store double %188, ptr %8, align 8
  store i32 1, ptr %22, align 4
  br label %202

189:                                              ; preds = %184
  %190 = load double, ptr %19, align 8, !tbaa !9
  %191 = load double, ptr %13, align 8, !tbaa !9
  %192 = fcmp olt double %190, %191
  br i1 %192, label %193, label %195

193:                                              ; preds = %189
  %194 = load double, ptr %11, align 8, !tbaa !9
  store double %194, ptr %8, align 8
  store i32 1, ptr %22, align 4
  br label %202

195:                                              ; preds = %189
  %196 = load double, ptr %21, align 8, !tbaa !9
  %197 = fcmp oeq double %196, 0.000000e+00
  br i1 %197, label %198, label %200

198:                                              ; preds = %195
  %199 = call ptr @__cxa_allocate_exception(i64 8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %199, i8 0, i64 8, i1 false)
  call void @_ZN6numath20DenominatorExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %199) #8
  invoke void @__cxa_throw(ptr %199, ptr @_ZTIN6numath20DenominatorExceptionE, ptr @_ZNSt9exceptionD2Ev) #10
          to label %214 unwind label %171

200:                                              ; preds = %195
  %201 = call ptr @__cxa_allocate_exception(i64 8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %201, i8 0, i64 8, i1 false)
  call void @_ZN6numath13IterExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %201) #8
  invoke void @__cxa_throw(ptr %201, ptr @_ZTIN6numath13IterExceptionE, ptr @_ZNSt9exceptionD2Ev) #10
          to label %214 unwind label %171

202:                                              ; preds = %193, %187
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %207

203:                                              ; preds = %183, %171
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  br label %204

204:                                              ; preds = %203, %167
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  br label %205

205:                                              ; preds = %204, %163
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %206

206:                                              ; preds = %205, %159
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %209

207:                                              ; preds = %202, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  %208 = load double, ptr %8, align 8
  ret double %208

209:                                              ; preds = %206
  %210 = load ptr, ptr %27, align 8
  %211 = load i32, ptr %28, align 4
  %212 = insertvalue { ptr, i32 } poison, ptr %210, 0
  %213 = insertvalue { ptr, i32 } %212, i32 %211, 1
  resume { ptr, i32 } %213

214:                                              ; preds = %200, %198
  unreachable
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6numath20DenominatorExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6numath13IterExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@_ZTIN6numath20DenominatorExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTIN6numath13IterExceptionE = external dso_local constant { ptr, ptr, ptr }, align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN6numath23singleVariableEquations6secantEPFddEddidPKcRSt6vectorIS5_IdSaIdEESaIS7_EE(ptr nocapture noundef readonly %0, double noundef %1, double noundef %2, i32 noundef %3, double noundef %4, ptr nocapture noundef readonly %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca [4 x double], align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca [4 x double], align 8
  %13 = alloca %"class.std::allocator", align 1
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca [4 x double], align 8
  %16 = alloca %"class.std::allocator", align 1
  %17 = tail call noundef double %0(double noundef %1)
  %18 = fcmp oeq double %17, 0.000000e+00
  br i1 %18, label %84, label %19

19:                                               ; preds = %7
  %20 = tail call noundef double %0(double noundef %2)
  %21 = fadd double %4, 1.000000e+00
  %22 = fsub double %20, %17
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  store double 0.000000e+00, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %9, i64 8
  store double %1, ptr %23, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %9, i64 16
  store double %17, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %9, i64 24
  store double %21, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr nonnull %9, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %26 unwind label %60

26:                                               ; preds = %19
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %27 unwind label %62

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  store double 0.000000e+00, ptr %12, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %12, i64 8
  store double %2, ptr %28, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %12, i64 16
  store double %20, ptr %29, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %12, i64 24
  store double %21, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr nonnull %12, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %31 unwind label %64

31:                                               ; preds = %27
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %31
  %32 = fcmp ogt double %21, %4
  %33 = fcmp une double %20, 0.000000e+00
  %or.cond96 = and i1 %32, %33
  %34 = fcmp une double %22, 0.000000e+00
  %or.cond397 = and i1 %34, %or.cond96
  %35 = icmp sgt i32 %3, 0
  %or.cond8298 = and i1 %or.cond397, %35
  br i1 %or.cond8298, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.preheader
  %36 = getelementptr inbounds i8, ptr %15, i64 8
  %37 = getelementptr inbounds i8, ptr %15, i64 16
  %38 = getelementptr inbounds i8, ptr %15, i64 24
  br label %39

39:                                               ; preds = %.lr.ph, %55
  %.064103 = phi double [ %1, %.lr.ph ], [ %.065102, %55 ]
  %.065102 = phi double [ %2, %.lr.ph ], [ %43, %55 ]
  %.066101 = phi i32 [ 0, %.lr.ph ], [ %52, %55 ]
  %.074100 = phi double [ %20, %.lr.ph ], [ %49, %55 ]
  %.07599 = phi double [ %22, %.lr.ph ], [ %51, %55 ]
  %40 = fsub double %.065102, %.064103
  %41 = fmul double %.074100, %40
  %42 = fdiv double %41, %.07599
  %43 = fsub double %.065102, %42
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str) #8
  %45 = icmp eq i32 %44, 0
  %46 = fsub double %43, %.065102
  %47 = fdiv double %46, %43
  %.sink = select i1 %45, double %46, double %47
  %48 = call double @llvm.fabs.f64(double %.sink)
  %49 = invoke noundef double %0(double noundef %43)
          to label %50 unwind label %.loopexit

50:                                               ; preds = %39
  %51 = fsub double %49, %.074100
  %52 = add nuw nsw i32 %.066101, 1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  %53 = uitofp nneg i32 %52 to double
  store double %53, ptr %15, align 8, !tbaa !5
  store double %43, ptr %36, align 8, !tbaa !5
  store double %49, ptr %37, align 8, !tbaa !5
  store double %48, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  invoke void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr nonnull %15, i64 4, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %54 unwind label %66

54:                                               ; preds = %50
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %55 unwind label %68

55:                                               ; preds = %54
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  %56 = fcmp ogt double %48, %4
  %57 = fcmp une double %49, 0.000000e+00
  %or.cond = and i1 %56, %57
  %58 = fcmp une double %51, 0.000000e+00
  %or.cond3 = and i1 %58, %or.cond
  %59 = icmp slt i32 %52, %3
  %or.cond82 = select i1 %or.cond3, i1 %59, i1 false
  br i1 %or.cond82, label %39, label %.critedge, !llvm.loop !9

60:                                               ; preds = %19
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %83

62:                                               ; preds = %26
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %82

64:                                               ; preds = %27
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %81

.loopexit:                                        ; preds = %39
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %80

.loopexit.split-lp:                               ; preds = %.invoke, %31
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %80

66:                                               ; preds = %50
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  br label %70

68:                                               ; preds = %54
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %80

.critedge:                                        ; preds = %55, %.preheader
  %.076.lcssa = phi double [ %21, %.preheader ], [ %48, %55 ]
  %.075.lcssa = phi double [ %22, %.preheader ], [ %51, %55 ]
  %.074.lcssa = phi double [ %20, %.preheader ], [ %49, %55 ]
  %.065.lcssa = phi double [ %2, %.preheader ], [ %43, %55 ]
  %71 = fcmp oeq double %.074.lcssa, 0.000000e+00
  %72 = fcmp olt double %.076.lcssa, %4
  %or.cond83 = or i1 %72, %71
  br i1 %or.cond83, label %79, label %73

73:                                               ; preds = %.critedge
  %74 = fcmp oeq double %.075.lcssa, 0.000000e+00
  %75 = call ptr @__cxa_allocate_exception(i64 8) #7
  store i64 0, ptr %75, align 16
  br i1 %74, label %76, label %78

76:                                               ; preds = %73
  call void @_ZN6numath20DenominatorExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  br label %.invoke

.invoke:                                          ; preds = %78, %76
  %77 = phi ptr [ @_ZTIN6numath20DenominatorExceptionE, %76 ], [ @_ZTIN6numath13IterExceptionE, %78 ]
  invoke void @__cxa_throw(ptr nonnull %75, ptr nonnull %77, ptr nonnull @_ZNSt9exceptionD2Ev) #9
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

78:                                               ; preds = %73
  call void @_ZN6numath13IterExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %75) #7
  br label %.invoke

79:                                               ; preds = %.critedge
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %84

80:                                               ; preds = %.loopexit, %.loopexit.split-lp, %70
  %.pn.pn = phi { ptr, i32 } [ %.pn, %70 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  br label %81

81:                                               ; preds = %80, %64
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %80 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  br label %82

82:                                               ; preds = %81, %62
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %81 ], [ %63, %62 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  br label %83

83:                                               ; preds = %82, %60
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %82 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn

84:                                               ; preds = %7, %79
  %.1 = phi double [ %.065.lcssa, %79 ], [ %1, %7 ]
  ret double %.1
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2ESt16initializer_listIdERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6numath20DenominatorExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6numath13IterExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 "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 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
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: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass