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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@g_traceLevel = external global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZN14NAMESPACE_MAINL19g_cLogSetTermUpdateE = external hidden global i32, align 4
@_ZZ13SetTermUpdateE13LOG__sMessage = external hidden constant [70 x i8], align 16
@__func__.SetTermUpdate = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.SetTermUpdate = external hidden unnamed_addr constant [78 x i8], align 1
@_ZZ13SetTermUpdateE13LOG__sMessage_0 = external hidden constant [53 x i8], align 16
@_ZZ13SetTermUpdateE13LOG__sMessage_1 = external hidden constant [69 x i8], align 16
@.str.45 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ13SetTermUpdateE13LOG__sMessage_2 = external hidden constant [52 x i8], align 16

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

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

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

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

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef) #4 align 2

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

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

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

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

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

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

declare noundef i32 @_ZN14NAMESPACE_MAIN6Tensor6ExpandEPKNS_4TermE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @SetTermUpdate(ptr noundef %0, i64 noundef %1, ptr noundef %2) #6 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 3, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 4, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %27 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  store i32 %27, ptr %10, align 4, !tbaa !11
  %28 = load i32, ptr %10, align 4, !tbaa !11
  %29 = icmp sle i32 3, %28
  br i1 %29, label %30, label %56

30:                                               ; preds = %26
  br label %31

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %32 = load i32, ptr %10, align 4, !tbaa !11
  %33 = icmp slt i32 %32, 4
  br i1 %33, label %34, label %45

34:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  store ptr @_ZN14NAMESPACE_MAINL19g_cLogSetTermUpdateE, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %35 = load i32, ptr @_ZN14NAMESPACE_MAINL19g_cLogSetTermUpdateE, align 4, !tbaa !11
  %36 = sub nsw i32 %35, 1
  store i32 %36, ptr %13, align 4, !tbaa !11
  %37 = load i32, ptr %13, align 4, !tbaa !11
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %34
  store i32 4, ptr %14, align 4
  br label %42

40:                                               ; preds = %34
  %41 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %41, ptr @_ZN14NAMESPACE_MAINL19g_cLogSetTermUpdateE, align 4, !tbaa !11
  store i32 3, ptr %11, align 4, !tbaa !11
  store i32 0, ptr %14, align 4
  br label %42

42:                                               ; preds = %40, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %43 = load i32, ptr %14, align 4
  switch i32 %43, label %51 [
    i32 0, label %44
  ]

44:                                               ; preds = %42
  br label %46

45:                                               ; preds = %31
  store i32 4, ptr %11, align 4, !tbaa !11
  br label %46

46:                                               ; preds = %45, %44
  %47 = load i32, ptr %11, align 4, !tbaa !11
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef %47, ptr noundef @_ZZ13SetTermUpdateE13LOG__sMessage, ptr noundef %48, i64 noundef %49, ptr noundef %50)
  store i32 0, ptr %14, align 4
  br label %51

51:                                               ; preds = %46, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  %52 = load i32, ptr %14, align 4
  switch i32 %52, label %192 [
    i32 0, label %53
    i32 4, label %55
  ]

53:                                               ; preds = %51
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54, %51
  br label %56

56:                                               ; preds = %55, %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %57

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell25GetBoosterShellFromHandleEP14_BoosterHandle(ptr noundef %58)
  store ptr %59, ptr %16, align 8, !tbaa !5
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = icmp eq ptr null, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %190

63:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  %65 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell14GetBoosterCoreEv(ptr noundef nonnull align 8 dereferenceable(112) %64)
  store ptr %65, ptr %17, align 8, !tbaa !5
  %66 = load ptr, ptr %17, align 8, !tbaa !5
  %67 = icmp ne ptr null, %66
  br i1 %67, label %70, label %68

68:                                               ; preds = %63
  call void @LogAssertFailure(i64 noundef 608, ptr noundef @.str, ptr noundef @__func__.SetTermUpdate, ptr noundef @.str.1)
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str, i32 noundef 608, ptr noundef @__PRETTY_FUNCTION__.SetTermUpdate) #9
  unreachable

69:                                               ; No predecessors!
  br label %70

70:                                               ; preds = %69, %63
  %71 = phi i1 [ true, %63 ], [ false, %69 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %72 = load i64, ptr %6, align 8, !tbaa !9
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %74, label %87

74:                                               ; preds = %70
  store i64 -2, ptr %18, align 8, !tbaa !9
  store ptr null, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %20, align 8, !tbaa !9
  %75 = load i64, ptr %6, align 8, !tbaa !9
  %76 = icmp ne i64 %75, -1
  br i1 %76, label %77, label %86

77:                                               ; preds = %74
  br label %78

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

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

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

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %85, i64 noundef -1)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %189

86:                                               ; preds = %74
  br label %123

87:                                               ; preds = %70
  %88 = load ptr, ptr %17, align 8, !tbaa !5
  %89 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore13GetCountTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %88)
  %90 = load i64, ptr %6, align 8, !tbaa !9
  %91 = icmp sle i64 %89, %90
  br i1 %91, label %92, label %101

92:                                               ; preds = %87
  br label %93

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

96:                                               ; preds = %93
  call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef @_ZZ13SetTermUpdateE13LOG__sMessage_1)
  br label %97

97:                                               ; preds = %96, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %100, i64 noundef -1)
  store i32 -3, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %189

101:                                              ; preds = %87
  %102 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %102, ptr %18, align 8, !tbaa !9
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %103)
  %105 = icmp ne ptr null, %104
  br i1 %105, label %108, label %106

106:                                              ; preds = %101
  call void @LogAssertFailure(i64 noundef 632, ptr noundef @.str, ptr noundef @__func__.SetTermUpdate, ptr noundef @.str.9)
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str, i32 noundef 632, ptr noundef @__PRETTY_FUNCTION__.SetTermUpdate) #9
  unreachable

107:                                              ; No predecessors!
  br label %108

108:                                              ; preds = %107, %101
  %109 = phi i1 [ true, %101 ], [ false, %107 ]
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %110)
  %112 = load i64, ptr %18, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %111, i64 %112
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  store ptr %114, ptr %19, align 8, !tbaa !5
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  %116 = icmp ne ptr null, %115
  br i1 %116, label %119, label %117

117:                                              ; preds = %108
  call void @LogAssertFailure(i64 noundef 634, ptr noundef @.str, ptr noundef @__func__.SetTermUpdate, ptr noundef @.str.45)
  call void @__assert_fail(ptr noundef @.str.46, ptr noundef @.str, i32 noundef 634, ptr noundef @__PRETTY_FUNCTION__.SetTermUpdate) #9
  unreachable

118:                                              ; No predecessors!
  br label %119

119:                                              ; preds = %118, %108
  %120 = phi i1 [ true, %108 ], [ false, %118 ]
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountDimensionsEv(ptr noundef nonnull align 8 dereferenceable(776) %121) #8
  store i64 %122, ptr %20, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %119, %86
  %124 = load ptr, ptr %17, align 8, !tbaa !5
  %125 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %124)
  %126 = icmp eq i64 0, %125
  br i1 %126, label %127, label %130

127:                                              ; preds = %123
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = load i64, ptr %18, align 8, !tbaa !9
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %128, i64 noundef %129)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %189

130:                                              ; preds = %123
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  %132 = icmp ne ptr null, %131
  br i1 %132, label %133, label %152

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountTensorBinsEv(ptr noundef nonnull align 8 dereferenceable(776) %134) #8
  store i64 %135, ptr %23, align 8, !tbaa !9
  %136 = load i64, ptr %23, align 8, !tbaa !9
  %137 = icmp eq i64 0, %136
  br i1 %137, label %138, label %148

138:                                              ; preds = %133
  br label %139

139:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 2, ptr %24, align 4, !tbaa !11
  %140 = load i32, ptr @g_traceLevel, align 4, !tbaa !11
  %141 = icmp sle i32 2, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef @_ZZ13SetTermUpdateE13LOG__sMessage_2)
  br label %143

143:                                              ; preds = %142, %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i64, ptr %18, align 8, !tbaa !9
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %146, i64 noundef %147)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %149

148:                                              ; preds = %133
  store i32 0, ptr %14, align 4
  br label %149

149:                                              ; preds = %148, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %150 = load i32, ptr %14, align 4
  switch i32 %150, label %189 [
    i32 0, label %151
  ]

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151, %130
  %153 = load ptr, ptr %16, align 8, !tbaa !5
  %154 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %153)
  %155 = icmp ne ptr null, %154
  br i1 %155, label %158, label %156

156:                                              ; preds = %152
  call void @LogAssertFailure(i64 noundef 658, ptr noundef @.str, ptr noundef @__func__.SetTermUpdate, ptr noundef @.str.3)
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str, i32 noundef 658, ptr noundef @__PRETTY_FUNCTION__.SetTermUpdate) #9
  unreachable

157:                                              ; No predecessors!
  br label %158

158:                                              ; preds = %157, %152
  %159 = phi i1 [ true, %152 ], [ false, %157 ]
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %160)
  %162 = load i64, ptr %20, align 8, !tbaa !9
  call void @_ZN14NAMESPACE_MAIN6Tensor18SetCountDimensionsEm(ptr noundef nonnull align 8 dereferenceable(72) %161, i64 noundef %162)
  %163 = load ptr, ptr %16, align 8, !tbaa !5
  %164 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %163)
  call void @_ZN14NAMESPACE_MAIN6Tensor5ResetEv(ptr noundef nonnull align 8 dereferenceable(72) %164)
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = icmp ne ptr null, %165
  br i1 %166, label %167, label %178

167:                                              ; preds = %158
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %168)
  %170 = load ptr, ptr %19, align 8, !tbaa !5
  %171 = call noundef i32 @_ZN14NAMESPACE_MAIN6Tensor6ExpandEPKNS_4TermE(ptr noundef nonnull align 8 dereferenceable(72) %169, ptr noundef %170)
  store i32 %171, ptr %15, align 4, !tbaa !11
  %172 = load i32, ptr %15, align 4, !tbaa !11
  %173 = icmp ne i32 0, %172
  br i1 %173, label %174, label %177

174:                                              ; preds = %167
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %175, i64 noundef -1)
  %176 = load i32, ptr %15, align 4, !tbaa !11
  store i32 %176, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %189

177:                                              ; preds = %167
  br label %178

178:                                              ; preds = %177, %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %179 = load ptr, ptr %16, align 8, !tbaa !5
  %180 = call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %179)
  %181 = call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72) %180)
  store ptr %181, ptr %25, align 8, !tbaa !5
  %182 = load ptr, ptr %19, align 8, !tbaa !5
  %183 = load ptr, ptr %17, align 8, !tbaa !5
  %184 = call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %183)
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr %25, align 8, !tbaa !5
  call void @_ZN14NAMESPACE_MAIN9TransposeILb0EddEEvPKNS_4TermEmPT0_PT1_(ptr noundef %182, i64 noundef %184, ptr noundef %185, ptr noundef %186)
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  %188 = load i64, ptr %18, align 8, !tbaa !9
  call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %187, i64 noundef %188)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %189

189:                                              ; preds = %178, %174, %149, %127, %99, %84
  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
  br label %190

190:                                              ; preds = %189, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  %191 = load i32, ptr %4, align 4
  ret i32 %191

192:                                              ; preds = %51
  unreachable
}

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

declare void @_ZN14NAMESPACE_MAIN6Tensor5ResetEv(ptr noundef nonnull align 8 dereferenceable(72)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14NAMESPACE_MAIN9TransposeILb0EddEEvPKNS_4TermEmPT0_PT1_(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #6

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

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

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


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

@g_traceLevel = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [89 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@_ZN14NAMESPACE_MAINL19g_cLogSetTermUpdateE = external hidden local_unnamed_addr global i32, align 4
@_ZZ13SetTermUpdateE13LOG__sMessage = external hidden constant [70 x i8], align 16
@__func__.SetTermUpdate = external hidden unnamed_addr constant [14 x i8], align 1
@__PRETTY_FUNCTION__.SetTermUpdate = external hidden unnamed_addr constant [78 x i8], align 1
@_ZZ13SetTermUpdateE13LOG__sMessage_0 = external hidden constant [53 x i8], align 16
@_ZZ13SetTermUpdateE13LOG__sMessage_1 = external hidden constant [69 x i8], align 16
@.str.45 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZZ13SetTermUpdateE13LOG__sMessage_2 = external hidden constant [52 x i8], align 16

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef i32 @_ZN14NAMESPACE_MAIN6Tensor6ExpandEPKNS_4TermE(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef) local_unnamed_addr #0

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

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

6:                                                ; preds = %3
  %7 = icmp eq i32 %4, 3
  br i1 %7, label %8, label %13

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

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

13:                                               ; preds = %11, %6
  %.153 = phi i32 [ 3, %11 ], [ 4, %6 ]
  tail call void (i32, ptr, ...) @InteralLogWithArguments(i32 noundef %.153, ptr noundef nonnull @_ZZ13SetTermUpdateE13LOG__sMessage, ptr noundef %0, i64 noundef %1, ptr noundef %2)
  br label %.critedge

.critedge:                                        ; preds = %13, %8, %3
  %14 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell25GetBoosterShellFromHandleEP14_BoosterHandle(ptr noundef %0)
  %15 = icmp eq ptr %14, null
  br i1 %15, label %64, label %16

16:                                               ; preds = %.critedge
  %17 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell14GetBoosterCoreEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  %.not = icmp eq ptr %17, null
  br i1 %.not, label %18, label %19

18:                                               ; preds = %16
  tail call void @LogAssertFailure(i64 noundef 608, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.SetTermUpdate, ptr noundef nonnull @.str.1)
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str, i32 noundef 608, ptr noundef nonnull @__PRETTY_FUNCTION__.SetTermUpdate) #7
  unreachable

19:                                               ; preds = %16
  %20 = icmp slt i64 %1, 0
  br i1 %20, label %21, label %26

21:                                               ; preds = %19
  %.not69 = icmp eq i64 %1, -1
  br i1 %.not69, label %.thread, label %22

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

25:                                               ; preds = %22
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13SetTermUpdateE13LOG__sMessage_0)
  br label %.sink.split

26:                                               ; preds = %19
  %27 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore13GetCountTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  %.not66 = icmp sgt i64 %27, %1
  br i1 %.not66, label %32, label %28

28:                                               ; preds = %26
  %29 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %.sink.split

31:                                               ; preds = %28
  tail call void @InteralLogWithoutArguments(i32 noundef 1, ptr noundef nonnull @_ZZ13SetTermUpdateE13LOG__sMessage_1)
  br label %.sink.split

32:                                               ; preds = %26
  %33 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  %.not67 = icmp eq ptr %33, null
  br i1 %.not67, label %34, label %35

34:                                               ; preds = %32
  tail call void @LogAssertFailure(i64 noundef 632, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.SetTermUpdate, ptr noundef nonnull @.str.9)
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str, i32 noundef 632, ptr noundef nonnull @__PRETTY_FUNCTION__.SetTermUpdate) #7
  unreachable

35:                                               ; preds = %32
  %36 = tail call noundef ptr @_ZNK14NAMESPACE_MAIN11BoosterCore8GetTermsEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  %37 = getelementptr inbounds ptr, ptr %36, i64 %1
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %.not68 = icmp eq ptr %38, null
  br i1 %.not68, label %39, label %40

39:                                               ; preds = %35
  tail call void @LogAssertFailure(i64 noundef 634, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.SetTermUpdate, ptr noundef nonnull @.str.45)
  tail call void @__assert_fail(ptr noundef nonnull @.str.46, ptr noundef nonnull @.str, i32 noundef 634, ptr noundef nonnull @__PRETTY_FUNCTION__.SetTermUpdate) #7
  unreachable

40:                                               ; preds = %35
  %41 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountDimensionsEv(ptr noundef nonnull align 8 dereferenceable(776) %38) #8
  %42 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %.sink.split, label %46

.thread:                                          ; preds = %21
  %44 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  %45 = icmp eq i64 %44, 0
  br i1 %45, label %.sink.split, label %.critedge75

46:                                               ; preds = %40
  %47 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN4Term18GetCountTensorBinsEv(ptr noundef nonnull align 8 dereferenceable(776) %38) #8
  %.not71 = icmp eq i64 %47, 0
  br i1 %.not71, label %48, label %.critedge75

48:                                               ; preds = %46
  %49 = load i32, ptr @g_traceLevel, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %51, label %.sink.split

51:                                               ; preds = %48
  tail call void @InteralLogWithoutArguments(i32 noundef 2, ptr noundef nonnull @_ZZ13SetTermUpdateE13LOG__sMessage_2)
  br label %.sink.split

.critedge75:                                      ; preds = %.thread, %46
  %.0587990 = phi i64 [ %41, %46 ], [ 0, %.thread ]
  %.0578089 = phi ptr [ %38, %46 ], [ null, %.thread ]
  %.0568288 = phi i64 [ %1, %46 ], [ -2, %.thread ]
  %52 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  %.not72 = icmp eq ptr %52, null
  br i1 %.not72, label %53, label %54

53:                                               ; preds = %.critedge75
  tail call void @LogAssertFailure(i64 noundef 658, ptr noundef nonnull @.str, ptr noundef nonnull @__func__.SetTermUpdate, ptr noundef nonnull @.str.3)
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str, i32 noundef 658, ptr noundef nonnull @__PRETTY_FUNCTION__.SetTermUpdate) #7
  unreachable

54:                                               ; preds = %.critedge75
  %55 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  tail call void @_ZN14NAMESPACE_MAIN6Tensor18SetCountDimensionsEm(ptr noundef nonnull align 8 dereferenceable(72) %55, i64 noundef %.0587990)
  %56 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  tail call void @_ZN14NAMESPACE_MAIN6Tensor5ResetEv(ptr noundef nonnull align 8 dereferenceable(72) %56)
  br i1 %20, label %60, label %57

57:                                               ; preds = %54
  %58 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  %59 = tail call noundef i32 @_ZN14NAMESPACE_MAIN6Tensor6ExpandEPKNS_4TermE(ptr noundef nonnull align 8 dereferenceable(72) %58, ptr noundef nonnull %.0578089)
  %.not73 = icmp eq i32 %59, 0
  br i1 %.not73, label %60, label %.sink.split

60:                                               ; preds = %57, %54
  %61 = tail call noundef ptr @_ZN14NAMESPACE_MAIN12BoosterShell13GetTermUpdateEv(ptr noundef nonnull align 8 dereferenceable(112) %14)
  %62 = tail call noundef ptr @_ZN14NAMESPACE_MAIN6Tensor22GetTensorScoresPointerEv(ptr noundef nonnull align 8 dereferenceable(72) %61)
  %63 = tail call noundef i64 @_ZNK14NAMESPACE_MAIN11BoosterCore14GetCountScoresEv(ptr noundef nonnull align 8 dereferenceable(520) %17)
  tail call void @_ZN14NAMESPACE_MAIN9TransposeILb0EddEEvPKNS_4TermEmPT0_PT1_(ptr noundef %.0578089, i64 noundef %63, ptr noundef %2, ptr noundef %62)
  br label %.sink.split

.sink.split:                                      ; preds = %57, %48, %51, %40, %.thread, %28, %31, %22, %25, %60
  %.sink = phi i64 [ %.0568288, %60 ], [ -1, %25 ], [ -1, %22 ], [ -1, %31 ], [ -1, %28 ], [ -2, %.thread ], [ %1, %40 ], [ %1, %51 ], [ %1, %48 ], [ -1, %57 ]
  %.2.ph = phi i32 [ 0, %60 ], [ -3, %25 ], [ -3, %22 ], [ -3, %31 ], [ -3, %28 ], [ 0, %.thread ], [ 0, %40 ], [ 0, %51 ], [ 0, %48 ], [ %59, %57 ]
  tail call void @_ZN14NAMESPACE_MAIN12BoosterShell12SetTermIndexEm(ptr noundef nonnull align 8 dereferenceable(112) %14, i64 noundef %.sink)
  br label %64

64:                                               ; preds = %.sink.split, %.critedge
  %.2 = phi i32 [ -3, %.critedge ], [ %.2.ph, %.sink.split ]
  ret i32 %.2
}

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

declare void @_ZN14NAMESPACE_MAIN6Tensor5ResetEv(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14NAMESPACE_MAIN9TransposeILb0EddEEvPKNS_4TermEmPT0_PT1_(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass