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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z12RTMonomial3Djdddjj(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %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
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store double %1, ptr %9, align 8, !tbaa !9
  store double %2, ptr %10, align 8, !tbaa !9
  store double %3, ptr %11, align 8, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !5
  store i32 %5, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = add i32 %28, 1
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = add i32 %30, 2
  %32 = mul i32 %29, %31
  %33 = load i32, ptr %8, align 4, !tbaa !5
  %34 = add i32 %33, 3
  %35 = mul i32 %32, %34
  %36 = udiv i32 %35, 2
  store i32 %36, ptr %15, align 4, !tbaa !5
  %37 = load i32, ptr %13, align 4, !tbaa !5
  %38 = load i32, ptr %15, align 4, !tbaa !5
  %39 = icmp ult i32 %37, %38
  br i1 %39, label %40, label %119

40:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %41 = load i32, ptr %13, align 4, !tbaa !5
  %42 = udiv i32 %41, 3
  store i32 %42, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %43 = load i32, ptr %13, align 4, !tbaa !5
  %44 = urem i32 %43, 3
  store i32 %44, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %110, %40
  %46 = load i32, ptr %19, align 4, !tbaa !5
  %47 = load i32, ptr %8, align 4, !tbaa !5
  %48 = icmp ule i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %20, align 4
  br label %113

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

51:                                               ; preds = %104, %50
  %52 = load i32, ptr %21, align 4, !tbaa !5
  %53 = load i32, ptr %8, align 4, !tbaa !5
  %54 = icmp ule i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %20, align 4
  br label %107

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %98, %56
  %58 = load i32, ptr %22, align 4, !tbaa !5
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = icmp ule i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 8, ptr %20, align 4
  br label %101

62:                                               ; preds = %57
  %63 = load i32, ptr %22, align 4, !tbaa !5
  %64 = load i32, ptr %21, align 4, !tbaa !5
  %65 = add i32 %63, %64
  %66 = load i32, ptr %19, align 4, !tbaa !5
  %67 = add i32 %65, %66
  %68 = load i32, ptr %8, align 4, !tbaa !5
  %69 = icmp ule i32 %67, %68
  br i1 %69, label %70, label %97

70:                                               ; preds = %62
  %71 = load i32, ptr %18, align 4, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = icmp eq i32 %71, %72
  br i1 %73, label %74, label %94

74:                                               ; preds = %70
  %75 = load i32, ptr %12, align 4, !tbaa !5
  %76 = load i32, ptr %17, align 4, !tbaa !5
  %77 = icmp eq i32 %75, %76
  br i1 %77, label %78, label %90

78:                                               ; preds = %74
  %79 = load double, ptr %9, align 8, !tbaa !9
  %80 = load i32, ptr %22, align 4, !tbaa !5
  %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 %79, i32 noundef %80)
  %82 = load double, ptr %10, align 8, !tbaa !9
  %83 = load i32, ptr %21, align 4, !tbaa !5
  %84 = 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 %82, i32 noundef %83)
  %85 = fmul double %81, %84
  %86 = load double, ptr %11, align 8, !tbaa !9
  %87 = load i32, ptr %19, align 4, !tbaa !5
  %88 = 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 %86, i32 noundef %87)
  %89 = fmul double %85, %88
  br label %91

90:                                               ; preds = %74
  br label %91

91:                                               ; preds = %90, %78
  %92 = phi double [ %89, %78 ], [ 0.000000e+00, %90 ]
  store double %92, ptr %14, align 8, !tbaa !9
  %93 = load double, ptr %14, align 8, !tbaa !9
  store double %93, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %101

94:                                               ; preds = %70
  %95 = load i32, ptr %18, align 4, !tbaa !5
  %96 = add i32 %95, 1
  store i32 %96, ptr %18, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %94, %62
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %22, align 4, !tbaa !5
  %100 = add i32 %99, 1
  store i32 %100, ptr %22, align 4, !tbaa !5
  br label %57, !llvm.loop !11

101:                                              ; preds = %91, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  %102 = load i32, ptr %20, align 4
  switch i32 %102, label %107 [
    i32 8, label %103
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103
  %105 = load i32, ptr %21, align 4, !tbaa !5
  %106 = add i32 %105, 1
  store i32 %106, ptr %21, align 4, !tbaa !5
  br label %51, !llvm.loop !13

107:                                              ; preds = %101, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  %108 = load i32, ptr %20, align 4
  switch i32 %108, label %113 [
    i32 5, label %109
  ]

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %19, align 4, !tbaa !5
  %112 = add i32 %111, 1
  store i32 %112, ptr %19, align 4, !tbaa !5
  br label %45, !llvm.loop !14

113:                                              ; preds = %107, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  %114 = load i32, ptr %20, align 4
  switch i32 %114, label %116 [
    i32 2, label %115
  ]

115:                                              ; preds = %113
  store i32 0, ptr %20, align 4
  br label %116

116:                                              ; preds = %115, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  %117 = load i32, ptr %20, align 4
  switch i32 %117, label %230 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %229

119:                                              ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = load i32, ptr %15, align 4, !tbaa !5
  %122 = sub i32 %120, %121
  store i32 %122, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %220, %119
  %124 = load i32, ptr %25, align 4, !tbaa !5
  %125 = load i32, ptr %8, align 4, !tbaa !5
  %126 = icmp ule i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 11, ptr %20, align 4
  br label %223

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %214, %128
  %130 = load i32, ptr %26, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = icmp ule i32 %130, %131
  br i1 %132, label %134, label %133

133:                                              ; preds = %129
  store i32 14, ptr %20, align 4
  br label %217

134:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %208, %134
  %136 = load i32, ptr %27, align 4, !tbaa !5
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = icmp ule i32 %136, %137
  br i1 %138, label %140, label %139

139:                                              ; preds = %135
  store i32 17, ptr %20, align 4
  br label %211

140:                                              ; preds = %135
  %141 = load i32, ptr %27, align 4, !tbaa !5
  %142 = load i32, ptr %26, align 4, !tbaa !5
  %143 = add i32 %141, %142
  %144 = load i32, ptr %25, align 4, !tbaa !5
  %145 = add i32 %143, %144
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = icmp eq i32 %145, %146
  br i1 %147, label %148, label %207

148:                                              ; preds = %140
  %149 = load i32, ptr %24, align 4, !tbaa !5
  %150 = load i32, ptr %23, align 4, !tbaa !5
  %151 = icmp eq i32 %149, %150
  br i1 %151, label %152, label %204

152:                                              ; preds = %148
  %153 = load i32, ptr %12, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %168

155:                                              ; preds = %152
  %156 = load double, ptr %9, align 8, !tbaa !9
  %157 = load i32, ptr %27, align 4, !tbaa !5
  %158 = add i32 %157, 1
  %159 = 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 %156, i32 noundef %158)
  %160 = load double, ptr %10, align 8, !tbaa !9
  %161 = load i32, ptr %26, align 4, !tbaa !5
  %162 = 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 %160, i32 noundef %161)
  %163 = fmul double %159, %162
  %164 = load double, ptr %11, align 8, !tbaa !9
  %165 = load i32, ptr %25, align 4, !tbaa !5
  %166 = 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 %164, i32 noundef %165)
  %167 = fmul double %163, %166
  store double %167, ptr %14, align 8, !tbaa !9
  br label %202

168:                                              ; preds = %152
  %169 = load i32, ptr %12, align 4, !tbaa !5
  %170 = icmp eq i32 %169, 1
  br i1 %170, label %171, label %184

171:                                              ; preds = %168
  %172 = load double, ptr %9, align 8, !tbaa !9
  %173 = load i32, ptr %27, align 4, !tbaa !5
  %174 = 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 %172, i32 noundef %173)
  %175 = load double, ptr %10, align 8, !tbaa !9
  %176 = load i32, ptr %26, align 4, !tbaa !5
  %177 = add i32 %176, 1
  %178 = 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 %177)
  %179 = fmul double %174, %178
  %180 = load double, ptr %11, align 8, !tbaa !9
  %181 = load i32, ptr %25, align 4, !tbaa !5
  %182 = 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 %180, i32 noundef %181)
  %183 = fmul double %179, %182
  store double %183, ptr %14, align 8, !tbaa !9
  br label %201

184:                                              ; preds = %168
  %185 = load i32, ptr %12, align 4, !tbaa !5
  %186 = icmp eq i32 %185, 2
  br i1 %186, label %187, label %200

187:                                              ; preds = %184
  %188 = load double, ptr %9, align 8, !tbaa !9
  %189 = load i32, ptr %27, align 4, !tbaa !5
  %190 = 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 %188, i32 noundef %189)
  %191 = load double, ptr %10, align 8, !tbaa !9
  %192 = load i32, ptr %26, align 4, !tbaa !5
  %193 = 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 %191, i32 noundef %192)
  %194 = fmul double %190, %193
  %195 = load double, ptr %11, align 8, !tbaa !9
  %196 = load i32, ptr %25, align 4, !tbaa !5
  %197 = add i32 %196, 1
  %198 = 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 %195, i32 noundef %197)
  %199 = fmul double %194, %198
  store double %199, ptr %14, align 8, !tbaa !9
  br label %200

200:                                              ; preds = %187, %184
  br label %201

201:                                              ; preds = %200, %171
  br label %202

202:                                              ; preds = %201, %155
  %203 = load double, ptr %14, align 8, !tbaa !9
  store double %203, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %211

204:                                              ; preds = %148
  %205 = load i32, ptr %24, align 4, !tbaa !5
  %206 = add i32 %205, 1
  store i32 %206, ptr %24, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %204, %140
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %27, align 4, !tbaa !5
  %210 = add i32 %209, 1
  store i32 %210, ptr %27, align 4, !tbaa !5
  br label %135, !llvm.loop !15

211:                                              ; preds = %202, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  %212 = load i32, ptr %20, align 4
  switch i32 %212, label %217 [
    i32 17, label %213
  ]

213:                                              ; preds = %211
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %26, align 4, !tbaa !5
  %216 = add i32 %215, 1
  store i32 %216, ptr %26, align 4, !tbaa !5
  br label %129, !llvm.loop !16

217:                                              ; preds = %211, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  %218 = load i32, ptr %20, align 4
  switch i32 %218, label %223 [
    i32 14, label %219
  ]

219:                                              ; preds = %217
  br label %220

220:                                              ; preds = %219
  %221 = load i32, ptr %25, align 4, !tbaa !5
  %222 = add i32 %221, 1
  store i32 %222, ptr %25, align 4, !tbaa !5
  br label %123, !llvm.loop !17

223:                                              ; preds = %217, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  %224 = load i32, ptr %20, align 4
  switch i32 %224, label %226 [
    i32 11, label %225
  ]

225:                                              ; preds = %223
  store i32 0, ptr %20, align 4
  br label %226

226:                                              ; preds = %225, %223
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  %227 = load i32, ptr %20, align 4
  switch i32 %227, label %230 [
    i32 0, label %228
  ]

228:                                              ; preds = %226
  br label %229

229:                                              ; preds = %228, %118
  store double 0.000000e+00, ptr %7, align 8
  store i32 1, ptr %20, align 4
  br label %230

230:                                              ; preds = %229, %226, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %231 = load double, ptr %7, align 8
  ret double %231
}

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

!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}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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: 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 #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_Z12RTMonomial3Djdddjj(i32 noundef %0, double noundef %1, double noundef %2, double noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = add i32 %0, 1
  %8 = add i32 %0, 2
  %9 = mul i32 %7, %8
  %10 = add i32 %0, 3
  %11 = mul i32 %9, %10
  %12 = lshr i32 %11, 1
  %13 = icmp ugt i32 %12, %5
  br i1 %13, label %14, label %47

14:                                               ; preds = %6
  %15 = udiv i32 %5, 3
  %16 = urem i32 %5, 3
  %17 = icmp eq i32 %16, %4
  br i1 %17, label %.preheader148.us, label %.preheader148

.preheader148.us:                                 ; preds = %14, %.thread128.loopexit.us
  %.0104173.us = phi i32 [ %34, %.thread128.loopexit.us ], [ 0, %14 ]
  %.0105172.us = phi i32 [ %.3108.us, %.thread128.loopexit.us ], [ 0, %14 ]
  br label %.preheader.us

18:                                               ; preds = %.preheader.us, %29
  %.096169.us = phi i32 [ 0, %.preheader.us ], [ %30, %29 ]
  %.2107168.us = phi i32 [ %.1106170.us, %.preheader.us ], [ %.3108.us, %29 ]
  %19 = add i32 %33, %.096169.us
  %.not126.us = icmp ugt i32 %19, %0
  br i1 %.not126.us, label %29, label %20

20:                                               ; preds = %18
  %21 = icmp eq i32 %.2107168.us, %15
  br i1 %21, label %.split176.us, label %22

22:                                               ; preds = %20
  %23 = add i32 %.2107168.us, 1
  br label %29

.split176.us:                                     ; preds = %20
  %24 = 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 %.096169.us)
  %25 = 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 %.097171.us)
  %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 %3, i32 noundef %.0104173.us)
  %27 = fmul double %24, %25
  %28 = fmul double %27, %26
  br label %.split176

29:                                               ; preds = %22, %18
  %.3108.us = phi i32 [ %23, %22 ], [ %.2107168.us, %18 ]
  %30 = add i32 %.096169.us, 1
  %.not125.us = icmp ugt i32 %30, %0
  br i1 %.not125.us, label %31, label %18, !llvm.loop !5

31:                                               ; preds = %29
  %32 = add i32 %.097171.us, 1
  %.not124.us = icmp ugt i32 %32, %0
  br i1 %.not124.us, label %.thread128.loopexit.us, label %.preheader.us, !llvm.loop !7

.preheader.us:                                    ; preds = %31, %.preheader148.us
  %.097171.us = phi i32 [ 0, %.preheader148.us ], [ %32, %31 ]
  %.1106170.us = phi i32 [ %.0105172.us, %.preheader148.us ], [ %.3108.us, %31 ]
  %33 = add i32 %.097171.us, %.0104173.us
  br label %18

.thread128.loopexit.us:                           ; preds = %31
  %34 = add i32 %.0104173.us, 1
  %.not123.us = icmp ugt i32 %34, %0
  br i1 %.not123.us, label %.split176, label %.preheader148.us, !llvm.loop !8

.preheader148:                                    ; preds = %14, %.thread128
  %.0104173 = phi i32 [ %46, %.thread128 ], [ 0, %14 ]
  %.0105172 = phi i32 [ %.3108, %.thread128 ], [ 0, %14 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader148, %44
  %.097171 = phi i32 [ 0, %.preheader148 ], [ %45, %44 ]
  %.1106170 = phi i32 [ %.0105172, %.preheader148 ], [ %.3108, %44 ]
  %35 = add i32 %.097171, %.0104173
  br label %36

36:                                               ; preds = %.preheader, %42
  %.096169 = phi i32 [ 0, %.preheader ], [ %43, %42 ]
  %.2107168 = phi i32 [ %.1106170, %.preheader ], [ %.3108, %42 ]
  %37 = add i32 %35, %.096169
  %.not126 = icmp ugt i32 %37, %0
  br i1 %.not126, label %42, label %38

38:                                               ; preds = %36
  %39 = icmp eq i32 %.2107168, %15
  br i1 %39, label %.split176, label %40

40:                                               ; preds = %38
  %41 = add i32 %.2107168, 1
  br label %42

42:                                               ; preds = %36, %40
  %.3108 = phi i32 [ %41, %40 ], [ %.2107168, %36 ]
  %43 = add i32 %.096169, 1
  %.not125 = icmp ugt i32 %43, %0
  br i1 %.not125, label %44, label %36, !llvm.loop !5

44:                                               ; preds = %42
  %45 = add i32 %.097171, 1
  %.not124 = icmp ugt i32 %45, %0
  br i1 %.not124, label %.thread128, label %.preheader, !llvm.loop !7

.thread128:                                       ; preds = %44
  %46 = add i32 %.0104173, 1
  %.not123 = icmp ugt i32 %46, %0
  br i1 %.not123, label %.split176, label %.preheader148, !llvm.loop !8

47:                                               ; preds = %6
  %48 = sub i32 %5, %12
  br label %.preheader150

.preheader150:                                    ; preds = %47, %.thread139
  %.089166 = phi i32 [ 0, %47 ], [ %83, %.thread139 ]
  %.090165 = phi i32 [ 0, %47 ], [ %.3, %.thread139 ]
  br label %.preheader149

.preheader149:                                    ; preds = %.preheader150, %81
  %.088163 = phi i32 [ 0, %.preheader150 ], [ %82, %81 ]
  %.1162 = phi i32 [ %.090165, %.preheader150 ], [ %.3, %81 ]
  %49 = add i32 %.088163, %.089166
  br label %50

50:                                               ; preds = %.preheader149, %79
  %.0161 = phi i32 [ 0, %.preheader149 ], [ %80, %79 ]
  %.2160 = phi i32 [ %.1162, %.preheader149 ], [ %.3, %79 ]
  %51 = add i32 %49, %.0161
  %52 = icmp eq i32 %51, %0
  br i1 %52, label %53, label %79

53:                                               ; preds = %50
  %54 = icmp eq i32 %.2160, %48
  br i1 %54, label %55, label %77

55:                                               ; preds = %53
  switch i32 %4, label %unreachable [
    i32 0, label %56
    i32 1, label %63
    i32 2, label %70
  ]

56:                                               ; preds = %55
  %57 = add i32 %.0161, 1
  %58 = 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 %57)
  %59 = 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 %.088163)
  %60 = fmul double %58, %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 %3, i32 noundef %.089166)
  %62 = fmul double %60, %61
  br label %.split176

63:                                               ; preds = %55
  %64 = 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 %.0161)
  %65 = add i32 %.088163, 1
  %66 = 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 %65)
  %67 = fmul double %64, %66
  %68 = 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 %3, i32 noundef %.089166)
  %69 = fmul double %67, %68
  br label %.split176

70:                                               ; preds = %55
  %71 = 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 %.0161)
  %72 = 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 %.088163)
  %73 = fmul double %71, %72
  %74 = add i32 %.089166, 1
  %75 = 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 %3, i32 noundef %74)
  %76 = fmul double %73, %75
  br label %.split176

77:                                               ; preds = %53
  %78 = add i32 %.2160, 1
  br label %79

79:                                               ; preds = %50, %77
  %.3 = phi i32 [ %78, %77 ], [ %.2160, %50 ]
  %80 = add i32 %.0161, 1
  %.not122 = icmp ugt i32 %80, %0
  br i1 %.not122, label %81, label %50, !llvm.loop !9

81:                                               ; preds = %79
  %82 = add i32 %.088163, 1
  %.not121 = icmp ugt i32 %82, %0
  br i1 %.not121, label %.thread139, label %.preheader149, !llvm.loop !10

.thread139:                                       ; preds = %81
  %83 = add i32 %.089166, 1
  %.not = icmp ugt i32 %83, %0
  br i1 %.not, label %.split176, label %.preheader150, !llvm.loop !11

unreachable:                                      ; preds = %55
  unreachable

.split176:                                        ; preds = %.thread139, %.thread128, %38, %.thread128.loopexit.us, %56, %70, %63, %.split176.us
  %.10 = phi double [ %28, %.split176.us ], [ %76, %70 ], [ %69, %63 ], [ %62, %56 ], [ 0.000000e+00, %.thread128.loopexit.us ], [ 0.000000e+00, %38 ], [ 0.000000e+00, %.thread128 ], [ 0.000000e+00, %.thread139 ]
  ret double %.10
}

attributes #0 = { 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 #1 = { 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}
!10 = distinct !{!10, !6}
!11 = distinct !{!11, !6}


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