; LLVM IR from interpretml/interpret :: shared/libebm (BoosterShell)

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

@g_traceLevel = external global i32, align 4
@_ZZ13CreateBoosterE13LOG__sMessage = external hidden constant [243 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_0 = external hidden constant [48 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_1 = external hidden constant [67 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_2 = external hidden constant [39 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_3 = external hidden constant [55 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_4 = external hidden constant [69 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_5 = external hidden constant [61 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_6 = external hidden constant [43 x i8], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef) #0 align 2

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

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) #2

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

declare void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell6CreateEPNS_11BoosterCoreE(ptr noundef) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN12BoosterShell15FillAllocationsEv(ptr noundef nonnull align 8 dereferenceable(112)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore14GetTrainingSetEv(ptr noundef nonnull align 8 dereferenceable(520)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore16GetValidationSetEv(ptr noundef nonnull align 8 dereferenceable(520)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local i32 @CreateBooster(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, i32 noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #0 {
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i64, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i64, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store ptr %2, ptr %18, align 8, !tbaa !5
  store ptr %3, ptr %19, align 8, !tbaa !5
  store ptr %4, ptr %20, align 8, !tbaa !5
  store i64 %5, ptr %21, align 8, !tbaa !9
  store ptr %6, ptr %22, align 8, !tbaa !5
  store ptr %7, ptr %23, align 8, !tbaa !5
  store i64 %8, ptr %24, align 8, !tbaa !9
  store i32 %9, ptr %25, align 4, !tbaa !11
  store i32 %10, ptr %26, align 4, !tbaa !11
  store ptr %11, ptr %27, align 8, !tbaa !5
  store ptr %12, ptr %28, align 8, !tbaa !5
  store ptr %13, ptr %29, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 3, ptr %30, align 4, !tbaa !11
  %46 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %47 = icmp sle i32 3, %46
  br i1 %47, label %48, label %63

48:                                               ; preds = %45
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = load ptr, ptr %17, align 8, !tbaa !5
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = load ptr, ptr %19, align 8, !tbaa !5
  %53 = load ptr, ptr %20, align 8, !tbaa !5
  %54 = load i64, ptr %21, align 8, !tbaa !9
  %55 = load ptr, ptr %22, align 8, !tbaa !5
  %56 = load ptr, ptr %23, align 8, !tbaa !5
  %57 = load i64, ptr %24, align 8, !tbaa !9
  %58 = load i32, ptr %25, align 4, !tbaa !11
  %59 = load i32, ptr %26, align 4, !tbaa !11
  %60 = load ptr, ptr %27, align 8, !tbaa !5
  %61 = load ptr, ptr %28, align 8, !tbaa !5
  %62 = load ptr, ptr %29, align 8, !tbaa !5
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage, ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, i64 noundef %54, ptr noundef %55, ptr noundef %56, i64 noundef %57, i32 noundef %58, i32 noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62)
  br label %63

63:                                               ; preds = %48, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %64

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %65 = load ptr, ptr %29, align 8, !tbaa !5
  %66 = icmp eq ptr null, %65
  br i1 %66, label %67, label %75

67:                                               ; preds = %64
  br label %68

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 1, ptr %32, align 4, !tbaa !11
  %69 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %70 = icmp sle i32 1, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_0)
  br label %72

72:                                               ; preds = %71, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  store i32 -3, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %252

75:                                               ; preds = %64
  %76 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr null, ptr %76, align 8, !tbaa !5
  %77 = load i32, ptr %25, align 4, !tbaa !11
  %78 = and i32 %77, -8
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %88

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 1, ptr %34, align 4, !tbaa !11
  %82 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %83 = icmp sle i32 1, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_1)
  br label %85

85:                                               ; preds = %84, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87, %75
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = icmp eq ptr null, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %88
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 1, ptr %35, align 4, !tbaa !11
  %93 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %94 = icmp sle i32 1, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_2)
  br label %96

96:                                               ; preds = %95, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  store i32 -3, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %252

99:                                               ; preds = %88
  %100 = load i64, ptr %21, align 8, !tbaa !9
  %101 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %100) #7
  br i1 %101, label %102, label %110

102:                                              ; preds = %99
  br label %103

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 1, ptr %36, align 4, !tbaa !11
  %104 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %105 = icmp sle i32 1, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_3)
  br label %107

107:                                              ; preds = %106, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  store i32 -3, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %252

110:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %111 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %111, ptr %37, align 8, !tbaa !9
  %112 = load ptr, ptr %22, align 8, !tbaa !5
  %113 = icmp eq ptr null, %112
  br i1 %113, label %114, label %125

114:                                              ; preds = %110
  %115 = load i64, ptr %37, align 8, !tbaa !9
  %116 = icmp ne i64 0, %115
  br i1 %116, label %117, label %125

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  store i32 1, ptr %38, align 4, !tbaa !11
  %119 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %120 = icmp sle i32 1, %119
  br i1 %120, label %121, label %122

121:                                              ; preds = %118
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_4)
  br label %122

122:                                              ; preds = %121, %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  store i32 -3, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %251

125:                                              ; preds = %114, %110
  %126 = load i64, ptr %24, align 8, !tbaa !9
  %127 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %126) #7
  br i1 %127, label %128, label %136

128:                                              ; preds = %125
  br label %129

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  store i32 2, ptr %39, align 4, !tbaa !11
  %130 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %131 = icmp sle i32 2, %130
  br i1 %131, label %132, label %133

132:                                              ; preds = %129
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_5)
  br label %133

133:                                              ; preds = %132, %129
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  store i32 -1, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %251

136:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  %137 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %137, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  store ptr null, ptr %41, align 8, !tbaa !5
  %138 = load ptr, ptr %16, align 8, !tbaa !5
  %139 = load i64, ptr %37, align 8, !tbaa !9
  %140 = load i64, ptr %40, align 8, !tbaa !9
  %141 = load ptr, ptr %28, align 8, !tbaa !5
  %142 = load ptr, ptr %22, align 8, !tbaa !5
  %143 = load ptr, ptr %23, align 8, !tbaa !5
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  %148 = load i32, ptr %25, align 4, !tbaa !11
  %149 = load i32, ptr %26, align 4, !tbaa !11
  %150 = load ptr, ptr %27, align 8, !tbaa !5
  %151 = call noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore6CreateEPvmmPKdPKlS5_PKhS3_PKaS3_iiPKcPPS0_(ptr noundef %138, i64 noundef %139, i64 noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146, ptr noundef %147, i32 noundef %148, i32 noundef %149, ptr noundef %150, ptr noundef %41)
  store i32 %151, ptr %31, align 4, !tbaa !11
  %152 = load i32, ptr %31, align 4, !tbaa !11
  %153 = icmp ne i32 0, %152
  %154 = xor i1 %153, true
  %155 = xor i1 %154, true
  %156 = zext i1 %155 to i64
  %157 = call i64 @llvm.expect.i64(i64 %156, i64 0)
  %158 = icmp ne i64 %157, 0
  br i1 %158, label %159, label %162

159:                                              ; preds = %136
  %160 = load ptr, ptr %41, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef %160)
  %161 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %161, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %250

162:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  %163 = load ptr, ptr %41, align 8, !tbaa !5
  %164 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell6CreateEPNS_11BoosterCoreE(ptr noundef %163)
  store ptr %164, ptr %42, align 8, !tbaa !5
  %165 = load ptr, ptr %42, align 8, !tbaa !5
  %166 = icmp eq ptr null, %165
  %167 = xor i1 %166, true
  %168 = xor i1 %167, true
  %169 = zext i1 %168 to i64
  %170 = call i64 @llvm.expect.i64(i64 %169, i64 0)
  %171 = icmp ne i64 %170, 0
  br i1 %171, label %172, label %174

172:                                              ; preds = %162
  %173 = load ptr, ptr %41, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef %173)
  store i32 -1, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %249

174:                                              ; preds = %162
  %175 = load ptr, ptr %42, align 8, !tbaa !5
  %176 = call noundef i32 @_ZN14NAMESPACE_MAIN12BoosterShell15FillAllocationsEv(ptr noundef nonnull align 8 dereferenceable(112) %175)
  store i32 %176, ptr %31, align 4, !tbaa !11
  %177 = load i32, ptr %31, align 4, !tbaa !11
  %178 = icmp ne i32 0, %177
  br i1 %178, label %179, label %182

179:                                              ; preds = %174
  %180 = load ptr, ptr %42, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef %180)
  %181 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %181, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %249

182:                                              ; preds = %174
  %183 = load ptr, ptr %41, align 8, !tbaa !5
  %184 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %183)
  %185 = icmp ne i64 0, %184
  br i1 %185, label %186, label %236

186:                                              ; preds = %182
  %187 = load ptr, ptr %41, align 8, !tbaa !5
  %188 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN11BoosterCore6IsRmseEv(ptr noundef nonnull align 8 dereferenceable(520) %187)
  br i1 %188, label %208, label %189

189:                                              ; preds = %186
  %190 = load ptr, ptr %41, align 8, !tbaa !5
  %191 = load ptr, ptr %42, align 8, !tbaa !5
  %192 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell23GetMulticlassMidwayTempEv(ptr noundef nonnull align 8 dereferenceable(112) %191)
  %193 = load ptr, ptr %42, align 8, !tbaa !5
  %194 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %193)
  %195 = call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72) %194)
  %196 = call noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore37InitializeBoosterGradientsAndHessiansEPvPd(ptr noundef nonnull align 8 dereferenceable(520) %190, ptr noundef %192, ptr noundef %195)
  store i32 %196, ptr %31, align 4, !tbaa !11
  %197 = load i32, ptr %31, align 4, !tbaa !11
  %198 = icmp ne i32 0, %197
  %199 = xor i1 %198, true
  %200 = xor i1 %199, true
  %201 = zext i1 %200 to i64
  %202 = call i64 @llvm.expect.i64(i64 %201, i64 0)
  %203 = icmp ne i64 %202, 0
  br i1 %203, label %204, label %207

204:                                              ; preds = %189
  %205 = load ptr, ptr %42, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef %205)
  %206 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %206, ptr %15, align 4
  store i32 1, ptr %33, align 4
  br label %249

207:                                              ; preds = %189
  br label %235

208:                                              ; preds = %186
  %209 = load ptr, ptr %17, align 8, !tbaa !5
  %210 = load ptr, ptr %18, align 8, !tbaa !5
  %211 = icmp eq ptr null, %210
  br i1 %211, label %212, label %213

212:                                              ; preds = %208
  br label %216

213:                                              ; preds = %208
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = load double, ptr %214, align 8, !tbaa !13
  br label %216

216:                                              ; preds = %213, %212
  %217 = phi double [ 0.000000e+00, %212 ], [ %215, %213 ]
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  %220 = load ptr, ptr %41, align 8, !tbaa !5
  %221 = call noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore14GetTrainingSetEv(ptr noundef nonnull align 8 dereferenceable(520) %220)
  call void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef %209, double noundef %217, i8 noundef signext 1, ptr noundef %218, ptr noundef %219, ptr noundef %221)
  %222 = load ptr, ptr %17, align 8, !tbaa !5
  %223 = load ptr, ptr %18, align 8, !tbaa !5
  %224 = icmp eq ptr null, %223
  br i1 %224, label %225, label %226

225:                                              ; preds = %216
  br label %229

226:                                              ; preds = %216
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = load double, ptr %227, align 8, !tbaa !13
  br label %229

229:                                              ; preds = %226, %225
  %230 = phi double [ 0.000000e+00, %225 ], [ %228, %226 ]
  %231 = load ptr, ptr %19, align 8, !tbaa !5
  %232 = load ptr, ptr %20, align 8, !tbaa !5
  %233 = load ptr, ptr %41, align 8, !tbaa !5
  %234 = call noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore16GetValidationSetEv(ptr noundef nonnull align 8 dereferenceable(520) %233)
  call void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef %222, double noundef %230, i8 noundef signext -1, ptr noundef %231, ptr noundef %232, ptr noundef %234)
  br label %235

235:                                              ; preds = %229, %207
  br label %236

236:                                              ; preds = %235, %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #7
  %237 = load ptr, ptr %42, align 8, !tbaa !5
  %238 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(112) %237)
  store ptr %238, ptr %43, align 8, !tbaa !5
  br label %239

239:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  store i32 3, ptr %44, align 4, !tbaa !11
  %240 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %241 = icmp sle i32 3, %240
  br i1 %241, label %242, label %244

242:                                              ; preds = %239
  %243 = load ptr, ptr %43, align 8, !tbaa !5
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef @_ZZ13CreateBoosterE13LOG__sMessage_6, ptr noundef %243)
  br label %244

244:                                              ; preds = %242, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  %247 = load ptr, ptr %43, align 8, !tbaa !5
  %248 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %247, ptr %248, align 8, !tbaa !5
  store i32 0, ptr %15, align 4
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #7
  br label %249

249:                                              ; preds = %246, %204, %179, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %250

250:                                              ; preds = %249, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  br label %251

251:                                              ; preds = %250, %135, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %252

252:                                              ; preds = %251, %109, %98, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  %253 = load i32, ptr %15, align 4
  ret i32 %253
}

declare void @InteralLogWithArguments(i32 noundef, ptr noundef, ...) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) #4

declare noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore6CreateEPvmmPKdPKlS5_PKhS3_PKaS3_iiPKcPPS0_(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14NAMESPACE_MAIN11BoosterCore6IsRmseEv(ptr noundef nonnull align 8 dereferenceable(520)) #5 align 2

declare noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore37InitializeBoosterGradientsAndHessiansEPvPd(ptr noundef nonnull align 8 dereferenceable(520), ptr noundef, ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell23GetMulticlassMidwayTempEv(ptr noundef nonnull align 8 dereferenceable(112)) #6 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72)) #4 align 2

declare void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef, double noundef, i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(112)) #6 align 2

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

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

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


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

@g_traceLevel = external local_unnamed_addr global i32, align 4
@_ZZ13CreateBoosterE13LOG__sMessage = external hidden constant [243 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_0 = external hidden constant [48 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_1 = external hidden constant [67 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_2 = external hidden constant [39 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_3 = external hidden constant [55 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_4 = external hidden constant [69 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_5 = external hidden constant [61 x i8], align 16
@_ZZ13CreateBoosterE13LOG__sMessage_6 = external hidden constant [43 x i8], align 16

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef) local_unnamed_addr #0 align 2

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

declare void @InteralLogWithoutArguments(i32 noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell6CreateEPNS_11BoosterCoreE(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN12BoosterShell15FillAllocationsEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore14GetTrainingSetEv(ptr noundef nonnull align 8 dereferenceable(520)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore16GetValidationSetEv(ptr noundef nonnull align 8 dereferenceable(520)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @CreateBooster(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, i32 noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) local_unnamed_addr #0 {
  %15 = alloca ptr, align 8
  %16 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 2
  br i1 %17, label %18, label %19

18:                                               ; preds = %14
  tail call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage, ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, i64 noundef %8, i32 noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13)
  br label %19

19:                                               ; preds = %18, %14
  %20 = icmp eq ptr %13, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %19
  %22 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %24, label %99

24:                                               ; preds = %21
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_0)
  br label %99

25:                                               ; preds = %19
  store ptr null, ptr %13, align 8, !tbaa !9
  %.not = icmp ugt i32 %9, 7
  %26 = load i32, ptr @g_traceLevel, align 4
  %27 = icmp sgt i32 %26, 0
  %or.cond77 = select i1 %.not, i1 %27, i1 false
  br i1 %or.cond77, label %28, label %29

28:                                               ; preds = %25
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_1)
  br label %29

29:                                               ; preds = %28, %25
  %30 = icmp eq ptr %1, null
  br i1 %30, label %31, label %35

31:                                               ; preds = %29
  %32 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %99

34:                                               ; preds = %31
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_2)
  br label %99

35:                                               ; preds = %29
  %36 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %5) #6
  br i1 %36, label %37, label %41

37:                                               ; preds = %35
  %38 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %40, label %99

40:                                               ; preds = %37
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_3)
  br label %99

41:                                               ; preds = %35
  %42 = icmp eq ptr %6, null
  %43 = icmp ne i64 %5, 0
  %or.cond = and i1 %43, %42
  br i1 %or.cond, label %44, label %48

44:                                               ; preds = %41
  %45 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %47, label %99

47:                                               ; preds = %44
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_4)
  br label %99

48:                                               ; preds = %41
  %49 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef %8) #6
  br i1 %49, label %50, label %54

50:                                               ; preds = %48
  %51 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 1
  br i1 %52, label %53, label %99

53:                                               ; preds = %50
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_5)
  br label %99

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  store ptr null, ptr %15, align 8, !tbaa !9
  %55 = call noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore6CreateEPvmmPKdPKlS5_PKhS3_PKaS3_iiPKcPPS0_(ptr noundef %0, i64 noundef %5, i64 noundef %8, ptr noundef %12, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef nonnull %15)
  %.not72 = icmp eq i32 %55, 0
  %56 = load ptr, ptr %15, align 8, !tbaa !9
  br i1 %.not72, label %58, label %57, !prof !11

57:                                               ; preds = %54
  call void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef %56)
  br label %98

58:                                               ; preds = %54
  %59 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell6CreateEPNS_11BoosterCoreE(ptr noundef %56)
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %63, !prof !12

61:                                               ; preds = %58
  %62 = load ptr, ptr %15, align 8, !tbaa !9
  call void @_ZN14NAMESPACE_MAIN11BoosterCore4FreeEPS0_(ptr noundef %62)
  br label %98

63:                                               ; preds = %58
  %64 = call noundef i32 @_ZN14NAMESPACE_MAIN12BoosterShell15FillAllocationsEv(ptr noundef nonnull align 8 dereferenceable(112) %59)
  %.not73 = icmp eq i32 %64, 0
  br i1 %.not73, label %66, label %65

65:                                               ; preds = %63
  call void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef nonnull %59)
  br label %98

66:                                               ; preds = %63
  %67 = load ptr, ptr %15, align 8, !tbaa !9
  %68 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %67)
  %.not74 = icmp eq i64 %68, 0
  br i1 %.not74, label %92, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr %15, align 8, !tbaa !9
  %71 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN11BoosterCore6IsRmseEv(ptr noundef nonnull align 8 dereferenceable(520) %70)
  br i1 %71, label %79, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %15, align 8, !tbaa !9
  %74 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell23GetMulticlassMidwayTempEv(ptr noundef nonnull align 8 dereferenceable(112) %59)
  %75 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %59)
  %76 = call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72) %75)
  %77 = call noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore37InitializeBoosterGradientsAndHessiansEPvPd(ptr noundef nonnull align 8 dereferenceable(520) %73, ptr noundef %74, ptr noundef %76)
  %.not75 = icmp eq i32 %77, 0
  br i1 %.not75, label %92, label %78, !prof !11

78:                                               ; preds = %72
  call void @_ZN14NAMESPACE_MAIN12BoosterShell4FreeEPS0_(ptr noundef nonnull %59)
  br label %98

79:                                               ; preds = %69
  %80 = icmp eq ptr %2, null
  br i1 %80, label %.critedge, label %81

81:                                               ; preds = %79
  %82 = load double, ptr %2, align 8, !tbaa !13
  %83 = load ptr, ptr %15, align 8, !tbaa !9
  %84 = call noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore14GetTrainingSetEv(ptr noundef nonnull align 8 dereferenceable(520) %83)
  call void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef nonnull %1, double noundef %82, i8 noundef signext 1, ptr noundef %3, ptr noundef %4, ptr noundef %84)
  %85 = load double, ptr %2, align 8, !tbaa !13
  br label %88

.critedge:                                        ; preds = %79
  %86 = load ptr, ptr %15, align 8, !tbaa !9
  %87 = call noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore14GetTrainingSetEv(ptr noundef nonnull align 8 dereferenceable(520) %86)
  call void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef nonnull %1, double noundef 0.000000e+00, i8 noundef signext 1, ptr noundef %3, ptr noundef %4, ptr noundef %87)
  br label %88

88:                                               ; preds = %.critedge, %81
  %89 = phi double [ %85, %81 ], [ 0.000000e+00, %.critedge ]
  %90 = load ptr, ptr %15, align 8, !tbaa !9
  %91 = call noundef ptr @_ZN14NAMESPACE_MAIN11BoosterCore16GetValidationSetEv(ptr noundef nonnull align 8 dereferenceable(520) %90)
  call void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef nonnull %1, double noundef %89, i8 noundef signext -1, ptr noundef %3, ptr noundef %4, ptr noundef %91)
  br label %92

92:                                               ; preds = %88, %72, %66
  %93 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(112) %59)
  %94 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %95 = icmp sgt i32 %94, 2
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef 3, ptr noundef nonnull @_ZZ13CreateBoosterE13LOG__sMessage_6, ptr noundef %93)
  br label %97

97:                                               ; preds = %96, %92
  store ptr %93, ptr %13, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %61, %65, %78, %97, %57
  %.1 = phi i32 [ %55, %57 ], [ -1, %61 ], [ %64, %65 ], [ 0, %97 ], [ %77, %78 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %99

99:                                               ; preds = %98, %47, %44, %53, %50, %37, %40, %31, %34, %21, %24
  %.3 = phi i32 [ -3, %24 ], [ -3, %21 ], [ -3, %34 ], [ -3, %31 ], [ -3, %40 ], [ -3, %37 ], [ %.1, %98 ], [ -3, %47 ], [ -3, %44 ], [ -1, %53 ], [ -1, %50 ]
  ret i32 %.3
}

declare void @InteralLogWithArguments(i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorImlEENSt9enable_ifIXaaaantsr3std9is_signedIT_EE5valuesr3std9is_signedIT0_EE5valueleclsr3std14numeric_limitsIS3_EE3maxEclsr3std14numeric_limitsIS2_EE3maxEEbE4typeES3_(i64 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore6CreateEPvmmPKdPKlS5_PKhS3_PKaS3_iiPKcPPS0_(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN14NAMESPACE_MAIN11BoosterCore6IsRmseEv(ptr noundef nonnull align 8 dereferenceable(520)) local_unnamed_addr #4 align 2

declare noundef i32 @_ZN14NAMESPACE_MAIN11BoosterCore37InitializeBoosterGradientsAndHessiansEPvPd(ptr noundef nonnull align 8 dereferenceable(520), ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell23GetMulticlassMidwayTempEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #3 align 2

declare void @_ZN14NAMESPACE_MAIN42InitializeRmseGradientsAndHessiansBoostingEPKhdaPKaPKdPNS_15DataSetBoostingE(ptr noundef, double noundef, i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell9GetHandleEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { 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 #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!12 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass