; LLVM IR from romerojosh/zefr :: src/polynomials.ll (Z10dDubiner2Djdddj)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z10dDubiner2Djdddj = external hidden unnamed_addr constant [11 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z6Jacobidddj(double noundef, double noundef, double noundef, i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z7dJacobidddj(double noundef, double noundef, double noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) #1 align 2

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #7

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z10dDubiner2Djdddj(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca i1, align 1
  %18 = alloca [2 x double], align 16
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %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
  store i32 %0, ptr %6, align 4, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = add i32 %31, 1
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = add i32 %33, 2
  %35 = mul i32 %32, %34
  %36 = udiv i32 %35, 2
  store i32 %36, ptr %12, align 4, !tbaa !5
  %37 = load i32, ptr %10, align 4, !tbaa !5
  %38 = load i32, ptr %12, align 4, !tbaa !5
  %39 = icmp uge i32 %37, %38
  br i1 %39, label %40, label %76

40:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 392, ptr %13) #8
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13)
  %41 = getelementptr inbounds i8, ptr %13, i64 16
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @.str)
          to label %43 unwind label %59

43:                                               ; preds = %40
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @.str.1)
          to label %45 unwind label %59

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %44, i32 noundef 133)
          to label %47 unwind label %59

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef @.str.1)
          to label %49 unwind label %59

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @__func__._Z10dDubiner2Djdddj)
          to label %51 unwind label %59

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.2)
          to label %53 unwind label %59

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.3)
          to label %55 unwind label %59

55:                                               ; preds = %53
  store i1 true, ptr %17, align 1
  %56 = call ptr @__cxa_allocate_exception(i64 16) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %57 unwind label %63

57:                                               ; preds = %55
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %56, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %58 unwind label %67

58:                                               ; preds = %57
  store i1 false, ptr %17, align 1
  invoke void @__cxa_throw(ptr %56, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #9
          to label %247 unwind label %67

59:                                               ; preds = %53, %51, %49, %47, %45, %43, %40
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %14, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %15, align 4
  br label %75

63:                                               ; preds = %55
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %14, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %15, align 4
  br label %71

67:                                               ; preds = %58, %57
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %14, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #8
  br label %71

71:                                               ; preds = %67, %63
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  %72 = load i1, ptr %17, align 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  call void @__cxa_free_exception(ptr %56) #8
  br label %74

74:                                               ; preds = %73, %71
  br label %75

75:                                               ; preds = %74, %59
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #8
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %242

76:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %77 = load double, ptr %8, align 8, !tbaa !9
  %78 = fcmp oeq double %77, 1.000000e+00
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  br label %88

80:                                               ; preds = %76
  %81 = load double, ptr %7, align 8, !tbaa !9
  %82 = fadd double 1.000000e+00, %81
  %83 = fmul double 2.000000e+00, %82
  %84 = load double, ptr %8, align 8, !tbaa !9
  %85 = fsub double 1.000000e+00, %84
  %86 = fdiv double %83, %85
  %87 = fsub double %86, 1.000000e+00
  br label %88

88:                                               ; preds = %80, %79
  %89 = phi double [ -1.000000e+00, %79 ], [ %87, %80 ]
  %90 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  store double %89, ptr %90, align 16, !tbaa !9
  %91 = load double, ptr %8, align 8, !tbaa !9
  %92 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  store double %91, ptr %92, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %237, %88
  %94 = load i32, ptr %20, align 4, !tbaa !5
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = icmp ule i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 2, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %240

98:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %233, %98
  %100 = load i32, ptr %22, align 4, !tbaa !5
  %101 = load i32, ptr %20, align 4, !tbaa !5
  %102 = icmp ule i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %236

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %105 = load i32, ptr %20, align 4, !tbaa !5
  %106 = load i32, ptr %22, align 4, !tbaa !5
  %107 = sub i32 %105, %106
  store i32 %107, ptr %23, align 4, !tbaa !5
  %108 = load i32, ptr %19, align 4, !tbaa !5
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = icmp eq i32 %108, %109
  br i1 %110, label %111, label %230

111:                                              ; preds = %104
  %112 = load double, ptr %9, align 8, !tbaa !9
  %113 = fcmp oeq double %112, 0.000000e+00
  br i1 %113, label %114, label %145

114:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %115 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %116 = load double, ptr %115, align 16, !tbaa !9
  %117 = load i32, ptr %23, align 4, !tbaa !5
  %118 = call noundef double @_Z7dJacobidddj(double noundef %116, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %117)
  store double %118, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %119 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = load i32, ptr %23, align 4, !tbaa !5
  %122 = mul i32 2, %121
  %123 = add i32 %122, 1
  %124 = uitofp i32 %123 to double
  %125 = load i32, ptr %22, align 4, !tbaa !5
  %126 = call noundef double @_Z6Jacobidddj(double noundef %120, double noundef %124, double noundef 0.000000e+00, i32 noundef %125)
  store double %126, ptr %25, align 8, !tbaa !9
  %127 = load i32, ptr %23, align 4, !tbaa !5
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %114
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %144

130:                                              ; preds = %114
  %131 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %132 = fmul double 2.000000e+00, %131
  %133 = load double, ptr %24, align 8, !tbaa !9
  %134 = fmul double %132, %133
  %135 = load double, ptr %25, align 8, !tbaa !9
  %136 = fmul double %134, %135
  %137 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %138 = load double, ptr %137, align 8, !tbaa !9
  %139 = fsub double 1.000000e+00, %138
  %140 = load i32, ptr %23, align 4, !tbaa !5
  %141 = sub i32 %140, 1
  %142 = call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %139, i32 noundef %141)
  %143 = fmul double %136, %142
  store double %143, ptr %11, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %130, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %229

145:                                              ; preds = %111
  %146 = load double, ptr %9, align 8, !tbaa !9
  %147 = fcmp oeq double %146, 1.000000e+00
  br i1 %147, label %148, label %228

148:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %149 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %150 = load double, ptr %149, align 16, !tbaa !9
  %151 = load i32, ptr %23, align 4, !tbaa !5
  %152 = call noundef double @_Z7dJacobidddj(double noundef %150, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %151)
  store double %152, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %153 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %154 = load double, ptr %153, align 8, !tbaa !9
  %155 = load i32, ptr %23, align 4, !tbaa !5
  %156 = mul i32 2, %155
  %157 = add i32 %156, 1
  %158 = uitofp i32 %157 to double
  %159 = load i32, ptr %22, align 4, !tbaa !5
  %160 = call noundef double @_Z6Jacobidddj(double noundef %154, double noundef %158, double noundef 0.000000e+00, i32 noundef %159)
  store double %160, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %161 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %162 = load double, ptr %161, align 16, !tbaa !9
  %163 = load i32, ptr %23, align 4, !tbaa !5
  %164 = call noundef double @_Z6Jacobidddj(double noundef %162, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %163)
  store double %164, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %165 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %166 = load double, ptr %165, align 8, !tbaa !9
  %167 = load i32, ptr %23, align 4, !tbaa !5
  %168 = mul i32 2, %167
  %169 = add i32 %168, 1
  %170 = uitofp i32 %169 to double
  %171 = load i32, ptr %22, align 4, !tbaa !5
  %172 = call noundef double @_Z7dJacobidddj(double noundef %166, double noundef %170, double noundef 0.000000e+00, i32 noundef %171)
  %173 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %174 = load double, ptr %173, align 8, !tbaa !9
  %175 = fsub double 1.000000e+00, %174
  %176 = load i32, ptr %23, align 4, !tbaa !5
  %177 = call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %175, i32 noundef %176)
  %178 = fmul double %172, %177
  store double %178, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %179 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %180 = load double, ptr %179, align 8, !tbaa !9
  %181 = load i32, ptr %23, align 4, !tbaa !5
  %182 = mul i32 2, %181
  %183 = add i32 %182, 1
  %184 = uitofp i32 %183 to double
  %185 = load i32, ptr %22, align 4, !tbaa !5
  %186 = call noundef double @_Z6Jacobidddj(double noundef %180, double noundef %184, double noundef 0.000000e+00, i32 noundef %185)
  %187 = load i32, ptr %23, align 4, !tbaa !5
  %188 = uitofp i32 %187 to double
  %189 = fmul double %186, %188
  %190 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %191 = load double, ptr %190, align 8, !tbaa !9
  %192 = fsub double 1.000000e+00, %191
  %193 = load i32, ptr %23, align 4, !tbaa !5
  %194 = sub i32 %193, 1
  %195 = call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %192, i32 noundef %194)
  %196 = fmul double %189, %195
  store double %196, ptr %30, align 8, !tbaa !9
  %197 = load i32, ptr %23, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %205

199:                                              ; preds = %148
  %200 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %201 = load double, ptr %28, align 8, !tbaa !9
  %202 = fmul double %200, %201
  %203 = load double, ptr %29, align 8, !tbaa !9
  %204 = fmul double %202, %203
  store double %204, ptr %11, align 8, !tbaa !9
  br label %227

205:                                              ; preds = %148
  %206 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %207 = load double, ptr %26, align 8, !tbaa !9
  %208 = load double, ptr %27, align 8, !tbaa !9
  %209 = fmul double %207, %208
  %210 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 1
  %211 = load double, ptr %210, align 8, !tbaa !9
  %212 = fsub double 1.000000e+00, %211
  %213 = load i32, ptr %23, align 4, !tbaa !5
  %214 = sub i32 %213, 1
  %215 = call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %212, i32 noundef %214)
  %216 = fmul double %209, %215
  %217 = getelementptr inbounds [2 x double], ptr %18, i64 0, i64 0
  %218 = load double, ptr %217, align 16, !tbaa !9
  %219 = fadd double 1.000000e+00, %218
  %220 = load double, ptr %28, align 8, !tbaa !9
  %221 = load double, ptr %29, align 8, !tbaa !9
  %222 = load double, ptr %30, align 8, !tbaa !9
  %223 = fsub double %221, %222
  %224 = fmul double %220, %223
  %225 = call double @llvm.fmuladd.f64(double %216, double %219, double %224)
  %226 = fmul double %206, %225
  store double %226, ptr %11, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %205, %199
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %228

228:                                              ; preds = %227, %145
  br label %229

229:                                              ; preds = %228, %144
  br label %230

230:                                              ; preds = %229, %104
  %231 = load i32, ptr %19, align 4, !tbaa !5
  %232 = add i32 %231, 1
  store i32 %232, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %233

233:                                              ; preds = %230
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = add i32 %234, 1
  store i32 %235, ptr %22, align 4, !tbaa !5
  br label %99, !llvm.loop !11

236:                                              ; preds = %103
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %20, align 4, !tbaa !5
  %239 = add i32 %238, 1
  store i32 %239, ptr %20, align 4, !tbaa !5
  br label %93, !llvm.loop !13

240:                                              ; preds = %97
  %241 = load double, ptr %11, align 8, !tbaa !9
  store i32 1, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  ret double %241

242:                                              ; preds = %75
  %243 = load ptr, ptr %14, align 8
  %244 = load i32, ptr %15, align 4
  %245 = insertvalue { ptr, i32 } poison, ptr %243, 0
  %246 = insertvalue { ptr, i32 } %245, i32 %244, 1
  resume { ptr, i32 } %246

247:                                              ; preds = %58
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 #4 = { "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 "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 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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [69 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@__func__._Z10dDubiner2Djdddj = external hidden unnamed_addr constant [11 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z6Jacobidddj(double noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z7dJacobidddj(double noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #4

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4

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

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

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z10dDubiner2Djdddj(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = add i32 %0, 1
  %9 = add i32 %0, 2
  %10 = mul i32 %8, %9
  %11 = lshr i32 %10, 1
  %.not = icmp ugt i32 %11, %4
  br i1 %.not, label %39, label %12

12:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6)
  %13 = getelementptr inbounds i8, ptr %6, i64 16
  %14 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull @.str)
          to label %15 unwind label %32

15:                                               ; preds = %12
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.1)
          to label %17 unwind label %32

17:                                               ; preds = %15
  %18 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 133)
          to label %19 unwind label %32

19:                                               ; preds = %17
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.1)
          to label %21 unwind label %32

21:                                               ; preds = %19
  %22 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @__func__._Z10dDubiner2Djdddj)
          to label %23 unwind label %32

23:                                               ; preds = %21
  %24 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.2)
          to label %25 unwind label %32

25:                                               ; preds = %23
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull @.str.3)
          to label %27 unwind label %32

27:                                               ; preds = %25
  %28 = call ptr @__cxa_allocate_exception(i64 16) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %7, ptr noundef nonnull align 8 dereferenceable(128) %6)
          to label %29 unwind label %.thread

29:                                               ; preds = %27
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %31 unwind label %.thread82

.thread82:                                        ; preds = %29
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %37

31:                                               ; preds = %29
  invoke void @__cxa_throw(ptr nonnull %28, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #10
          to label %111 unwind label %35

32:                                               ; preds = %25, %23, %21, %19, %17, %15, %12
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %38

.thread:                                          ; preds = %27
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %37

35:                                               ; preds = %31
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %38

37:                                               ; preds = %.thread82, %.thread
  %.pn81 = phi { ptr, i32 } [ %34, %.thread ], [ %30, %.thread82 ]
  call void @__cxa_free_exception(ptr %28) #9
  br label %38

38:                                               ; preds = %35, %37, %32
  %.pn.pn = phi { ptr, i32 } [ %.pn81, %37 ], [ %36, %35 ], [ %33, %32 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %6) #9
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %6) #9
  resume { ptr, i32 } %.pn.pn

39:                                               ; preds = %5
  %40 = fcmp oeq double %2, 1.000000e+00
  br i1 %40, label %._crit_edge, label %41

._crit_edge:                                      ; preds = %39
  %.pre = fsub double 1.000000e+00, %2
  br label %47

41:                                               ; preds = %39
  %42 = fadd double %1, 1.000000e+00
  %43 = fmul double %42, 2.000000e+00
  %44 = fsub double 1.000000e+00, %2
  %45 = fdiv double %43, %44
  %46 = fadd double %45, -1.000000e+00
  br label %47

47:                                               ; preds = %._crit_edge, %41
  %.pre-phi = phi double [ %.pre, %._crit_edge ], [ %44, %41 ]
  %48 = phi double [ -1.000000e+00, %._crit_edge ], [ %46, %41 ]
  %49 = fcmp oeq double %3, 0.000000e+00
  %50 = fadd double %48, 1.000000e+00
  br i1 %49, label %.preheader.us, label %.split101

.preheader.us:                                    ; preds = %47, %.split.us.us
  %.0100.us = phi double [ %.4.us.us, %.split.us.us ], [ undef, %47 ]
  %.06799.us = phi i32 [ %70, %.split.us.us ], [ 0, %47 ]
  %.06997.us = phi i32 [ %72, %.split.us.us ], [ 0, %47 ]
  br label %51

51:                                               ; preds = %69, %.preheader.us
  %.186.us.us = phi double [ %.0100.us, %.preheader.us ], [ %.4.us.us, %69 ]
  %.16885.us.us = phi i32 [ %.06799.us, %.preheader.us ], [ %70, %69 ]
  %.07084.us.us = phi i32 [ 0, %.preheader.us ], [ %71, %69 ]
  %52 = sub i32 %.06997.us, %.07084.us.us
  %53 = icmp eq i32 %.16885.us.us, %4
  br i1 %53, label %54, label %69

54:                                               ; preds = %51
  %55 = tail call noundef double @_Z7dJacobidddj(double noundef %48, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %52)
  %56 = shl i32 %52, 1
  %57 = or disjoint i32 %56, 1
  %58 = uitofp i32 %57 to double
  %59 = tail call noundef double @_Z6Jacobidddj(double noundef %2, double noundef %58, double noundef 0.000000e+00, i32 noundef %.07084.us.us)
  %60 = icmp eq i32 %.06997.us, %.07084.us.us
  br i1 %60, label %69, label %61

61:                                               ; preds = %54
  %62 = tail call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %63 = fmul double %62, 2.000000e+00
  %64 = fmul double %55, %63
  %65 = fmul double %59, %64
  %66 = add i32 %52, -1
  %67 = tail call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.pre-phi, i32 noundef %66)
  %68 = fmul double %67, %65
  br label %69

69:                                               ; preds = %61, %54, %51
  %.4.us.us = phi double [ %.186.us.us, %51 ], [ %68, %61 ], [ 0.000000e+00, %54 ]
  %70 = add i32 %.16885.us.us, 1
  %71 = add i32 %.07084.us.us, 1
  %.not76.us.us = icmp ugt i32 %71, %.06997.us
  br i1 %.not76.us.us, label %.split.us.us, label %51, !llvm.loop !5

.split.us.us:                                     ; preds = %69
  %72 = add nuw i32 %.06997.us, 1
  %exitcond114.not = icmp eq i32 %.06997.us, %0
  br i1 %exitcond114.not, label %.split103.us, label %.preheader.us, !llvm.loop !7

