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

; 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::DataSetBoosting" = type { i64, i64, ptr, ptr, ptr }
%"struct.NAMESPACE_MAIN::DataSubsetBoosting" = type { i64, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ObjectiveWrapper = type { ptr, ptr, ptr, ptr, i32, i32, i32, double, double, double, double, double, double, double, double, i32, i64, i64, i64, i32, ptr }

@g_traceLevel = external global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage = external hidden constant [42 x i8], align 16
@__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_ = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_ = external hidden unnamed_addr constant [150 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_0 = external hidden constant [121 x i8], align 16
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_1 = external hidden constant [66 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_2 = external hidden constant [41 x i8], align 16

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL17StopClangAnalysisv() #4

declare ptr @AlignedAlloc(i64 noundef) #1

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

37:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 3, ptr %14, align 4, !tbaa !12
  %38 = load i32, ptr @g_traceLevel, align 4, !tbaa !12
  %39 = icmp sle i32 3, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage)
  br label %41

41:                                               ; preds = %40, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = icmp ule i64 1, %43
  br i1 %44, label %47, label %45

45:                                               ; preds = %42
  call void @LogAssertFailure(i64 noundef 105, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.3)
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 105, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

46:                                               ; No predecessors!
  br label %47

47:                                               ; preds = %46, %42
  %48 = phi i1 [ true, %42 ], [ false, %46 ]
  %49 = load i8, ptr %11, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 -1, %50
  br i1 %51, label %58, label %52

52:                                               ; preds = %47
  %53 = load i8, ptr %11, align 1, !tbaa !11
  %54 = sext i8 %53 to i32
  %55 = icmp eq i32 1, %54
  br i1 %55, label %58, label %56

56:                                               ; preds = %52
  call void @LogAssertFailure(i64 noundef 106, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 106, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

57:                                               ; No predecessors!
  br label %58

58:                                               ; preds = %57, %52, %47
  %59 = phi i1 [ true, %52 ], [ true, %47 ], [ false, %57 ]
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = icmp ne ptr null, %60
  br i1 %61, label %68, label %62

62:                                               ; preds = %58
  %63 = load i8, ptr %11, align 1, !tbaa !11
  %64 = sext i8 %63 to i32
  %65 = icmp eq i32 1, %64
  br i1 %65, label %68, label %66

66:                                               ; preds = %62
  call void @LogAssertFailure(i64 noundef 107, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.15)
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str, i32 noundef 107, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

67:                                               ; No predecessors!
  br label %68

68:                                               ; preds = %67, %62, %58
  %69 = phi i1 [ true, %62 ], [ true, %58 ], [ false, %67 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %70 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSetBoosting", ptr %36, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !14
  store ptr %71, ptr %15, align 8, !tbaa !5
  %72 = load ptr, ptr %15, align 8, !tbaa !5
  %73 = icmp ne ptr null, %72
  br i1 %73, label %76, label %74

74:                                               ; preds = %68
  call void @LogAssertFailure(i64 noundef 110, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.17)
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str, i32 noundef 110, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

75:                                               ; No predecessors!
  br label %76

76:                                               ; preds = %75, %68
  %77 = phi i1 [ true, %68 ], [ false, %75 ]
  %78 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSetBoosting", ptr %36, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !16
  %80 = icmp ule i64 1, %79
  br i1 %80, label %83, label %81

81:                                               ; preds = %76
  call void @LogAssertFailure(i64 noundef 111, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.7)
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str, i32 noundef 111, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

82:                                               ; No predecessors!
  br label %83

83:                                               ; preds = %82, %76
  %84 = phi i1 [ true, %76 ], [ false, %82 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSetBoosting", ptr %36, i32 0, i32 1
  %87 = load i64, ptr %86, align 8, !tbaa !16
  %88 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %85, i64 %87
  store ptr %88, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %89, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %90, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %91 = load i8, ptr %11, align 1, !tbaa !11
  %92 = sext i8 %91 to i32
  %93 = icmp slt i32 %92, 0
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %20, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !11
  br label %95

95:                                               ; preds = %321, %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %96, i32 0, i32 0
  %98 = load i64, ptr %97, align 8, !tbaa !19
  store i64 %98, ptr %22, align 8, !tbaa !9
  %99 = load i64, ptr %22, align 8, !tbaa !9
  %100 = icmp ule i64 1, %99
  br i1 %100, label %103, label %101

101:                                              ; preds = %95
  call void @LogAssertFailure(i64 noundef 121, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.9)
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 121, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %95
  %104 = phi i1 [ true, %95 ], [ false, %102 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = call noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56) %105)
  %107 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %106, i32 0, i32 16
  %108 = load i64, ptr %107, align 8, !tbaa !21
  store i64 %108, ptr %23, align 8, !tbaa !9
  %109 = load i64, ptr %23, align 8, !tbaa !9
  %110 = icmp ule i64 1, %109
  br i1 %110, label %113, label %111

111:                                              ; preds = %103
  call void @LogAssertFailure(i64 noundef 124, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.19)
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 124, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %103
  %114 = phi i1 [ true, %103 ], [ false, %112 ]
  %115 = load i64, ptr %22, align 8, !tbaa !9
  %116 = load i64, ptr %23, align 8, !tbaa !9
  %117 = urem i64 %115, %116
  %118 = icmp eq i64 0, %117
  br i1 %118, label %121, label %119

119:                                              ; preds = %113
  call void @LogAssertFailure(i64 noundef 125, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.21)
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str, i32 noundef 125, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

120:                                              ; No predecessors!
  br label %121

121:                                              ; preds = %120, %113
  %122 = phi i1 [ true, %113 ], [ false, %120 ]
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  %126 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %125, i32 0, i32 17
  %127 = load i64, ptr %126, align 8, !tbaa !25
  %128 = load i64, ptr %9, align 8, !tbaa !9
  %129 = load i64, ptr %22, align 8, !tbaa !9
  %130 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef %127, i64 noundef %128, i64 noundef %129) #7
  br i1 %130, label %131, label %139

131:                                              ; preds = %121
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 2, ptr %24, align 4, !tbaa !12
  %133 = load i32, ptr @g_traceLevel, align 4, !tbaa !12
  %134 = icmp sle i32 2, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %132
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_0)
  br label %136

136:                                              ; preds = %135, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %318

139:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %140, i32 0, i32 1
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %142, i32 0, i32 17
  %144 = load i64, ptr %143, align 8, !tbaa !25
  %145 = load i64, ptr %9, align 8, !tbaa !9
  %146 = mul i64 %144, %145
  %147 = load i64, ptr %22, align 8, !tbaa !9
  %148 = mul i64 %146, %147
  store i64 %148, ptr %26, align 8, !tbaa !9
  br label %149

149:                                              ; preds = %139
  %150 = load i64, ptr %26, align 8, !tbaa !9
  %151 = icmp ne i64 0, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  call void @_ZL17StopClangAnalysisv() #7
  br label %153

153:                                              ; preds = %152, %149
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %156 = load i64, ptr %26, align 8, !tbaa !9
  %157 = call ptr @AlignedAlloc(i64 noundef %156)
  store ptr %157, ptr %27, align 8, !tbaa !5
  %158 = load ptr, ptr %27, align 8, !tbaa !5
  %159 = icmp eq ptr null, %158
  br i1 %159, label %160, label %168

160:                                              ; preds = %155
  br label %161

161:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 2, ptr %28, align 4, !tbaa !12
  %162 = load i32, ptr @g_traceLevel, align 4, !tbaa !12
  %163 = icmp sle i32 2, %162
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_1)
  br label %165

165:                                              ; preds = %164, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %317

168:                                              ; preds = %155
  %169 = load ptr, ptr %27, align 8, !tbaa !5
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %170, i32 0, i32 3
  store ptr %169, ptr %171, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %172 = load ptr, ptr %27, align 8, !tbaa !5
  %173 = load i64, ptr %26, align 8, !tbaa !9
  %174 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %172, i64 noundef %173) #7
  store ptr %174, ptr %29, align 8, !tbaa !5
  br label %175

175:                                              ; preds = %310, %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %295, %175
  %177 = load i8, ptr %21, align 1, !tbaa !11
  %178 = sext i8 %177 to i32
  %179 = icmp eq i32 0, %178
  br i1 %179, label %180, label %224

180:                                              ; preds = %176
  store i8 1, ptr %21, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %181 = load i64, ptr %9, align 8, !tbaa !9
  store i64 %181, ptr %31, align 8, !tbaa !9
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = icmp ne ptr null, %182
  br i1 %183, label %184, label %212

184:                                              ; preds = %180
  store i64 0, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #7
  br label %185

185:                                              ; preds = %203, %184
  br label %186

186:                                              ; preds = %191, %185
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = load i8, ptr %187, align 1, !tbaa !11
  store i8 %188, ptr %21, align 1, !tbaa !11
  %189 = load ptr, ptr %17, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i32 1
  store ptr %190, ptr %17, align 8, !tbaa !5
  br label %191

191:                                              ; preds = %186
  %192 = load i8, ptr %21, align 1, !tbaa !11
  %193 = sext i8 %192 to i32
  %194 = icmp eq i32 0, %193
  br i1 %194, label %186, label %195, !llvm.loop !27

195:                                              ; preds = %191
  %196 = load i8, ptr %21, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp slt i32 %197, 0
  %199 = zext i1 %198 to i8
  store i8 %199, ptr %32, align 1, !tbaa !17
  %200 = load i64, ptr %9, align 8, !tbaa !9
  %201 = load i64, ptr %31, align 8, !tbaa !9
  %202 = add i64 %201, %200
  store i64 %202, ptr %31, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %195
  %204 = load i8, ptr %20, align 1, !tbaa !17, !range !29, !noundef !30
  %205 = trunc i8 %204 to i1
  %206 = zext i1 %205 to i32
  %207 = load i8, ptr %32, align 1, !tbaa !17, !range !29, !noundef !30
  %208 = trunc i8 %207 to i1
  %209 = zext i1 %208 to i32
  %210 = icmp ne i32 %206, %209
  br i1 %210, label %185, label %211, !llvm.loop !31

211:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #7
  br label %212

212:                                              ; preds = %211, %180
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = icmp ne ptr null, %213
  br i1 %214, label %215, label %223

215:                                              ; preds = %212
  %216 = load i64, ptr %31, align 8, !tbaa !9
  %217 = load ptr, ptr %19, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i64 %216
  store ptr %218, ptr %19, align 8, !tbaa !5
  %219 = load ptr, ptr %19, align 8, !tbaa !5
  %220 = load i64, ptr %9, align 8, !tbaa !9
  %221 = sub i64 0, %220
  %222 = getelementptr inbounds double, ptr %219, i64 %221
  store ptr %222, ptr %18, align 8, !tbaa !5
  br label %223

223:                                              ; preds = %215, %212
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %224

224:                                              ; preds = %223, %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %282, %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  store double 0.000000e+00, ptr %34, align 8, !tbaa !32
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = icmp ne ptr null, %226
  br i1 %227, label %228, label %233

228:                                              ; preds = %225
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = load i64, ptr %33, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !32
  store double %232, ptr %34, align 8, !tbaa !32
  br label %233

233:                                              ; preds = %228, %225
  %234 = load ptr, ptr %18, align 8, !tbaa !5
  %235 = icmp ne ptr null, %234
  br i1 %235, label %236, label %243

236:                                              ; preds = %233
  %237 = load ptr, ptr %18, align 8, !tbaa !5
  %238 = load i64, ptr %33, align 8, !tbaa !9
  %239 = getelementptr inbounds double, ptr %237, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !32
  %241 = load double, ptr %34, align 8, !tbaa !32
  %242 = fadd double %241, %240
  store double %242, ptr %34, align 8, !tbaa !32
  br label %243

243:                                              ; preds = %236, %233
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %244, i32 0, i32 1
  %246 = load ptr, ptr %245, align 8, !tbaa !24
  %247 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %246, i32 0, i32 17
  %248 = load i64, ptr %247, align 8, !tbaa !25
  %249 = icmp eq i64 8, %248
  br i1 %249, label %250, label %259

250:                                              ; preds = %243
  %251 = load double, ptr %34, align 8, !tbaa !32
  %252 = load ptr, ptr %27, align 8, !tbaa !5
  %253 = load i64, ptr %33, align 8, !tbaa !9
  %254 = load i64, ptr %23, align 8, !tbaa !9
  %255 = mul i64 %253, %254
  %256 = load i64, ptr %30, align 8, !tbaa !9
  %257 = add i64 %255, %256
  %258 = getelementptr inbounds double, ptr %252, i64 %257
  store double %251, ptr %258, align 8, !tbaa !32
  br label %279

259:                                              ; preds = %243
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %260, i32 0, i32 1
  %262 = load ptr, ptr %261, align 8, !tbaa !24
  %263 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %262, i32 0, i32 17
  %264 = load i64, ptr %263, align 8, !tbaa !25
  %265 = icmp eq i64 4, %264
  br i1 %265, label %268, label %266

266:                                              ; preds = %259
  call void @LogAssertFailure(i64 noundef 181, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.23)
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 181, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

267:                                              ; No predecessors!
  br label %268

268:                                              ; preds = %267, %259
  %269 = phi i1 [ true, %259 ], [ false, %267 ]
  %270 = load double, ptr %34, align 8, !tbaa !32
  %271 = fptrunc double %270 to float
  %272 = load ptr, ptr %27, align 8, !tbaa !5
  %273 = load i64, ptr %33, align 8, !tbaa !9
  %274 = load i64, ptr %23, align 8, !tbaa !9
  %275 = mul i64 %273, %274
  %276 = load i64, ptr %30, align 8, !tbaa !9
  %277 = add i64 %275, %276
  %278 = getelementptr inbounds float, ptr %272, i64 %277
  store float %271, ptr %278, align 4, !tbaa !33
  br label %279

279:                                              ; preds = %268, %250
  %280 = load i64, ptr %33, align 8, !tbaa !9
  %281 = add i64 %280, 1
  store i64 %281, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  br label %282

282:                                              ; preds = %279
  %283 = load i64, ptr %9, align 8, !tbaa !9
  %284 = load i64, ptr %33, align 8, !tbaa !9
  %285 = icmp ne i64 %283, %284
  br i1 %285, label %225, label %286, !llvm.loop !35

286:                                              ; preds = %282
  %287 = load i8, ptr %11, align 1, !tbaa !11
  %288 = sext i8 %287 to i32
  %289 = load i8, ptr %21, align 1, !tbaa !11
  %290 = sext i8 %289 to i32
  %291 = sub nsw i32 %290, %288
  %292 = trunc i32 %291 to i8
  store i8 %292, ptr %21, align 1, !tbaa !11
  %293 = load i64, ptr %30, align 8, !tbaa !9
  %294 = add i64 %293, 1
  store i64 %294, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %295

295:                                              ; preds = %286
  %296 = load i64, ptr %23, align 8, !tbaa !9
  %297 = load i64, ptr %30, align 8, !tbaa !9
  %298 = icmp ne i64 %296, %297
  br i1 %298, label %176, label %299, !llvm.loop !36

299:                                              ; preds = %295
  %300 = load ptr, ptr %27, align 8, !tbaa !5
  %301 = load i64, ptr %9, align 8, !tbaa !9
  %302 = load ptr, ptr %15, align 8, !tbaa !5
  %303 = call noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56) %302)
  %304 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %303, i32 0, i32 17
  %305 = load i64, ptr %304, align 8, !tbaa !25
  %306 = mul i64 %301, %305
  %307 = load i64, ptr %23, align 8, !tbaa !9
  %308 = mul i64 %306, %307
  %309 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %300, i64 noundef %308) #7
  store ptr %309, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %310

310:                                              ; preds = %299
  %311 = load ptr, ptr %29, align 8, !tbaa !5
  %312 = load ptr, ptr %27, align 8, !tbaa !5
  %313 = icmp ne ptr %311, %312
  br i1 %313, label %175, label %314, !llvm.loop !37

314:                                              ; preds = %310
  %315 = load ptr, ptr %15, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %315, i32 1
  store ptr %316, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  store i32 0, ptr %25, align 4
  br label %317

317:                                              ; preds = %314, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %318

318:                                              ; preds = %317, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %319 = load i32, ptr %25, align 4
  switch i32 %319, label %340 [
    i32 0, label %320
  ]

320:                                              ; preds = %318
  br label %321

321:                                              ; preds = %320
  %322 = load ptr, ptr %16, align 8, !tbaa !5
  %323 = load ptr, ptr %15, align 8, !tbaa !5
  %324 = icmp ne ptr %322, %323
  br i1 %324, label %95, label %325, !llvm.loop !38

325:                                              ; preds = %321
  %326 = load i8, ptr %21, align 1, !tbaa !11
  %327 = sext i8 %326 to i32
  %328 = icmp eq i32 0, %327
  br i1 %328, label %331, label %329

329:                                              ; preds = %325
  call void @LogAssertFailure(i64 noundef 198, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef @.str.25)
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 198, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #8
  unreachable

330:                                              ; No predecessors!
  br label %331

331:                                              ; preds = %330, %325
  %332 = phi i1 [ true, %325 ], [ false, %330 ]
  br label %333

333:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 3, ptr %35, align 4, !tbaa !12
  %334 = load i32, ptr @g_traceLevel, align 4, !tbaa !12
  %335 = icmp sle i32 3, %334
  br i1 %335, label %336, label %337

336:                                              ; preds = %333
  call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_2)
  br label %337

337:                                              ; preds = %336, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  store i32 0, ptr %7, align 4
  store i32 1, ptr %25, align 4
  br label %340

340:                                              ; preds = %339, %318
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %341 = load i32, ptr %7, align 4
  ret i32 %341
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56)) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef, i64 noundef) #3

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 = { 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 #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 = { 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 #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 = { nounwind }
attributes #8 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"_ZTSN14NAMESPACE_MAIN15DataSetBoostingE", !10, i64 0, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!16 = !{!15, !10, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSN14NAMESPACE_MAIN18DataSubsetBoostingE", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!21 = !{!22, !10, i64 120}
!22 = !{!"_ZTS16ObjectiveWrapper", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !23, i64 48, !23, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !23, i64 88, !23, i64 96, !23, i64 104, !13, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !13, i64 144, !6, i64 152}
!23 = !{!"double", !7, i64 0}
!24 = !{!20, !6, i64 8}
!25 = !{!22, !10, i64 128}
!26 = !{!20, !6, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !28}
!32 = !{!23, !23, i64 0}
!33 = !{!34, !34, i64 0}
!34 = !{!"float", !7, i64 0}
!35 = distinct !{!35, !28}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}


; 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::DataSubsetBoosting" = type { i64, ptr, ptr, ptr, ptr, ptr, ptr }

@g_traceLevel = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [23 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage = external hidden constant [42 x i8], align 16
@__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_ = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_ = external hidden unnamed_addr constant [150 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [35 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_0 = external hidden constant [121 x i8], align 16
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_1 = external hidden constant [66 x i8], align 16
@.str.23 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_2 = external hidden constant [41 x i8], align 16

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL17StopClangAnalysisv() local_unnamed_addr #3

declare ptr @AlignedAlloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, i64 noundef %1, ptr noundef readonly %2, i8 noundef signext %3, ptr noundef readonly %4, ptr noundef readonly %5) local_unnamed_addr #4 align 2 {
  %7 = ptrtoint ptr %2 to i64
  %8 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 2
  br i1 %9, label %10, label %11

10:                                               ; preds = %6
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage)
  br label %11

11:                                               ; preds = %10, %6
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %12, label %13

12:                                               ; preds = %11
  tail call void @LogAssertFailure(i64 noundef 105, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.3)
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 105, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

13:                                               ; preds = %11
  switch i8 %3, label %14 [
    i8 -1, label %15
    i8 1, label %15
  ]

14:                                               ; preds = %13
  tail call void @LogAssertFailure(i64 noundef 106, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.13)
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 106, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

15:                                               ; preds = %13, %13
  %16 = icmp eq i8 %3, 1
  %17 = icmp ne ptr %4, null
  %or.cond5 = or i1 %16, %17
  br i1 %or.cond5, label %19, label %18

18:                                               ; preds = %15
  tail call void @LogAssertFailure(i64 noundef 107, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.15)
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 107, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %.not138 = icmp eq ptr %21, null
  br i1 %.not138, label %22, label %23

22:                                               ; preds = %19
  tail call void @LogAssertFailure(i64 noundef 110, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.17)
  tail call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 110, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load i64, ptr %24, align 8, !tbaa !13
  %.not139 = icmp eq i64 %25, 0
  br i1 %.not139, label %26, label %27

26:                                               ; preds = %23
  tail call void @LogAssertFailure(i64 noundef 111, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.7)
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str, i32 noundef 111, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetBoosting", ptr %21, i64 %25
  %.not147 = icmp eq ptr %2, null
  %29 = sub i64 0, %1
  %xtraiter = and i64 %1, 1
  %30 = icmp eq i64 %1, 1
  %unroll_iter = and i64 %1, -2
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check = icmp ult i64 %1, 4
  %n.vec221 = and i64 %1, -4
  %cmp.n227 = icmp eq i64 %n.vec221, %1
  %xtraiter246 = and i64 %1, 3
  %lcmp.mod247.not = icmp eq i64 %xtraiter246, 0
  %n.vec = and i64 %1, -4
  %cmp.n = icmp eq i64 %n.vec, %1
  %xtraiter248 = and i64 %1, 3
  %lcmp.mod249.not = icmp eq i64 %xtraiter248, 0
  br label %31

31:                                               ; preds = %204, %27
  %.0119 = phi i8 [ 0, %27 ], [ %196, %204 ]
  %.0110 = phi ptr [ %5, %27 ], [ %.4114, %204 ]
  %.0102 = phi ptr [ null, %27 ], [ %.4106, %204 ]
  %.098 = phi ptr [ %4, %27 ], [ %.6, %204 ]
  %.092 = phi ptr [ %21, %27 ], [ %205, %204 ]
  %32 = load i64, ptr %.092, align 8, !tbaa !14
  %.not140 = icmp eq i64 %32, 0
  br i1 %.not140, label %33, label %34

33:                                               ; preds = %31
  tail call void @LogAssertFailure(i64 noundef 121, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.9)
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 121, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

34:                                               ; preds = %31
  %35 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56) %.092)
  %36 = getelementptr inbounds i8, ptr %35, i64 120
  %37 = load i64, ptr %36, align 8, !tbaa !16
  %.not141 = icmp eq i64 %37, 0
  br i1 %.not141, label %38, label %39

38:                                               ; preds = %34
  tail call void @LogAssertFailure(i64 noundef 124, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.19)
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 124, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

39:                                               ; preds = %34
  %40 = urem i64 %32, %37
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  tail call void @LogAssertFailure(i64 noundef 125, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.21)
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str, i32 noundef 125, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

43:                                               ; preds = %39
  %44 = getelementptr inbounds i8, ptr %.092, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds i8, ptr %45, i64 128
  %47 = load i64, ptr %46, align 8, !tbaa !20
  %48 = tail call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef %47, i64 noundef %1, i64 noundef %32) #7
  br i1 %48, label %49, label %53

49:                                               ; preds = %43
  %50 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %51 = icmp sgt i32 %50, 1
  br i1 %51, label %52, label %.thread

52:                                               ; preds = %49
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_0)
  br label %.thread

53:                                               ; preds = %43
  %54 = load ptr, ptr %44, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %54, i64 128
  %56 = load i64, ptr %55, align 8, !tbaa !20
  %57 = mul i64 %32, %1
  %58 = mul i64 %57, %56
  %.not142 = icmp eq i64 %58, 0
  br i1 %.not142, label %59, label %60

59:                                               ; preds = %53
  tail call void @_ZL17StopClangAnalysisv() #7
  br label %60

60:                                               ; preds = %59, %53
  %61 = tail call ptr @AlignedAlloc(i64 noundef %58)
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %67

63:                                               ; preds = %60
  %64 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 1
  br i1 %65, label %66, label %.thread

66:                                               ; preds = %63
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_1)
  br label %.thread

67:                                               ; preds = %60
  %68 = getelementptr inbounds i8, ptr %.092, i64 24
  store ptr %61, ptr %68, align 8, !tbaa !21
  %69 = tail call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %61, i64 noundef %58) #7
  %70 = mul i64 %37, %1
  %ident.check.not = icmp ne i64 %37, 1
  %or.cond230.not = or i1 %min.iters.check, %ident.check.not
  br label %71

71:                                               ; preds = %198, %67
  %.1120 = phi i8 [ %.0119, %67 ], [ %196, %198 ]
  %.1111 = phi ptr [ %.0110, %67 ], [ %.4114, %198 ]
  %.0109 = phi ptr [ %61, %67 ], [ %203, %198 ]
  %.1103 = phi ptr [ %.0102, %67 ], [ %.4106, %198 ]
  %.199 = phi ptr [ %.098, %67 ], [ %.6, %198 ]
  %.0109215 = ptrtoint ptr %.0109 to i64
  %72 = load ptr, ptr %44, align 8, !tbaa !19
  %73 = getelementptr inbounds i8, ptr %72, i64 128
  %74 = load i64, ptr %73, align 8, !tbaa !20
  %75 = sub i64 %.0109215, %7
  br label %76

76:                                               ; preds = %.split169.us, %71
  %.2121 = phi i8 [ %.1120, %71 ], [ %196, %.split169.us ]
  %.2112 = phi ptr [ %.1111, %71 ], [ %.4114, %.split169.us ]
  %.2104 = phi ptr [ %.1103, %71 ], [ %.4106, %.split169.us ]
  %.2100 = phi ptr [ %.199, %71 ], [ %.6, %.split169.us ]
  %.097 = phi i64 [ 0, %71 ], [ %197, %.split169.us ]
  %77 = shl i64 %.097, 3
  %78 = add i64 %75, %77
  %79 = icmp eq i8 %.2121, 0
  br i1 %79, label %80, label %89

80:                                               ; preds = %76
  %.not143 = icmp eq ptr %.2100, null
  br i1 %.not143, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %80, %85
  %.3101 = phi ptr [ %83, %85 ], [ %.2100, %80 ]
  %.095 = phi i64 [ %86, %85 ], [ 0, %80 ]
  br label %81

81:                                               ; preds = %81, %.preheader
  %.4 = phi ptr [ %.3101, %.preheader ], [ %83, %81 ]
  %82 = load i8, ptr %.4, align 1, !tbaa !22
  %83 = getelementptr inbounds i8, ptr %.4, i64 1
  %84 = icmp eq i8 %82, 0
  br i1 %84, label %81, label %85, !llvm.loop !23

85:                                               ; preds = %81
  %86 = add i64 %.095, %1
  %.not145.unshifted = xor i8 %82, %3
  %.not145 = icmp sgt i8 %.not145.unshifted, -1
  br i1 %.not145, label %.loopexit, label %.preheader, !llvm.loop !25

.loopexit:                                        ; preds = %85, %80
  %.3122 = phi i8 [ 1, %80 ], [ %82, %85 ]
  %.5 = phi ptr [ null, %80 ], [ %83, %85 ]
  %.196 = phi i64 [ %1, %80 ], [ %86, %85 ]
  %.not146 = icmp eq ptr %.2112, null
  %87 = getelementptr inbounds double, ptr %.2112, i64 %.196
  %88 = getelementptr inbounds double, ptr %87, i64 %29
  %.3113 = select i1 %.not146, ptr null, ptr %87
  %.3105 = select i1 %.not146, ptr %.2104, ptr %88
  br label %89

89:                                               ; preds = %.loopexit, %76
  %.4123 = phi i8 [ %.3122, %.loopexit ], [ %.2121, %76 ]
  %.4114 = phi ptr [ %.3113, %.loopexit ], [ %.2112, %76 ]
  %.4106 = phi ptr [ %.3105, %.loopexit ], [ %.2104, %76 ]
  %.6 = phi ptr [ %.5, %.loopexit ], [ %.2100, %76 ]
  %.not148 = icmp eq ptr %.4106, null
  br i1 %.not148, label %.split.us, label %.split

.split.us:                                        ; preds = %89
  switch i64 %74, label %.split167.us [
    i64 8, label %.split.us.split.us
    i64 4, label %.split.us.split.us170.preheader
  ]

.split.us.split.us170.preheader:                  ; preds = %.split.us
  br i1 %30, label %.split169.us.loopexit234.unr-lcssa, label %.split.us.split.us170

.split.us.split.us:                               ; preds = %.split.us
  br i1 %.not147, label %.split.us.split.us.split.us.preheader, label %.split.us.split.us.split.preheader

.split.us.split.us.split.preheader:               ; preds = %.split.us.split.us
  %diff.check = icmp ult i64 %78, 32
  %or.cond228 = or i1 %or.cond230.not, %diff.check
  br i1 %or.cond228, label %.split.us.split.us.split.preheader232, label %vector.body223

.split.us.split.us.split.preheader232:            ; preds = %middle.block216, %.split.us.split.us.split.preheader
  %.091.us.us.ph = phi i64 [ 0, %.split.us.split.us.split.preheader ], [ %n.vec221, %middle.block216 ]
  br i1 %lcmp.mod247.not, label %.split.us.split.us.split.prol.loopexit, label %.split.us.split.us.split.prol

.split.us.split.us.split.prol:                    ; preds = %.split.us.split.us.split.preheader232, %.split.us.split.us.split.prol
  %.091.us.us.prol = phi i64 [ %95, %.split.us.split.us.split.prol ], [ %.091.us.us.ph, %.split.us.split.us.split.preheader232 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.split.us.split.us.split.prol ], [ 0, %.split.us.split.us.split.preheader232 ]
  %90 = getelementptr inbounds double, ptr %2, i64 %.091.us.us.prol
  %91 = load double, ptr %90, align 8, !tbaa !26
  %92 = mul i64 %.091.us.us.prol, %37
  %93 = add i64 %92, %.097
  %94 = getelementptr inbounds double, ptr %.0109, i64 %93
  store double %91, ptr %94, align 8, !tbaa !26
  %95 = add i64 %.091.us.us.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter246
  br i1 %prol.iter.cmp.not, label %.split.us.split.us.split.prol.loopexit, label %.split.us.split.us.split.prol, !llvm.loop !27

.split.us.split.us.split.prol.loopexit:           ; preds = %.split.us.split.us.split.prol, %.split.us.split.us.split.preheader232
  %.091.us.us.unr = phi i64 [ %.091.us.us.ph, %.split.us.split.us.split.preheader232 ], [ %95, %.split.us.split.us.split.prol ]
  %96 = sub i64 %.091.us.us.ph, %1
  %97 = icmp ugt i64 %96, -4
  br i1 %97, label %.split169.us, label %.split.us.split.us.split

vector.body223:                                   ; preds = %.split.us.split.us.split.preheader, %vector.body223
  %index224 = phi i64 [ %index.next226, %vector.body223 ], [ 0, %.split.us.split.us.split.preheader ]
  %98 = getelementptr inbounds double, ptr %2, i64 %index224
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %wide.load = load <2 x double>, ptr %98, align 8, !tbaa !26
  %wide.load225 = load <2 x double>, ptr %99, align 8, !tbaa !26
  %100 = add i64 %index224, %.097
  %101 = getelementptr inbounds double, ptr %.0109, i64 %100
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  store <2 x double> %wide.load, ptr %101, align 8, !tbaa !26
  store <2 x double> %wide.load225, ptr %102, align 8, !tbaa !26
  %index.next226 = add nuw i64 %index224, 4
  %103 = icmp eq i64 %index.next226, %n.vec221
  br i1 %103, label %middle.block216, label %vector.body223, !llvm.loop !29

middle.block216:                                  ; preds = %vector.body223
  br i1 %cmp.n227, label %.split169.us, label %.split.us.split.us.split.preheader232

.split.us.split.us.split.us.preheader:            ; preds = %.split.us.split.us
  br i1 %or.cond230.not, label %.split.us.split.us.split.us.preheader231, label %vector.body

vector.body:                                      ; preds = %.split.us.split.us.split.us.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.split.us.split.us.split.us.preheader ]
  %104 = add i64 %index, %.097
  %105 = getelementptr inbounds double, ptr %.0109, i64 %104
  %106 = getelementptr inbounds i8, ptr %105, i64 16
  store <2 x double> zeroinitializer, ptr %105, align 8, !tbaa !26
  store <2 x double> zeroinitializer, ptr %106, align 8, !tbaa !26
  %index.next = add nuw i64 %index, 4
  %107 = icmp eq i64 %index.next, %n.vec
  br i1 %107, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.split169.us, label %.split.us.split.us.split.us.preheader231

.split.us.split.us.split.us.preheader231:         ; preds = %middle.block, %.split.us.split.us.split.us.preheader
  %.091.us.us.us.ph = phi i64 [ 0, %.split.us.split.us.split.us.preheader ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod249.not, label %.split.us.split.us.split.us.prol.loopexit, label %.split.us.split.us.split.us.prol

.split.us.split.us.split.us.prol:                 ; preds = %.split.us.split.us.split.us.preheader231, %.split.us.split.us.split.us.prol
  %.091.us.us.us.prol = phi i64 [ %111, %.split.us.split.us.split.us.prol ], [ %.091.us.us.us.ph, %.split.us.split.us.split.us.preheader231 ]
  %prol.iter250 = phi i64 [ %prol.iter250.next, %.split.us.split.us.split.us.prol ], [ 0, %.split.us.split.us.split.us.preheader231 ]
  %108 = mul i64 %.091.us.us.us.prol, %37
  %109 = add i64 %108, %.097
  %110 = getelementptr inbounds double, ptr %.0109, i64 %109
  store double 0.000000e+00, ptr %110, align 8, !tbaa !26
  %111 = add i64 %.091.us.us.us.prol, 1
  %prol.iter250.next = add i64 %prol.iter250, 1
  %prol.iter250.cmp.not = icmp eq i64 %prol.iter250.next, %xtraiter248
  br i1 %prol.iter250.cmp.not, label %.split.us.split.us.split.us.prol.loopexit, label %.split.us.split.us.split.us.prol, !llvm.loop !33

.split.us.split.us.split.us.prol.loopexit:        ; preds = %.split.us.split.us.split.us.prol, %.split.us.split.us.split.us.preheader231
  %.091.us.us.us.unr = phi i64 [ %.091.us.us.us.ph, %.split.us.split.us.split.us.preheader231 ], [ %111, %.split.us.split.us.split.us.prol ]
  %112 = sub i64 %.091.us.us.us.ph, %1
  %113 = icmp ugt i64 %112, -4
  br i1 %113, label %.split169.us, label %.split.us.split.us.split.us

.split.us.split.us.split.us:                      ; preds = %.split.us.split.us.split.us.prol.loopexit, %.split.us.split.us.split.us
  %.091.us.us.us = phi i64 [ %129, %.split.us.split.us.split.us ], [ %.091.us.us.us.unr, %.split.us.split.us.split.us.prol.loopexit ]
  %114 = mul i64 %.091.us.us.us, %37
  %115 = add i64 %114, %.097
  %116 = getelementptr inbounds double, ptr %.0109, i64 %115
  store double 0.000000e+00, ptr %116, align 8, !tbaa !26
  %117 = add i64 %.091.us.us.us, 1
  %118 = mul i64 %117, %37
  %119 = add i64 %118, %.097
  %120 = getelementptr inbounds double, ptr %.0109, i64 %119
  store double 0.000000e+00, ptr %120, align 8, !tbaa !26
  %121 = add i64 %.091.us.us.us, 2
  %122 = mul i64 %121, %37
  %123 = add i64 %122, %.097
  %124 = getelementptr inbounds double, ptr %.0109, i64 %123
  store double 0.000000e+00, ptr %124, align 8, !tbaa !26
  %125 = add i64 %.091.us.us.us, 3
  %126 = mul i64 %125, %37
  %127 = add i64 %126, %.097
  %128 = getelementptr inbounds double, ptr %.0109, i64 %127
  store double 0.000000e+00, ptr %128, align 8, !tbaa !26
  %129 = add i64 %.091.us.us.us, 4
  %.not149.us.us.us.3 = icmp eq i64 %129, %1
  br i1 %.not149.us.us.us.3, label %.split169.us, label %.split.us.split.us.split.us, !llvm.loop !34

.split.us.split.us.split:                         ; preds = %.split.us.split.us.split.prol.loopexit, %.split.us.split.us.split
  %.091.us.us = phi i64 [ %153, %.split.us.split.us.split ], [ %.091.us.us.unr, %.split.us.split.us.split.prol.loopexit ]
  %130 = getelementptr inbounds double, ptr %2, i64 %.091.us.us
  %131 = load double, ptr %130, align 8, !tbaa !26
  %132 = mul i64 %.091.us.us, %37
  %133 = add i64 %132, %.097
  %134 = getelementptr inbounds double, ptr %.0109, i64 %133
  store double %131, ptr %134, align 8, !tbaa !26
  %135 = add i64 %.091.us.us, 1
  %136 = getelementptr inbounds double, ptr %2, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !26
  %138 = mul i64 %135, %37
  %139 = add i64 %138, %.097
  %140 = getelementptr inbounds double, ptr %.0109, i64 %139
  store double %137, ptr %140, align 8, !tbaa !26
  %141 = add i64 %.091.us.us, 2
  %142 = getelementptr inbounds double, ptr %2, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !26
  %144 = mul i64 %141, %37
  %145 = add i64 %144, %.097
  %146 = getelementptr inbounds double, ptr %.0109, i64 %145
  store double %143, ptr %146, align 8, !tbaa !26
  %147 = add i64 %.091.us.us, 3
  %148 = getelementptr inbounds double, ptr %2, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !26
  %150 = mul i64 %147, %37
  %151 = add i64 %150, %.097
  %152 = getelementptr inbounds double, ptr %.0109, i64 %151
  store double %149, ptr %152, align 8, !tbaa !26
  %153 = add i64 %.091.us.us, 4
  %.not149.us.us.3 = icmp eq i64 %153, %1
  br i1 %.not149.us.us.3, label %.split169.us, label %.split.us.split.us.split, !llvm.loop !35

.split.us.split.us170:                            ; preds = %.split.us.split.us170.preheader, %165
  %.091.us.us171 = phi i64 [ %170, %165 ], [ 0, %.split.us.split.us170.preheader ]
  %niter = phi i64 [ %niter.next.1, %165 ], [ 0, %.split.us.split.us170.preheader ]
  br i1 %.not147, label %.split.us.split.us170.1, label %154

154:                                              ; preds = %.split.us.split.us170
  %155 = getelementptr inbounds double, ptr %2, i64 %.091.us.us171
  %156 = load double, ptr %155, align 8, !tbaa !26
  br label %.split.us.split.us170.1

.split.us.split.us170.1:                          ; preds = %154, %.split.us.split.us170
  %.089.us.us172 = phi double [ %156, %154 ], [ 0.000000e+00, %.split.us.split.us170 ]
  %157 = fptrunc double %.089.us.us172 to float
  %158 = mul i64 %.091.us.us171, %37
  %159 = add i64 %158, %.097
  %160 = getelementptr inbounds float, ptr %.0109, i64 %159
  store float %157, ptr %160, align 4, !tbaa !36
  %161 = or disjoint i64 %.091.us.us171, 1
  br i1 %.not147, label %165, label %162

162:                                              ; preds = %.split.us.split.us170.1
  %163 = getelementptr inbounds double, ptr %2, i64 %161
  %164 = load double, ptr %163, align 8, !tbaa !26
  br label %165

165:                                              ; preds = %162, %.split.us.split.us170.1
  %.089.us.us172.1 = phi double [ %164, %162 ], [ 0.000000e+00, %.split.us.split.us170.1 ]
  %166 = fptrunc double %.089.us.us172.1 to float
  %167 = mul i64 %161, %37
  %168 = add i64 %167, %.097
  %169 = getelementptr inbounds float, ptr %.0109, i64 %168
  store float %166, ptr %169, align 4, !tbaa !36
  %170 = add i64 %.091.us.us171, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.split169.us.loopexit234.unr-lcssa, label %.split.us.split.us170, !llvm.loop !38

.split:                                           ; preds = %89, %187
  %.091 = phi i64 [ %188, %187 ], [ 0, %89 ]
  br i1 %.not147, label %174, label %171

171:                                              ; preds = %.split
  %172 = getelementptr inbounds double, ptr %2, i64 %.091
  %173 = load double, ptr %172, align 8, !tbaa !26
  br label %174

174:                                              ; preds = %171, %.split
  %.089 = phi double [ %173, %171 ], [ 0.000000e+00, %.split ]
  %175 = getelementptr inbounds double, ptr %.4106, i64 %.091
  %176 = load double, ptr %175, align 8, !tbaa !26
  %177 = fadd double %.089, %176
  switch i64 %74, label %.split167.us [
    i64 8, label %178
    i64 4, label %182
  ]

178:                                              ; preds = %174
  %179 = mul i64 %.091, %37
  %180 = add i64 %179, %.097
  %181 = getelementptr inbounds double, ptr %.0109, i64 %180
  store double %177, ptr %181, align 8, !tbaa !26
  br label %187

.split167.us:                                     ; preds = %.split.us, %174
  tail call void @LogAssertFailure(i64 noundef 181, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.23)
  tail call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 181, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

182:                                              ; preds = %174
  %183 = fptrunc double %177 to float
  %184 = mul i64 %.091, %37
  %185 = add i64 %184, %.097
  %186 = getelementptr inbounds float, ptr %.0109, i64 %185
  store float %183, ptr %186, align 4, !tbaa !36
  br label %187

187:                                              ; preds = %182, %178
  %188 = add i64 %.091, 1
  %.not149 = icmp eq i64 %188, %1
  br i1 %.not149, label %.split169.us, label %.split, !llvm.loop !38

.split169.us.loopexit234.unr-lcssa:               ; preds = %165, %.split.us.split.us170.preheader
  %.091.us.us171.unr = phi i64 [ 0, %.split.us.split.us170.preheader ], [ %170, %165 ]
  br i1 %lcmp.mod.not, label %.split169.us, label %.split.us.split.us170.epil

.split.us.split.us170.epil:                       ; preds = %.split169.us.loopexit234.unr-lcssa
  br i1 %.not147, label %.split169.us.loopexit234.epilog-lcssa, label %189

189:                                              ; preds = %.split.us.split.us170.epil
  %190 = getelementptr inbounds double, ptr %2, i64 %.091.us.us171.unr
  %191 = load double, ptr %190, align 8, !tbaa !26
  br label %.split169.us.loopexit234.epilog-lcssa

.split169.us.loopexit234.epilog-lcssa:            ; preds = %189, %.split.us.split.us170.epil
  %.089.us.us172.epil = phi double [ %191, %189 ], [ 0.000000e+00, %.split.us.split.us170.epil ]
  %192 = fptrunc double %.089.us.us172.epil to float
  %193 = mul i64 %.091.us.us171.unr, %37
  %194 = add i64 %193, %.097
  %195 = getelementptr inbounds float, ptr %.0109, i64 %194
  store float %192, ptr %195, align 4, !tbaa !36
  br label %.split169.us

.split169.us:                                     ; preds = %187, %.split169.us.loopexit234.epilog-lcssa, %.split169.us.loopexit234.unr-lcssa, %.split.us.split.us.split.prol.loopexit, %.split.us.split.us.split, %.split.us.split.us.split.us.prol.loopexit, %.split.us.split.us.split.us, %middle.block216, %middle.block
  %196 = sub i8 %.4123, %3
  %197 = add i64 %.097, 1
  %.not150 = icmp eq i64 %37, %197
  br i1 %.not150, label %198, label %76, !llvm.loop !39

198:                                              ; preds = %.split169.us
  %199 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56) %.092)
  %200 = getelementptr inbounds i8, ptr %199, i64 128
  %201 = load i64, ptr %200, align 8, !tbaa !20
  %202 = mul i64 %70, %201
  %203 = tail call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.0109, i64 noundef %202) #7
  %.not151 = icmp eq ptr %69, %203
  br i1 %.not151, label %204, label %71, !llvm.loop !40

204:                                              ; preds = %198
  %205 = getelementptr inbounds i8, ptr %.092, i64 56
  %.not152 = icmp eq ptr %28, %205
  br i1 %.not152, label %206, label %31, !llvm.loop !41

206:                                              ; preds = %204
  %207 = icmp eq i8 %196, 0
  br i1 %207, label %209, label %208

208:                                              ; preds = %206
  tail call void @LogAssertFailure(i64 noundef 198, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_, ptr noundef nonnull @.str.25)
  tail call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 198, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_) #6
  unreachable

209:                                              ; preds = %206
  %210 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %211 = icmp sgt i32 %210, 2
  br i1 %211, label %212, label %.thread

212:                                              ; preds = %209
  tail call void @InteralLogWithoutArguments(i32 noundef 3, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15DataSetBoosting16InitSampleScoresEmPKdaPKaS2_E13LOG__sMessage_2)
  br label %.thread

.thread:                                          ; preds = %63, %66, %49, %52, %209, %212
  %.3 = phi i32 [ 0, %212 ], [ 0, %209 ], [ -1, %52 ], [ -1, %49 ], [ -1, %66 ], [ -1, %63 ]
  ret i32 %.3
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK14NAMESPACE_MAIN18DataSubsetBoosting19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef, i64 noundef) local_unnamed_addr #2

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 = { 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 #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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 = { 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 = { noreturn nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 16}
!10 = !{!"_ZTSN14NAMESPACE_MAIN15DataSetBoostingE", !11, i64 0, !11, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN14NAMESPACE_MAIN18DataSubsetBoostingE", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!16 = !{!17, !11, i64 120}
!17 = !{!"_ZTS16ObjectiveWrapper", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !6, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !6, i64 144, !12, i64 152}
!18 = !{!"double", !7, i64 0}
!19 = !{!15, !12, i64 8}
!20 = !{!17, !11, i64 128}
!21 = !{!15, !12, i64 24}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!18, !18, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!29 = distinct !{!29, !24, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !24, !30, !31}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !24, !30}
!35 = distinct !{!35, !24, !30}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}
!40 = distinct !{!40, !24}
!41 = distinct !{!41, !24}


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