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

; 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.ApplyUpdateBridge = type { i64, i32, i32, i32, i32, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, double }
%"class.NAMESPACE_MAIN::InteractionCore" = type { %"struct.std::atomic", i64, i32, i64, ptr, %"struct.NAMESPACE_MAIN::DataSetInteraction", %struct.ObjectiveWrapper, %struct.ObjectiveWrapper }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i64 }
%"struct.NAMESPACE_MAIN::DataSetInteraction" = type { i64, i64, ptr, double }
%struct.ObjectiveWrapper = type { ptr, ptr, ptr, ptr, i32, i32, i32, double, double, double, double, double, double, double, double, i32, i64, i64, i64, i32, ptr }
%"struct.NAMESPACE_MAIN::DataSubsetInteraction" = type { i64, ptr, ptr, ptr, ptr }

@g_traceLevel = external global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_ = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_ = external hidden unnamed_addr constant [189 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage = external hidden constant [153 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_0 = external hidden constant [143 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1 = external hidden constant [144 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_2 = external hidden constant [93 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_3 = external hidden constant [92 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_4 = external hidden constant [88 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_5 = external hidden constant [100 x i8], align 16
@.str.27 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_6 = external hidden constant [88 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [45 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

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_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef, i64 noundef) #3

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

declare noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedTargetEPKhmPl(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_(ptr noundef nonnull align 8 dereferenceable(392) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #5 align 2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca %struct.ApplyUpdateBridge, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca i8, align 1
  %47 = alloca ptr, align 8
  %48 = alloca i64, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i64, align 8
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca i64, align 8
  %55 = alloca i64, align 8
  %56 = alloca i64, align 8
  %57 = alloca double, align 8
  %58 = alloca ptr, align 8
  %59 = alloca i32, align 4
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i8, align 1
  %64 = alloca double, align 8
  %65 = alloca double, align 8
  %66 = alloca double, align 8
  %67 = alloca ptr, align 8
  %68 = alloca ptr, align 8
  %69 = alloca ptr, align 8
  %70 = alloca ptr, align 8
  %71 = alloca i64, align 8
  %72 = alloca ptr, align 8
  %73 = alloca i64, align 8
  %74 = alloca ptr, align 8
  %75 = alloca i8, align 1
  %76 = alloca double, align 8
  %77 = alloca ptr, align 8
  %78 = alloca i64, align 8
  %79 = alloca ptr, align 8
  %80 = alloca ptr, align 8
  %81 = alloca i64, align 8
  %82 = alloca i64, align 8
  %83 = alloca double, align 8
  %84 = alloca float, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  %86 = getelementptr inbounds %"class.NAMESPACE_MAIN::InteractionCore", ptr %85, i32 0, i32 5
  %87 = call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(32) %86)
  %88 = icmp ne i64 0, %87
  br i1 %88, label %89, label %1014

89:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = call noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedTargetEPKhmPl(ptr noundef %90, i64 noundef 0, ptr noundef %15)
  store ptr %91, ptr %16, align 8, !tbaa !5
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = icmp ne ptr null, %92
  br i1 %93, label %96, label %94

94:                                               ; preds = %89
  call void @LogAssertFailure(i64 noundef 364, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.9)
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 364, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

95:                                               ; No predecessors!
  br label %96

96:                                               ; preds = %95, %89
  %97 = phi i1 [ true, %89 ], [ false, %95 ]
  %98 = load i64, ptr %15, align 8, !tbaa !9
  %99 = icmp ne i64 0, %98
  br i1 %99, label %102, label %100

100:                                              ; preds = %96
  call void @LogAssertFailure(i64 noundef 365, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.11)
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str, i32 noundef 365, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

101:                                              ; No predecessors!
  br label %102

102:                                              ; preds = %101, %96
  %103 = phi i1 [ true, %96 ], [ false, %101 ]
  %104 = load i64, ptr %15, align 8, !tbaa !9
  %105 = icmp ne i64 1, %104
  br i1 %105, label %108, label %106

106:                                              ; preds = %102
  call void @LogAssertFailure(i64 noundef 366, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.13)
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str, i32 noundef 366, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %102
  %109 = phi i1 [ true, %102 ], [ false, %107 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %110 = call noundef i64 @_ZNK14NAMESPACE_MAIN15InteractionCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  store i64 %110, ptr %17, align 8, !tbaa !9
  %111 = load i64, ptr %17, align 8, !tbaa !9
  %112 = icmp ule i64 1, %111
  br i1 %112, label %115, label %113

113:                                              ; preds = %108
  call void @LogAssertFailure(i64 noundef 368, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.15)
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str, i32 noundef 368, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

114:                                              ; No predecessors!
  br label %115

115:                                              ; preds = %114, %108
  %116 = phi i1 [ true, %108 ], [ false, %114 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store i64 0, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  store i64 0, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store i64 0, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %117 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %118 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %117)
  store ptr %118, ptr %22, align 8, !tbaa !5
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = icmp ne ptr null, %119
  br i1 %120, label %123, label %121

121:                                              ; preds = %115
  call void @LogAssertFailure(i64 noundef 375, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.17)
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str, i32 noundef 375, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

122:                                              ; No predecessors!
  br label %123

123:                                              ; preds = %122, %115
  %124 = phi i1 [ true, %115 ], [ false, %122 ]
  %125 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %126 = call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %125)
  %127 = icmp ule i64 1, %126
  br i1 %127, label %130, label %128

128:                                              ; preds = %123
  call void @LogAssertFailure(i64 noundef 376, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.19)
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str, i32 noundef 376, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %123
  %131 = phi i1 [ true, %123 ], [ false, %129 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %132 = load ptr, ptr %22, align 8, !tbaa !5
  %133 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %134 = call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %133)
  %135 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %132, i64 %134
  store ptr %135, ptr %23, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %265, %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %137 = load ptr, ptr %22, align 8, !tbaa !5
  %138 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %137)
  store i64 %138, ptr %24, align 8, !tbaa !9
  %139 = load i64, ptr %24, align 8, !tbaa !9
  %140 = icmp ule i64 1, %139
  br i1 %140, label %143, label %141

141:                                              ; preds = %136
  call void @LogAssertFailure(i64 noundef 380, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.21)
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str, i32 noundef 380, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142, %136
  %144 = phi i1 [ true, %136 ], [ false, %142 ]
  %145 = load i64, ptr %24, align 8, !tbaa !9
  %146 = load ptr, ptr %22, align 8, !tbaa !5
  %147 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %146)
  %148 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %147, i32 0, i32 16
  %149 = load i64, ptr %148, align 8, !tbaa !13
  %150 = urem i64 %145, %149
  %151 = icmp eq i64 0, %150
  br i1 %151, label %154, label %152

152:                                              ; preds = %143
  call void @LogAssertFailure(i64 noundef 382, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.23)
  call void @__assert_fail(ptr noundef @.str.24, ptr noundef @.str, i32 noundef 382, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

153:                                              ; No predecessors!
  br label %154

154:                                              ; preds = %153, %143
  %155 = phi i1 [ true, %143 ], [ false, %153 ]
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %156)
  %158 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %157, i32 0, i32 16
  %159 = load i64, ptr %158, align 8, !tbaa !13
  %160 = load i64, ptr %24, align 8, !tbaa !9
  %161 = icmp ule i64 %159, %160
  br i1 %161, label %164, label %162

162:                                              ; preds = %154
  call void @LogAssertFailure(i64 noundef 383, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.25)
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str, i32 noundef 383, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

163:                                              ; No predecessors!
  br label %164

164:                                              ; preds = %163, %154
  %165 = phi i1 [ true, %154 ], [ false, %163 ]
  %166 = load ptr, ptr %22, align 8, !tbaa !5
  %167 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %166)
  %168 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %167, i32 0, i32 17
  %169 = load i64, ptr %168, align 8, !tbaa !16
  %170 = load i64, ptr %17, align 8, !tbaa !9
  %171 = load i64, ptr %24, align 8, !tbaa !9
  %172 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef %169, i64 noundef %170, i64 noundef %171) #8
  br i1 %172, label %173, label %181

173:                                              ; preds = %164
  br label %174

174:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 2, ptr %25, align 4, !tbaa !11
  %175 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %176 = icmp sle i32 2, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %174
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage)
  br label %178

178:                                              ; preds = %177, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %179

179:                                              ; preds = %178
  br label %180

180:                                              ; preds = %179
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %262

181:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  %183 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %182)
  %184 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %183, i32 0, i32 17
  %185 = load i64, ptr %184, align 8, !tbaa !16
  %186 = load i64, ptr %17, align 8, !tbaa !9
  %187 = mul i64 %185, %186
  store i64 %187, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %188 = load i64, ptr %27, align 8, !tbaa !9
  %189 = load ptr, ptr %22, align 8, !tbaa !5
  %190 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %189)
  %191 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %190, i32 0, i32 16
  %192 = load i64, ptr %191, align 8, !tbaa !13
  %193 = mul i64 %188, %192
  store i64 %193, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %194 = load i64, ptr %27, align 8, !tbaa !9
  %195 = load i64, ptr %24, align 8, !tbaa !9
  %196 = mul i64 %194, %195
  store i64 %196, ptr %29, align 8, !tbaa !9
  %197 = load i64, ptr %18, align 8, !tbaa !9
  %198 = load i64, ptr %27, align 8, !tbaa !9
  %199 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %197, i64 noundef %198) #8
  store i64 %199, ptr %18, align 8, !tbaa !9
  %200 = load i64, ptr %19, align 8, !tbaa !9
  %201 = load i64, ptr %29, align 8, !tbaa !9
  %202 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %200, i64 noundef %201) #8
  store i64 %202, ptr %19, align 8, !tbaa !9
  %203 = load i64, ptr %20, align 8, !tbaa !9
  %204 = load i64, ptr %28, align 8, !tbaa !9
  %205 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %203, i64 noundef %204) #8
  store i64 %205, ptr %20, align 8, !tbaa !9
  %206 = load i64, ptr %15, align 8, !tbaa !9
  %207 = icmp sle i64 0, %206
  br i1 %207, label %208, label %233

208:                                              ; preds = %181
  %209 = load ptr, ptr %22, align 8, !tbaa !5
  %210 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %209)
  %211 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %210, i32 0, i32 18
  %212 = load i64, ptr %211, align 8, !tbaa !17
  %213 = load i64, ptr %24, align 8, !tbaa !9
  %214 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %212, i64 noundef %213) #8
  br i1 %214, label %215, label %223

215:                                              ; preds = %208
  br label %216

216:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 2, ptr %30, align 4, !tbaa !11
  %217 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %218 = icmp sle i32 2, %217
  br i1 %218, label %219, label %220

219:                                              ; preds = %216
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_0)
  br label %220

220:                                              ; preds = %219, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %261

223:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  %225 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %224)
  %226 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %225, i32 0, i32 18
  %227 = load i64, ptr %226, align 8, !tbaa !17
  %228 = load i64, ptr %24, align 8, !tbaa !9
  %229 = mul i64 %227, %228
  store i64 %229, ptr %31, align 8, !tbaa !9
  %230 = load i64, ptr %21, align 8, !tbaa !9
  %231 = load i64, ptr %31, align 8, !tbaa !9
  %232 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %230, i64 noundef %231) #8
  store i64 %232, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %258

233:                                              ; preds = %181
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  %235 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %234)
  %236 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %235, i32 0, i32 17
  %237 = load i64, ptr %236, align 8, !tbaa !16
  %238 = load i64, ptr %24, align 8, !tbaa !9
  %239 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %237, i64 noundef %238) #8
  br i1 %239, label %240, label %248

240:                                              ; preds = %233
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 2, ptr %32, align 4, !tbaa !11
  %242 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %243 = icmp sle i32 2, %242
  br i1 %243, label %244, label %245

244:                                              ; preds = %241
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1)
  br label %245

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

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %261

248:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %249)
  %251 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %250, i32 0, i32 17
  %252 = load i64, ptr %251, align 8, !tbaa !16
  %253 = load i64, ptr %24, align 8, !tbaa !9
  %254 = mul i64 %252, %253
  store i64 %254, ptr %33, align 8, !tbaa !9
  %255 = load i64, ptr %21, align 8, !tbaa !9
  %256 = load i64, ptr %33, align 8, !tbaa !9
  %257 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %255, i64 noundef %256) #8
  store i64 %257, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %258

258:                                              ; preds = %248, %223
  %259 = load ptr, ptr %22, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %259, i32 1
  store ptr %260, ptr %22, align 8, !tbaa !5
  store i32 0, ptr %26, align 4
  br label %261

261:                                              ; preds = %258, %247, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %262

262:                                              ; preds = %261, %180
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  %263 = load i32, ptr %26, align 4
  switch i32 %263, label %1011 [
    i32 0, label %264
  ]

264:                                              ; preds = %262
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %23, align 8, !tbaa !5
  %267 = load ptr, ptr %22, align 8, !tbaa !5
  %268 = icmp ne ptr %266, %267
  br i1 %268, label %136, label %269, !llvm.loop !18

269:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 96, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %270 = load i64, ptr %19, align 8, !tbaa !9
  %271 = call ptr @AlignedAlloc(i64 noundef %270)
  store ptr %271, ptr %35, align 8, !tbaa !5
  %272 = load ptr, ptr %35, align 8, !tbaa !5
  %273 = icmp eq ptr null, %272
  %274 = xor i1 %273, true
  %275 = xor i1 %274, true
  %276 = zext i1 %275 to i64
  %277 = call i64 @llvm.expect.i64(i64 %276, i64 0)
  %278 = icmp ne i64 %277, 0
  br i1 %278, label %279, label %287

279:                                              ; preds = %269
  br label %280

280:                                              ; preds = %279
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 2, ptr %36, align 4, !tbaa !11
  %281 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %282 = icmp sle i32 2, %281
  br i1 %282, label %283, label %284

283:                                              ; preds = %280
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_2)
  br label %284

284:                                              ; preds = %283, %280
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %285

285:                                              ; preds = %284
  br label %286

286:                                              ; preds = %285
  store i32 -1, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %1010

287:                                              ; preds = %269
  %288 = load ptr, ptr %35, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 11
  store ptr %288, ptr %289, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %290 = load i64, ptr %18, align 8, !tbaa !9
  %291 = call ptr @AlignedAlloc(i64 noundef %290)
  store ptr %291, ptr %37, align 8, !tbaa !5
  %292 = load ptr, ptr %37, align 8, !tbaa !5
  %293 = icmp eq ptr null, %292
  %294 = xor i1 %293, true
  %295 = xor i1 %294, true
  %296 = zext i1 %295 to i64
  %297 = call i64 @llvm.expect.i64(i64 %296, i64 0)
  %298 = icmp ne i64 %297, 0
  br i1 %298, label %299, label %307

299:                                              ; preds = %287
  br label %300

300:                                              ; preds = %299
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 2, ptr %38, align 4, !tbaa !11
  %301 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %302 = icmp sle i32 2, %301
  br i1 %302, label %303, label %304

303:                                              ; preds = %300
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_3)
  br label %304

304:                                              ; preds = %303, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %305

305:                                              ; preds = %304
  br label %306

306:                                              ; preds = %305
  store i32 -1, ptr %14, align 4, !tbaa !11
  br label %823

307:                                              ; preds = %287
  %308 = load ptr, ptr %37, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 6
  store ptr %308, ptr %309, align 8, !tbaa !22
  %310 = load ptr, ptr %37, align 8, !tbaa !5
  %311 = load i64, ptr %18, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %310, i8 0, i64 %311, i1 false)
  %312 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 5
  store ptr null, ptr %312, align 8, !tbaa !23
  %313 = load i64, ptr %15, align 8, !tbaa !9
  %314 = icmp sle i64 0, %313
  br i1 %314, label %315, label %617

315:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %316 = load i64, ptr %21, align 8, !tbaa !9
  %317 = call ptr @AlignedAlloc(i64 noundef %316)
  store ptr %317, ptr %39, align 8, !tbaa !5
  %318 = load ptr, ptr %39, align 8, !tbaa !5
  %319 = icmp eq ptr null, %318
  %320 = xor i1 %319, true
  %321 = xor i1 %320, true
  %322 = zext i1 %321 to i64
  %323 = call i64 @llvm.expect.i64(i64 %322, i64 0)
  %324 = icmp ne i64 %323, 0
  br i1 %324, label %325, label %333

325:                                              ; preds = %315
  br label %326

326:                                              ; preds = %325
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 2, ptr %40, align 4, !tbaa !11
  %327 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %328 = icmp sle i32 2, %327
  br i1 %328, label %329, label %330

329:                                              ; preds = %326
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_4)
  br label %330

330:                                              ; preds = %329, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %331

331:                                              ; preds = %330
  br label %332

332:                                              ; preds = %331
  store i32 -1, ptr %14, align 4, !tbaa !11
  store i32 17, ptr %26, align 4
  br label %614

333:                                              ; preds = %315
  %334 = load ptr, ptr %39, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 9
  store ptr %334, ptr %335, align 8, !tbaa !24
  %336 = load i64, ptr %17, align 8, !tbaa !9
  %337 = icmp ne i64 1, %336
  br i1 %337, label %338, label %362

338:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %339 = load i64, ptr %20, align 8, !tbaa !9
  %340 = call ptr @AlignedAlloc(i64 noundef %339)
  store ptr %340, ptr %41, align 8, !tbaa !5
  %341 = load ptr, ptr %41, align 8, !tbaa !5
  %342 = icmp eq ptr null, %341
  %343 = xor i1 %342, true
  %344 = xor i1 %343, true
  %345 = zext i1 %344 to i64
  %346 = call i64 @llvm.expect.i64(i64 %345, i64 0)
  %347 = icmp ne i64 %346, 0
  br i1 %347, label %348, label %356

348:                                              ; preds = %338
  br label %349

349:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 2, ptr %42, align 4, !tbaa !11
  %350 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %351 = icmp sle i32 2, %350
  br i1 %351, label %352, label %353

352:                                              ; preds = %349
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_5)
  br label %353

353:                                              ; preds = %352, %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %354

354:                                              ; preds = %353
  br label %355

355:                                              ; preds = %354
  store i32 -1, ptr %14, align 4, !tbaa !11
  store i32 20, ptr %26, align 4
  br label %359

356:                                              ; preds = %338
  %357 = load ptr, ptr %41, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 5
  store ptr %357, ptr %358, align 8, !tbaa !23
  store i32 0, ptr %26, align 4
  br label %359

359:                                              ; preds = %356, %355
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  %360 = load i32, ptr %26, align 4
  switch i32 %360, label %614 [
    i32 0, label %361
  ]

361:                                              ; preds = %359
  br label %362

362:                                              ; preds = %361, %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #8
  %363 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %363, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #8
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %364, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #8
  %365 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %365, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #8
  store i8 0, ptr %46, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #8
  store ptr null, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #8
  %366 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %367 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %366)
  store ptr %367, ptr %49, align 8, !tbaa !5
  br label %368

368:                                              ; preds = %599, %362
  %369 = load ptr, ptr %49, align 8, !tbaa !5
  %370 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %369)
  %371 = icmp ule i64 1, %370
  br i1 %371, label %374, label %372

372:                                              ; preds = %368
  call void @LogAssertFailure(i64 noundef 475, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.27)
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 475, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

373:                                              ; No predecessors!
  br label %374

374:                                              ; preds = %373, %368
  %375 = phi i1 [ true, %368 ], [ false, %373 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #8
  %376 = load ptr, ptr %49, align 8, !tbaa !5
  %377 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %376)
  %378 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %377, i32 0, i32 16
  %379 = load i64, ptr %378, align 8, !tbaa !13
  store i64 %379, ptr %50, align 8, !tbaa !9
  %380 = load ptr, ptr %49, align 8, !tbaa !5
  %381 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %380)
  %382 = load i64, ptr %50, align 8, !tbaa !9
  %383 = urem i64 %381, %382
  %384 = icmp eq i64 0, %383
  br i1 %384, label %387, label %385

385:                                              ; preds = %374
  call void @LogAssertFailure(i64 noundef 478, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.29)
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str, i32 noundef 478, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

386:                                              ; No predecessors!
  br label %387

387:                                              ; preds = %386, %374
  %388 = phi i1 [ true, %374 ], [ false, %386 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #8
  %389 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %389, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #8
  %390 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %390, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #8
  %391 = load ptr, ptr %39, align 8, !tbaa !5
  %392 = load ptr, ptr %49, align 8, !tbaa !5
  %393 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %392)
  %394 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %393, i32 0, i32 18
  %395 = load i64, ptr %394, align 8, !tbaa !17
  %396 = load ptr, ptr %49, align 8, !tbaa !5
  %397 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %396)
  %398 = mul i64 %395, %397
  %399 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %391, i64 noundef %398) #8
  store ptr %399, ptr %53, align 8, !tbaa !5
  br label %400

400:                                              ; preds = %564, %387
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #8
  store i64 0, ptr %54, align 8, !tbaa !9
  br label %401

401:                                              ; preds = %549, %400
  %402 = load i8, ptr %46, align 1, !tbaa !25
  %403 = sext i8 %402 to i32
  %404 = icmp eq i32 0, %403
  br i1 %404, label %405, label %456

405:                                              ; preds = %401
  store i8 1, ptr %46, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #8
  %406 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %406, ptr %55, align 8, !tbaa !9
  %407 = load ptr, ptr %44, align 8, !tbaa !5
  %408 = icmp ne ptr null, %407
  br i1 %408, label %409, label %433

409:                                              ; preds = %405
  store i64 0, ptr %55, align 8, !tbaa !9
  br label %410

410:                                              ; preds = %426, %409
  br label %411

411:                                              ; preds = %418, %410
  %412 = load ptr, ptr %44, align 8, !tbaa !5
  %413 = load i8, ptr %412, align 1, !tbaa !25
  store i8 %413, ptr %46, align 1, !tbaa !25
  %414 = load ptr, ptr %44, align 8, !tbaa !5
  %415 = getelementptr inbounds i8, ptr %414, i32 1
  store ptr %415, ptr %44, align 8, !tbaa !5
  %416 = load ptr, ptr %43, align 8, !tbaa !5
  %417 = getelementptr inbounds i64, ptr %416, i32 1
  store ptr %417, ptr %43, align 8, !tbaa !5
  br label %418

418:                                              ; preds = %411
  %419 = load i8, ptr %46, align 1, !tbaa !25
  %420 = sext i8 %419 to i32
  %421 = icmp eq i32 0, %420
  br i1 %421, label %411, label %422, !llvm.loop !26

422:                                              ; preds = %418
  %423 = load i64, ptr %17, align 8, !tbaa !9
  %424 = load i64, ptr %55, align 8, !tbaa !9
  %425 = add i64 %424, %423
  store i64 %425, ptr %55, align 8, !tbaa !9
  br label %426

426:                                              ; preds = %422
  %427 = load i8, ptr %46, align 1, !tbaa !25
  %428 = sext i8 %427 to i32
  %429 = icmp slt i32 %428, 0
  br i1 %429, label %410, label %430, !llvm.loop !27

430:                                              ; preds = %426
  %431 = load ptr, ptr %43, align 8, !tbaa !5
  %432 = getelementptr inbounds i64, ptr %431, i32 -1
  store ptr %432, ptr %43, align 8, !tbaa !5
  br label %433

433:                                              ; preds = %430, %405
  %434 = load ptr, ptr %45, align 8, !tbaa !5
  %435 = icmp ne ptr null, %434
  br i1 %435, label %436, label %444

436:                                              ; preds = %433
  %437 = load i64, ptr %55, align 8, !tbaa !9
  %438 = load ptr, ptr %45, align 8, !tbaa !5
  %439 = getelementptr inbounds double, ptr %438, i64 %437
  store ptr %439, ptr %45, align 8, !tbaa !5
  %440 = load ptr, ptr %45, align 8, !tbaa !5
  %441 = load i64, ptr %17, align 8, !tbaa !9
  %442 = sub i64 0, %441
  %443 = getelementptr inbounds double, ptr %440, i64 %442
  store ptr %443, ptr %47, align 8, !tbaa !5
  br label %444

444:                                              ; preds = %436, %433
  %445 = load ptr, ptr %43, align 8, !tbaa !5
  %446 = load i64, ptr %445, align 8, !tbaa !9
  store i64 %446, ptr %48, align 8, !tbaa !9
  %447 = load ptr, ptr %43, align 8, !tbaa !5
  %448 = getelementptr inbounds i64, ptr %447, i32 1
  store ptr %448, ptr %43, align 8, !tbaa !5
  %449 = load i64, ptr %48, align 8, !tbaa !9
  %450 = load i64, ptr %15, align 8, !tbaa !9
  %451 = icmp ult i64 %449, %450
  br i1 %451, label %454, label %452

452:                                              ; preds = %444
  call void @LogAssertFailure(i64 noundef 515, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.31)
  call void @__assert_fail(ptr noundef @.str.32, ptr noundef @.str, i32 noundef 515, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

453:                                              ; No predecessors!
  br label %454

454:                                              ; preds = %453, %444
  %455 = phi i1 [ true, %444 ], [ false, %453 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #8
  br label %456

456:                                              ; preds = %454, %401
  %457 = load ptr, ptr %49, align 8, !tbaa !5
  %458 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %457)
  %459 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %458, i32 0, i32 18
  %460 = load i64, ptr %459, align 8, !tbaa !17
  %461 = icmp eq i64 8, %460
  br i1 %461, label %462, label %465

462:                                              ; preds = %456
  %463 = load i64, ptr %48, align 8, !tbaa !9
  %464 = load ptr, ptr %51, align 8, !tbaa !5
  store i64 %463, ptr %464, align 8, !tbaa !9
  br label %478

465:                                              ; preds = %456
  %466 = load ptr, ptr %49, align 8, !tbaa !5
  %467 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %466)
  %468 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %467, i32 0, i32 18
  %469 = load i64, ptr %468, align 8, !tbaa !17
  %470 = icmp eq i64 4, %469
  br i1 %470, label %473, label %471

471:                                              ; preds = %465
  call void @LogAssertFailure(i64 noundef 521, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.33)
  call void @__assert_fail(ptr noundef @.str.34, ptr noundef @.str, i32 noundef 521, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

472:                                              ; No predecessors!
  br label %473

473:                                              ; preds = %472, %465
  %474 = phi i1 [ true, %465 ], [ false, %472 ]
  %475 = load i64, ptr %48, align 8, !tbaa !9
  %476 = trunc i64 %475 to i32
  %477 = load ptr, ptr %51, align 8, !tbaa !5
  store i32 %476, ptr %477, align 4, !tbaa !11
  br label %478

478:                                              ; preds = %473, %462
  %479 = load ptr, ptr %51, align 8, !tbaa !5
  %480 = load ptr, ptr %49, align 8, !tbaa !5
  %481 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %480)
  %482 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %481, i32 0, i32 18
  %483 = load i64, ptr %482, align 8, !tbaa !17
  %484 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %479, i64 noundef %483) #8
  store ptr %484, ptr %51, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #8
  store i64 0, ptr %56, align 8, !tbaa !9
  br label %485

485:                                              ; preds = %540, %478
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #8
  store double 0.000000e+00, ptr %57, align 8, !tbaa !28
  %486 = load ptr, ptr %11, align 8, !tbaa !5
  %487 = icmp ne ptr null, %486
  br i1 %487, label %488, label %493

488:                                              ; preds = %485
  %489 = load ptr, ptr %11, align 8, !tbaa !5
  %490 = load i64, ptr %56, align 8, !tbaa !9
  %491 = getelementptr inbounds double, ptr %489, i64 %490
  %492 = load double, ptr %491, align 8, !tbaa !28
  store double %492, ptr %57, align 8, !tbaa !28
  br label %493

493:                                              ; preds = %488, %485
  %494 = load ptr, ptr %47, align 8, !tbaa !5
  %495 = icmp ne ptr null, %494
  br i1 %495, label %496, label %503

496:                                              ; preds = %493
  %497 = load ptr, ptr %47, align 8, !tbaa !5
  %498 = load i64, ptr %56, align 8, !tbaa !9
  %499 = getelementptr inbounds double, ptr %497, i64 %498
  %500 = load double, ptr %499, align 8, !tbaa !28
  %501 = load double, ptr %57, align 8, !tbaa !28
  %502 = fadd double %501, %500
  store double %502, ptr %57, align 8, !tbaa !28
  br label %503

503:                                              ; preds = %496, %493
  %504 = load ptr, ptr %49, align 8, !tbaa !5
  %505 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %504)
  %506 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %505, i32 0, i32 17
  %507 = load i64, ptr %506, align 8, !tbaa !16
  %508 = icmp eq i64 8, %507
  br i1 %508, label %509, label %518

509:                                              ; preds = %503
  %510 = load double, ptr %57, align 8, !tbaa !28
  %511 = load ptr, ptr %52, align 8, !tbaa !5
  %512 = load i64, ptr %56, align 8, !tbaa !9
  %513 = load i64, ptr %50, align 8, !tbaa !9
  %514 = mul i64 %512, %513
  %515 = load i64, ptr %54, align 8, !tbaa !9
  %516 = add i64 %514, %515
  %517 = getelementptr inbounds double, ptr %511, i64 %516
  store double %510, ptr %517, align 8, !tbaa !28
  br label %537

518:                                              ; preds = %503
  %519 = load ptr, ptr %49, align 8, !tbaa !5
  %520 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %519)
  %521 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %520, i32 0, i32 17
  %522 = load i64, ptr %521, align 8, !tbaa !16
  %523 = icmp eq i64 4, %522
  br i1 %523, label %526, label %524

524:                                              ; preds = %518
  call void @LogAssertFailure(i64 noundef 540, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.35)
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str, i32 noundef 540, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

525:                                              ; No predecessors!
  br label %526

526:                                              ; preds = %525, %518
  %527 = phi i1 [ true, %518 ], [ false, %525 ]
  %528 = load double, ptr %57, align 8, !tbaa !28
  %529 = fptrunc double %528 to float
  %530 = load ptr, ptr %52, align 8, !tbaa !5
  %531 = load i64, ptr %56, align 8, !tbaa !9
  %532 = load i64, ptr %50, align 8, !tbaa !9
  %533 = mul i64 %531, %532
  %534 = load i64, ptr %54, align 8, !tbaa !9
  %535 = add i64 %533, %534
  %536 = getelementptr inbounds float, ptr %530, i64 %535
  store float %529, ptr %536, align 4, !tbaa !29
  br label %537

537:                                              ; preds = %526, %509
  %538 = load i64, ptr %56, align 8, !tbaa !9
  %539 = add i64 %538, 1
  store i64 %539, ptr %56, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #8
  br label %540

540:                                              ; preds = %537
  %541 = load i64, ptr %17, align 8, !tbaa !9
  %542 = load i64, ptr %56, align 8, !tbaa !9
  %543 = icmp ne i64 %541, %542
  br i1 %543, label %485, label %544, !llvm.loop !31

544:                                              ; preds = %540
  %545 = load i8, ptr %46, align 1, !tbaa !25
  %546 = add i8 %545, -1
  store i8 %546, ptr %46, align 1, !tbaa !25
  %547 = load i64, ptr %54, align 8, !tbaa !9
  %548 = add i64 %547, 1
  store i64 %548, ptr %54, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #8
  br label %549

549:                                              ; preds = %544
  %550 = load i64, ptr %50, align 8, !tbaa !9
  %551 = load i64, ptr %54, align 8, !tbaa !9
  %552 = icmp ne i64 %550, %551
  br i1 %552, label %401, label %553, !llvm.loop !32

553:                                              ; preds = %549
  %554 = load ptr, ptr %52, align 8, !tbaa !5
  %555 = load i64, ptr %17, align 8, !tbaa !9
  %556 = load ptr, ptr %49, align 8, !tbaa !5
  %557 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %556)
  %558 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %557, i32 0, i32 17
  %559 = load i64, ptr %558, align 8, !tbaa !16
  %560 = mul i64 %555, %559
  %561 = load i64, ptr %50, align 8, !tbaa !9
  %562 = mul i64 %560, %561
  %563 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %554, i64 noundef %562) #8
  store ptr %563, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #8
  br label %564

564:                                              ; preds = %553
  %565 = load ptr, ptr %53, align 8, !tbaa !5
  %566 = load ptr, ptr %51, align 8, !tbaa !5
  %567 = icmp ne ptr %565, %566
  br i1 %567, label %400, label %568, !llvm.loop !33

568:                                              ; preds = %564
  %569 = load i64, ptr %17, align 8, !tbaa !9
  %570 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 0
  store i64 %569, ptr %570, align 8, !tbaa !34
  %571 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 1
  store i32 0, ptr %571, align 8, !tbaa !35
  %572 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %573 = zext i1 %572 to i64
  %574 = select i1 %572, i32 1, i32 0
  %575 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 2
  store i32 %574, ptr %575, align 4, !tbaa !36
  %576 = call noundef i32 @_ZNK14NAMESPACE_MAIN15InteractionCore11IsUseApproxEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %577 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 4
  store i32 %576, ptr %577, align 4, !tbaa !37
  %578 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 3
  store i32 0, ptr %578, align 8, !tbaa !38
  %579 = load ptr, ptr %49, align 8, !tbaa !5
  %580 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %579)
  %581 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 7
  store i64 %580, ptr %581, align 8, !tbaa !39
  %582 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 8
  store ptr null, ptr %582, align 8, !tbaa !40
  %583 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 10
  store ptr null, ptr %583, align 8, !tbaa !41
  %584 = load ptr, ptr %49, align 8, !tbaa !5
  %585 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %584)
  %586 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 12
  store ptr %585, ptr %586, align 8, !tbaa !42
  %587 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 13
  store double 0.000000e+00, ptr %587, align 8, !tbaa !43
  %588 = load ptr, ptr %49, align 8, !tbaa !5
  %589 = call noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40) %588, ptr noundef %34)
  store i32 %589, ptr %14, align 4, !tbaa !11
  %590 = load i32, ptr %14, align 4, !tbaa !11
  %591 = icmp ne i32 0, %590
  br i1 %591, label %592, label %593

592:                                              ; preds = %568
  store i32 33, ptr %26, align 4
  br label %596

593:                                              ; preds = %568
  %594 = load ptr, ptr %49, align 8, !tbaa !5
  %595 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %594, i32 1
  store ptr %595, ptr %49, align 8, !tbaa !5
  store i32 0, ptr %26, align 4
  br label %596

596:                                              ; preds = %593, %592
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #8
  %597 = load i32, ptr %26, align 4
  switch i32 %597, label %1018 [
    i32 0, label %598
    i32 33, label %611
  ]

598:                                              ; preds = %596
  br label %599

599:                                              ; preds = %598
  %600 = load ptr, ptr %23, align 8, !tbaa !5
  %601 = load ptr, ptr %49, align 8, !tbaa !5
  %602 = icmp ne ptr %600, %601
  br i1 %602, label %368, label %603, !llvm.loop !44

603:                                              ; preds = %599
  %604 = load i8, ptr %46, align 1, !tbaa !25
  %605 = sext i8 %604 to i32
  %606 = icmp eq i32 0, %605
  br i1 %606, label %609, label %607

607:                                              ; preds = %603
  call void @LogAssertFailure(i64 noundef 572, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.37)
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str, i32 noundef 572, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

608:                                              ; No predecessors!
  br label %609

609:                                              ; preds = %608, %603
  %610 = phi i1 [ true, %603 ], [ false, %608 ]
  br label %611

611:                                              ; preds = %609, %596
  %612 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 5
  %613 = load ptr, ptr %612, align 8, !tbaa !23
  call void @AlignedFree(ptr noundef %613)
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #8
  store i32 0, ptr %26, align 4
  br label %614

614:                                              ; preds = %611, %359, %332
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  %615 = load i32, ptr %26, align 4
  switch i32 %615, label %1018 [
    i32 0, label %616
    i32 20, label %817
    i32 17, label %820
  ]

616:                                              ; preds = %614
  br label %816

617:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #8
  %618 = load i64, ptr %21, align 8, !tbaa !9
  %619 = call ptr @AlignedAlloc(i64 noundef %618)
  store ptr %619, ptr %58, align 8, !tbaa !5
  %620 = load ptr, ptr %58, align 8, !tbaa !5
  %621 = icmp eq ptr null, %620
  %622 = xor i1 %621, true
  %623 = xor i1 %622, true
  %624 = zext i1 %623 to i64
  %625 = call i64 @llvm.expect.i64(i64 %624, i64 0)
  %626 = icmp ne i64 %625, 0
  br i1 %626, label %627, label %635

627:                                              ; preds = %617
  br label %628

628:                                              ; preds = %627
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  store i32 2, ptr %59, align 4, !tbaa !11
  %629 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %630 = icmp sle i32 2, %629
  br i1 %630, label %631, label %632

631:                                              ; preds = %628
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_6)
  br label %632

632:                                              ; preds = %631, %628
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  br label %633

633:                                              ; preds = %632
  br label %634

634:                                              ; preds = %633
  store i32 -1, ptr %14, align 4, !tbaa !11
  store i32 17, ptr %26, align 4
  br label %813

635:                                              ; preds = %617
  %636 = load ptr, ptr %58, align 8, !tbaa !5
  %637 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 9
  store ptr %636, ptr %637, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #8
  %638 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %638, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #8
  %639 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %639, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  %640 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %640, ptr %62, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #8
  store i8 0, ptr %63, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #8
  %641 = load ptr, ptr %11, align 8, !tbaa !5
  %642 = icmp eq ptr null, %641
  br i1 %642, label %643, label %644

643:                                              ; preds = %635
  br label %647

644:                                              ; preds = %635
  %645 = load ptr, ptr %11, align 8, !tbaa !5
  %646 = load double, ptr %645, align 8, !tbaa !28
  br label %647

647:                                              ; preds = %644, %643
  %648 = phi double [ 0.000000e+00, %643 ], [ %646, %644 ]
  store double %648, ptr %65, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #8
  %649 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %650 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %649)
  store ptr %650, ptr %67, align 8, !tbaa !5
  br label %651

651:                                              ; preds = %800, %647
  %652 = load ptr, ptr %67, align 8, !tbaa !5
  %653 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %652)
  %654 = icmp ule i64 1, %653
  br i1 %654, label %657, label %655

655:                                              ; preds = %651
  call void @LogAssertFailure(i64 noundef 597, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.27)
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 597, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

656:                                              ; No predecessors!
  br label %657

657:                                              ; preds = %656, %651
  %658 = phi i1 [ true, %651 ], [ false, %656 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %68) #8
  %659 = load ptr, ptr %58, align 8, !tbaa !5
  store ptr %659, ptr %68, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %69) #8
  %660 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %660, ptr %69, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #8
  %661 = load ptr, ptr %58, align 8, !tbaa !5
  %662 = load ptr, ptr %67, align 8, !tbaa !5
  %663 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %662)
  %664 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %663, i32 0, i32 17
  %665 = load i64, ptr %664, align 8, !tbaa !16
  %666 = load ptr, ptr %67, align 8, !tbaa !5
  %667 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %666)
  %668 = mul i64 %665, %667
  %669 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %661, i64 noundef %668) #8
  store ptr %669, ptr %70, align 8, !tbaa !5
  br label %670

670:                                              ; preds = %760, %657
  %671 = load i8, ptr %63, align 1, !tbaa !25
  %672 = sext i8 %671 to i32
  %673 = icmp eq i32 0, %672
  br i1 %673, label %674, label %718

674:                                              ; preds = %670
  store i8 1, ptr %63, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #8
  store i64 1, ptr %71, align 8, !tbaa !9
  %675 = load ptr, ptr %61, align 8, !tbaa !5
  %676 = icmp ne ptr null, %675
  br i1 %676, label %677, label %700

677:                                              ; preds = %674
  store i64 0, ptr %71, align 8, !tbaa !9
  br label %678

678:                                              ; preds = %693, %677
  br label %679

679:                                              ; preds = %686, %678
  %680 = load ptr, ptr %61, align 8, !tbaa !5
  %681 = load i8, ptr %680, align 1, !tbaa !25
  store i8 %681, ptr %63, align 1, !tbaa !25
  %682 = load ptr, ptr %61, align 8, !tbaa !5
  %683 = getelementptr inbounds i8, ptr %682, i32 1
  store ptr %683, ptr %61, align 8, !tbaa !5
  %684 = load ptr, ptr %60, align 8, !tbaa !5
  %685 = getelementptr inbounds double, ptr %684, i32 1
  store ptr %685, ptr %60, align 8, !tbaa !5
  br label %686

686:                                              ; preds = %679
  %687 = load i8, ptr %63, align 1, !tbaa !25
  %688 = sext i8 %687 to i32
  %689 = icmp eq i32 0, %688
  br i1 %689, label %679, label %690, !llvm.loop !45

690:                                              ; preds = %686
  %691 = load i64, ptr %71, align 8, !tbaa !9
  %692 = add i64 %691, 1
  store i64 %692, ptr %71, align 8, !tbaa !9
  br label %693

693:                                              ; preds = %690
  %694 = load i8, ptr %63, align 1, !tbaa !25
  %695 = sext i8 %694 to i32
  %696 = icmp slt i32 %695, 0
  br i1 %696, label %678, label %697, !llvm.loop !46

697:                                              ; preds = %693
  %698 = load ptr, ptr %60, align 8, !tbaa !5
  %699 = getelementptr inbounds double, ptr %698, i32 -1
  store ptr %699, ptr %60, align 8, !tbaa !5
  br label %700

700:                                              ; preds = %697, %674
  %701 = load double, ptr %65, align 8, !tbaa !28
  store double %701, ptr %64, align 8, !tbaa !28
  %702 = load ptr, ptr %62, align 8, !tbaa !5
  %703 = icmp ne ptr null, %702
  br i1 %703, label %704, label %713

704:                                              ; preds = %700
  %705 = load i64, ptr %71, align 8, !tbaa !9
  %706 = load ptr, ptr %62, align 8, !tbaa !5
  %707 = getelementptr inbounds double, ptr %706, i64 %705
  store ptr %707, ptr %62, align 8, !tbaa !5
  %708 = load ptr, ptr %62, align 8, !tbaa !5
  %709 = getelementptr inbounds double, ptr %708, i64 -1
  %710 = load double, ptr %709, align 8, !tbaa !28
  %711 = load double, ptr %64, align 8, !tbaa !28
  %712 = fadd double %711, %710
  store double %712, ptr %64, align 8, !tbaa !28
  br label %713

713:                                              ; preds = %704, %700
  %714 = load ptr, ptr %60, align 8, !tbaa !5
  %715 = load double, ptr %714, align 8, !tbaa !28
  store double %715, ptr %66, align 8, !tbaa !28
  %716 = load ptr, ptr %60, align 8, !tbaa !5
  %717 = getelementptr inbounds double, ptr %716, i32 1
  store ptr %717, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #8
  br label %718

718:                                              ; preds = %713, %670
  %719 = load ptr, ptr %67, align 8, !tbaa !5
  %720 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %719)
  %721 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %720, i32 0, i32 17
  %722 = load i64, ptr %721, align 8, !tbaa !16
  %723 = icmp eq i64 8, %722
  br i1 %723, label %724, label %729

724:                                              ; preds = %718
  %725 = load double, ptr %66, align 8, !tbaa !28
  %726 = load ptr, ptr %68, align 8, !tbaa !5
  store double %725, ptr %726, align 8, !tbaa !28
  %727 = load double, ptr %64, align 8, !tbaa !28
  %728 = load ptr, ptr %69, align 8, !tbaa !5
  store double %727, ptr %728, align 8, !tbaa !28
  br label %745

729:                                              ; preds = %718
  %730 = load ptr, ptr %67, align 8, !tbaa !5
  %731 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %730)
  %732 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %731, i32 0, i32 17
  %733 = load i64, ptr %732, align 8, !tbaa !16
  %734 = icmp eq i64 4, %733
  br i1 %734, label %737, label %735

735:                                              ; preds = %729
  call void @LogAssertFailure(i64 noundef 634, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.35)
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str, i32 noundef 634, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

736:                                              ; No predecessors!
  br label %737

737:                                              ; preds = %736, %729
  %738 = phi i1 [ true, %729 ], [ false, %736 ]
  %739 = load double, ptr %66, align 8, !tbaa !28
  %740 = fptrunc double %739 to float
  %741 = load ptr, ptr %68, align 8, !tbaa !5
  store float %740, ptr %741, align 4, !tbaa !29
  %742 = load double, ptr %64, align 8, !tbaa !28
  %743 = fptrunc double %742 to float
  %744 = load ptr, ptr %69, align 8, !tbaa !5
  store float %743, ptr %744, align 4, !tbaa !29
  br label %745

745:                                              ; preds = %737, %724
  %746 = load ptr, ptr %68, align 8, !tbaa !5
  %747 = load ptr, ptr %67, align 8, !tbaa !5
  %748 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %747)
  %749 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %748, i32 0, i32 17
  %750 = load i64, ptr %749, align 8, !tbaa !16
  %751 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %746, i64 noundef %750) #8
  store ptr %751, ptr %68, align 8, !tbaa !5
  %752 = load ptr, ptr %69, align 8, !tbaa !5
  %753 = load ptr, ptr %67, align 8, !tbaa !5
  %754 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %753)
  %755 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %754, i32 0, i32 17
  %756 = load i64, ptr %755, align 8, !tbaa !16
  %757 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %752, i64 noundef %756) #8
  store ptr %757, ptr %69, align 8, !tbaa !5
  %758 = load i8, ptr %63, align 1, !tbaa !25
  %759 = add i8 %758, -1
  store i8 %759, ptr %63, align 1, !tbaa !25
  br label %760

760:                                              ; preds = %745
  %761 = load ptr, ptr %70, align 8, !tbaa !5
  %762 = load ptr, ptr %68, align 8, !tbaa !5
  %763 = icmp ne ptr %761, %762
  br i1 %763, label %670, label %764, !llvm.loop !47

764:                                              ; preds = %760
  %765 = load i64, ptr %17, align 8, !tbaa !9
  %766 = icmp eq i64 1, %765
  br i1 %766, label %769, label %767

767:                                              ; preds = %764
  call void @LogAssertFailure(i64 noundef 645, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.39)
  call void @__assert_fail(ptr noundef @.str.40, ptr noundef @.str, i32 noundef 645, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

768:                                              ; No predecessors!
  br label %769

769:                                              ; preds = %768, %764
  %770 = phi i1 [ true, %764 ], [ false, %768 ]
  %771 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 0
  store i64 1, ptr %771, align 8, !tbaa !34
  %772 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 1
  store i32 0, ptr %772, align 8, !tbaa !35
  %773 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %774 = zext i1 %773 to i64
  %775 = select i1 %773, i32 1, i32 0
  %776 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 2
  store i32 %775, ptr %776, align 4, !tbaa !36
  %777 = call noundef i32 @_ZNK14NAMESPACE_MAIN15InteractionCore11IsUseApproxEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %778 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 4
  store i32 %777, ptr %778, align 4, !tbaa !37
  %779 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 3
  store i32 0, ptr %779, align 8, !tbaa !38
  %780 = load ptr, ptr %67, align 8, !tbaa !5
  %781 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %780)
  %782 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 7
  store i64 %781, ptr %782, align 8, !tbaa !39
  %783 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 8
  store ptr null, ptr %783, align 8, !tbaa !40
  %784 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 10
  store ptr null, ptr %784, align 8, !tbaa !41
  %785 = load ptr, ptr %67, align 8, !tbaa !5
  %786 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %785)
  %787 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 12
  store ptr %786, ptr %787, align 8, !tbaa !42
  %788 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 13
  store double 0.000000e+00, ptr %788, align 8, !tbaa !43
  %789 = load ptr, ptr %67, align 8, !tbaa !5
  %790 = call noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40) %789, ptr noundef %34)
  store i32 %790, ptr %14, align 4, !tbaa !11
  %791 = load i32, ptr %14, align 4, !tbaa !11
  %792 = icmp ne i32 0, %791
  br i1 %792, label %793, label %794

793:                                              ; preds = %769
  store i32 20, ptr %26, align 4
  br label %797

794:                                              ; preds = %769
  %795 = load ptr, ptr %67, align 8, !tbaa !5
  %796 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %795, i32 1
  store ptr %796, ptr %67, align 8, !tbaa !5
  store i32 0, ptr %26, align 4
  br label %797

797:                                              ; preds = %794, %793
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %69) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %68) #8
  %798 = load i32, ptr %26, align 4
  switch i32 %798, label %812 [
    i32 0, label %799
  ]

799:                                              ; preds = %797
  br label %800

800:                                              ; preds = %799
  %801 = load ptr, ptr %23, align 8, !tbaa !5
  %802 = load ptr, ptr %67, align 8, !tbaa !5
  %803 = icmp ne ptr %801, %802
  br i1 %803, label %651, label %804, !llvm.loop !48

804:                                              ; preds = %800
  %805 = load i8, ptr %63, align 1, !tbaa !25
  %806 = sext i8 %805 to i32
  %807 = icmp eq i32 0, %806
  br i1 %807, label %810, label %808

808:                                              ; preds = %804
  call void @LogAssertFailure(i64 noundef 664, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.37)
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str, i32 noundef 664, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

809:                                              ; No predecessors!
  br label %810

810:                                              ; preds = %809, %804
  %811 = phi i1 [ true, %804 ], [ false, %809 ]
  store i32 0, ptr %26, align 4
  br label %812

812:                                              ; preds = %810, %797
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #8
  br label %813

813:                                              ; preds = %812, %634
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #8
  %814 = load i32, ptr %26, align 4
  switch i32 %814, label %1018 [
    i32 0, label %815
    i32 20, label %817
    i32 17, label %820
  ]

815:                                              ; preds = %813
  br label %816

816:                                              ; preds = %815, %616
  br label %817

817:                                              ; preds = %816, %813, %614
  %818 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 9
  %819 = load ptr, ptr %818, align 8, !tbaa !24
  call void @AlignedFree(ptr noundef %819)
  br label %820

820:                                              ; preds = %817, %813, %614
  %821 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 6
  %822 = load ptr, ptr %821, align 8, !tbaa !22
  call void @AlignedFree(ptr noundef %822)
  br label %823

823:                                              ; preds = %820, %306
  %824 = getelementptr inbounds %struct.ApplyUpdateBridge, ptr %34, i32 0, i32 11
  %825 = load ptr, ptr %824, align 8, !tbaa !20
  call void @AlignedFree(ptr noundef %825)
  %826 = load i64, ptr %10, align 8, !tbaa !9
  %827 = icmp ne i64 0, %826
  br i1 %827, label %828, label %1009

828:                                              ; preds = %823
  call void @llvm.lifetime.start.p0(i64 8, ptr %72) #8
  %829 = load ptr, ptr %9, align 8, !tbaa !5
  %830 = call noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedWeightEPKhm(ptr noundef %829, i64 noundef 0)
  store ptr %830, ptr %72, align 8, !tbaa !5
  %831 = load ptr, ptr %72, align 8, !tbaa !5
  %832 = icmp ne ptr null, %831
  br i1 %832, label %835, label %833

833:                                              ; preds = %828
  call void @LogAssertFailure(i64 noundef 680, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.41)
  call void @__assert_fail(ptr noundef @.str.42, ptr noundef @.str, i32 noundef 680, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

834:                                              ; No predecessors!
  br label %835

835:                                              ; preds = %834, %828
  %836 = phi i1 [ true, %828 ], [ false, %834 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %73) #8
  %837 = load i64, ptr %17, align 8, !tbaa !9
  store i64 %837, ptr %73, align 8, !tbaa !9
  %838 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  br i1 %838, label %839, label %848

839:                                              ; preds = %835
  %840 = load i64, ptr %73, align 8, !tbaa !9
  %841 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 2, i64 noundef %840) #8
  br i1 %841, label %842, label %844

842:                                              ; preds = %839
  call void @LogAssertFailure(i64 noundef 684, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.43)
  call void @__assert_fail(ptr noundef @.str.44, ptr noundef @.str, i32 noundef 684, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

843:                                              ; No predecessors!
  br label %844

844:                                              ; preds = %843, %839
  %845 = phi i1 [ true, %839 ], [ false, %843 ]
  %846 = load i64, ptr %73, align 8, !tbaa !9
  %847 = shl i64 %846, 1
  store i64 %847, ptr %73, align 8, !tbaa !9
  br label %848

848:                                              ; preds = %844, %835
  call void @llvm.lifetime.start.p0(i64 8, ptr %74) #8
  %849 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %849, ptr %74, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %75) #8
  store i8 0, ptr %75, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %77) #8
  %850 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %85)
  %851 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %850)
  store ptr %851, ptr %77, align 8, !tbaa !5
  br label %852

852:                                              ; preds = %997, %848
  call void @llvm.lifetime.start.p0(i64 8, ptr %78) #8
  %853 = load ptr, ptr %77, align 8, !tbaa !5
  %854 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %853)
  %855 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %854, i32 0, i32 16
  %856 = load i64, ptr %855, align 8, !tbaa !13
  store i64 %856, ptr %78, align 8, !tbaa !9
  %857 = load ptr, ptr %77, align 8, !tbaa !5
  %858 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %857)
  %859 = icmp ule i64 1, %858
  br i1 %859, label %862, label %860

860:                                              ; preds = %852
  call void @LogAssertFailure(i64 noundef 696, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.27)
  call void @__assert_fail(ptr noundef @.str.28, ptr noundef @.str, i32 noundef 696, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

861:                                              ; No predecessors!
  br label %862

862:                                              ; preds = %861, %852
  %863 = phi i1 [ true, %852 ], [ false, %861 ]
  %864 = load ptr, ptr %77, align 8, !tbaa !5
  %865 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %864)
  %866 = load i64, ptr %78, align 8, !tbaa !9
  %867 = urem i64 %865, %866
  %868 = icmp eq i64 0, %867
  br i1 %868, label %871, label %869

869:                                              ; preds = %862
  call void @LogAssertFailure(i64 noundef 697, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.29)
  call void @__assert_fail(ptr noundef @.str.30, ptr noundef @.str, i32 noundef 697, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

870:                                              ; No predecessors!
  br label %871

871:                                              ; preds = %870, %862
  %872 = phi i1 [ true, %862 ], [ false, %870 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %79) #8
  %873 = load ptr, ptr %77, align 8, !tbaa !5
  %874 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %873)
  store ptr %874, ptr %79, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %80) #8
  %875 = load ptr, ptr %79, align 8, !tbaa !5
  %876 = load ptr, ptr %77, align 8, !tbaa !5
  %877 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %876)
  %878 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %877, i32 0, i32 17
  %879 = load i64, ptr %878, align 8, !tbaa !16
  %880 = load i64, ptr %73, align 8, !tbaa !9
  %881 = mul i64 %879, %880
  %882 = load ptr, ptr %77, align 8, !tbaa !5
  %883 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %882)
  %884 = mul i64 %881, %883
  %885 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %875, i64 noundef %884) #8
  store ptr %885, ptr %80, align 8, !tbaa !5
  br label %886

886:                                              ; preds = %990, %871
  call void @llvm.lifetime.start.p0(i64 8, ptr %81) #8
  store i64 0, ptr %81, align 8, !tbaa !9
  br label %887

887:                                              ; preds = %975, %886
  %888 = load i8, ptr %75, align 1, !tbaa !25
  %889 = sext i8 %888 to i32
  %890 = icmp eq i32 0, %889
  br i1 %890, label %891, label %914

891:                                              ; preds = %887
  store i8 1, ptr %75, align 1, !tbaa !25
  %892 = load ptr, ptr %74, align 8, !tbaa !5
  %893 = icmp ne ptr null, %892
  br i1 %893, label %894, label %909

894:                                              ; preds = %891
  br label %895

895:                                              ; preds = %902, %894
  %896 = load ptr, ptr %74, align 8, !tbaa !5
  %897 = load i8, ptr %896, align 1, !tbaa !25
  store i8 %897, ptr %75, align 1, !tbaa !25
  %898 = load ptr, ptr %74, align 8, !tbaa !5
  %899 = getelementptr inbounds i8, ptr %898, i32 1
  store ptr %899, ptr %74, align 8, !tbaa !5
  %900 = load ptr, ptr %72, align 8, !tbaa !5
  %901 = getelementptr inbounds double, ptr %900, i32 1
  store ptr %901, ptr %72, align 8, !tbaa !5
  br label %902

902:                                              ; preds = %895
  %903 = load i8, ptr %75, align 1, !tbaa !25
  %904 = sext i8 %903 to i32
  %905 = icmp sle i32 %904, 0
  br i1 %905, label %895, label %906, !llvm.loop !49

906:                                              ; preds = %902
  %907 = load ptr, ptr %72, align 8, !tbaa !5
  %908 = getelementptr inbounds double, ptr %907, i32 -1
  store ptr %908, ptr %72, align 8, !tbaa !5
  br label %909

909:                                              ; preds = %906, %891
  %910 = load ptr, ptr %72, align 8, !tbaa !5
  %911 = load double, ptr %910, align 8, !tbaa !28
  store double %911, ptr %76, align 8, !tbaa !28
  %912 = load ptr, ptr %72, align 8, !tbaa !5
  %913 = getelementptr inbounds double, ptr %912, i32 1
  store ptr %913, ptr %72, align 8, !tbaa !5
  br label %914

914:                                              ; preds = %909, %887
  call void @llvm.lifetime.start.p0(i64 8, ptr %82) #8
  store i64 0, ptr %82, align 8, !tbaa !9
  %915 = load ptr, ptr %77, align 8, !tbaa !5
  %916 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %915)
  %917 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %916, i32 0, i32 17
  %918 = load i64, ptr %917, align 8, !tbaa !16
  %919 = icmp eq i64 8, %918
  br i1 %919, label %920, label %940

920:                                              ; preds = %914
  call void @llvm.lifetime.start.p0(i64 8, ptr %83) #8
  %921 = load double, ptr %76, align 8, !tbaa !28
  store double %921, ptr %83, align 8, !tbaa !28
  br label %922

922:                                              ; preds = %935, %920
  %923 = load double, ptr %83, align 8, !tbaa !28
  %924 = load ptr, ptr %79, align 8, !tbaa !5
  %925 = load i64, ptr %82, align 8, !tbaa !9
  %926 = load i64, ptr %78, align 8, !tbaa !9
  %927 = mul i64 %925, %926
  %928 = load i64, ptr %81, align 8, !tbaa !9
  %929 = add i64 %927, %928
  %930 = getelementptr inbounds double, ptr %924, i64 %929
  %931 = load double, ptr %930, align 8, !tbaa !28
  %932 = fmul double %931, %923
  store double %932, ptr %930, align 8, !tbaa !28
  %933 = load i64, ptr %82, align 8, !tbaa !9
  %934 = add i64 %933, 1
  store i64 %934, ptr %82, align 8, !tbaa !9
  br label %935

935:                                              ; preds = %922
  %936 = load i64, ptr %73, align 8, !tbaa !9
  %937 = load i64, ptr %82, align 8, !tbaa !9
  %938 = icmp ne i64 %936, %937
  br i1 %938, label %922, label %939, !llvm.loop !50

939:                                              ; preds = %935
  call void @llvm.lifetime.end.p0(i64 8, ptr %83) #8
  br label %970

940:                                              ; preds = %914
  %941 = load ptr, ptr %77, align 8, !tbaa !5
  %942 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %941)
  %943 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %942, i32 0, i32 17
  %944 = load i64, ptr %943, align 8, !tbaa !16
  %945 = icmp eq i64 4, %944
  br i1 %945, label %948, label %946

946:                                              ; preds = %940
  call void @LogAssertFailure(i64 noundef 726, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.35)
  call void @__assert_fail(ptr noundef @.str.36, ptr noundef @.str, i32 noundef 726, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

947:                                              ; No predecessors!
  br label %948

948:                                              ; preds = %947, %940
  %949 = phi i1 [ true, %940 ], [ false, %947 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %84) #8
  %950 = load double, ptr %76, align 8, !tbaa !28
  %951 = fptrunc double %950 to float
  store float %951, ptr %84, align 4, !tbaa !29
  br label %952

952:                                              ; preds = %965, %948
  %953 = load float, ptr %84, align 4, !tbaa !29
  %954 = load ptr, ptr %79, align 8, !tbaa !5
  %955 = load i64, ptr %82, align 8, !tbaa !9
  %956 = load i64, ptr %78, align 8, !tbaa !9
  %957 = mul i64 %955, %956
  %958 = load i64, ptr %81, align 8, !tbaa !9
  %959 = add i64 %957, %958
  %960 = getelementptr inbounds float, ptr %954, i64 %959
  %961 = load float, ptr %960, align 4, !tbaa !29
  %962 = fmul float %961, %953
  store float %962, ptr %960, align 4, !tbaa !29
  %963 = load i64, ptr %82, align 8, !tbaa !9
  %964 = add i64 %963, 1
  store i64 %964, ptr %82, align 8, !tbaa !9
  br label %965

965:                                              ; preds = %952
  %966 = load i64, ptr %73, align 8, !tbaa !9
  %967 = load i64, ptr %82, align 8, !tbaa !9
  %968 = icmp ne i64 %966, %967
  br i1 %968, label %952, label %969, !llvm.loop !51

969:                                              ; preds = %965
  call void @llvm.lifetime.end.p0(i64 4, ptr %84) #8
  br label %970

970:                                              ; preds = %969, %939
  %971 = load i8, ptr %75, align 1, !tbaa !25
  %972 = add i8 %971, -1
  store i8 %972, ptr %75, align 1, !tbaa !25
  %973 = load i64, ptr %81, align 8, !tbaa !9
  %974 = add i64 %973, 1
  store i64 %974, ptr %81, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %82) #8
  br label %975

975:                                              ; preds = %970
  %976 = load i64, ptr %78, align 8, !tbaa !9
  %977 = load i64, ptr %81, align 8, !tbaa !9
  %978 = icmp ne i64 %976, %977
  br i1 %978, label %887, label %979, !llvm.loop !52

979:                                              ; preds = %975
  %980 = load ptr, ptr %79, align 8, !tbaa !5
  %981 = load ptr, ptr %77, align 8, !tbaa !5
  %982 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %981)
  %983 = getelementptr inbounds %struct.ObjectiveWrapper, ptr %982, i32 0, i32 17
  %984 = load i64, ptr %983, align 8, !tbaa !16
  %985 = load i64, ptr %73, align 8, !tbaa !9
  %986 = mul i64 %984, %985
  %987 = load i64, ptr %78, align 8, !tbaa !9
  %988 = mul i64 %986, %987
  %989 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %980, i64 noundef %988) #8
  store ptr %989, ptr %79, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %81) #8
  br label %990

990:                                              ; preds = %979
  %991 = load ptr, ptr %80, align 8, !tbaa !5
  %992 = load ptr, ptr %79, align 8, !tbaa !5
  %993 = icmp ne ptr %991, %992
  br i1 %993, label %886, label %994, !llvm.loop !53

994:                                              ; preds = %990
  %995 = load ptr, ptr %77, align 8, !tbaa !5
  %996 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %995, i32 1
  store ptr %996, ptr %77, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %80) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %79) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %78) #8
  br label %997

997:                                              ; preds = %994
  %998 = load ptr, ptr %23, align 8, !tbaa !5
  %999 = load ptr, ptr %77, align 8, !tbaa !5
  %1000 = icmp ne ptr %998, %999
  br i1 %1000, label %852, label %1001, !llvm.loop !54

1001:                                             ; preds = %997
  %1002 = load i8, ptr %75, align 1, !tbaa !25
  %1003 = sext i8 %1002 to i32
  %1004 = icmp eq i32 0, %1003
  br i1 %1004, label %1007, label %1005

1005:                                             ; preds = %1001
  call void @LogAssertFailure(i64 noundef 743, ptr noundef @.str, ptr noundef @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef @.str.37)
  call void @__assert_fail(ptr noundef @.str.38, ptr noundef @.str, i32 noundef 743, ptr noundef @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #9
  unreachable

1006:                                             ; No predecessors!
  br label %1007

1007:                                             ; preds = %1006, %1001
  %1008 = phi i1 [ true, %1001 ], [ false, %1006 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %77) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %76) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %75) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %74) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %73) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %72) #8
  br label %1009

1009:                                             ; preds = %1007, %823
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  store i32 0, ptr %26, align 4
  br label %1010

1010:                                             ; preds = %1009, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %34) #8
  br label %1011

1011:                                             ; preds = %1010, %262
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %1012 = load i32, ptr %26, align 4
  switch i32 %1012, label %1016 [
    i32 0, label %1013
  ]

1013:                                             ; preds = %1011
  br label %1014

1014:                                             ; preds = %1013, %6
  %1015 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %1015, ptr %7, align 4
  store i32 1, ptr %26, align 4
  br label %1016

1016:                                             ; preds = %1014, %1011
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  %1017 = load i32, ptr %7, align 4
  ret i32 %1017

1018:                                             ; preds = %813, %614, %596
  unreachable
}

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

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

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

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

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

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

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

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

declare ptr @AlignedAlloc(i64 noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK14NAMESPACE_MAIN15InteractionCore11IsUseApproxEv(ptr noundef nonnull align 8 dereferenceable(392)) #3 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #4 align 2

declare void @AlignedFree(ptr noundef) #1

declare noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedWeightEPKhm(ptr noundef, i64 noundef) #1

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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 120}
!14 = !{!"_ZTS16ObjectiveWrapper", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !12, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !12, i64 144, !6, i64 152}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !10, i64 128}
!17 = !{!14, !10, i64 136}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 72}
!21 = !{!"_ZTS17ApplyUpdateBridge", !10, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !15, i64 88}
!22 = !{!21, !6, i64 32}
!23 = !{!21, !6, i64 24}
!24 = !{!21, !6, i64 56}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = !{!15, !15, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"float", !7, i64 0}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = distinct !{!33, !19}
!34 = !{!21, !10, i64 0}
!35 = !{!21, !12, i64 8}
!36 = !{!21, !12, i64 12}
!37 = !{!21, !12, i64 20}
!38 = !{!21, !12, i64 16}
!39 = !{!21, !10, i64 40}
!40 = !{!21, !6, i64 48}
!41 = !{!21, !6, i64 64}
!42 = !{!21, !6, i64 80}
!43 = !{!21, !15, i64 88}
!44 = distinct !{!44, !19}
!45 = distinct !{!45, !19}
!46 = distinct !{!46, !19}
!47 = distinct !{!47, !19}
!48 = distinct !{!48, !19}
!49 = distinct !{!49, !19}
!50 = distinct !{!50, !19}
!51 = distinct !{!51, !19}
!52 = distinct !{!52, !19}
!53 = distinct !{!53, !19}
!54 = distinct !{!54, !19}


; 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.ApplyUpdateBridge = type { i64, i32, i32, i32, i32, ptr, ptr, i64, ptr, ptr, ptr, ptr, ptr, double }
%"struct.NAMESPACE_MAIN::DataSubsetInteraction" = type { i64, 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
@__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_ = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_ = external hidden unnamed_addr constant [189 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage = external hidden constant [153 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_0 = external hidden constant [143 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1 = external hidden constant [144 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_2 = external hidden constant [93 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_3 = external hidden constant [92 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_4 = external hidden constant [88 x i8], align 16
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_5 = external hidden constant [100 x i8], align 16
@.str.27 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_6 = external hidden constant [88 x i8], align 16
@.str.39 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: mustprogress 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) local_unnamed_addr #1

; Function Attrs: mustprogress 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) local_unnamed_addr #1

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

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

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

declare noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedTargetEPKhmPl(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_(ptr noundef nonnull align 8 dereferenceable(392) %0, ptr noundef %1, i64 noundef %2, ptr noundef readonly %3, ptr noundef readonly %4, ptr noundef readonly %5) local_unnamed_addr #5 align 2 {
  %7 = alloca i64, align 8
  %8 = alloca %struct.ApplyUpdateBridge, align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %470, label %11

11:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %12 = call noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedTargetEPKhmPl(ptr noundef %1, i64 noundef 0, ptr noundef nonnull %7)
  %.not422 = icmp eq ptr %12, null
  br i1 %.not422, label %13, label %14

13:                                               ; preds = %11
  call void @LogAssertFailure(i64 noundef 364, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.9)
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 364, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

14:                                               ; preds = %11
  %15 = load i64, ptr %7, align 8, !tbaa !5
  switch i64 %15, label %18 [
    i64 0, label %16
    i64 1, label %17
  ]

16:                                               ; preds = %14
  call void @LogAssertFailure(i64 noundef 365, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.11)
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str, i32 noundef 365, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

17:                                               ; preds = %14
  call void @LogAssertFailure(i64 noundef 366, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.13)
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str, i32 noundef 366, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

18:                                               ; preds = %14
  %19 = call noundef i64 @_ZNK14NAMESPACE_MAIN15InteractionCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %.not425 = icmp eq i64 %19, 0
  br i1 %.not425, label %20, label %21

20:                                               ; preds = %18
  call void @LogAssertFailure(i64 noundef 368, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.15)
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str, i32 noundef 368, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

21:                                               ; preds = %18
  %22 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %23 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %22)
  %.not426 = icmp eq ptr %23, null
  br i1 %.not426, label %24, label %25

24:                                               ; preds = %21
  call void @LogAssertFailure(i64 noundef 375, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.17)
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str, i32 noundef 375, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

25:                                               ; preds = %21
  %26 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %27 = call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %26)
  %.not427 = icmp eq i64 %27, 0
  br i1 %.not427, label %28, label %29

28:                                               ; preds = %25
  call void @LogAssertFailure(i64 noundef 376, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.19)
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str, i32 noundef 376, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

29:                                               ; preds = %25
  %30 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %31 = call noundef i64 @_ZNK14NAMESPACE_MAIN18DataSetInteraction15GetCountSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %30)
  %32 = getelementptr inbounds %"struct.NAMESPACE_MAIN::DataSubsetInteraction", ptr %23, i64 %31
  br label %33

33:                                               ; preds = %86, %29
  %.0340 = phi ptr [ %23, %29 ], [ %92, %86 ]
  %.0312 = phi i64 [ 0, %29 ], [ %91, %86 ]
  %.0303 = phi i64 [ 0, %29 ], [ %68, %86 ]
  %.0276 = phi i64 [ 0, %29 ], [ %67, %86 ]
  %.0273 = phi i64 [ 0, %29 ], [ %66, %86 ]
  %34 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %.not428 = icmp eq i64 %34, 0
  br i1 %.not428, label %35, label %36

35:                                               ; preds = %33
  call void @LogAssertFailure(i64 noundef 380, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.21)
  call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str, i32 noundef 380, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

36:                                               ; preds = %33
  %37 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %38 = getelementptr inbounds i8, ptr %37, i64 120
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = urem i64 %34, %39
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  call void @LogAssertFailure(i64 noundef 382, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.23)
  call void @__assert_fail(ptr noundef nonnull @.str.24, ptr noundef nonnull @.str, i32 noundef 382, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

43:                                               ; preds = %36
  %44 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %45 = getelementptr inbounds i8, ptr %44, i64 120
  %46 = load i64, ptr %45, align 8, !tbaa !9
  %.not429 = icmp ugt i64 %46, %34
  br i1 %.not429, label %47, label %48

47:                                               ; preds = %43
  call void @LogAssertFailure(i64 noundef 383, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.25)
  call void @__assert_fail(ptr noundef nonnull @.str.26, ptr noundef nonnull @.str, i32 noundef 383, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

48:                                               ; preds = %43
  %49 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %50 = getelementptr inbounds i8, ptr %49, i64 128
  %51 = load i64, ptr %50, align 8, !tbaa !14
  %52 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImJmEEEbT_S1_DpKT0_(i64 noundef %51, i64 noundef %19, i64 noundef %34) #7
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  %54 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %55 = icmp sgt i32 %54, 1
  br i1 %55, label %.thread488.sink.split, label %.thread488

56:                                               ; preds = %48
  %57 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %58 = getelementptr inbounds i8, ptr %57, i64 128
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = mul i64 %59, %19
  %61 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %62 = getelementptr inbounds i8, ptr %61, i64 120
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = mul i64 %63, %60
  %65 = mul i64 %60, %34
  %66 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %.0273, i64 noundef %60) #7
  %67 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %.0276, i64 noundef %65) #7
  %68 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %.0303, i64 noundef %64) #7
  %69 = load i64, ptr %7, align 8, !tbaa !5
  %70 = icmp sgt i64 %69, -1
  %71 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  br i1 %70, label %72, label %79

72:                                               ; preds = %56
  %73 = getelementptr inbounds i8, ptr %71, i64 136
  %74 = load i64, ptr %73, align 8, !tbaa !16
  %75 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %74, i64 noundef %34) #7
  br i1 %75, label %76, label %86

76:                                               ; preds = %72
  %77 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %78 = icmp sgt i32 %77, 1
  br i1 %78, label %.thread488.sink.split, label %.thread488

79:                                               ; preds = %56
  %80 = getelementptr inbounds i8, ptr %71, i64 128
  %81 = load i64, ptr %80, align 8, !tbaa !14
  %82 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef %81, i64 noundef %34) #7
  br i1 %82, label %83, label %86

83:                                               ; preds = %79
  %84 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %85 = icmp sgt i32 %84, 1
  br i1 %85, label %.thread488.sink.split, label %.thread488

.thread488.sink.split:                            ; preds = %83, %76, %53
  %_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1.sink = phi ptr [ @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage, %53 ], [ @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_0, %76 ], [ @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1, %83 ]
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull %_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_1.sink)
  br label %.thread488

.thread488:                                       ; preds = %.thread488.sink.split, %83, %76, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %470

86:                                               ; preds = %79, %72
  %.sink651 = phi i64 [ 136, %72 ], [ 128, %79 ]
  %87 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0340)
  %88 = getelementptr inbounds i8, ptr %87, i64 %.sink651
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = mul i64 %89, %34
  %91 = call noundef i64 @_ZN14NAMESPACE_MAINL6EbmMaxImEET_S1_S1_(i64 noundef %.0312, i64 noundef %90) #7
  %92 = getelementptr inbounds i8, ptr %.0340, i64 40
  %.not430 = icmp eq ptr %32, %92
  br i1 %.not430, label %93, label %33, !llvm.loop !17

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %8) #7
  %94 = call ptr @AlignedAlloc(i64 noundef %67)
  %.not494 = icmp eq ptr %94, null
  br i1 %.not494, label %95, label %99, !prof !19

95:                                               ; preds = %93
  %96 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %97 = icmp sgt i32 %96, 1
  br i1 %97, label %98, label %.thread492

98:                                               ; preds = %95
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_2)
  br label %.thread492

99:                                               ; preds = %93
  %100 = getelementptr inbounds i8, ptr %8, i64 72
  store ptr %94, ptr %100, align 8, !tbaa !20
  %101 = call ptr @AlignedAlloc(i64 noundef %66)
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %107, !prof !19

103:                                              ; preds = %99
  %104 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %105 = icmp sgt i32 %104, 1
  br i1 %105, label %106, label %347

106:                                              ; preds = %103
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_3)
  br label %347

107:                                              ; preds = %99
  %108 = getelementptr inbounds i8, ptr %8, i64 32
  store ptr %101, ptr %108, align 8, !tbaa !22
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %101, i8 0, i64 %66, i1 false)
  %109 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr null, ptr %109, align 8, !tbaa !23
  %110 = load i64, ptr %7, align 8, !tbaa !5
  %111 = icmp sgt i64 %110, -1
  %112 = call ptr @AlignedAlloc(i64 noundef %91)
  %113 = icmp eq ptr %112, null
  br i1 %111, label %114, label %252

114:                                              ; preds = %107
  br i1 %113, label %115, label %119, !prof !19

115:                                              ; preds = %114
  %116 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %117 = icmp sgt i32 %116, 1
  br i1 %117, label %118, label %.thread472

118:                                              ; preds = %115
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_4)
  br label %.thread472

119:                                              ; preds = %114
  %120 = getelementptr inbounds i8, ptr %8, i64 56
  store ptr %112, ptr %120, align 8, !tbaa !24
  %.not437 = icmp eq i64 %19, 1
  br i1 %.not437, label %128, label %121

121:                                              ; preds = %119
  %122 = call ptr @AlignedAlloc(i64 noundef %68)
  %.not438 = icmp eq ptr %122, null
  br i1 %.not438, label %123, label %127, !prof !19

123:                                              ; preds = %121
  %124 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %125 = icmp sgt i32 %124, 1
  br i1 %125, label %126, label %.thread483

126:                                              ; preds = %123
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_5)
  br label %.thread483

127:                                              ; preds = %121
  store ptr %122, ptr %109, align 8, !tbaa !23
  br label %128

128:                                              ; preds = %127, %119
  %129 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %130 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %129)
  %131 = sub i64 0, %19
  %.not442 = icmp eq ptr %3, null
  %132 = getelementptr inbounds i8, ptr %8, i64 8
  %133 = getelementptr inbounds i8, ptr %8, i64 12
  %134 = getelementptr inbounds i8, ptr %8, i64 20
  %135 = getelementptr inbounds i8, ptr %8, i64 16
  %136 = getelementptr inbounds i8, ptr %8, i64 40
  %137 = getelementptr inbounds i8, ptr %8, i64 48
  %138 = getelementptr inbounds i8, ptr %8, i64 64
  %139 = getelementptr inbounds i8, ptr %8, i64 80
  %140 = getelementptr inbounds i8, ptr %8, i64 88
  br label %141

141:                                              ; preds = %246, %128
  %.0391 = phi ptr [ %5, %128 ], [ %.4395, %246 ]
  %.0386 = phi i8 [ 0, %128 ], [ %231, %246 ]
  %.0381 = phi ptr [ null, %128 ], [ %.4385, %246 ]
  %.0377 = phi i64 [ undef, %128 ], [ %.3380, %246 ]
  %.0375 = phi ptr [ %130, %128 ], [ %247, %246 ]
  %.0368 = phi ptr [ %4, %128 ], [ %.6374, %246 ]
  %.0358 = phi ptr [ %12, %128 ], [ %.6364, %246 ]
  %142 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %.not439 = icmp eq i64 %142, 0
  br i1 %.not439, label %143, label %144

143:                                              ; preds = %141
  call void @LogAssertFailure(i64 noundef 475, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.27)
  call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 475, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

144:                                              ; preds = %141
  %145 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %146 = getelementptr inbounds i8, ptr %145, i64 120
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %149 = urem i64 %148, %147
  %150 = icmp eq i64 %149, 0
  br i1 %150, label %152, label %151

151:                                              ; preds = %144
  call void @LogAssertFailure(i64 noundef 478, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.29)
  call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str, i32 noundef 478, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

152:                                              ; preds = %144
  %153 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %154 = getelementptr inbounds i8, ptr %153, i64 136
  %155 = load i64, ptr %154, align 8, !tbaa !16
  %156 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %157 = mul i64 %156, %155
  %158 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %112, i64 noundef %157) #7
  %159 = mul i64 %147, %19
  br label %160

160:                                              ; preds = %233, %152
  %.1392 = phi ptr [ %.0391, %152 ], [ %.4395, %233 ]
  %.1387 = phi i8 [ %.0386, %152 ], [ %231, %233 ]
  %.1382 = phi ptr [ %.0381, %152 ], [ %.4385, %233 ]
  %.1378 = phi i64 [ %.0377, %152 ], [ %.3380, %233 ]
  %.1369 = phi ptr [ %.0368, %152 ], [ %.6374, %233 ]
  %.0366 = phi ptr [ %112, %152 ], [ %198, %233 ]
  %.0365 = phi ptr [ %94, %152 ], [ %238, %233 ]
  %.1359 = phi ptr [ %.0358, %152 ], [ %.6364, %233 ]
  br label %161

161:                                              ; preds = %230, %160
  %.2393 = phi ptr [ %.1392, %160 ], [ %.4395, %230 ]
  %.2388 = phi i8 [ %.1387, %160 ], [ %231, %230 ]
  %.2383 = phi ptr [ %.1382, %160 ], [ %.4385, %230 ]
  %.2379 = phi i64 [ %.1378, %160 ], [ %.3380, %230 ]
  %.2370 = phi ptr [ %.1369, %160 ], [ %.6374, %230 ]
  %.1367 = phi ptr [ %.0366, %160 ], [ %198, %230 ]
  %.2360 = phi ptr [ %.1359, %160 ], [ %.6364, %230 ]
  %.0357 = phi i64 [ 0, %160 ], [ %232, %230 ]
  %162 = icmp eq i8 %.2388, 0
  br i1 %162, label %163, label %180

163:                                              ; preds = %161
  %.not440 = icmp eq ptr %.2370, null
  br i1 %.not440, label %.loopexit499, label %.preheader498

.preheader498:                                    ; preds = %163, %169
  %.3371 = phi ptr [ %166, %169 ], [ %.2370, %163 ]
  %.3361 = phi ptr [ %167, %169 ], [ %.2360, %163 ]
  %.0355 = phi i64 [ %170, %169 ], [ 0, %163 ]
  br label %164

164:                                              ; preds = %164, %.preheader498
  %.4372 = phi ptr [ %.3371, %.preheader498 ], [ %166, %164 ]
  %.4362 = phi ptr [ %.3361, %.preheader498 ], [ %167, %164 ]
  %165 = load i8, ptr %.4372, align 1, !tbaa !25
  %166 = getelementptr inbounds i8, ptr %.4372, i64 1
  %167 = getelementptr inbounds i8, ptr %.4362, i64 8
  %168 = icmp eq i8 %165, 0
  br i1 %168, label %164, label %169, !llvm.loop !26

169:                                              ; preds = %164
  %170 = add i64 %.0355, %19
  %171 = icmp slt i8 %165, 0
  br i1 %171, label %.preheader498, label %.loopexit499, !llvm.loop !27

.loopexit499:                                     ; preds = %169, %163
  %.3389 = phi i8 [ 1, %163 ], [ %165, %169 ]
  %.5373 = phi ptr [ null, %163 ], [ %166, %169 ]
  %.5363 = phi ptr [ %.2360, %163 ], [ %.4362, %169 ]
  %.1356 = phi i64 [ %19, %163 ], [ %170, %169 ]
  %172 = load i64, ptr %.5363, align 8, !tbaa !5
  %173 = load i64, ptr %7, align 8, !tbaa !5
  %174 = icmp ult i64 %172, %173
  br i1 %174, label %176, label %175

175:                                              ; preds = %.loopexit499
  call void @LogAssertFailure(i64 noundef 515, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.31)
  call void @__assert_fail(ptr noundef nonnull @.str.32, ptr noundef nonnull @.str, i32 noundef 515, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

176:                                              ; preds = %.loopexit499
  %.not441 = icmp eq ptr %.2393, null
  %177 = getelementptr inbounds double, ptr %.2393, i64 %.1356
  %178 = getelementptr inbounds double, ptr %177, i64 %131
  %.3384 = select i1 %.not441, ptr %.2383, ptr %178
  %.3394 = select i1 %.not441, ptr null, ptr %177
  %179 = getelementptr inbounds i8, ptr %.5363, i64 8
  br label %180

180:                                              ; preds = %176, %161
  %.4395 = phi ptr [ %.3394, %176 ], [ %.2393, %161 ]
  %.4390 = phi i8 [ %.3389, %176 ], [ %.2388, %161 ]
  %.4385 = phi ptr [ %.3384, %176 ], [ %.2383, %161 ]
  %.3380 = phi i64 [ %172, %176 ], [ %.2379, %161 ]
  %.6374 = phi ptr [ %.5373, %176 ], [ %.2370, %161 ]
  %.6364 = phi ptr [ %179, %176 ], [ %.2360, %161 ]
  %181 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %182 = getelementptr inbounds i8, ptr %181, i64 136
  %183 = load i64, ptr %182, align 8, !tbaa !16
  %184 = icmp eq i64 %183, 8
  br i1 %184, label %185, label %186

185:                                              ; preds = %180
  store i64 %.3380, ptr %.1367, align 8, !tbaa !5
  br label %194

186:                                              ; preds = %180
  %187 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %188 = getelementptr inbounds i8, ptr %187, i64 136
  %189 = load i64, ptr %188, align 8, !tbaa !16
  %190 = icmp eq i64 %189, 4
  br i1 %190, label %192, label %191

191:                                              ; preds = %186
  call void @LogAssertFailure(i64 noundef 521, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.33)
  call void @__assert_fail(ptr noundef nonnull @.str.34, ptr noundef nonnull @.str, i32 noundef 521, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

192:                                              ; preds = %186
  %193 = trunc i64 %.3380 to i32
  store i32 %193, ptr %.1367, align 4, !tbaa !15
  br label %194

194:                                              ; preds = %192, %185
  %195 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %196 = getelementptr inbounds i8, ptr %195, i64 136
  %197 = load i64, ptr %196, align 8, !tbaa !16
  %198 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.1367, i64 noundef %197) #7
  %.not443 = icmp eq ptr %.4385, null
  br label %199

199:                                              ; preds = %228, %194
  %.0354 = phi i64 [ 0, %194 ], [ %229, %228 ]
  br i1 %.not442, label %203, label %200

200:                                              ; preds = %199
  %201 = getelementptr inbounds double, ptr %3, i64 %.0354
  %202 = load double, ptr %201, align 8, !tbaa !28
  br label %203

203:                                              ; preds = %200, %199
  %.0352 = phi double [ %202, %200 ], [ 0.000000e+00, %199 ]
  br i1 %.not443, label %208, label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds double, ptr %.4385, i64 %.0354
  %206 = load double, ptr %205, align 8, !tbaa !28
  %207 = fadd double %.0352, %206
  br label %208

208:                                              ; preds = %204, %203
  %.1353 = phi double [ %207, %204 ], [ %.0352, %203 ]
  %209 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %210 = getelementptr inbounds i8, ptr %209, i64 128
  %211 = load i64, ptr %210, align 8, !tbaa !14
  %212 = icmp eq i64 %211, 8
  br i1 %212, label %213, label %217

213:                                              ; preds = %208
  %214 = mul i64 %.0354, %147
  %215 = add i64 %214, %.0357
  %216 = getelementptr inbounds double, ptr %.0365, i64 %215
  store double %.1353, ptr %216, align 8, !tbaa !28
  br label %228

217:                                              ; preds = %208
  %218 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %219 = getelementptr inbounds i8, ptr %218, i64 128
  %220 = load i64, ptr %219, align 8, !tbaa !14
  %221 = icmp eq i64 %220, 4
  br i1 %221, label %223, label %222

222:                                              ; preds = %217
  call void @LogAssertFailure(i64 noundef 540, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.35)
  call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str, i32 noundef 540, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

223:                                              ; preds = %217
  %224 = fptrunc double %.1353 to float
  %225 = mul i64 %.0354, %147
  %226 = add i64 %225, %.0357
  %227 = getelementptr inbounds float, ptr %.0365, i64 %226
  store float %224, ptr %227, align 4, !tbaa !29
  br label %228

228:                                              ; preds = %223, %213
  %229 = add i64 %.0354, 1
  %.not444 = icmp eq i64 %19, %229
  br i1 %.not444, label %230, label %199, !llvm.loop !31

230:                                              ; preds = %228
  %231 = add i8 %.4390, -1
  %232 = add i64 %.0357, 1
  %.not445 = icmp eq i64 %147, %232
  br i1 %.not445, label %233, label %161, !llvm.loop !32

233:                                              ; preds = %230
  %234 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  %235 = getelementptr inbounds i8, ptr %234, i64 128
  %236 = load i64, ptr %235, align 8, !tbaa !14
  %237 = mul i64 %159, %236
  %238 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.0365, i64 noundef %237) #7
  %.not446 = icmp eq ptr %158, %198
  br i1 %.not446, label %239, label %160, !llvm.loop !33

239:                                              ; preds = %233
  store i64 %19, ptr %8, align 8, !tbaa !34
  store i32 0, ptr %132, align 8, !tbaa !35
  %240 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %241 = zext i1 %240 to i32
  store i32 %241, ptr %133, align 4, !tbaa !36
  %242 = call noundef i32 @_ZNK14NAMESPACE_MAIN15InteractionCore11IsUseApproxEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  store i32 %242, ptr %134, align 4, !tbaa !37
  store i32 0, ptr %135, align 8, !tbaa !38
  %243 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  store i64 %243, ptr %136, align 8, !tbaa !39
  store ptr null, ptr %137, align 8, !tbaa !40
  store ptr null, ptr %138, align 8, !tbaa !41
  %244 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %.0375)
  store ptr %244, ptr %139, align 8, !tbaa !42
  store double 0.000000e+00, ptr %140, align 8, !tbaa !43
  %245 = call noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40) %.0375, ptr noundef nonnull %8)
  %.not447 = icmp eq i32 %245, 0
  br i1 %.not447, label %246, label %.loopexit500

246:                                              ; preds = %239
  %247 = getelementptr inbounds i8, ptr %.0375, i64 40
  %.not448 = icmp eq ptr %32, %247
  br i1 %.not448, label %248, label %141, !llvm.loop !44

248:                                              ; preds = %246
  %249 = icmp eq i8 %231, 0
  br i1 %249, label %.loopexit500, label %250

250:                                              ; preds = %248
  call void @LogAssertFailure(i64 noundef 572, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.37)
  call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str, i32 noundef 572, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

.loopexit500:                                     ; preds = %239, %248
  %251 = load ptr, ptr %109, align 8, !tbaa !23
  call void @AlignedFree(ptr noundef %251)
  br label %.thread483

252:                                              ; preds = %107
  br i1 %113, label %253, label %257, !prof !19

253:                                              ; preds = %252
  %254 = load i32, ptr @g_traceLevel, align 4, !tbaa !15
  %255 = icmp sgt i32 %254, 1
  br i1 %255, label %256, label %.thread472

256:                                              ; preds = %253
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_E13LOG__sMessage_6)
  br label %.thread472

257:                                              ; preds = %252
  %258 = getelementptr inbounds i8, ptr %8, i64 56
  store ptr %112, ptr %258, align 8, !tbaa !24
  %259 = icmp eq ptr %3, null
  br i1 %259, label %262, label %260

260:                                              ; preds = %257
  %261 = load double, ptr %3, align 8, !tbaa !28
  br label %262

262:                                              ; preds = %257, %260
  %263 = phi double [ %261, %260 ], [ 0.000000e+00, %257 ]
  %264 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %265 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %264)
  %266 = icmp eq i64 %19, 1
  %267 = getelementptr inbounds i8, ptr %8, i64 8
  %268 = getelementptr inbounds i8, ptr %8, i64 12
  %269 = getelementptr inbounds i8, ptr %8, i64 20
  %270 = getelementptr inbounds i8, ptr %8, i64 16
  %271 = getelementptr inbounds i8, ptr %8, i64 40
  %272 = getelementptr inbounds i8, ptr %8, i64 48
  %273 = getelementptr inbounds i8, ptr %8, i64 64
  %274 = getelementptr inbounds i8, ptr %8, i64 80
  %275 = getelementptr inbounds i8, ptr %8, i64 88
  br label %276

276:                                              ; preds = %339, %262
  %.0334 = phi ptr [ %12, %262 ], [ %.5339, %339 ]
  %.0328 = phi ptr [ %4, %262 ], [ %.5333, %339 ]
  %.0324 = phi ptr [ %5, %262 ], [ %.3327, %339 ]
  %.0320 = phi i8 [ 0, %262 ], [ %329, %339 ]
  %.0316 = phi double [ undef, %262 ], [ %.3319, %339 ]
  %.0309 = phi double [ undef, %262 ], [ %.2311, %339 ]
  %.0307 = phi ptr [ %265, %262 ], [ %340, %339 ]
  %277 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %.not431 = icmp eq i64 %277, 0
  br i1 %.not431, label %278, label %279

278:                                              ; preds = %276
  call void @LogAssertFailure(i64 noundef 597, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.27)
  call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 597, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

279:                                              ; preds = %276
  %280 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %281 = getelementptr inbounds i8, ptr %280, i64 128
  %282 = load i64, ptr %281, align 8, !tbaa !14
  %283 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %284 = mul i64 %283, %282
  %285 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %112, i64 noundef %284) #7
  br label %286

286:                                              ; preds = %320, %279
  %.1335 = phi ptr [ %.0334, %279 ], [ %.5339, %320 ]
  %.1329 = phi ptr [ %.0328, %279 ], [ %.5333, %320 ]
  %.1325 = phi ptr [ %.0324, %279 ], [ %.3327, %320 ]
  %.1321 = phi i8 [ %.0320, %279 ], [ %329, %320 ]
  %.1317 = phi double [ %.0316, %279 ], [ %.3319, %320 ]
  %.1310 = phi double [ %.0309, %279 ], [ %.2311, %320 ]
  %.0306 = phi ptr [ %112, %279 ], [ %324, %320 ]
  %.0305 = phi ptr [ %94, %279 ], [ %328, %320 ]
  %287 = icmp eq i8 %.1321, 0
  br i1 %287, label %288, label %305

288:                                              ; preds = %286
  %.not432 = icmp eq ptr %.1329, null
  br i1 %.not432, label %.loopexit502, label %.preheader501

.preheader501:                                    ; preds = %288, %294
  %.2336 = phi ptr [ %292, %294 ], [ %.1335, %288 ]
  %.2330 = phi ptr [ %291, %294 ], [ %.1329, %288 ]
  %.0301 = phi i64 [ %295, %294 ], [ 0, %288 ]
  br label %289

289:                                              ; preds = %289, %.preheader501
  %.3337 = phi ptr [ %.2336, %.preheader501 ], [ %292, %289 ]
  %.3331 = phi ptr [ %.2330, %.preheader501 ], [ %291, %289 ]
  %290 = load i8, ptr %.3331, align 1, !tbaa !25
  %291 = getelementptr inbounds i8, ptr %.3331, i64 1
  %292 = getelementptr inbounds i8, ptr %.3337, i64 8
  %293 = icmp eq i8 %290, 0
  br i1 %293, label %289, label %294, !llvm.loop !45

294:                                              ; preds = %289
  %295 = add i64 %.0301, 1
  %296 = icmp slt i8 %290, 0
  br i1 %296, label %.preheader501, label %.loopexit502, !llvm.loop !46

.loopexit502:                                     ; preds = %294, %288
  %.4338 = phi ptr [ %.1335, %288 ], [ %.3337, %294 ]
  %.4332 = phi ptr [ null, %288 ], [ %291, %294 ]
  %.2322 = phi i8 [ 1, %288 ], [ %290, %294 ]
  %.1302 = phi i64 [ 1, %288 ], [ %295, %294 ]
  %.not433 = icmp eq ptr %.1325, null
  br i1 %.not433, label %302, label %297

297:                                              ; preds = %.loopexit502
  %298 = getelementptr inbounds double, ptr %.1325, i64 %.1302
  %299 = getelementptr inbounds i8, ptr %298, i64 -8
  %300 = load double, ptr %299, align 8, !tbaa !28
  %301 = fadd double %263, %300
  br label %302

302:                                              ; preds = %297, %.loopexit502
  %.2326 = phi ptr [ %298, %297 ], [ null, %.loopexit502 ]
  %.2318 = phi double [ %301, %297 ], [ %263, %.loopexit502 ]
  %303 = load double, ptr %.4338, align 8, !tbaa !28
  %304 = getelementptr inbounds i8, ptr %.4338, i64 8
  br label %305

305:                                              ; preds = %302, %286
  %.5339 = phi ptr [ %304, %302 ], [ %.1335, %286 ]
  %.5333 = phi ptr [ %.4332, %302 ], [ %.1329, %286 ]
  %.3327 = phi ptr [ %.2326, %302 ], [ %.1325, %286 ]
  %.3323 = phi i8 [ %.2322, %302 ], [ %.1321, %286 ]
  %.3319 = phi double [ %.2318, %302 ], [ %.1317, %286 ]
  %.2311 = phi double [ %303, %302 ], [ %.1310, %286 ]
  %306 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %307 = getelementptr inbounds i8, ptr %306, i64 128
  %308 = load i64, ptr %307, align 8, !tbaa !14
  %309 = icmp eq i64 %308, 8
  br i1 %309, label %310, label %311

310:                                              ; preds = %305
  store double %.2311, ptr %.0306, align 8, !tbaa !28
  store double %.3319, ptr %.0305, align 8, !tbaa !28
  br label %320

311:                                              ; preds = %305
  %312 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %313 = getelementptr inbounds i8, ptr %312, i64 128
  %314 = load i64, ptr %313, align 8, !tbaa !14
  %315 = icmp eq i64 %314, 4
  br i1 %315, label %317, label %316

316:                                              ; preds = %311
  call void @LogAssertFailure(i64 noundef 634, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.35)
  call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str, i32 noundef 634, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

317:                                              ; preds = %311
  %318 = fptrunc double %.2311 to float
  store float %318, ptr %.0306, align 4, !tbaa !29
  %319 = fptrunc double %.3319 to float
  store float %319, ptr %.0305, align 4, !tbaa !29
  br label %320

320:                                              ; preds = %317, %310
  %321 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %322 = getelementptr inbounds i8, ptr %321, i64 128
  %323 = load i64, ptr %322, align 8, !tbaa !14
  %324 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.0306, i64 noundef %323) #7
  %325 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  %326 = getelementptr inbounds i8, ptr %325, i64 128
  %327 = load i64, ptr %326, align 8, !tbaa !14
  %328 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.0305, i64 noundef %327) #7
  %329 = add i8 %.3323, -1
  %.not434 = icmp eq ptr %285, %324
  br i1 %.not434, label %330, label %286, !llvm.loop !47

330:                                              ; preds = %320
  br i1 %266, label %332, label %331

331:                                              ; preds = %330
  call void @LogAssertFailure(i64 noundef 645, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.39)
  call void @__assert_fail(ptr noundef nonnull @.str.40, ptr noundef nonnull @.str, i32 noundef 645, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

332:                                              ; preds = %330
  store i64 1, ptr %8, align 8, !tbaa !34
  store i32 0, ptr %267, align 8, !tbaa !35
  %333 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %334 = zext i1 %333 to i32
  store i32 %334, ptr %268, align 4, !tbaa !36
  %335 = call noundef i32 @_ZNK14NAMESPACE_MAIN15InteractionCore11IsUseApproxEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  store i32 %335, ptr %269, align 4, !tbaa !37
  store i32 0, ptr %270, align 8, !tbaa !38
  %336 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  store i64 %336, ptr %271, align 8, !tbaa !39
  store ptr null, ptr %272, align 8, !tbaa !40
  store ptr null, ptr %273, align 8, !tbaa !41
  %337 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %.0307)
  store ptr %337, ptr %274, align 8, !tbaa !42
  store double 0.000000e+00, ptr %275, align 8, !tbaa !43
  %338 = call noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40) %.0307, ptr noundef nonnull %8)
  %.not435 = icmp eq i32 %338, 0
  br i1 %.not435, label %339, label %.thread483

339:                                              ; preds = %332
  %340 = getelementptr inbounds i8, ptr %.0307, i64 40
  %.not436 = icmp eq ptr %32, %340
  br i1 %.not436, label %341, label %276, !llvm.loop !48

341:                                              ; preds = %339
  %342 = icmp eq i8 %329, 0
  br i1 %342, label %.thread483, label %343

343:                                              ; preds = %341
  call void @LogAssertFailure(i64 noundef 664, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.37)
  call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str, i32 noundef 664, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

.thread483:                                       ; preds = %332, %.loopexit500, %123, %126, %341
  %.3267 = phi i32 [ 0, %341 ], [ %245, %.loopexit500 ], [ -1, %123 ], [ -1, %126 ], [ %338, %332 ]
  %344 = getelementptr inbounds i8, ptr %8, i64 56
  %345 = load ptr, ptr %344, align 8, !tbaa !24
  call void @AlignedFree(ptr noundef %345)
  br label %.thread472

.thread472:                                       ; preds = %253, %256, %115, %118, %.thread483
  %.4268 = phi i32 [ %.3267, %.thread483 ], [ -1, %118 ], [ -1, %115 ], [ -1, %256 ], [ -1, %253 ]
  %346 = load ptr, ptr %108, align 8, !tbaa !22
  call void @AlignedFree(ptr noundef %346)
  br label %347

347:                                              ; preds = %103, %106, %.thread472
  %.5269 = phi i32 [ %.4268, %.thread472 ], [ -1, %106 ], [ -1, %103 ]
  %348 = load ptr, ptr %100, align 8, !tbaa !20
  call void @AlignedFree(ptr noundef %348)
  %.not449 = icmp eq i64 %2, 0
  br i1 %.not449, label %469, label %349

349:                                              ; preds = %347
  %350 = call noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedWeightEPKhm(ptr noundef %1, i64 noundef 0)
  %.not450 = icmp eq ptr %350, null
  br i1 %.not450, label %351, label %352

351:                                              ; preds = %349
  call void @LogAssertFailure(i64 noundef 680, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.41)
  call void @__assert_fail(ptr noundef nonnull @.str.42, ptr noundef nonnull @.str, i32 noundef 680, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

352:                                              ; preds = %349
  %353 = call noundef zeroext i1 @_ZN14NAMESPACE_MAIN15InteractionCore9IsHessianEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  br i1 %353, label %354, label %359

354:                                              ; preds = %352
  %355 = call noundef zeroext i1 @_ZN14NAMESPACE_MAINL15IsMultiplyErrorImEEbT_S1_(i64 noundef 2, i64 noundef %19) #7
  br i1 %355, label %356, label %357

356:                                              ; preds = %354
  call void @LogAssertFailure(i64 noundef 684, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.43)
  call void @__assert_fail(ptr noundef nonnull @.str.44, ptr noundef nonnull @.str, i32 noundef 684, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

357:                                              ; preds = %354
  %358 = shl i64 %19, 1
  br label %359

359:                                              ; preds = %357, %352
  %.0294 = phi i64 [ %358, %357 ], [ %19, %352 ]
  %360 = call noundef ptr @_ZN14NAMESPACE_MAIN15InteractionCore21GetDataSetInteractionEv(ptr noundef nonnull align 8 dereferenceable(392) %0)
  %361 = call noundef ptr @_ZN14NAMESPACE_MAIN18DataSetInteraction10GetSubsetsEv(ptr noundef nonnull align 8 dereferenceable(32) %360)
  %min.iters.check707 = icmp ugt i64 %.0294, 7
  %n.vec710 = and i64 %.0294, -8
  %cmp.n719 = icmp eq i64 %.0294, %n.vec710
  %xtraiter = and i64 %.0294, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %min.iters.check = icmp ugt i64 %.0294, 3
  %n.vec = and i64 %.0294, -4
  %cmp.n = icmp eq i64 %.0294, %n.vec
  %xtraiter772 = and i64 %.0294, 1
  %lcmp.mod773.not = icmp eq i64 %xtraiter772, 0
  br label %362

362:                                              ; preds = %464, %359
  %.0295 = phi ptr [ %350, %359 ], [ %.5300, %464 ]
  %.0288 = phi ptr [ %4, %359 ], [ %.5293, %464 ]
  %.0283 = phi i8 [ 0, %359 ], [ %456, %464 ]
  %.0279 = phi double [ undef, %359 ], [ %.3282, %464 ]
  %.0278 = phi ptr [ %361, %359 ], [ %465, %464 ]
  %363 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %364 = getelementptr inbounds i8, ptr %363, i64 120
  %365 = load i64, ptr %364, align 8, !tbaa !9
  %366 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %.not451 = icmp eq i64 %366, 0
  br i1 %.not451, label %367, label %368

367:                                              ; preds = %362
  call void @LogAssertFailure(i64 noundef 696, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.27)
  call void @__assert_fail(ptr noundef nonnull @.str.28, ptr noundef nonnull @.str, i32 noundef 696, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

368:                                              ; preds = %362
  %369 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %370 = urem i64 %369, %365
  %371 = icmp eq i64 %370, 0
  br i1 %371, label %373, label %372

372:                                              ; preds = %368
  call void @LogAssertFailure(i64 noundef 697, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.29)
  call void @__assert_fail(ptr noundef nonnull @.str.30, ptr noundef nonnull @.str, i32 noundef 697, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

373:                                              ; preds = %368
  %374 = call noundef ptr @_ZN14NAMESPACE_MAIN21DataSubsetInteraction11GetGradHessEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %375 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %376 = getelementptr inbounds i8, ptr %375, i64 128
  %377 = load i64, ptr %376, align 8, !tbaa !14
  %378 = mul i64 %377, %.0294
  %379 = call noundef i64 @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction15GetCountSamplesEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %380 = mul i64 %378, %379
  %381 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef %374, i64 noundef %380) #7
  %382 = mul i64 %365, %.0294
  %ident.check704.not = icmp eq i64 %365, 1
  %or.cond720 = select i1 %min.iters.check707, i1 %ident.check704.not, i1 false
  %ident.check.not = icmp eq i64 %365, 1
  %or.cond = select i1 %min.iters.check, i1 %ident.check.not, i1 false
  br label %383

383:                                              ; preds = %458, %373
  %.1296 = phi ptr [ %.0295, %373 ], [ %.5300, %458 ]
  %.1289 = phi ptr [ %.0288, %373 ], [ %.5293, %458 ]
  %.1284 = phi i8 [ %.0283, %373 ], [ %456, %458 ]
  %.1280 = phi double [ %.0279, %373 ], [ %.3282, %458 ]
  %.0275 = phi ptr [ %374, %373 ], [ %463, %458 ]
  br label %384

384:                                              ; preds = %.loopexit, %383
  %.2297 = phi ptr [ %.1296, %383 ], [ %.5300, %.loopexit ]
  %.2290 = phi ptr [ %.1289, %383 ], [ %.5293, %.loopexit ]
  %.2285 = phi i8 [ %.1284, %383 ], [ %456, %.loopexit ]
  %.2281 = phi double [ %.1280, %383 ], [ %.3282, %.loopexit ]
  %.0272 = phi i64 [ 0, %383 ], [ %457, %.loopexit ]
  %385 = icmp eq i8 %.2285, 0
  br i1 %385, label %386, label %393

386:                                              ; preds = %384
  %.not452 = icmp eq ptr %.2290, null
  br i1 %.not452, label %.loopexit497, label %.preheader496

.preheader496:                                    ; preds = %386, %.preheader496
  %.3298 = phi ptr [ %389, %.preheader496 ], [ %.2297, %386 ]
  %.3291 = phi ptr [ %388, %.preheader496 ], [ %.2290, %386 ]
  %387 = load i8, ptr %.3291, align 1, !tbaa !25
  %388 = getelementptr inbounds i8, ptr %.3291, i64 1
  %389 = getelementptr inbounds i8, ptr %.3298, i64 8
  %390 = icmp slt i8 %387, 1
  br i1 %390, label %.preheader496, label %.loopexit497, !llvm.loop !49

.loopexit497:                                     ; preds = %.preheader496, %386
  %.4299 = phi ptr [ %.2297, %386 ], [ %.3298, %.preheader496 ]
  %.4292 = phi ptr [ null, %386 ], [ %388, %.preheader496 ]
  %.3286 = phi i8 [ 1, %386 ], [ %387, %.preheader496 ]
  %391 = load double, ptr %.4299, align 8, !tbaa !28
  %392 = getelementptr inbounds i8, ptr %.4299, i64 8
  br label %393

393:                                              ; preds = %.loopexit497, %384
  %.5300 = phi ptr [ %392, %.loopexit497 ], [ %.2297, %384 ]
  %.5293 = phi ptr [ %.4292, %.loopexit497 ], [ %.2290, %384 ]
  %.4287 = phi i8 [ %.3286, %.loopexit497 ], [ %.2285, %384 ]
  %.3282 = phi double [ %391, %.loopexit497 ], [ %.2281, %384 ]
  %394 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %395 = getelementptr inbounds i8, ptr %394, i64 128
  %396 = load i64, ptr %395, align 8, !tbaa !14
  %397 = icmp eq i64 %396, 8
  br i1 %397, label %.preheader.preheader, label %423

.preheader.preheader:                             ; preds = %393
  br i1 %or.cond, label %vector.ph, label %.preheader.preheader721

vector.ph:                                        ; preds = %.preheader.preheader
  %broadcast.splatinsert = insertelement <2 x double> poison, double %.3282, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %398 = add i64 %index, %.0272
  %399 = getelementptr inbounds double, ptr %.0275, i64 %398
  %400 = getelementptr inbounds i8, ptr %399, i64 16
  %wide.load = load <2 x double>, ptr %399, align 8, !tbaa !28
  %wide.load702 = load <2 x double>, ptr %400, align 8, !tbaa !28
  %401 = fmul <2 x double> %broadcast.splat, %wide.load
  %402 = fmul <2 x double> %broadcast.splat, %wide.load702
  store <2 x double> %401, ptr %399, align 8, !tbaa !28
  store <2 x double> %402, ptr %400, align 8, !tbaa !28
  %index.next = add nuw i64 %index, 4
  %403 = icmp eq i64 %index.next, %n.vec
  br i1 %403, label %middle.block, label %vector.body, !llvm.loop !50

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.loopexit, label %.preheader.preheader721

.preheader.preheader721:                          ; preds = %middle.block, %.preheader.preheader
  %.0270.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec, %middle.block ]
  %.neg774 = or disjoint i64 %.0270.ph, 1
  br i1 %lcmp.mod773.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader721
  %404 = mul i64 %.0270.ph, %365
  %405 = add i64 %404, %.0272
  %406 = getelementptr inbounds double, ptr %.0275, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !28
  %408 = fmul double %.3282, %407
  store double %408, ptr %406, align 8, !tbaa !28
  %409 = or disjoint i64 %.0270.ph, 1
  br label %.preheader.prol.loopexit

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader721
  %.0270.unr = phi i64 [ %.0270.ph, %.preheader.preheader721 ], [ %409, %.preheader.prol ]
  %410 = icmp eq i64 %.0294, %.neg774
  br i1 %410, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %.0270 = phi i64 [ %422, %.preheader ], [ %.0270.unr, %.preheader.prol.loopexit ]
  %411 = mul i64 %.0270, %365
  %412 = add i64 %411, %.0272
  %413 = getelementptr inbounds double, ptr %.0275, i64 %412
  %414 = load double, ptr %413, align 8, !tbaa !28
  %415 = fmul double %.3282, %414
  store double %415, ptr %413, align 8, !tbaa !28
  %416 = add i64 %.0270, 1
  %417 = mul i64 %416, %365
  %418 = add i64 %417, %.0272
  %419 = getelementptr inbounds double, ptr %.0275, i64 %418
  %420 = load double, ptr %419, align 8, !tbaa !28
  %421 = fmul double %.3282, %420
  store double %421, ptr %419, align 8, !tbaa !28
  %422 = add i64 %.0270, 2
  %.not454.1 = icmp eq i64 %.0294, %422
  br i1 %.not454.1, label %.loopexit, label %.preheader, !llvm.loop !53

423:                                              ; preds = %393
  %424 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %425 = getelementptr inbounds i8, ptr %424, i64 128
  %426 = load i64, ptr %425, align 8, !tbaa !14
  %427 = icmp eq i64 %426, 4
  br i1 %427, label %429, label %428

428:                                              ; preds = %423
  call void @LogAssertFailure(i64 noundef 726, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.35)
  call void @__assert_fail(ptr noundef nonnull @.str.36, ptr noundef nonnull @.str, i32 noundef 726, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

429:                                              ; preds = %423
  %430 = fptrunc double %.3282 to float
  br i1 %or.cond720, label %vector.ph708, label %scalar.ph706.preheader

vector.ph708:                                     ; preds = %429
  %broadcast.splatinsert716 = insertelement <4 x float> poison, float %430, i64 0
  %broadcast.splat717 = shufflevector <4 x float> %broadcast.splatinsert716, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body712

vector.body712:                                   ; preds = %vector.body712, %vector.ph708
  %index713 = phi i64 [ 0, %vector.ph708 ], [ %index.next718, %vector.body712 ]
  %431 = add i64 %index713, %.0272
  %432 = getelementptr inbounds float, ptr %.0275, i64 %431
  %433 = getelementptr inbounds i8, ptr %432, i64 16
  %wide.load714 = load <4 x float>, ptr %432, align 4, !tbaa !29
  %wide.load715 = load <4 x float>, ptr %433, align 4, !tbaa !29
  %434 = fmul <4 x float> %wide.load714, %broadcast.splat717
  %435 = fmul <4 x float> %wide.load715, %broadcast.splat717
  store <4 x float> %434, ptr %432, align 4, !tbaa !29
  store <4 x float> %435, ptr %433, align 4, !tbaa !29
  %index.next718 = add nuw i64 %index713, 8
  %436 = icmp eq i64 %index.next718, %n.vec710
  br i1 %436, label %middle.block705, label %vector.body712, !llvm.loop !54

middle.block705:                                  ; preds = %vector.body712
  br i1 %cmp.n719, label %.loopexit, label %scalar.ph706.preheader

scalar.ph706.preheader:                           ; preds = %middle.block705, %429
  %.1271.ph = phi i64 [ 0, %429 ], [ %n.vec710, %middle.block705 ]
  %.neg = or disjoint i64 %.1271.ph, 1
  br i1 %lcmp.mod.not, label %scalar.ph706.prol.loopexit, label %scalar.ph706.prol

scalar.ph706.prol:                                ; preds = %scalar.ph706.preheader
  %437 = mul i64 %.1271.ph, %365
  %438 = add i64 %437, %.0272
  %439 = getelementptr inbounds float, ptr %.0275, i64 %438
  %440 = load float, ptr %439, align 4, !tbaa !29
  %441 = fmul float %440, %430
  store float %441, ptr %439, align 4, !tbaa !29
  %442 = or disjoint i64 %.1271.ph, 1
  br label %scalar.ph706.prol.loopexit

scalar.ph706.prol.loopexit:                       ; preds = %scalar.ph706.prol, %scalar.ph706.preheader
  %.1271.unr = phi i64 [ %.1271.ph, %scalar.ph706.preheader ], [ %442, %scalar.ph706.prol ]
  %443 = icmp eq i64 %.0294, %.neg
  br i1 %443, label %.loopexit, label %scalar.ph706

scalar.ph706:                                     ; preds = %scalar.ph706.prol.loopexit, %scalar.ph706
  %.1271 = phi i64 [ %455, %scalar.ph706 ], [ %.1271.unr, %scalar.ph706.prol.loopexit ]
  %444 = mul i64 %.1271, %365
  %445 = add i64 %444, %.0272
  %446 = getelementptr inbounds float, ptr %.0275, i64 %445
  %447 = load float, ptr %446, align 4, !tbaa !29
  %448 = fmul float %447, %430
  store float %448, ptr %446, align 4, !tbaa !29
  %449 = add i64 %.1271, 1
  %450 = mul i64 %449, %365
  %451 = add i64 %450, %.0272
  %452 = getelementptr inbounds float, ptr %.0275, i64 %451
  %453 = load float, ptr %452, align 4, !tbaa !29
  %454 = fmul float %453, %430
  store float %454, ptr %452, align 4, !tbaa !29
  %455 = add i64 %.1271, 2
  %.not453.1 = icmp eq i64 %.0294, %455
  br i1 %.not453.1, label %.loopexit, label %scalar.ph706, !llvm.loop !55

.loopexit:                                        ; preds = %scalar.ph706.prol.loopexit, %scalar.ph706, %.preheader.prol.loopexit, %.preheader, %middle.block705, %middle.block
  %456 = add i8 %.4287, -1
  %457 = add i64 %.0272, 1
  %.not455 = icmp eq i64 %365, %457
  br i1 %.not455, label %458, label %384, !llvm.loop !56

458:                                              ; preds = %.loopexit
  %459 = call noundef ptr @_ZNK14NAMESPACE_MAIN21DataSubsetInteraction19GetObjectiveWrapperEv(ptr noundef nonnull align 8 dereferenceable(40) %.0278)
  %460 = getelementptr inbounds i8, ptr %459, i64 128
  %461 = load i64, ptr %460, align 8, !tbaa !14
  %462 = mul i64 %382, %461
  %463 = call noundef ptr @_ZN14NAMESPACE_MAINL9IndexByteIvEEPT_S2_m(ptr noundef nonnull %.0275, i64 noundef %462) #7
  %.not456 = icmp eq ptr %381, %463
  br i1 %.not456, label %464, label %383, !llvm.loop !57

464:                                              ; preds = %458
  %465 = getelementptr inbounds i8, ptr %.0278, i64 40
  %.not457 = icmp eq ptr %32, %465
  br i1 %.not457, label %466, label %362, !llvm.loop !58

466:                                              ; preds = %464
  %467 = icmp eq i8 %456, 0
  br i1 %467, label %469, label %468

468:                                              ; preds = %466
  call void @LogAssertFailure(i64 noundef 743, ptr noundef nonnull @.str, ptr noundef nonnull @__func__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_, ptr noundef nonnull @.str.37)
  call void @__assert_fail(ptr noundef nonnull @.str.38, ptr noundef nonnull @.str, i32 noundef 743, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN14NAMESPACE_MAIN15InteractionCore41InitializeInteractionGradientsAndHessiansEPKhmPKdPKaS4_) #8
  unreachable

.thread492:                                       ; preds = %98, %95
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %470

469:                                              ; preds = %466, %347
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %470

470:                                              ; preds = %469, %.thread488, %.thread492, %6
  %.5 = phi i32 [ 0, %6 ], [ -1, %.thread488 ], [ -1, %.thread492 ], [ %.5269, %469 ]
  ret i32 %.5
}

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

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

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

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

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

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

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

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

declare ptr @AlignedAlloc(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZN14NAMESPACE_MAIN21DataSubsetInteraction20ObjectiveApplyUpdateEP17ApplyUpdateBridge(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #4 align 2

declare void @AlignedFree(ptr noundef) local_unnamed_addr #1

declare noundef ptr @_ZN14NAMESPACE_MAIN22GetDataSetSharedWeightEPKhm(ptr noundef, i64 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 120}
!10 = !{!"_ZTS16ObjectiveWrapper", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 36, !12, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !12, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !12, i64 144, !11, i64 152}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!10, !6, i64 128}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !6, i64 136}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!20 = !{!21, !11, i64 72}
!21 = !{!"_ZTS17ApplyUpdateBridge", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !11, i64 24, !11, i64 32, !6, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !13, i64 88}
!22 = !{!21, !11, i64 32}
!23 = !{!21, !11, i64 24}
!24 = !{!21, !11, i64 56}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = !{!13, !13, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"float", !7, i64 0}
!31 = distinct !{!31, !18}
!32 = distinct !{!32, !18}
!33 = distinct !{!33, !18}
!34 = !{!21, !6, i64 0}
!35 = !{!21, !12, i64 8}
!36 = !{!21, !12, i64 12}
!37 = !{!21, !12, i64 20}
!38 = !{!21, !12, i64 16}
!39 = !{!21, !6, i64 40}
!40 = !{!21, !11, i64 48}
!41 = !{!21, !11, i64 64}
!42 = !{!21, !11, i64 80}
!43 = !{!21, !13, i64 88}
!44 = distinct !{!44, !18}
!45 = distinct !{!45, !18}
!46 = distinct !{!46, !18}
!47 = distinct !{!47, !18}
!48 = distinct !{!48, !18}
!49 = distinct !{!49, !18}
!50 = distinct !{!50, !18, !51, !52}
!51 = !{!"llvm.loop.isvectorized", i32 1}
!52 = !{!"llvm.loop.unroll.runtime.disable"}
!53 = distinct !{!53, !18, !51}
!54 = distinct !{!54, !18, !51, !52}
!55 = distinct !{!55, !18, !51}
!56 = distinct !{!56, !18}
!57 = distinct !{!57, !18}
!58 = distinct !{!58, !18}


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