.split101:                                        ; preds = %47
  %73 = fcmp oeq double %3, 1.000000e+00
  tail call void @llvm.assume(i1 %73)
  br label %.preheader.us105

.preheader.us105:                                 ; preds = %.split101, %.split.split.us.us
  %.0100.us106 = phi double [ %.4.us91.us, %.split.split.us.us ], [ undef, %.split101 ]
  %.06799.us107 = phi i32 [ %108, %.split.split.us.us ], [ 0, %.split101 ]
  %.06997.us108 = phi i32 [ %110, %.split.split.us.us ], [ 0, %.split101 ]
  br label %74

74:                                               ; preds = %107, %.preheader.us105
  %.186.us88.us = phi double [ %.0100.us106, %.preheader.us105 ], [ %.4.us91.us, %107 ]
  %.16885.us89.us = phi i32 [ %.06799.us107, %.preheader.us105 ], [ %108, %107 ]
  %.07084.us90.us = phi i32 [ 0, %.preheader.us105 ], [ %109, %107 ]
  %75 = sub i32 %.06997.us108, %.07084.us90.us
  %76 = icmp eq i32 %.16885.us89.us, %4
  br i1 %76, label %77, label %107

77:                                               ; preds = %74
  %78 = tail call noundef double @_Z7dJacobidddj(double noundef %48, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %75)
  %79 = shl i32 %75, 1
  %80 = or disjoint i32 %79, 1
  %81 = uitofp i32 %80 to double
  %82 = tail call noundef double @_Z6Jacobidddj(double noundef %2, double noundef %81, double noundef 0.000000e+00, i32 noundef %.07084.us90.us)
  %83 = tail call noundef double @_Z6Jacobidddj(double noundef %48, double noundef 0.000000e+00, double noundef 0.000000e+00, i32 noundef %75)
  %84 = tail call noundef double @_Z7dJacobidddj(double noundef %2, double noundef %81, double noundef 0.000000e+00, i32 noundef %.07084.us90.us)
  %85 = tail call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.pre-phi, i32 noundef %75)
  %86 = fmul double %84, %85
  %87 = tail call noundef double @_Z6Jacobidddj(double noundef %2, double noundef %81, double noundef 0.000000e+00, i32 noundef %.07084.us90.us)
  %88 = add i32 %75, -1
  %89 = tail call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.pre-phi, i32 noundef %88)
  %90 = icmp eq i32 %.06997.us108, %.07084.us90.us
  br i1 %90, label %103, label %91

91:                                               ; preds = %77
  %92 = uitofp i32 %75 to double
  %93 = fmul double %87, %92
  %94 = fmul double %93, %89
  %95 = tail call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %96 = fmul double %78, %82
  %97 = tail call noundef double @_ZSt3powIdjEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %.pre-phi, i32 noundef %88)
  %98 = fmul double %96, %97
  %99 = fsub double %86, %94
  %100 = fmul double %83, %99
  %101 = tail call double @llvm.fmuladd.f64(double %98, double %50, double %100)
  %102 = fmul double %95, %101
  br label %107

103:                                              ; preds = %77
  %104 = tail call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef 2)
  %105 = fmul double %83, %104
  %106 = fmul double %86, %105
  br label %107

107:                                              ; preds = %103, %91, %74
  %.4.us91.us = phi double [ %.186.us88.us, %74 ], [ %106, %103 ], [ %102, %91 ]
  %108 = add i32 %.16885.us89.us, 1
  %109 = add i32 %.07084.us90.us, 1
  %.not76.us92.us = icmp ugt i32 %109, %.06997.us108
  br i1 %.not76.us92.us, label %.split.split.us.us, label %74, !llvm.loop !5

.split.split.us.us:                               ; preds = %107
  %110 = add nuw i32 %.06997.us108, 1
  %exitcond.not = icmp eq i32 %.06997.us108, %0
  br i1 %exitcond.not, label %.split103.us, label %.preheader.us105, !llvm.loop !7

.split103.us:                                     ; preds = %.split.split.us.us, %.split.us.us
  %.us-phi104 = phi double [ %.4.us.us, %.split.us.us ], [ %.4.us91.us, %.split.split.us.us ]
  ret double %.us-phi104

111:                                              ; preds = %31
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 #4 = { "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 "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 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 = { 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 #8 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #9 = { nounwind }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


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