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

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

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

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

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

; 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z15divRTMonomial2Djddj(i32 noundef %0, double noundef %1, double noundef %2, i32 noundef %3) #3 {
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  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 i32 %3, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = add i32 %22, 1
  %24 = load i32, ptr %6, align 4, !tbaa !5
  %25 = add i32 %24, 2
  %26 = mul i32 %23, %25
  store i32 %26, ptr %11, align 4, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !5
  %28 = load i32, ptr %11, align 4, !tbaa !5
  %29 = icmp ult i32 %27, %28
  br i1 %29, label %30, label %105

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = udiv i32 %31, 2
  store i32 %32, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = urem i32 %33, 2
  store i32 %34, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %96, %30
  %36 = load i32, ptr %15, align 4, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = icmp ule i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  store i32 2, ptr %16, align 4
  br label %99

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %90, %40
  %42 = load i32, ptr %17, align 4, !tbaa !5
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = icmp ule i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 5, ptr %16, align 4
  br label %93

46:                                               ; preds = %41
  %47 = load i32, ptr %17, align 4, !tbaa !5
  %48 = load i32, ptr %15, align 4, !tbaa !5
  %49 = add i32 %47, %48
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = icmp ule i32 %49, %50
  br i1 %51, label %52, label %89

52:                                               ; preds = %46
  %53 = load i32, ptr %14, align 4, !tbaa !5
  %54 = load i32, ptr %12, align 4, !tbaa !5
  %55 = icmp eq i32 %53, %54
  br i1 %55, label %56, label %86

56:                                               ; preds = %52
  %57 = load i32, ptr %13, align 4, !tbaa !5
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %71

59:                                               ; preds = %56
  %60 = load i32, ptr %17, align 4, !tbaa !5
  %61 = uitofp i32 %60 to double
  %62 = load double, ptr %7, align 8, !tbaa !9
  %63 = load i32, ptr %17, align 4, !tbaa !5
  %64 = sub i32 %63, 1
  %65 = 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 %62, i32 noundef %64)
  %66 = fmul double %61, %65
  %67 = load double, ptr %8, align 8, !tbaa !9
  %68 = load i32, ptr %15, align 4, !tbaa !5
  %69 = 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 %67, i32 noundef %68)
  %70 = fmul double %66, %69
  br label %83

71:                                               ; preds = %56
  %72 = load double, ptr %7, align 8, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !5
  %74 = 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 %72, i32 noundef %73)
  %75 = load i32, ptr %15, align 4, !tbaa !5
  %76 = uitofp i32 %75 to double
  %77 = fmul double %74, %76
  %78 = load double, ptr %8, align 8, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sub i32 %79, 1
  %81 = 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 %78, i32 noundef %80)
  %82 = fmul double %77, %81
  br label %83

83:                                               ; preds = %71, %59
  %84 = phi double [ %70, %59 ], [ %82, %71 ]
  store double %84, ptr %10, align 8, !tbaa !9
  %85 = load double, ptr %10, align 8, !tbaa !9
  store double %85, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %93

86:                                               ; preds = %52
  %87 = load i32, ptr %14, align 4, !tbaa !5
  %88 = add i32 %87, 1
  store i32 %88, ptr %14, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %86, %46
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %17, align 4, !tbaa !5
  %92 = add i32 %91, 1
  store i32 %92, ptr %17, align 4, !tbaa !5
  br label %41, !llvm.loop !11

93:                                               ; preds = %83, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %94 = load i32, ptr %16, align 4
  switch i32 %94, label %99 [
    i32 5, label %95
  ]

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = add i32 %97, 1
  store i32 %98, ptr %15, align 4, !tbaa !5
  br label %35, !llvm.loop !13

99:                                               ; preds = %93, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %100 = load i32, ptr %16, align 4
  switch i32 %100, label %102 [
    i32 2, label %101
  ]

101:                                              ; preds = %99
  store i32 0, ptr %16, align 4
  br label %102

102:                                              ; preds = %101, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %103 = load i32, ptr %16, align 4
  switch i32 %103, label %174 [
    i32 0, label %104
  ]

104:                                              ; preds = %102
  br label %173

105:                                              ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = sub i32 %106, %107
  store i32 %108, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %164, %105
  %110 = load i32, ptr %20, align 4, !tbaa !5
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = icmp ule i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 8, ptr %16, align 4
  br label %167

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %158, %114
  %116 = load i32, ptr %21, align 4, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = icmp ule i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 11, ptr %16, align 4
  br label %161

120:                                              ; preds = %115
  %121 = load i32, ptr %21, align 4, !tbaa !5
  %122 = load i32, ptr %20, align 4, !tbaa !5
  %123 = add i32 %121, %122
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = icmp eq i32 %123, %124
  br i1 %125, label %126, label %157

126:                                              ; preds = %120
  %127 = load i32, ptr %19, align 4, !tbaa !5
  %128 = load i32, ptr %18, align 4, !tbaa !5
  %129 = icmp eq i32 %127, %128
  br i1 %129, label %130, label %154

130:                                              ; preds = %126
  %131 = load i32, ptr %21, align 4, !tbaa !5
  %132 = add i32 %131, 1
  %133 = uitofp i32 %132 to double
  %134 = load double, ptr %7, align 8, !tbaa !9
  %135 = load i32, ptr %21, align 4, !tbaa !5
  %136 = 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 %134, i32 noundef %135)
  %137 = fmul double %133, %136
  %138 = load double, ptr %8, align 8, !tbaa !9
  %139 = load i32, ptr %20, align 4, !tbaa !5
  %140 = 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 %138, i32 noundef %139)
  %141 = load double, ptr %7, align 8, !tbaa !9
  %142 = load i32, ptr %21, align 4, !tbaa !5
  %143 = 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 %141, i32 noundef %142)
  %144 = load i32, ptr %20, align 4, !tbaa !5
  %145 = add i32 %144, 1
  %146 = uitofp i32 %145 to double
  %147 = fmul double %143, %146
  %148 = load double, ptr %8, align 8, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !5
  %150 = 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 %148, i32 noundef %149)
  %151 = fmul double %147, %150
  %152 = call double @llvm.fmuladd.f64(double %137, double %140, double %151)
  store double %152, ptr %10, align 8, !tbaa !9
  %153 = load double, ptr %10, align 8, !tbaa !9
  store double %153, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %161

154:                                              ; preds = %126
  %155 = load i32, ptr %19, align 4, !tbaa !5
  %156 = add i32 %155, 1
  store i32 %156, ptr %19, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %154, %120
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %21, align 4, !tbaa !5
  %160 = add i32 %159, 1
  store i32 %160, ptr %21, align 4, !tbaa !5
  br label %115, !llvm.loop !14

161:                                              ; preds = %130, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %162 = load i32, ptr %16, align 4
  switch i32 %162, label %167 [
    i32 11, label %163
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = add i32 %165, 1
  store i32 %166, ptr %20, align 4, !tbaa !5
  br label %109, !llvm.loop !15

167:                                              ; preds = %161, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %168 = load i32, ptr %16, align 4
  switch i32 %168, label %170 [
    i32 8, label %169
  ]

169:                                              ; preds = %167
  store i32 0, ptr %16, align 4
  br label %170

170:                                              ; preds = %169, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %171 = load i32, ptr %16, align 4
  switch i32 %171, label %174 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %104
  store double 0.000000e+00, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %174

174:                                              ; preds = %173, %170, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %175 = load double, ptr %5, align 8
  ret double %175
}

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { nounwind }

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

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

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

; 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 #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z15divRTMonomial2Djddj(i32 noundef %0, double noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = add i32 %0, 1
  %6 = add i32 %0, 2
  %7 = mul i32 %5, %6
  %8 = icmp ugt i32 %7, %3
  br i1 %8, label %9, label %38

9:                                                ; preds = %4
  %10 = lshr i32 %3, 1
  %11 = and i32 %3, 1
  br label %.preheader

.preheader:                                       ; preds = %9, %36
  %.077113 = phi i32 [ 0, %9 ], [ %37, %36 ]
  %.078112 = phi i32 [ 0, %9 ], [ %.280, %36 ]
  br label %12

12:                                               ; preds = %.preheader, %34
  %.072111 = phi i32 [ 0, %.preheader ], [ %35, %34 ]
  %.179110 = phi i32 [ %.078112, %.preheader ], [ %.280, %34 ]
  %13 = add i32 %.072111, %.077113
  %.not89 = icmp ugt i32 %13, %0
  br i1 %.not89, label %34, label %14

14:                                               ; preds = %12
  %15 = icmp eq i32 %.179110, %10
  br i1 %15, label %16, label %32

16:                                               ; preds = %14
  %17 = icmp eq i32 %11, 0
  br i1 %17, label %18, label %25

18:                                               ; preds = %16
  %19 = uitofp i32 %.072111 to double
  %20 = add i32 %.072111, -1
  %21 = 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 %1, i32 noundef %20)
  %22 = fmul double %21, %19
  %23 = 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 %2, i32 noundef %.077113)
  %24 = fmul double %22, %23
  br label %.thread91

25:                                               ; preds = %16
  %26 = 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 %1, i32 noundef %.072111)
  %27 = uitofp i32 %.077113 to double
  %28 = fmul double %26, %27
  %29 = add i32 %.077113, -1
  %30 = 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 %2, i32 noundef %29)
  %31 = fmul double %28, %30
  br label %.thread91

32:                                               ; preds = %14
  %33 = add i32 %.179110, 1
  br label %34

34:                                               ; preds = %12, %32
  %.280 = phi i32 [ %33, %32 ], [ %.179110, %12 ]
  %35 = add i32 %.072111, 1
  %.not88 = icmp ugt i32 %35, %0
  br i1 %.not88, label %36, label %12, !llvm.loop !5

36:                                               ; preds = %34
  %37 = add i32 %.077113, 1
  %.not87 = icmp ugt i32 %37, %0
  br i1 %.not87, label %.thread91, label %.preheader, !llvm.loop !7

38:                                               ; preds = %4
  %39 = sub i32 %3, %7
  br label %.preheader98

.preheader98:                                     ; preds = %38, %49
  %.067109 = phi i32 [ 0, %38 ], [ %50, %49 ]
  %.068108 = phi i32 [ 0, %38 ], [ %.2, %49 ]
  br label %40

40:                                               ; preds = %.preheader98, %47
  %.0107 = phi i32 [ 0, %.preheader98 ], [ %48, %47 ]
  %.1106 = phi i32 [ %.068108, %.preheader98 ], [ %.2, %47 ]
  %41 = add i32 %.0107, %.067109
  %42 = icmp eq i32 %41, %0
  br i1 %42, label %43, label %47

43:                                               ; preds = %40
  %44 = icmp eq i32 %.1106, %39
  br i1 %44, label %51, label %45

45:                                               ; preds = %43
  %46 = add i32 %.1106, 1
  br label %47

47:                                               ; preds = %40, %45
  %.2 = phi i32 [ %46, %45 ], [ %.1106, %40 ]
  %48 = add i32 %.0107, 1
  %.not86 = icmp ugt i32 %48, %0
  br i1 %.not86, label %49, label %40, !llvm.loop !8

49:                                               ; preds = %47
  %50 = add i32 %.067109, 1
  %.not = icmp ugt i32 %50, %0
  br i1 %.not, label %.thread91, label %.preheader98, !llvm.loop !9

51:                                               ; preds = %43
  %52 = add i32 %.0107, 1
  %53 = uitofp i32 %52 to double
  %54 = 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 %1, i32 noundef %.0107)
  %55 = fmul double %54, %53
  %56 = 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 %2, i32 noundef %.067109)
  %57 = 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 %1, i32 noundef %.0107)
  %58 = add i32 %.067109, 1
  %59 = uitofp i32 %58 to double
  %60 = fmul double %57, %59
  %61 = 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 %2, i32 noundef %.067109)
  %62 = fmul double %60, %61
  %63 = tail call double @llvm.fmuladd.f64(double %55, double %56, double %62)
  br label %.thread91

.thread91:                                        ; preds = %49, %36, %25, %18, %51
  %.6 = phi double [ %63, %51 ], [ %31, %25 ], [ %24, %18 ], [ 0.000000e+00, %36 ], [ 0.000000e+00, %49 ]
  ret double %.6
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #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" }

!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}
!8 = distinct !{!8, !6}
!9 = distinct !{!9, !6}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass