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

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

%"struct.NAMESPACE_MAIN::TermFeature" = type { ptr, i64, i64 }

@g_traceLevel = external global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE = external hidden global i32, align 4
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage = external hidden constant [93 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_0 = external hidden constant [61 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_1 = external hidden constant [65 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_2 = external hidden constant [49 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_3 = external hidden constant [72 x i8], align 16
@__func__.GetTermUpdateSplits = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__.GetTermUpdateSplits = external hidden unnamed_addr constant [88 x i8], align 1
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_4 = external hidden constant [58 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_5 = external hidden constant [85 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_6 = external hidden constant [49 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_7 = external hidden constant [75 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_8 = external hidden constant [72 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_9 = external hidden constant [54 x i8], align 16
@.str.41 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [36 x i8], align 1

; 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

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

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

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

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

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

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountTensorBinsEv(ptr noundef nonnull align 8 dereferenceable(776)) #5 align 2

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

42:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 3, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 4, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %43 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  store i32 %43, ptr %12, align 4, !tbaa !11
  %44 = load i32, ptr %12, align 4, !tbaa !11
  %45 = icmp sle i32 3, %44
  br i1 %45, label %46, label %73

46:                                               ; preds = %42
  br label %47

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %48 = load i32, ptr %12, align 4, !tbaa !11
  %49 = icmp slt i32 %48, 4
  br i1 %49, label %50, label %61

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store ptr @_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %51 = load i32, ptr @_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE, align 4, !tbaa !11
  %52 = sub nsw i32 %51, 1
  store i32 %52, ptr %15, align 4, !tbaa !11
  %53 = load i32, ptr %15, align 4, !tbaa !11
  %54 = icmp slt i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  store i32 4, ptr %16, align 4
  br label %58

56:                                               ; preds = %50
  %57 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %57, ptr @_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE, align 4, !tbaa !11
  store i32 3, ptr %13, align 4, !tbaa !11
  store i32 0, ptr %16, align 4
  br label %58

58:                                               ; preds = %56, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %59 = load i32, ptr %16, align 4
  switch i32 %59, label %68 [
    i32 0, label %60
  ]

60:                                               ; preds = %58
  br label %62

61:                                               ; preds = %47
  store i32 4, ptr %13, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %61, %60
  %63 = load i32, ptr %13, align 4, !tbaa !11
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef %63, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage, ptr noundef %64, i64 noundef %65, ptr noundef %66, ptr noundef %67)
  store i32 0, ptr %16, align 4
  br label %68

68:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %69 = load i32, ptr %16, align 4
  switch i32 %69, label %354 [
    i32 0, label %70
    i32 4, label %72
  ]

70:                                               ; preds = %68
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71, %68
  br label %73

73:                                               ; preds = %72, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = icmp eq ptr null, %75
  br i1 %76, label %77, label %84

77:                                               ; preds = %74
  br label %78

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 1, ptr %17, align 4, !tbaa !11
  %79 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %80 = icmp sle i32 1, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_0)
  br label %82

82:                                               ; preds = %81, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %83

83:                                               ; preds = %82
  store i32 -3, ptr %5, align 4
  br label %352

84:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell25GetBoosterShellFromHandleEP14_BoosterHandle(ptr noundef %85)
  store ptr %86, ptr %18, align 8, !tbaa !5
  %87 = load ptr, ptr %18, align 8, !tbaa !5
  %88 = icmp eq ptr null, %87
  br i1 %88, label %89, label %91

89:                                               ; preds = %84
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %90, align 8, !tbaa !9
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %351

91:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %92 = load ptr, ptr %18, align 8, !tbaa !5
  %93 = call noundef i64 @_ZN14NAMESPACE_MAIN12BoosterShell12GetTermIndexEv(ptr noundef nonnull align 8 dereferenceable(112) %92)
  store i64 %93, ptr %19, align 8, !tbaa !9
  %94 = load i64, ptr %19, align 8, !tbaa !9
  %95 = icmp eq i64 -1, %94
  br i1 %95, label %96, label %105

96:                                               ; preds = %91
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %97, align 8, !tbaa !9
  br label %98

98:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !11
  %99 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %100 = icmp sle i32 1, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_1)
  br label %102

102:                                              ; preds = %101, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %350

105:                                              ; preds = %91
  %106 = load i64, ptr %19, align 8, !tbaa !9
  %107 = icmp eq i64 -2, %106
  br i1 %107, label %108, label %131

108:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  store i64 %110, ptr %21, align 8, !tbaa !9
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %111, align 8, !tbaa !9
  %112 = load i64, ptr %21, align 8, !tbaa !9
  %113 = icmp ne i64 0, %112
  br i1 %113, label %114, label %122

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 1, ptr %22, align 4, !tbaa !11
  %116 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %117 = icmp sle i32 1, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_2)
  br label %119

119:                                              ; preds = %118, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %130

122:                                              ; preds = %108
  br label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 2, ptr %23, align 4, !tbaa !11
  %124 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %125 = icmp sle i32 2, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %123
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_3)
  br label %127

127:                                              ; preds = %126, %123
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %130

130:                                              ; preds = %129, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %350

131:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell14GetBoosterCoreEv(ptr noundef nonnull align 8 dereferenceable(112) %132)
  store ptr %133, ptr %24, align 8, !tbaa !5
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  %135 = icmp ne ptr null, %134
  br i1 %135, label %138, label %136

136:                                              ; preds = %131
  call void @LogAssertFailure(i64 noundef 429, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.1)
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 429, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137, %131
  %139 = phi i1 [ true, %131 ], [ false, %137 ]
  %140 = load i64, ptr %19, align 8, !tbaa !9
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore13GetCountTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %141)
  %143 = icmp ult i64 %140, %142
  br i1 %143, label %146, label %144

144:                                              ; preds = %138
  call void @LogAssertFailure(i64 noundef 430, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.7)
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str, i32 noundef 430, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145, %138
  %147 = phi i1 [ true, %138 ], [ false, %145 ]
  %148 = load ptr, ptr %24, align 8, !tbaa !5
  %149 = call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %148)
  %150 = icmp ne ptr null, %149
  br i1 %150, label %153, label %151

151:                                              ; preds = %146
  call void @LogAssertFailure(i64 noundef 431, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.9)
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 431, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

152:                                              ; No predecessors!
  br label %153

153:                                              ; preds = %152, %146
  %154 = phi i1 [ true, %146 ], [ false, %152 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %155)
  %157 = load i64, ptr %19, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %156, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  store ptr %159, ptr %25, align 8, !tbaa !5
  %160 = load i64, ptr %7, align 8, !tbaa !9
  %161 = icmp slt i64 %160, 0
  br i1 %161, label %162, label %171

162:                                              ; preds = %153
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %163, align 8, !tbaa !9
  br label %164

164:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 1, ptr %26, align 4, !tbaa !11
  %165 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %166 = icmp sle i32 1, %165
  br i1 %166, label %167, label %168

167:                                              ; preds = %164
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_4)
  br label %168

168:                                              ; preds = %167, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %349

171:                                              ; preds = %153
  %172 = load ptr, ptr %25, align 8, !tbaa !5
  %173 = call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountDimensionsEv(ptr noundef nonnull align 8 dereferenceable(776) %172) #8
  %174 = load i64, ptr %7, align 8, !tbaa !9
  %175 = icmp sle i64 %173, %174
  br i1 %175, label %176, label %185

176:                                              ; preds = %171
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %177, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 1, ptr %27, align 4, !tbaa !11
  %179 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %180 = icmp sle i32 1, %179
  br i1 %180, label %181, label %182

181:                                              ; preds = %178
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_5)
  br label %182

182:                                              ; preds = %181, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %349

185:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %186 = load i64, ptr %7, align 8, !tbaa !9
  store i64 %186, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %187 = load ptr, ptr %25, align 8, !tbaa !5
  %188 = call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %187) #8
  %189 = load i64, ptr %28, align 8, !tbaa !9
  %190 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %188, i64 %189
  %191 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !13
  %193 = call noundef i64 @_ZNK14NAMESPACE_MAIN15FeatureBoosting12GetCountBinsEv(ptr noundef nonnull align 8 dereferenceable(16) %192) #8
  store i64 %193, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #8
  %194 = load ptr, ptr %25, align 8, !tbaa !5
  %195 = call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %194) #8
  %196 = load i64, ptr %28, align 8, !tbaa !9
  %197 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %195, i64 %196
  %198 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %197, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8, !tbaa !13
  %200 = call noundef zeroext i1 @_ZNK14NAMESPACE_MAIN15FeatureBoosting9IsMissingEv(ptr noundef nonnull align 8 dereferenceable(16) %199) #8
  %201 = zext i1 %200 to i8
  store i8 %201, ptr %30, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  %202 = load ptr, ptr %25, align 8, !tbaa !5
  %203 = call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %202) #8
  %204 = load i64, ptr %28, align 8, !tbaa !9
  %205 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %203, i64 %204
  %206 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %205, i32 0, i32 0
  %207 = load ptr, ptr %206, align 8, !tbaa !13
  %208 = call noundef zeroext i1 @_ZNK14NAMESPACE_MAIN15FeatureBoosting8IsUnseenEv(ptr noundef nonnull align 8 dereferenceable(16) %207) #8
  %209 = zext i1 %208 to i8
  store i8 %209, ptr %31, align 1, !tbaa !15
  %210 = load i8, ptr %30, align 1, !tbaa !15, !range !17, !noundef !18
  %211 = trunc i8 %210 to i1
  %212 = zext i1 %211 to i64
  %213 = select i1 %211, i64 0, i64 1
  %214 = load i64, ptr %29, align 8, !tbaa !9
  %215 = add i64 %214, %213
  store i64 %215, ptr %29, align 8, !tbaa !9
  %216 = load i8, ptr %31, align 1, !tbaa !15, !range !17, !noundef !18
  %217 = trunc i8 %216 to i1
  %218 = zext i1 %217 to i64
  %219 = select i1 %217, i64 0, i64 1
  %220 = load i64, ptr %29, align 8, !tbaa !9
  %221 = add i64 %220, %219
  store i64 %221, ptr %29, align 8, !tbaa !9
  %222 = load i64, ptr %29, align 8, !tbaa !9
  %223 = icmp eq i64 0, %222
  br i1 %223, label %224, label %225

224:                                              ; preds = %185
  br label %227

225:                                              ; preds = %185
  %226 = load i64, ptr %29, align 8, !tbaa !9
  br label %227

227:                                              ; preds = %225, %224
  %228 = phi i64 [ 1, %224 ], [ %226, %225 ]
  store i64 %228, ptr %29, align 8, !tbaa !9
  %229 = load ptr, ptr %8, align 8, !tbaa !5
  %230 = load i64, ptr %229, align 8, !tbaa !9
  %231 = load i64, ptr %29, align 8, !tbaa !9
  %232 = sub i64 %231, 1
  %233 = icmp ne i64 %230, %232
  br i1 %233, label %234, label %243

234:                                              ; preds = %227
  %235 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %235, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 1, ptr %32, align 4, !tbaa !11
  %237 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %238 = icmp sle i32 1, %237
  br i1 %238, label %239, label %240

239:                                              ; preds = %236
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_6)
  br label %240

240:                                              ; preds = %239, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %348

243:                                              ; preds = %227
  %244 = load ptr, ptr %24, align 8, !tbaa !5
  %245 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %244)
  %246 = icmp eq i64 0, %245
  br i1 %246, label %247, label %256

247:                                              ; preds = %243
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %248, align 8, !tbaa !9
  br label %249

249:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 2, ptr %33, align 4, !tbaa !11
  %250 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %251 = icmp sle i32 2, %250
  br i1 %251, label %252, label %253

252:                                              ; preds = %249
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_7)
  br label %253

253:                                              ; preds = %252, %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %254

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %348

256:                                              ; preds = %243
  %257 = load ptr, ptr %25, align 8, !tbaa !5
  %258 = call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountTensorBinsEv(ptr noundef nonnull align 8 dereferenceable(776) %257) #8
  %259 = icmp eq i64 0, %258
  br i1 %259, label %260, label %269

260:                                              ; preds = %256
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %261, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 2, ptr %34, align 4, !tbaa !11
  %263 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %264 = icmp sle i32 2, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %262
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_8)
  br label %266

266:                                              ; preds = %265, %262
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %348

269:                                              ; preds = %256
  %270 = load ptr, ptr %18, align 8, !tbaa !5
  %271 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %270)
  %272 = icmp ne ptr null, %271
  br i1 %272, label %275, label %273

273:                                              ; preds = %269
  call void @LogAssertFailure(i64 noundef 477, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.3)
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 477, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

274:                                              ; No predecessors!
  br label %275

275:                                              ; preds = %274, %269
  %276 = phi i1 [ true, %269 ], [ false, %274 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %277 = load ptr, ptr %18, align 8, !tbaa !5
  %278 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %277)
  %279 = load i64, ptr %28, align 8, !tbaa !9
  %280 = call noundef i64 @_ZN14NAMESPACE_MAIN6Tensor14GetCountSlicesEm(ptr noundef nonnull align 8 dereferenceable(72) %278, i64 noundef %279)
  %281 = sub i64 %280, 1
  store i64 %281, ptr %35, align 8, !tbaa !9
  %282 = load i64, ptr %35, align 8, !tbaa !9
  %283 = load i64, ptr %29, align 8, !tbaa !9
  %284 = icmp ult i64 %282, %283
  br i1 %284, label %287, label %285

285:                                              ; preds = %275
  call void @LogAssertFailure(i64 noundef 479, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.39)
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str, i32 noundef 479, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

286:                                              ; No predecessors!
  br label %287

287:                                              ; preds = %286, %275
  %288 = phi i1 [ true, %275 ], [ false, %286 ]
  %289 = load i64, ptr %35, align 8, !tbaa !9
  %290 = icmp ne i64 0, %289
  br i1 %290, label %291, label %338

291:                                              ; preds = %287
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = icmp eq ptr null, %292
  br i1 %293, label %294, label %303

294:                                              ; preds = %291
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %295, align 8, !tbaa !9
  br label %296

296:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 1, ptr %36, align 4, !tbaa !11
  %297 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %298 = icmp sle i32 1, %297
  br i1 %298, label %299, label %300

299:                                              ; preds = %296
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_9)
  br label %300

300:                                              ; preds = %299, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %301

301:                                              ; preds = %300
  br label %302

302:                                              ; preds = %301
  store i32 -3, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %347

303:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %304 = load i8, ptr %30, align 1, !tbaa !15, !range !17, !noundef !18
  %305 = trunc i8 %304 to i1
  %306 = zext i1 %305 to i64
  %307 = select i1 %305, i64 0, i64 1
  store i64 %307, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %308 = load ptr, ptr %18, align 8, !tbaa !5
  %309 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %308)
  %310 = load i64, ptr %28, align 8, !tbaa !9
  %311 = call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor15GetSplitPointerEm(ptr noundef nonnull align 8 dereferenceable(72) %309, i64 noundef %310)
  store ptr %311, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %312 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %312, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = load i64, ptr %35, align 8, !tbaa !9
  %315 = getelementptr inbounds i64, ptr %313, i64 %314
  store ptr %315, ptr %40, align 8, !tbaa !5
  br label %316

316:                                              ; preds = %333, %303
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %317 = load ptr, ptr %38, align 8, !tbaa !5
  %318 = load i64, ptr %317, align 8, !tbaa !9
  %319 = load i64, ptr %37, align 8, !tbaa !9
  %320 = add i64 %318, %319
  store i64 %320, ptr %41, align 8, !tbaa !9
  %321 = load ptr, ptr %38, align 8, !tbaa !5
  %322 = getelementptr inbounds i64, ptr %321, i32 1
  store ptr %322, ptr %38, align 8, !tbaa !5
  %323 = load i64, ptr %41, align 8, !tbaa !9
  %324 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorIlmEENSt9enable_ifIXaaaasr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueltclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS3_EE3maxEEbE4typeES3_(i64 noundef %323) #8
  br i1 %324, label %325, label %327

325:                                              ; preds = %316
  call void @LogAssertFailure(i64 noundef 498, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.41)
  call void @__assert_fail(ptr noundef @.str.42, ptr noundef @.str, i32 noundef 498, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

326:                                              ; No predecessors!
  br label %327

327:                                              ; preds = %326, %316
  %328 = phi i1 [ true, %316 ], [ false, %326 ]
  %329 = load i64, ptr %41, align 8, !tbaa !9
  %330 = load ptr, ptr %39, align 8, !tbaa !5
  store i64 %329, ptr %330, align 8, !tbaa !9
  %331 = load ptr, ptr %39, align 8, !tbaa !5
  %332 = getelementptr inbounds i64, ptr %331, i32 1
  store ptr %332, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %333

333:                                              ; preds = %327
  %334 = load ptr, ptr %40, align 8, !tbaa !5
  %335 = load ptr, ptr %39, align 8, !tbaa !5
  %336 = icmp ne ptr %334, %335
  br i1 %336, label %316, label %337, !llvm.loop !19

337:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %338

338:                                              ; preds = %337, %287
  %339 = load i64, ptr %35, align 8, !tbaa !9
  %340 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorIlmEENSt9enable_ifIXaaaasr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueltclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS3_EE3maxEEbE4typeES3_(i64 noundef %339) #8
  br i1 %340, label %341, label %343

341:                                              ; preds = %338
  call void @LogAssertFailure(i64 noundef 504, ptr noundef @.str, ptr noundef @__func__.GetTermUpdateSplits, ptr noundef @.str.43)
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str, i32 noundef 504, ptr noundef @__PRETTY_FUNCTION__.GetTermUpdateSplits) #9
  unreachable

342:                                              ; No predecessors!
  br label %343

343:                                              ; preds = %342, %338
  %344 = phi i1 [ true, %338 ], [ false, %342 ]
  %345 = load i64, ptr %35, align 8, !tbaa !9
  %346 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 %345, ptr %346, align 8, !tbaa !9
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %347

347:                                              ; preds = %343, %302
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %348

348:                                              ; preds = %347, %268, %255, %242
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %349

349:                                              ; preds = %348, %184, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %350

350:                                              ; preds = %349, %130, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %351

351:                                              ; preds = %350, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %352

352:                                              ; preds = %351, %83
  %353 = load i32, ptr %5, align 4
  ret i32 %353

354:                                              ; preds = %68
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountDimensionsEv(ptr noundef nonnull align 8 dereferenceable(776)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN15FeatureBoosting12GetCountBinsEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN14NAMESPACE_MAIN6Tensor14GetCountSlicesEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN6Tensor15GetSplitPointerEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) #7 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { alwaysinline 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 = { 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 #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !6, i64 0}
!14 = !{!"_ZTSN14NAMESPACE_MAIN11TermFeatureE", !6, i64 0, !10, i64 8, !10, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.NAMESPACE_MAIN::TermFeature" = type { ptr, i64, i64 }

@g_traceLevel = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE = external hidden local_unnamed_addr global i32, align 4
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage = external hidden constant [93 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_0 = external hidden constant [61 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_1 = external hidden constant [65 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_2 = external hidden constant [49 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_3 = external hidden constant [72 x i8], align 16
@__func__.GetTermUpdateSplits = external hidden unnamed_addr constant [20 x i8], align 1
@__PRETTY_FUNCTION__.GetTermUpdateSplits = external hidden unnamed_addr constant [88 x i8], align 1
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_4 = external hidden constant [58 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_5 = external hidden constant [85 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_6 = external hidden constant [49 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_7 = external hidden constant [75 x i8], align 16
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_8 = external hidden constant [72 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [19 x i8], align 1
@_ZZ19GetTermUpdateSplitsE13LOG__sMessage_9 = external hidden constant [54 x i8], align 16
@.str.41 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [36 x i8], align 1

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell25GetBoosterShellFromHandleEP14_BoosterHandle(ptr noundef) local_unnamed_addr #1 align 2

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

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

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

declare void @LogAssertFailure(i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520)) local_unnamed_addr #4 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 #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local range(i32 -3, 1) i32 @GetTermUpdateSplits(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #5 {
  %5 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 2
  br i1 %6, label %7, label %.critedge

7:                                                ; preds = %4
  %8 = icmp eq i32 %5, 3
  br i1 %8, label %9, label %14

9:                                                ; preds = %7
  %10 = load i32, ptr @_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE, align 4, !tbaa !5
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %.critedge

12:                                               ; preds = %9
  %13 = add nsw i32 %10, -1
  store i32 %13, ptr @_ZN14NAMESPACE_MAINL25g_cLogGetTermUpdateSplitsE, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %12, %7
  %.180 = phi i32 [ 3, %12 ], [ 4, %7 ]
  tail call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef %.180, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage, ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3)
  br label %.critedge

.critedge:                                        ; preds = %14, %9, %4
  %15 = icmp eq ptr %2, null
  br i1 %15, label %16, label %20

16:                                               ; preds = %.critedge
  %17 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %18 = icmp sgt i32 %17, 0
  br i1 %18, label %19, label %133

19:                                               ; preds = %16
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_0)
  br label %133

20:                                               ; preds = %.critedge
  %21 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell25GetBoosterShellFromHandleEP14_BoosterHandle(ptr noundef %0)
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %20
  store i64 0, ptr %2, align 8, !tbaa !9
  br label %133

24:                                               ; preds = %20
  %25 = tail call noundef i64 @_ZN14NAMESPACE_MAIN12BoosterShell12GetTermIndexEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
  switch i64 %25, label %39 [
    i64 -1, label %26
    i64 -2, label %30
  ]

26:                                               ; preds = %24
  store i64 0, ptr %2, align 8, !tbaa !9
  %27 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %133

29:                                               ; preds = %26
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_1)
  br label %133

30:                                               ; preds = %24
  %31 = load i64, ptr %2, align 8, !tbaa !9
  store i64 0, ptr %2, align 8, !tbaa !9
  %.not101 = icmp eq i64 %31, 0
  %32 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  br i1 %.not101, label %36, label %33

33:                                               ; preds = %30
  %34 = icmp sgt i32 %32, 0
  br i1 %34, label %35, label %133

35:                                               ; preds = %33
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_2)
  br label %133

36:                                               ; preds = %30
  %37 = icmp sgt i32 %32, 1
  br i1 %37, label %38, label %133

38:                                               ; preds = %36
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_3)
  br label %133

39:                                               ; preds = %24
  %40 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell14GetBoosterCoreEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
  %.not = icmp eq ptr %40, null
  br i1 %.not, label %41, label %42

41:                                               ; preds = %39
  tail call void @LogAssertFailure(i64 noundef 429, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.1)
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 429, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

42:                                               ; preds = %39
  %43 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore13GetCountTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %40)
  %44 = icmp ult i64 %25, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  tail call void @LogAssertFailure(i64 noundef 430, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.7)
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str, i32 noundef 430, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

46:                                               ; preds = %42
  %47 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %40)
  %.not94 = icmp eq ptr %47, null
  br i1 %.not94, label %48, label %49

48:                                               ; preds = %46
  tail call void @LogAssertFailure(i64 noundef 431, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.9)
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 431, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

49:                                               ; preds = %46
  %50 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %40)
  %51 = getelementptr inbounds ptr, ptr %50, i64 %25
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = icmp slt i64 %1, 0
  br i1 %53, label %54, label %58

54:                                               ; preds = %49
  store i64 0, ptr %2, align 8, !tbaa !9
  %55 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %57, label %133

57:                                               ; preds = %54
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_4)
  br label %133

58:                                               ; preds = %49
  %59 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountDimensionsEv(ptr noundef nonnull align 8 dereferenceable(776) %52) #9
  %.not95 = icmp sgt i64 %59, %1
  br i1 %.not95, label %64, label %60

60:                                               ; preds = %58
  store i64 0, ptr %2, align 8, !tbaa !9
  %61 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %133

63:                                               ; preds = %60
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_5)
  br label %133

64:                                               ; preds = %58
  %65 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %52) #9
  %66 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %65, i64 %1
  %67 = load ptr, ptr %66, align 8, !tbaa !13
  %68 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN15FeatureBoosting12GetCountBinsEv(ptr noundef nonnull align 8 dereferenceable(16) %67) #9
  %69 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %52) #9
  %70 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %69, i64 %1
  %71 = load ptr, ptr %70, align 8, !tbaa !13
  %72 = tail call noundef zeroext i1 @_ZNK14NAMESPACE_MAIN15FeatureBoosting9IsMissingEv(ptr noundef nonnull align 8 dereferenceable(16) %71) #9
  %73 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN4Term15GetTermFeaturesEv(ptr noundef nonnull align 8 dereferenceable(776) %52) #9
  %74 = getelementptr inbounds %"struct.NAMESPACE_MAIN::TermFeature", ptr %73, i64 %1
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = tail call noundef zeroext i1 @_ZNK14NAMESPACE_MAIN15FeatureBoosting8IsUnseenEv(ptr noundef nonnull align 8 dereferenceable(16) %75) #9
  %not. = xor i1 %72, true
  %77 = zext i1 %not. to i64
  %78 = add i64 %68, %77
  %not.96 = xor i1 %76, true
  %79 = zext i1 %not.96 to i64
  %80 = add i64 %78, %79
  %81 = tail call i64 @llvm.umax.i64(i64 %80, i64 1)
  %82 = load i64, ptr %2, align 8, !tbaa !9
  %83 = add i64 %81, -1
  %.not97 = icmp eq i64 %82, %83
  br i1 %.not97, label %88, label %84

84:                                               ; preds = %64
  store i64 0, ptr %2, align 8, !tbaa !9
  %85 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %87, label %133

87:                                               ; preds = %84
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_6)
  br label %133

88:                                               ; preds = %64
  %89 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %40)
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %95

91:                                               ; preds = %88
  store i64 0, ptr %2, align 8, !tbaa !9
  %92 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %94, label %133

94:                                               ; preds = %91
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_7)
  br label %133

95:                                               ; preds = %88
  %96 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountTensorBinsEv(ptr noundef nonnull align 8 dereferenceable(776) %52) #9
  %97 = icmp eq i64 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  store i64 0, ptr %2, align 8, !tbaa !9
  %99 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %100 = icmp sgt i32 %99, 1
  br i1 %100, label %101, label %133

101:                                              ; preds = %98
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_8)
  br label %133

102:                                              ; preds = %95
  %103 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
  %.not98 = icmp eq ptr %103, null
  br i1 %.not98, label %104, label %105

104:                                              ; preds = %102
  tail call void @LogAssertFailure(i64 noundef 477, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.3)
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 477, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

105:                                              ; preds = %102
  %106 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
  %107 = tail call noundef i64 @_ZN14NAMESPACE_MAIN6Tensor14GetCountSlicesEm(ptr noundef nonnull align 8 dereferenceable(72) %106, i64 noundef %1)
  %108 = add i64 %107, -1
  %109 = icmp ult i64 %108, %81
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  tail call void @LogAssertFailure(i64 noundef 479, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.39)
  tail call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str, i32 noundef 479, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

111:                                              ; preds = %105
  %.not99 = icmp eq i64 %108, 0
  br i1 %.not99, label %.loopexit, label %112

112:                                              ; preds = %111
  %113 = icmp eq ptr %3, null
  br i1 %113, label %114, label %118

114:                                              ; preds = %112
  store i64 0, ptr %2, align 8, !tbaa !9
  %115 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %116 = icmp sgt i32 %115, 0
  br i1 %116, label %117, label %133

117:                                              ; preds = %114
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ19GetTermUpdateSplitsE13LOG__sMessage_9)
  br label %133

118:                                              ; preds = %112
  %119 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %21)
  %120 = tail call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor15GetSplitPointerEm(ptr noundef nonnull align 8 dereferenceable(72) %119, i64 noundef %1)
  %121 = getelementptr inbounds i64, ptr %3, i64 %108
  br label %122

122:                                              ; preds = %127, %118
  %.082 = phi ptr [ %120, %118 ], [ %128, %127 ]
  %.081 = phi ptr [ %3, %118 ], [ %129, %127 ]
  %123 = load i64, ptr %.082, align 8, !tbaa !9
  %124 = add i64 %123, %77
  %125 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorIlmEENSt9enable_ifIXaaaasr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueltclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS3_EE3maxEEbE4typeES3_(i64 noundef %124) #9
  br i1 %125, label %126, label %127

126:                                              ; preds = %122
  tail call void @LogAssertFailure(i64 noundef 498, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.41)
  tail call void @__assert_fail(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str, i32 noundef 498, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

127:                                              ; preds = %122
  %128 = getelementptr inbounds i8, ptr %.082, i64 8
  store i64 %124, ptr %.081, align 8, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %.081, i64 8
  %.not100 = icmp eq ptr %121, %129
  br i1 %.not100, label %.loopexit, label %122, !llvm.loop !15

.loopexit:                                        ; preds = %127, %111
  %130 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL14IsConvertErrorIlmEENSt9enable_ifIXaaaasr3std9is_signedIT_EE5valuentsr3std9is_signedIT0_EE5valueltclsr3std14numeric_limitsIS2_EE3maxEclsr3std14numeric_limitsIS3_EE3maxEEbE4typeES3_(i64 noundef %108) #9
  br i1 %130, label %131, label %132

131:                                              ; preds = %.loopexit
  tail call void @LogAssertFailure(i64 noundef 504, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.GetTermUpdateSplits, ptr noundef nonnull @.str.43)
  tail call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str, i32 noundef 504, ptr noundef nonnull @__PRETTY_FUNCTION__.GetTermUpdateSplits) #8
  unreachable

132:                                              ; preds = %.loopexit
  store i64 %108, ptr %2, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %23, %57, %54, %63, %60, %132, %117, %114, %98, %101, %91, %94, %84, %87, %35, %33, %38, %36, %26, %29, %16, %19
  %.6 = phi i32 [ -3, %19 ], [ -3, %16 ], [ -3, %23 ], [ -3, %29 ], [ -3, %26 ], [ -3, %35 ], [ -3, %33 ], [ 0, %38 ], [ 0, %36 ], [ -3, %57 ], [ -3, %54 ], [ -3, %63 ], [ -3, %60 ], [ -3, %87 ], [ -3, %84 ], [ 0, %94 ], [ 0, %91 ], [ 0, %101 ], [ 0, %98 ], [ 0, %132 ], [ -3, %117 ], [ -3, %114 ]
  ret i32 %.6
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN14NAMESPACE_MAIN6Tensor14GetCountSlicesEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN14NAMESPACE_MAIN6Tensor15GetSplitPointerEm(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) local_unnamed_addr #6 align 2

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

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

attributes #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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN14NAMESPACE_MAIN11TermFeatureE", !12, i64 0, !10, i64 8, !10, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass