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

; 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.BoostRet = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.42" = type { i8 }
%class.TestBoost = type { i64, %"class.std::vector.19", %"class.std::vector.24", i64, %"class.std::vector.29", ptr }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<FeatureTest, std::allocator<FeatureTest>>::_Vector_impl" }
%"struct.std::_Vector_base<FeatureTest, std::allocator<FeatureTest>>::_Vector_impl" = type { %"struct.std::_Vector_base<FeatureTest, std::allocator<FeatureTest>>::_Vector_impl_data" }
%"struct.std::_Vector_base<FeatureTest, std::allocator<FeatureTest>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<long>, std::allocator<std::vector<long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.29" = type { %"struct.std::_Vector_base.30" }
%"struct.std::_Vector_base.30" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.FeatureTest = type <{ i64, i8, i8, i8, [5 x i8] }>

@_ZTI13TestException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.25 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [16 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare ptr @__cxa_allocate_exception(i64)

declare void @__cxa_free_exception(ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN9TestBoost5BoostElidlddddldldSt6vectorIlSaIlEES0_IiSaIiEE(ptr noundef nonnull align 8 dereferenceable(96) %0, i64 noundef %1, i32 noundef %2, double noundef %3, i64 noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, i64 noundef %9, double noundef %10, i64 noundef %11, double noundef %12, ptr noundef %13, ptr noundef %14) #4 align 2 personality ptr @__gxx_personality_v0 {
  %16 = alloca %struct.BoostRet, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca i64, align 8
  %29 = alloca double, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca ptr, align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %43 = alloca i64, align 8
  %44 = alloca i64, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca %"class.std::vector", align 8
  %49 = alloca %"class.std::allocator", align 1
  %50 = alloca %"class.std::vector.40", align 8
  %51 = alloca %"class.std::allocator.42", align 1
  store ptr %0, ptr %17, align 8, !tbaa !5
  store i64 %1, ptr %18, align 8, !tbaa !9
  store i32 %2, ptr %19, align 4, !tbaa !11
  store double %3, ptr %20, align 8, !tbaa !13
  store i64 %4, ptr %21, align 8, !tbaa !9
  store double %5, ptr %22, align 8, !tbaa !13
  store double %6, ptr %23, align 8, !tbaa !13
  store double %7, ptr %24, align 8, !tbaa !13
  store double %8, ptr %25, align 8, !tbaa !13
  store i64 %9, ptr %26, align 8, !tbaa !9
  store double %10, ptr %27, align 8, !tbaa !13
  store i64 %11, ptr %28, align 8, !tbaa !9
  store double %12, ptr %29, align 8, !tbaa !13
  store ptr %13, ptr %30, align 8, !tbaa !5
  store ptr %14, ptr %31, align 8, !tbaa !5
  %52 = load ptr, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %53 = call noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() #6
  store double %53, ptr %33, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %54 = call noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() #6
  store double %54, ptr %34, align 8, !tbaa !13
  %55 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 4
  %56 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef 0) #6
  %57 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = load i64, ptr %18, align 8, !tbaa !9
  %60 = load i32, ptr %19, align 4, !tbaa !11
  %61 = load double, ptr %20, align 8, !tbaa !13
  %62 = load i64, ptr %21, align 8, !tbaa !9
  %63 = load double, ptr %22, align 8, !tbaa !13
  %64 = load double, ptr %23, align 8, !tbaa !13
  %65 = load double, ptr %24, align 8, !tbaa !13
  %66 = load double, ptr %25, align 8, !tbaa !13
  %67 = load i64, ptr %26, align 8, !tbaa !9
  %68 = load double, ptr %27, align 8, !tbaa !13
  %69 = load i64, ptr %28, align 8, !tbaa !9
  %70 = load double, ptr %29, align 8, !tbaa !13
  %71 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %72 = icmp eq i64 0, %71
  br i1 %72, label %73, label %74

73:                                               ; preds = %15
  br label %76

74:                                               ; preds = %15
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #6
  br label %76

76:                                               ; preds = %74, %73
  %77 = phi ptr [ null, %73 ], [ %75, %74 ]
  %78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %79 = icmp eq i64 0, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  br label %83

81:                                               ; preds = %76
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  br label %83

83:                                               ; preds = %81, %80
  %84 = phi ptr [ null, %80 ], [ %82, %81 ]
  %85 = call i32 @GenerateTermUpdate(ptr noundef %56, ptr noundef %58, i64 noundef %59, i32 noundef %60, double noundef %61, i64 noundef %62, double noundef %63, double noundef %64, double noundef %65, double noundef %66, i64 noundef %67, double noundef %68, i64 noundef %69, double noundef %70, ptr noundef %77, ptr noundef %84, ptr noundef %33)
  store i32 %85, ptr %32, align 4, !tbaa !11
  %86 = load i32, ptr %32, align 4, !tbaa !11
  %87 = icmp ne i32 0, %86
  br i1 %87, label %88, label %96

88:                                               ; preds = %83
  %89 = call ptr @__cxa_allocate_exception(i64 48) #6
  %90 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %89, i32 noundef %90, ptr noundef @.str.25)
          to label %91 unwind label %92

91:                                               ; preds = %88
  call void @__cxa_throw(ptr %89, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
  unreachable

92:                                               ; preds = %88
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %35, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %36, align 4
  call void @__cxa_free_exception(ptr %89) #6
  br label %341

96:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %97 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 0
  %98 = load i64, ptr %97, align 8, !tbaa !29
  %99 = call noundef i64 @_ZL14GetCountScoresl(i64 noundef %98)
  store i64 %99, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  store i64 0, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %100 = load i64, ptr %18, align 8, !tbaa !9
  %101 = icmp sle i64 0, %100
  br i1 %101, label %102, label %188

102:                                              ; preds = %96
  %103 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 2
  %104 = load i64, ptr %18, align 8, !tbaa !9
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %103, i64 noundef %104) #6
  %106 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %105) #6
  store i64 %106, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %107 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 2
  %108 = load i64, ptr %18, align 8, !tbaa !9
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #6
  store ptr %109, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %110 = load ptr, ptr %40, align 8, !tbaa !5
  %111 = call ptr @_ZNKSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #6
  %112 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %111, ptr %112, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %113 = load ptr, ptr %40, align 8, !tbaa !5
  %114 = call ptr @_ZNKSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %113) #6
  %115 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %114, ptr %115, align 8
  br label %116

116:                                              ; preds = %130, %102
  %117 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br i1 %117, label %119, label %118

118:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %132

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  %121 = load i64, ptr %120, align 8, !tbaa !9
  store i64 %121, ptr %43, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %122 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 1
  %123 = load i64, ptr %43, align 8, !tbaa !9
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %123) #6
  %125 = getelementptr inbounds %class.FeatureTest, ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !30
  store i64 %126, ptr %44, align 8, !tbaa !9
  %127 = load i64, ptr %44, align 8, !tbaa !9
  %128 = load i64, ptr %37, align 8, !tbaa !9
  %129 = mul i64 %128, %127
  store i64 %129, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %130

130:                                              ; preds = %119
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %41) #6
  br label %116

132:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  store i64 0, ptr %45, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %182, %132
  %134 = load i64, ptr %45, align 8, !tbaa !9
  %135 = load i64, ptr %38, align 8, !tbaa !9
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %187

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %139 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 2
  %140 = load i64, ptr %18, align 8, !tbaa !9
  %141 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %140) #6
  %142 = load i64, ptr %45, align 8, !tbaa !9
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %141, i64 noundef %142) #6
  %144 = load i64, ptr %143, align 8, !tbaa !9
  store i64 %144, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %145 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 1
  %146 = load i64, ptr %46, align 8, !tbaa !9
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %146) #6
  %148 = getelementptr inbounds %class.FeatureTest, ptr %147, i32 0, i32 0
  %149 = load i64, ptr %148, align 8, !tbaa !30
  store i64 %149, ptr %47, align 8, !tbaa !9
  %150 = load i64, ptr %47, align 8, !tbaa !9
  %151 = sub i64 %150, 1
  store i64 %151, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %48) #6
  %152 = load i64, ptr %39, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %152, ptr noundef nonnull align 1 dereferenceable(1) %49)
          to label %153 unwind label %169

153:                                              ; preds = %138
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #6
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #6
  %155 = load i64, ptr %39, align 8, !tbaa !9
  %156 = mul i64 8, %155
  call void @llvm.memset.p0.i64(ptr align 8 %154, i8 0, i64 %156, i1 false)
  %157 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %158 = load ptr, ptr %157, align 8, !tbaa !15
  %159 = load i64, ptr %45, align 8, !tbaa !9
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef 0) #6
  %161 = invoke i32 @GetTermUpdateSplits(ptr noundef %158, i64 noundef %159, ptr noundef %39, ptr noundef %160)
          to label %162 unwind label %173

162:                                              ; preds = %153
  store i32 %161, ptr %32, align 4, !tbaa !11
  %163 = load i32, ptr %32, align 4, !tbaa !11
  %164 = icmp ne i32 0, %163
  br i1 %164, label %165, label %181

165:                                              ; preds = %162
  %166 = call ptr @__cxa_allocate_exception(i64 48) #6
  %167 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %166, i32 noundef %167, ptr noundef @.str.26)
          to label %168 unwind label %177

168:                                              ; preds = %165
  invoke void @__cxa_throw(ptr %166, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %173

169:                                              ; preds = %138
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %35, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %36, align 4
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %49) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #6
  br label %186

173:                                              ; preds = %168, %153
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %35, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %36, align 4
  br label %185

177:                                              ; preds = %165
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %35, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %36, align 4
  call void @__cxa_free_exception(ptr %166) #6
  br label %185

181:                                              ; preds = %162
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %45, align 8, !tbaa !9
  %184 = add i64 %183, 1
  store i64 %184, ptr %45, align 8, !tbaa !9
  br label %133, !llvm.loop !33

185:                                              ; preds = %177, %173
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  br label %186

186:                                              ; preds = %185, %169
  call void @llvm.lifetime.end.p0(i64 24, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %340

187:                                              ; preds = %137
  br label %203

188:                                              ; preds = %96
  store i64 0, ptr %39, align 8, !tbaa !9
  %189 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %190 = load ptr, ptr %189, align 8, !tbaa !15
  %191 = call i32 @GetTermUpdateSplits(ptr noundef %190, i64 noundef -1, ptr noundef %39, ptr noundef null)
  store i32 %191, ptr %32, align 4, !tbaa !11
  %192 = load i32, ptr %32, align 4, !tbaa !11
  %193 = icmp ne i32 0, %192
  br i1 %193, label %194, label %202

194:                                              ; preds = %188
  %195 = call ptr @__cxa_allocate_exception(i64 48) #6
  %196 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %195, i32 noundef %196, ptr noundef @.str.26)
          to label %197 unwind label %198

197:                                              ; preds = %194
  call void @__cxa_throw(ptr %195, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
  unreachable

198:                                              ; preds = %194
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %35, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %36, align 4
  call void @__cxa_free_exception(ptr %195) #6
  br label %340

202:                                              ; preds = %188
  br label %203

203:                                              ; preds = %202, %187
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #6
  %204 = load i64, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %204, ptr noundef nonnull align 1 dereferenceable(1) %51)
          to label %205 unwind label %212

205:                                              ; preds = %203
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #6
  %206 = load i64, ptr %37, align 8, !tbaa !9
  %207 = icmp ne i64 0, %206
  br i1 %207, label %208, label %216

208:                                              ; preds = %205
  %209 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %210 = load i64, ptr %37, align 8, !tbaa !9
  %211 = mul i64 8, %210
  call void @llvm.memset.p0.i64(ptr align 8 %209, i8 -1, i64 %211, i1 false)
  br label %216

212:                                              ; preds = %203
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %35, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %36, align 4
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %51) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #6
  br label %339

216:                                              ; preds = %208, %205
  %217 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %218 = load ptr, ptr %217, align 8, !tbaa !15
  %219 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %220 = invoke i32 @GetTermUpdate(ptr noundef %218, ptr noundef %219)
          to label %221 unwind label %228

221:                                              ; preds = %216
  store i32 %220, ptr %32, align 4, !tbaa !11
  %222 = load i32, ptr %32, align 4, !tbaa !11
  %223 = icmp ne i32 0, %222
  br i1 %223, label %224, label %236

224:                                              ; preds = %221
  %225 = call ptr @__cxa_allocate_exception(i64 48) #6
  %226 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %225, i32 noundef %226, ptr noundef @.str.26)
          to label %227 unwind label %232

227:                                              ; preds = %224
  invoke void @__cxa_throw(ptr %225, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %228

228:                                              ; preds = %326, %314, %302, %290, %275, %265, %260, %248, %227, %216
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %35, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %36, align 4
  br label %338

232:                                              ; preds = %224
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %35, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %36, align 4
  call void @__cxa_free_exception(ptr %225) #6
  br label %338

236:                                              ; preds = %221
  %237 = load i32, ptr %19, align 4, !tbaa !11
  %238 = and i32 32, %237
  %239 = icmp ne i32 0, %238
  br i1 %239, label %240, label %248

240:                                              ; preds = %236
  %241 = load i64, ptr %37, align 8, !tbaa !9
  %242 = icmp ne i64 0, %241
  br i1 %242, label %243, label %247

243:                                              ; preds = %240
  %244 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %245 = load i64, ptr %37, align 8, !tbaa !9
  %246 = mul i64 8, %245
  call void @llvm.memset.p0.i64(ptr align 8 %244, i8 0, i64 %246, i1 false)
  br label %247

247:                                              ; preds = %243, %240
  br label %248

248:                                              ; preds = %247, %236
  %249 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %250 = load ptr, ptr %249, align 8, !tbaa !15
  %251 = load i64, ptr %18, align 8, !tbaa !9
  %252 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %253 = invoke i32 @SetTermUpdate(ptr noundef %250, i64 noundef %251, ptr noundef %252)
          to label %254 unwind label %228

254:                                              ; preds = %248
  store i32 %253, ptr %32, align 4, !tbaa !11
  %255 = load i32, ptr %32, align 4, !tbaa !11
  %256 = icmp ne i32 0, %255
  br i1 %256, label %257, label %265

257:                                              ; preds = %254
  %258 = call ptr @__cxa_allocate_exception(i64 48) #6
  %259 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %258, i32 noundef %259, ptr noundef @.str.26)
          to label %260 unwind label %261

260:                                              ; preds = %257
  invoke void @__cxa_throw(ptr %258, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %228

261:                                              ; preds = %257
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %35, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %36, align 4
  call void @__cxa_free_exception(ptr %258) #6
  br label %338

265:                                              ; preds = %254
  %266 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %267 = load ptr, ptr %266, align 8, !tbaa !15
  %268 = invoke i32 @ApplyTermUpdate(ptr noundef %267, ptr noundef %34)
          to label %269 unwind label %228

269:                                              ; preds = %265
  store i32 %268, ptr %32, align 4, !tbaa !11
  %270 = load i32, ptr %32, align 4, !tbaa !11
  %271 = icmp ne i32 0, %270
  br i1 %271, label %272, label %280

272:                                              ; preds = %269
  %273 = call ptr @__cxa_allocate_exception(i64 48) #6
  %274 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %273, i32 noundef %274, ptr noundef @.str.27)
          to label %275 unwind label %276

275:                                              ; preds = %272
  invoke void @__cxa_throw(ptr %273, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %228

276:                                              ; preds = %272
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %35, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %36, align 4
  call void @__cxa_free_exception(ptr %273) #6
  br label %338

280:                                              ; preds = %269
  %281 = load i64, ptr %18, align 8, !tbaa !9
  %282 = icmp sle i64 0, %281
  br i1 %282, label %283, label %332

283:                                              ; preds = %280
  %284 = load i64, ptr %37, align 8, !tbaa !9
  %285 = icmp ne i64 0, %284
  br i1 %285, label %286, label %290

286:                                              ; preds = %283
  %287 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %288 = load i64, ptr %37, align 8, !tbaa !9
  %289 = mul i64 8, %288
  call void @llvm.memset.p0.i64(ptr align 8 %287, i8 -1, i64 %289, i1 false)
  br label %290

290:                                              ; preds = %286, %283
  %291 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %292 = load ptr, ptr %291, align 8, !tbaa !15
  %293 = load i64, ptr %18, align 8, !tbaa !9
  %294 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %295 = invoke i32 @GetBestTermScores(ptr noundef %292, i64 noundef %293, ptr noundef %294)
          to label %296 unwind label %228

296:                                              ; preds = %290
  store i32 %295, ptr %32, align 4, !tbaa !11
  %297 = load i32, ptr %32, align 4, !tbaa !11
  %298 = icmp ne i32 0, %297
  br i1 %298, label %299, label %307

299:                                              ; preds = %296
  %300 = call ptr @__cxa_allocate_exception(i64 48) #6
  %301 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %300, i32 noundef %301, ptr noundef @.str.27)
          to label %302 unwind label %303

302:                                              ; preds = %299
  invoke void @__cxa_throw(ptr %300, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %228

303:                                              ; preds = %299
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %35, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %36, align 4
  call void @__cxa_free_exception(ptr %300) #6
  br label %338

307:                                              ; preds = %296
  %308 = load i64, ptr %37, align 8, !tbaa !9
  %309 = icmp ne i64 0, %308
  br i1 %309, label %310, label %314

310:                                              ; preds = %307
  %311 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %312 = load i64, ptr %37, align 8, !tbaa !9
  %313 = mul i64 8, %312
  call void @llvm.memset.p0.i64(ptr align 8 %311, i8 -1, i64 %313, i1 false)
  br label %314

314:                                              ; preds = %310, %307
  %315 = getelementptr inbounds %class.TestBoost, ptr %52, i32 0, i32 5
  %316 = load ptr, ptr %315, align 8, !tbaa !15
  %317 = load i64, ptr %18, align 8, !tbaa !9
  %318 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %319 = invoke i32 @GetCurrentTermScores(ptr noundef %316, i64 noundef %317, ptr noundef %318)
          to label %320 unwind label %228

320:                                              ; preds = %314
  store i32 %319, ptr %32, align 4, !tbaa !11
  %321 = load i32, ptr %32, align 4, !tbaa !11
  %322 = icmp ne i32 0, %321
  br i1 %322, label %323, label %331

323:                                              ; preds = %320
  %324 = call ptr @__cxa_allocate_exception(i64 48) #6
  %325 = load i32, ptr %32, align 4, !tbaa !11
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %324, i32 noundef %325, ptr noundef @.str.27)
          to label %326 unwind label %327

326:                                              ; preds = %323
  invoke void @__cxa_throw(ptr %324, ptr @_ZTI13TestException, ptr @_ZN13TestExceptionD2Ev) #7
          to label %347 unwind label %228

327:                                              ; preds = %323
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %35, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %36, align 4
  call void @__cxa_free_exception(ptr %324) #6
  br label %338

331:                                              ; preds = %320
  br label %332

332:                                              ; preds = %331, %280
  %333 = getelementptr inbounds %struct.BoostRet, ptr %16, i32 0, i32 0
  %334 = load double, ptr %33, align 8, !tbaa !13
  store double %334, ptr %333, align 8, !tbaa !35
  %335 = getelementptr inbounds %struct.BoostRet, ptr %16, i32 0, i32 1
  %336 = load double, ptr %34, align 8, !tbaa !13
  store double %336, ptr %335, align 8, !tbaa !37
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  %337 = load { double, double }, ptr %16, align 8
  ret { double, double } %337

338:                                              ; preds = %327, %303, %276, %261, %232, %228
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  br label %339

339:                                              ; preds = %338, %212
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #6
  br label %340

340:                                              ; preds = %339, %198, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %341

341:                                              ; preds = %340, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %342

342:                                              ; preds = %341
  %343 = load ptr, ptr %35, align 8
  %344 = load i32, ptr %36, align 4
  %345 = insertvalue { ptr, i32 } poison, ptr %343, 0
  %346 = insertvalue { ptr, i32 } %345, i32 %344, 1
  resume { ptr, i32 } %346

347:                                              ; preds = %326, %302, %275, %260, %227, %168
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() #1 align 2

declare i32 @GenerateTermUpdate(ptr noundef, ptr noundef, i64 noundef, i32 noundef, double noundef, i64 noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @GetTermUpdateSplits(ptr noundef, i64 noundef, ptr noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

declare i32 @GetTermUpdate(ptr noundef, ptr noundef) #5

declare i32 @SetTermUpdate(ptr noundef, i64 noundef, ptr noundef) #5

declare i32 @ApplyTermUpdate(ptr noundef, ptr noundef) #5

declare i32 @GetBestTermScores(ptr noundef, i64 noundef, ptr noundef) #5

declare i32 @GetCurrentTermScores(ptr noundef, i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !6, i64 88}
!16 = !{!"_ZTS9TestBoost", !10, i64 0, !17, i64 8, !21, i64 32, !10, i64 56, !25, i64 64, !6, i64 88}
!17 = !{!"_ZTSSt6vectorI11FeatureTestSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseI11FeatureTestSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI11FeatureTestSaIS0_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI11FeatureTestSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIS_IlSaIlEESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSSt6vectorIhSaIhEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!16, !10, i64 0}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTS11FeatureTest", !10, i64 0, !32, i64 8, !32, i64 9, !32, i64 10}
!32 = !{!"bool", !7, i64 0}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!36, !14, i64 0}
!36 = !{!"_ZTS8BoostRet", !14, i64 0, !14, i64 8}
!37 = !{!36, !14, i64 8}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.42" = type { i8 }

@_ZTI13TestException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.25 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [16 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestExceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPKlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, ptr noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local { double, double } @_ZN9TestBoost5BoostElidlddddldldSt6vectorIlSaIlEES0_IiSaIiEE(ptr noundef nonnull align 8 dereferenceable(96) %0, i64 noundef %1, i32 noundef %2, double noundef %3, i64 noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, i64 noundef %9, double noundef %10, i64 noundef %11, double noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %21 = alloca %"class.std::vector", align 8
  %22 = alloca %"class.std::allocator", align 1
  %23 = alloca %"class.std::vector.40", align 8
  %24 = alloca %"class.std::allocator.42", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %25 = tail call noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() #6
  store double %25, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %26 = tail call noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() #6
  store double %26, ptr %17, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 64
  %28 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 0) #6
  %29 = getelementptr inbounds i8, ptr %0, i64 88
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = tail call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %35, label %33

33:                                               ; preds = %15
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef 0) #6
  br label %35

35:                                               ; preds = %15, %33
  %36 = phi ptr [ %34, %33 ], [ null, %15 ]
  %37 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  %38 = icmp eq i64 %37, 0
  br i1 %38, label %41, label %39

39:                                               ; preds = %35
  %40 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0) #6
  br label %41

41:                                               ; preds = %35, %39
  %42 = phi ptr [ %40, %39 ], [ null, %35 ]
  %43 = call i32 @GenerateTermUpdate(ptr noundef nonnull %28, ptr noundef %30, i64 noundef %1, i32 noundef %2, double noundef %3, i64 noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, i64 noundef %9, double noundef %10, i64 noundef %11, double noundef %12, ptr noundef %36, ptr noundef %42, ptr noundef nonnull %16)
  %.not = icmp eq i32 %43, 0
  br i1 %.not, label %49, label %44

44:                                               ; preds = %41
  %45 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %45, i32 noundef %43, ptr noundef nonnull @.str.25)
          to label %46 unwind label %47

46:                                               ; preds = %44
  call void @__cxa_throw(ptr nonnull %45, ptr nonnull @_ZTI13TestException, ptr nonnull @_ZN13TestExceptionD2Ev) #7
  unreachable

47:                                               ; preds = %44
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %45) #6
  br label %180

49:                                               ; preds = %41
  %50 = load i64, ptr %0, align 8, !tbaa !25
  %51 = call noundef i64 @_ZL14GetCountScoresl(i64 noundef %50)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %52 = icmp sgt i64 %1, -1
  br i1 %52, label %53, label %97

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %1) #6
  %56 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #6
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %58 = call ptr @_ZNKSt6vectorIlSaIlEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  store ptr %58, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #6
  %59 = call ptr @_ZNKSt6vectorIlSaIlEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #6
  store ptr %59, ptr %20, align 8
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %60, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %53
  %61 = getelementptr inbounds i8, ptr %0, i64 8
  br label %63

._crit_edge:                                      ; preds = %63, %53
  %.068.lcssa = phi i64 [ %51, %53 ], [ %68, %63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  %.not100 = icmp eq i64 %56, 0
  br i1 %.not100, label %.loopexit, label %.lr.ph99

.lr.ph99:                                         ; preds = %._crit_edge
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  br label %71

63:                                               ; preds = %.lr.ph, %63
  %.06896 = phi i64 [ %51, %.lr.ph ], [ %68, %63 ]
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %65 = load i64, ptr %64, align 8, !tbaa !26
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %65) #6
  %67 = load i64, ptr %66, align 8, !tbaa !27
  %68 = mul i64 %67, %.06896
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKlSt6vectorIlSaIlEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #6
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKlSt6vectorIlSaIlEEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br i1 %70, label %63, label %._crit_edge

71:                                               ; preds = %.lr.ph99, %93
  %.06197 = phi i64 [ 0, %.lr.ph99 ], [ %94, %93 ]
  %72 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IlSaIlEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %1) #6
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %.06197) #6
  %74 = load i64, ptr %73, align 8, !tbaa !26
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorI11FeatureTestSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %74) #6
  %76 = load i64, ptr %75, align 8, !tbaa !27
  %77 = add i64 %76, -1
  store i64 %77, ptr %18, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %22) #6
  call void @_ZNSaIlEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  invoke void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %22)
          to label %78 unwind label %89

78:                                               ; preds = %71
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #6
  %80 = load i64, ptr %18, align 8, !tbaa !26
  %81 = shl i64 %80, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %79, i8 0, i64 %81, i1 false)
  %82 = load ptr, ptr %29, align 8, !tbaa !9
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef 0) #6
  %84 = invoke i32 @GetTermUpdateSplits(ptr noundef %82, i64 noundef %.06197, ptr noundef nonnull %18, ptr noundef nonnull %83)
          to label %85 unwind label %.loopexit95

85:                                               ; preds = %78
  %.not88 = icmp eq i32 %84, 0
  br i1 %.not88, label %93, label %86

86:                                               ; preds = %85
  %87 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %87, i32 noundef %84, ptr noundef nonnull @.str.26)
          to label %88 unwind label %91

88:                                               ; preds = %86
  invoke void @__cxa_throw(ptr nonnull %87, ptr nonnull @_ZTI13TestException, ptr nonnull @_ZN13TestExceptionD2Ev) #7
          to label %181 unwind label %.loopexit.split-lp

89:                                               ; preds = %71
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIlED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %22) #6
  br label %96

.loopexit95:                                      ; preds = %78
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %95

.loopexit.split-lp:                               ; preds = %88
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %95

91:                                               ; preds = %86
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %87) #6
  br label %95

93:                                               ; preds = %85
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  %94 = add nuw i64 %.06197, 1
  %exitcond.not = icmp eq i64 %94, %56
  br i1 %exitcond.not, label %.loopexit, label %71, !llvm.loop !30

95:                                               ; preds = %.loopexit95, %.loopexit.split-lp, %91
  %.pn89 = phi { ptr, i32 } [ %92, %91 ], [ %lpad.loopexit, %.loopexit95 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %96

96:                                               ; preds = %95, %89
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %95 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #6
  br label %179

97:                                               ; preds = %49
  store i64 0, ptr %18, align 8, !tbaa !26
  %98 = load ptr, ptr %29, align 8, !tbaa !9
  %99 = call i32 @GetTermUpdateSplits(ptr noundef %98, i64 noundef -1, ptr noundef nonnull %18, ptr noundef null)
  %.not80 = icmp eq i32 %99, 0
  br i1 %.not80, label %.loopexit, label %100

100:                                              ; preds = %97
  %101 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %101, i32 noundef %99, ptr noundef nonnull @.str.26)
          to label %102 unwind label %103

102:                                              ; preds = %100
  call void @__cxa_throw(ptr nonnull %101, ptr nonnull @_ZTI13TestException, ptr nonnull @_ZN13TestExceptionD2Ev) #7
  unreachable

103:                                              ; preds = %100
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %101) #6
  br label %179

.loopexit:                                        ; preds = %93, %._crit_edge, %97
  %.169 = phi i64 [ %51, %97 ], [ %.068.lcssa, %._crit_edge ], [ %.068.lcssa, %93 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #6
  call void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %.169, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %105 unwind label %110

105:                                              ; preds = %.loopexit
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  %106 = icmp ne i64 %.169, 0
  br i1 %106, label %107, label %112

107:                                              ; preds = %105
  %108 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %109 = shl i64 %.169, 3
  call void @llvm.memset.p0.i64(ptr align 8 %108, i8 -1, i64 %109, i1 false)
  br label %112

110:                                              ; preds = %.loopexit
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #6
  br label %178

112:                                              ; preds = %107, %105
  %113 = load ptr, ptr %29, align 8, !tbaa !9
  %114 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %115 = invoke i32 @GetTermUpdate(ptr noundef %113, ptr noundef %114)
          to label %116 unwind label %119

116:                                              ; preds = %112
  %.not81 = icmp eq i32 %115, 0
  br i1 %.not81, label %123, label %117

117:                                              ; preds = %116
  %118 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %118, i32 noundef %115, ptr noundef nonnull @.str.26)
          to label %.invoke unwind label %121

119:                                              ; preds = %.invoke, %164, %151, %138, %129, %112
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %177

121:                                              ; preds = %117
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %118) #6
  br label %177

123:                                              ; preds = %116
  %124 = and i32 %2, 32
  %125 = icmp ne i32 %124, 0
  %or.cond = and i1 %125, %106
  br i1 %or.cond, label %126, label %129

126:                                              ; preds = %123
  %127 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %128 = shl i64 %.169, 3
  call void @llvm.memset.p0.i64(ptr align 8 %127, i8 0, i64 %128, i1 false)
  br label %129

129:                                              ; preds = %126, %123
  %130 = load ptr, ptr %29, align 8, !tbaa !9
  %131 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %132 = invoke i32 @SetTermUpdate(ptr noundef %130, i64 noundef %1, ptr noundef %131)
          to label %133 unwind label %119

133:                                              ; preds = %129
  %.not82 = icmp eq i32 %132, 0
  br i1 %.not82, label %138, label %134

134:                                              ; preds = %133
  %135 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %135, i32 noundef %132, ptr noundef nonnull @.str.26)
          to label %.invoke unwind label %136

136:                                              ; preds = %134
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %135) #6
  br label %177

138:                                              ; preds = %133
  %139 = load ptr, ptr %29, align 8, !tbaa !9
  %140 = invoke i32 @ApplyTermUpdate(ptr noundef %139, ptr noundef nonnull %17)
          to label %141 unwind label %119

141:                                              ; preds = %138
  %.not83 = icmp eq i32 %140, 0
  br i1 %.not83, label %146, label %142

142:                                              ; preds = %141
  %143 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %143, i32 noundef %140, ptr noundef nonnull @.str.27)
          to label %.invoke unwind label %144

144:                                              ; preds = %142
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %143) #6
  br label %177

146:                                              ; preds = %141
  br i1 %52, label %147, label %174

147:                                              ; preds = %146
  br i1 %106, label %148, label %151

148:                                              ; preds = %147
  %149 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %150 = shl i64 %.169, 3
  call void @llvm.memset.p0.i64(ptr align 8 %149, i8 -1, i64 %150, i1 false)
  br label %151

151:                                              ; preds = %148, %147
  %152 = load ptr, ptr %29, align 8, !tbaa !9
  %153 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %154 = invoke i32 @GetBestTermScores(ptr noundef %152, i64 noundef %1, ptr noundef %153)
          to label %155 unwind label %119

155:                                              ; preds = %151
  %.not84 = icmp eq i32 %154, 0
  br i1 %.not84, label %160, label %156

156:                                              ; preds = %155
  %157 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %157, i32 noundef %154, ptr noundef nonnull @.str.27)
          to label %.invoke unwind label %158

158:                                              ; preds = %156
  %159 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %157) #6
  br label %177

160:                                              ; preds = %155
  br i1 %106, label %161, label %164

161:                                              ; preds = %160
  %162 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %163 = shl i64 %.169, 3
  call void @llvm.memset.p0.i64(ptr align 8 %162, i8 -1, i64 %163, i1 false)
  br label %164

164:                                              ; preds = %161, %160
  %165 = load ptr, ptr %29, align 8, !tbaa !9
  %166 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  %167 = invoke i32 @GetCurrentTermScores(ptr noundef %165, i64 noundef %1, ptr noundef %166)
          to label %168 unwind label %119

168:                                              ; preds = %164
  %.not85 = icmp eq i32 %167, 0
  br i1 %.not85, label %174, label %169

169:                                              ; preds = %168
  %170 = call ptr @__cxa_allocate_exception(i64 48) #6
  invoke void @_ZN13TestExceptionC2EiPKc(ptr noundef nonnull align 8 dereferenceable(48) %170, i32 noundef %167, ptr noundef nonnull @.str.27)
          to label %.invoke unwind label %172

.invoke:                                          ; preds = %117, %169, %156, %142, %134
  %171 = phi ptr [ %135, %134 ], [ %143, %142 ], [ %157, %156 ], [ %170, %169 ], [ %118, %117 ]
  invoke void @__cxa_throw(ptr nonnull %171, ptr nonnull @_ZTI13TestException, ptr nonnull @_ZN13TestExceptionD2Ev) #7
          to label %.cont unwind label %119

.cont:                                            ; preds = %.invoke
  unreachable

172:                                              ; preds = %169
  %173 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %170) #6
  br label %177

174:                                              ; preds = %168, %146
  %175 = load double, ptr %16, align 8, !tbaa !5
  %176 = load double, ptr %17, align 8, !tbaa !5
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  %.fca.0.insert = insertvalue { double, double } poison, double %175, 0
  %.fca.1.insert = insertvalue { double, double } %.fca.0.insert, double %176, 1
  ret { double, double } %.fca.1.insert

177:                                              ; preds = %172, %158, %144, %136, %121, %119
  %.pn = phi { ptr, i32 } [ %120, %119 ], [ %122, %121 ], [ %137, %136 ], [ %145, %144 ], [ %159, %158 ], [ %173, %172 ]
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #6
  br label %178

178:                                              ; preds = %177, %110
  %.pn.pn = phi { ptr, i32 } [ %.pn, %177 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #6
  br label %179

179:                                              ; preds = %178, %103, %96
  %.pn89.pn.pn = phi { ptr, i32 } [ %.pn89.pn, %96 ], [ %.pn.pn, %178 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  br label %180

180:                                              ; preds = %179, %47
  %.pn93 = phi { ptr, i32 } [ %48, %47 ], [ %.pn89.pn.pn, %179 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  resume { ptr, i32 } %.pn93

181:                                              ; preds = %88
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE9quiet_NaNEv() local_unnamed_addr #1 align 2

declare i32 @GenerateTermUpdate(ptr noundef, ptr noundef, i64 noundef, i32 noundef, double noundef, i64 noundef, double noundef, double noundef, double noundef, double noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIlSaIlEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @GetTermUpdateSplits(ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIdEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIdSaIdEEC2EmRKS0_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

declare i32 @GetTermUpdate(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @SetTermUpdate(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @ApplyTermUpdate(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @GetBestTermScores(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @GetCurrentTermScores(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIdED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !16, i64 88}
!10 = !{!"_ZTS9TestBoost", !11, i64 0, !12, i64 8, !17, i64 32, !11, i64 56, !21, i64 64, !16, i64 88}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTSSt6vectorI11FeatureTestSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseI11FeatureTestSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI11FeatureTestSaIS0_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI11FeatureTestSaIS0_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIS_IlSaIlEESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt6vectorIlSaIlEESaIS2_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTSSt6vectorIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!25 = !{!10, !11, i64 0}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !11, i64 0}
!28 = !{!"_ZTS11FeatureTest", !11, i64 0, !29, i64 8, !29, i64 9, !29, i64 10}
!29 = !{!"bool", !7, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass