; LLVM IR from hlzz/libvot :: src/vocab_tree/vot_pipeline.ll (ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl" }
%"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl" = type { %"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.vot::VocabTree" = type { i32, i32, i32, i64, i64, i64, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi = external hidden unnamed_addr constant [78 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca i1, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.std::vector.0", align 8
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::vector.5", align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca i64, align 8
  %31 = alloca i64, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i64, align 8
  %38 = alloca i64, align 8
  %39 = alloca i32, align 4
  %40 = alloca i64, align 8
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %"class.vot::VocabTree", align 8
  %46 = alloca %"class.vot::VocabTree", align 8
  %47 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !11
  store i32 %5, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = invoke noundef i32 @_ZN2tw2IO12ExtractLinesEPKcRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EE(ptr noundef %48, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %50 unwind label %94

50:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  %51 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  store i64 %51, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %52 = invoke noundef i64 @_ZN2tw2IO11GetAvailMemEv()
          to label %53 unwind label %98

53:                                               ; preds = %50
  %54 = udiv i64 %52, 1048576
  store i64 %54, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = sitofp i32 %55 to double
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  %59 = sitofp i32 %58 to double
  %60 = call double @pow(double noundef %56, double noundef %59) #11
  %61 = fptoui double %60 to i64
  %62 = mul i64 128, %61
  %63 = udiv i64 %62, 1048576
  store i64 %63, ptr %19, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %64 = load i64, ptr %18, align 8, !tbaa !13
  %65 = load i64, ptr %19, align 8, !tbaa !13
  %66 = sub i64 %64, %65
  %67 = udiv i64 %66, 2
  store i64 %67, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  %68 = load i64, ptr %17, align 8, !tbaa !13
  %69 = load i64, ptr %20, align 8, !tbaa !13
  %70 = icmp ugt i64 %68, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %53
  %72 = load i64, ptr %20, align 8, !tbaa !13
  br label %75

73:                                               ; preds = %53
  %74 = load i64, ptr %17, align 8, !tbaa !13
  br label %75

75:                                               ; preds = %73, %71
  %76 = phi i64 [ %72, %71 ], [ %74, %73 ]
  store i64 %76, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #11
  %77 = load i64, ptr %17, align 8, !tbaa !13
  %78 = load i64, ptr %21, align 8, !tbaa !13
  invoke void @_ZN12_GLOBAL__N_112RandomSampleEmm(ptr dead_on_unwind writable sret(%"class.std::vector.0") align 8 %22, i64 noundef %77, i64 noundef %78)
          to label %79 unwind label %102

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #11
  store i64 0, ptr %23, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #11
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #11
  %80 = load i64, ptr %21, align 8, !tbaa !13
  invoke void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %80)
          to label %81 unwind label %106

81:                                               ; preds = %79
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %83 unwind label %106

83:                                               ; preds = %81
  %84 = load i32, ptr %12, align 4, !tbaa !11
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %82, i32 noundef %84)
          to label %86 unwind label %106

86:                                               ; preds = %83
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str.1)
          to label %88 unwind label %106

88:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  store i64 0, ptr %25, align 8, !tbaa !13
  br label %89

89:                                               ; preds = %172, %88
  %90 = load i64, ptr %25, align 8, !tbaa !13
  %91 = load i64, ptr %21, align 8, !tbaa !13
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %110, label %93

93:                                               ; preds = %89
  store i32 2, ptr %26, align 4
  br label %175

94:                                               ; preds = %6
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %15, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %16, align 4
  br label %449

98:                                               ; preds = %50
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %15, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %16, align 4
  br label %448

102:                                              ; preds = %75
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %15, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %16, align 4
  br label %447

106:                                              ; preds = %188, %183, %180, %178, %86, %83, %81, %79
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %15, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %16, align 4
  br label %446

110:                                              ; preds = %89
  %111 = load i32, ptr %12, align 4, !tbaa !11
  switch i32 %111, label %161 [
    i32 0, label %112
    i32 1, label %150
  ]

112:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #11
  %113 = load i64, ptr %25, align 8, !tbaa !13
  %114 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %113) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull align 8 dereferenceable(32) %114)
          to label %115 unwind label %123

115:                                              ; preds = %112
  invoke void @_ZN2tw2IO12SplitPathExtENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %28, ptr noundef %29)
          to label %116 unwind label %127

116:                                              ; preds = %115
  %117 = getelementptr inbounds %"struct.std::pair", ptr %28, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %117) #11
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %28) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #11
  %118 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.2)
          to label %119 unwind label %132

119:                                              ; preds = %116
  br i1 %118, label %120, label %136

120:                                              ; preds = %119
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %122 unwind label %132

122:                                              ; preds = %120
  store i1 false, ptr %7, align 1
  store i32 1, ptr %26, align 4
  br label %147

123:                                              ; preds = %112
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %15, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %16, align 4
  br label %131

127:                                              ; preds = %115
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %15, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #11
  br label %131

131:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #11
  br label %149

132:                                              ; preds = %136, %120, %116
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %15, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  br label %149

136:                                              ; preds = %119
  %137 = load i64, ptr %25, align 8, !tbaa !13
  %138 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %137) #11
  %139 = load i64, ptr %25, align 8, !tbaa !13
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %139) #11
  %141 = load i64, ptr %140, align 8, !tbaa !13
  %142 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %141) #11
  %143 = invoke noundef zeroext i1 @_ZN3vot8SiftData12ReadSiftFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %138, ptr noundef nonnull align 8 dereferenceable(32) %142)
          to label %144 unwind label %132

144:                                              ; preds = %136
  br i1 %143, label %146, label %145

145:                                              ; preds = %144
  store i1 false, ptr %7, align 1
  store i32 1, ptr %26, align 4
  br label %147

146:                                              ; preds = %144
  store i32 5, ptr %26, align 4
  br label %147

147:                                              ; preds = %146, %145, %122
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  %148 = load i32, ptr %26, align 4
  switch i32 %148, label %175 [
    i32 5, label %164
  ]

149:                                              ; preds = %132, %131
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #11
  br label %177

150:                                              ; preds = %110
  %151 = load i64, ptr %25, align 8, !tbaa !13
  %152 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %151) #11
  %153 = load i64, ptr %25, align 8, !tbaa !13
  %154 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %153) #11
  %155 = invoke noundef zeroext i1 @_ZN3vot8SiftData15ReadOpenmvgDescIhLm128EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %152, ptr noundef nonnull align 8 dereferenceable(32) %154)
          to label %156 unwind label %157

156:                                              ; preds = %150
  br label %164

157:                                              ; preds = %164, %161, %150
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %15, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %16, align 4
  br label %177

161:                                              ; preds = %110
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %163 unwind label %157

163:                                              ; preds = %161
  store i1 false, ptr %7, align 1
  store i32 1, ptr %26, align 4
  br label %175

164:                                              ; preds = %156, %147
  %165 = load i64, ptr %25, align 8, !tbaa !13
  %166 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %165) #11
  %167 = invoke noundef i32 @_ZNK3vot8SiftData13getFeatureNumEv(ptr noundef nonnull align 8 dereferenceable(40) %166)
          to label %168 unwind label %157

168:                                              ; preds = %164
  %169 = sext i32 %167 to i64
  %170 = load i64, ptr %23, align 8, !tbaa !13
  %171 = add i64 %170, %169
  store i64 %171, ptr %23, align 8, !tbaa !13
  br label %172

172:                                              ; preds = %168
  %173 = load i64, ptr %25, align 8, !tbaa !13
  %174 = add i64 %173, 1
  store i64 %174, ptr %25, align 8, !tbaa !13
  br label %89, !llvm.loop !15

175:                                              ; preds = %163, %147, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  %176 = load i32, ptr %26, align 4
  switch i32 %176, label %444 [
    i32 2, label %178
  ]

177:                                              ; preds = %157, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  br label %446

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %180 unwind label %106

180:                                              ; preds = %178
  %181 = load i64, ptr %23, align 8, !tbaa !13
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %179, i64 noundef %181)
          to label %183 unwind label %106

183:                                              ; preds = %180
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %185 unwind label %106

185:                                              ; preds = %183
  %186 = load i64, ptr %23, align 8, !tbaa !13
  %187 = icmp eq i64 %186, 0
  br i1 %187, label %188, label %191

188:                                              ; preds = %185
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.6)
          to label %190 unwind label %106

190:                                              ; preds = %188
  store i1 false, ptr %7, align 1
  store i32 1, ptr %26, align 4
  br label %444

191:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  %192 = load i64, ptr %23, align 8, !tbaa !13
  %193 = mul i64 %192, 128
  store i64 %193, ptr %30, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #11
  %194 = load i64, ptr %30, align 8, !tbaa !13
  %195 = udiv i64 %194, 8388608
  %196 = load i64, ptr %30, align 8, !tbaa !13
  %197 = urem i64 %196, 8388608
  %198 = icmp eq i64 %197, 0
  %199 = zext i1 %198 to i64
  %200 = select i1 %198, i32 0, i32 1
  %201 = sext i32 %200 to i64
  %202 = add i64 %195, %201
  store i64 %202, ptr %31, align 8, !tbaa !13
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %204 unwind label %228

204:                                              ; preds = %191
  %205 = load i64, ptr %30, align 8, !tbaa !13
  %206 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %203, i64 noundef %205)
          to label %207 unwind label %228

207:                                              ; preds = %204
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %206, ptr noundef @.str.8)
          to label %209 unwind label %228

209:                                              ; preds = %207
  %210 = load i64, ptr %31, align 8, !tbaa !13
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %208, i64 noundef %210)
          to label %212 unwind label %228

212:                                              ; preds = %209
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @.str.9)
          to label %214 unwind label %228

214:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #11
  %215 = load i64, ptr %31, align 8, !tbaa !13
  %216 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %215, i64 8)
  %217 = extractvalue { i64, i1 } %216, 1
  %218 = extractvalue { i64, i1 } %216, 0
  %219 = select i1 %217, i64 -1, i64 %218
  %220 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %219) #12
          to label %221 unwind label %232

221:                                              ; preds = %214
  store ptr %220, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #11
  %222 = load i64, ptr %30, align 8, !tbaa !13
  store i64 %222, ptr %33, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #11
  store i64 0, ptr %34, align 8, !tbaa !13
  br label %223

223:                                              ; preds = %253, %221
  %224 = load i64, ptr %34, align 8, !tbaa !13
  %225 = load i64, ptr %31, align 8, !tbaa !13
  %226 = icmp ult i64 %224, %225
  br i1 %226, label %236, label %227

227:                                              ; preds = %223
  store i32 6, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %260

228:                                              ; preds = %212, %209, %207, %204, %191
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %15, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %16, align 4
  br label %443

232:                                              ; preds = %214
  %233 = landingpad { ptr, i32 }
          cleanup
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %15, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %16, align 4
  br label %442

236:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %237 = load i64, ptr %33, align 8, !tbaa !13
  %238 = icmp ugt i64 %237, 8388608
  br i1 %238, label %239, label %240

239:                                              ; preds = %236
  br label %242

240:                                              ; preds = %236
  %241 = load i64, ptr %33, align 8, !tbaa !13
  br label %242

242:                                              ; preds = %240, %239
  %243 = phi i64 [ 8388608, %239 ], [ %241, %240 ]
  store i64 %243, ptr %35, align 8, !tbaa !13
  %244 = load i64, ptr %35, align 8, !tbaa !13
  %245 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %244) #12
          to label %246 unwind label %256

246:                                              ; preds = %242
  %247 = load ptr, ptr %32, align 8, !tbaa !5
  %248 = load i64, ptr %34, align 8, !tbaa !13
  %249 = getelementptr inbounds ptr, ptr %247, i64 %248
  store ptr %245, ptr %249, align 8, !tbaa !5
  %250 = load i64, ptr %35, align 8, !tbaa !13
  %251 = load i64, ptr %33, align 8, !tbaa !13
  %252 = sub i64 %251, %250
  store i64 %252, ptr %33, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %253

253:                                              ; preds = %246
  %254 = load i64, ptr %34, align 8, !tbaa !13
  %255 = add i64 %254, 1
  store i64 %255, ptr %34, align 8, !tbaa !13
  br label %223, !llvm.loop !17

256:                                              ; preds = %242
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %15, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #11
  br label %441

260:                                              ; preds = %227
  %261 = load i64, ptr %33, align 8, !tbaa !13
  %262 = icmp eq i64 %261, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %260
  br label %266

264:                                              ; preds = %260
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 192, ptr noundef @__PRETTY_FUNCTION__._ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi) #13
  unreachable

265:                                              ; No predecessors!
  br label %266

266:                                              ; preds = %265, %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #11
  %267 = load i64, ptr %23, align 8, !tbaa !13
  %268 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %267, i64 8)
  %269 = extractvalue { i64, i1 } %268, 1
  %270 = extractvalue { i64, i1 } %268, 0
  %271 = select i1 %269, i64 -1, i64 %270
  %272 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %271) #12
          to label %273 unwind label %279

273:                                              ; preds = %266
  store ptr %272, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #11
  store i64 0, ptr %37, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #11
  store i64 0, ptr %38, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  store i32 0, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #11
  store i64 0, ptr %40, align 8, !tbaa !13
  br label %274

274:                                              ; preds = %362, %273
  %275 = load i64, ptr %40, align 8, !tbaa !13
  %276 = load i64, ptr %21, align 8, !tbaa !13
  %277 = icmp ult i64 %275, %276
  br i1 %277, label %283, label %278

278:                                              ; preds = %274
  store i32 9, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %366

279:                                              ; preds = %266
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %15, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %16, align 4
  br label %440

283:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #11
  %284 = load i64, ptr %40, align 8, !tbaa !13
  %285 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %284) #11
  %286 = invoke noundef i32 @_ZNK3vot8SiftData13getFeatureNumEv(ptr noundef nonnull align 8 dereferenceable(40) %285)
          to label %287 unwind label %301

287:                                              ; preds = %283
  store i32 %286, ptr %41, align 4, !tbaa !9
  %288 = load i32, ptr %41, align 4, !tbaa !9
  %289 = icmp sgt i32 %288, 0
  br i1 %289, label %290, label %361

290:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #11
  %291 = load i64, ptr %40, align 8, !tbaa !13
  %292 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %291) #11
  %293 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vot8SiftData13getDesPointerEv(ptr noundef nonnull align 8 dereferenceable(40) %292)
          to label %294 unwind label %305

294:                                              ; preds = %290
  %295 = load ptr, ptr %293, align 8, !tbaa !5
  store ptr %295, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %296

296:                                              ; preds = %357, %294
  %297 = load i32, ptr %43, align 4, !tbaa !9
  %298 = load i32, ptr %41, align 4, !tbaa !9
  %299 = icmp slt i32 %297, %298
  br i1 %299, label %309, label %300

300:                                              ; preds = %296
  store i32 12, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %360

301:                                              ; preds = %283
  %302 = landingpad { ptr, i32 }
          cleanup
  %303 = extractvalue { ptr, i32 } %302, 0
  store ptr %303, ptr %15, align 8
  %304 = extractvalue { ptr, i32 } %302, 1
  store i32 %304, ptr %16, align 4
  br label %365

305:                                              ; preds = %290
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %15, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %365

309:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #11
  store i32 0, ptr %44, align 4, !tbaa !9
  br label %310

310:                                              ; preds = %333, %309
  %311 = load i32, ptr %44, align 4, !tbaa !9
  %312 = icmp slt i32 %311, 128
  br i1 %312, label %314, label %313

313:                                              ; preds = %310
  store i32 15, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #11
  br label %336

314:                                              ; preds = %310
  %315 = load ptr, ptr %42, align 8, !tbaa !5
  %316 = load i32, ptr %43, align 4, !tbaa !9
  %317 = mul nsw i32 %316, 128
  %318 = load i32, ptr %44, align 4, !tbaa !9
  %319 = add nsw i32 %317, %318
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds i8, ptr %315, i64 %320
  %322 = load i8, ptr %321, align 1, !tbaa !18
  %323 = load ptr, ptr %32, align 8, !tbaa !5
  %324 = load i32, ptr %39, align 4, !tbaa !9
  %325 = sext i32 %324 to i64
  %326 = getelementptr inbounds ptr, ptr %323, i64 %325
  %327 = load ptr, ptr %326, align 8, !tbaa !5
  %328 = load i64, ptr %37, align 8, !tbaa !13
  %329 = load i32, ptr %44, align 4, !tbaa !9
  %330 = sext i32 %329 to i64
  %331 = add i64 %328, %330
  %332 = getelementptr inbounds i8, ptr %327, i64 %331
  store i8 %322, ptr %332, align 1, !tbaa !18
  br label %333

333:                                              ; preds = %314
  %334 = load i32, ptr %44, align 4, !tbaa !9
  %335 = add nsw i32 %334, 1
  store i32 %335, ptr %44, align 4, !tbaa !9
  br label %310, !llvm.loop !19

336:                                              ; preds = %313
  %337 = load ptr, ptr %32, align 8, !tbaa !5
  %338 = load i32, ptr %39, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds ptr, ptr %337, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load i64, ptr %37, align 8, !tbaa !13
  %343 = getelementptr inbounds i8, ptr %341, i64 %342
  %344 = load ptr, ptr %36, align 8, !tbaa !5
  %345 = load i64, ptr %38, align 8, !tbaa !13
  %346 = getelementptr inbounds ptr, ptr %344, i64 %345
  store ptr %343, ptr %346, align 8, !tbaa !5
  %347 = load i64, ptr %38, align 8, !tbaa !13
  %348 = add i64 %347, 1
  store i64 %348, ptr %38, align 8, !tbaa !13
  %349 = load i64, ptr %37, align 8, !tbaa !13
  %350 = add i64 %349, 128
  store i64 %350, ptr %37, align 8, !tbaa !13
  %351 = load i64, ptr %37, align 8, !tbaa !13
  %352 = icmp eq i64 %351, 8388608
  br i1 %352, label %353, label %356

353:                                              ; preds = %336
  store i64 0, ptr %37, align 8, !tbaa !13
  %354 = load i32, ptr %39, align 4, !tbaa !9
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %39, align 4, !tbaa !9
  br label %356

356:                                              ; preds = %353, %336
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %43, align 4, !tbaa !9
  %359 = add nsw i32 %358, 1
  store i32 %359, ptr %43, align 4, !tbaa !9
  br label %296, !llvm.loop !20

360:                                              ; preds = %300
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #11
  br label %361

361:                                              ; preds = %360, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  br label %362

362:                                              ; preds = %361
  %363 = load i64, ptr %40, align 8, !tbaa !13
  %364 = add i64 %363, 1
  store i64 %364, ptr %40, align 8, !tbaa !13
  br label %274, !llvm.loop !21

365:                                              ; preds = %305, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #11
  br label %439

366:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 56, ptr %45) #11
  invoke void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45)
          to label %367 unwind label %379

367:                                              ; preds = %366
  %368 = load i64, ptr %23, align 8, !tbaa !13
  %369 = load i32, ptr %10, align 4, !tbaa !9
  %370 = load i32, ptr %11, align 4, !tbaa !9
  %371 = load ptr, ptr %36, align 8, !tbaa !5
  %372 = load i32, ptr %13, align 4, !tbaa !9
  %373 = invoke noundef zeroext i1 @_ZN3vot9VocabTree9BuildTreeEmiiiPPhi(ptr noundef nonnull align 8 dereferenceable(56) %45, i64 noundef %368, i32 noundef 128, i32 noundef %369, i32 noundef %370, ptr noundef %371, i32 noundef %372)
          to label %374 unwind label %383

374:                                              ; preds = %367
  br i1 %373, label %375, label %387

375:                                              ; preds = %374
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = invoke noundef zeroext i1 @_ZNK3vot9VocabTree9WriteTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56) %45, ptr noundef %376)
          to label %378 unwind label %383

378:                                              ; preds = %375
  br label %387

379:                                              ; preds = %366
  %380 = landingpad { ptr, i32 }
          cleanup
  %381 = extractvalue { ptr, i32 } %380, 0
  store ptr %381, ptr %15, align 8
  %382 = extractvalue { ptr, i32 } %380, 1
  store i32 %382, ptr %16, align 4
  br label %438

383:                                              ; preds = %375, %367
  %384 = landingpad { ptr, i32 }
          cleanup
  %385 = extractvalue { ptr, i32 } %384, 0
  store ptr %385, ptr %15, align 8
  %386 = extractvalue { ptr, i32 } %384, 1
  store i32 %386, ptr %16, align 4
  br label %437

387:                                              ; preds = %378, %374
  call void @llvm.lifetime.start.p0(i64 56, ptr %46) #11
  invoke void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46)
          to label %388 unwind label %397

388:                                              ; preds = %387
  %389 = load ptr, ptr %9, align 8, !tbaa !5
  %390 = invoke noundef zeroext i1 @_ZN3vot9VocabTree8ReadTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef %389)
          to label %391 unwind label %401

391:                                              ; preds = %388
  %392 = invoke noundef zeroext i1 @_ZNK3vot9VocabTree7CompareERS0_(ptr noundef nonnull align 8 dereferenceable(56) %46, ptr noundef nonnull align 8 dereferenceable(56) %45)
          to label %393 unwind label %401

393:                                              ; preds = %391
  br i1 %392, label %394, label %405

394:                                              ; preds = %393
  %395 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.12)
          to label %396 unwind label %401

396:                                              ; preds = %394
  br label %408

397:                                              ; preds = %387
  %398 = landingpad { ptr, i32 }
          cleanup
  %399 = extractvalue { ptr, i32 } %398, 0
  store ptr %399, ptr %15, align 8
  %400 = extractvalue { ptr, i32 } %398, 1
  store i32 %400, ptr %16, align 4
  br label %436

401:                                              ; preds = %408, %405, %394, %391, %388
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %15, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %16, align 4
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46) #11
  br label %436

405:                                              ; preds = %393
  %406 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %407 unwind label %401

407:                                              ; preds = %405
  br label %408

408:                                              ; preds = %407, %396
  %409 = invoke noundef zeroext i1 @_ZN3vot9VocabTree9ClearTreeEv(ptr noundef nonnull align 8 dereferenceable(56) %45)
          to label %410 unwind label %401

410:                                              ; preds = %408
  %411 = load ptr, ptr %36, align 8, !tbaa !5
  %412 = icmp eq ptr %411, null
  br i1 %412, label %414, label %413

413:                                              ; preds = %410
  call void @_ZdaPv(ptr noundef %411) #14
  br label %414

414:                                              ; preds = %413, %410
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  store i64 0, ptr %47, align 8, !tbaa !13
  br label %415

415:                                              ; preds = %428, %414
  %416 = load i64, ptr %47, align 8, !tbaa !13
  %417 = load i64, ptr %31, align 8, !tbaa !13
  %418 = icmp ult i64 %416, %417
  br i1 %418, label %420, label %419

419:                                              ; preds = %415
  store i32 18, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  br label %431

420:                                              ; preds = %415
  %421 = load ptr, ptr %32, align 8, !tbaa !5
  %422 = load i64, ptr %47, align 8, !tbaa !13
  %423 = getelementptr inbounds ptr, ptr %421, i64 %422
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = icmp eq ptr %424, null
  br i1 %425, label %427, label %426

426:                                              ; preds = %420
  call void @_ZdaPv(ptr noundef %424) #14
  br label %427

427:                                              ; preds = %426, %420
  br label %428

428:                                              ; preds = %427
  %429 = load i64, ptr %47, align 8, !tbaa !13
  %430 = add i64 %429, 1
  store i64 %430, ptr %47, align 8, !tbaa !13
  br label %415, !llvm.loop !22

431:                                              ; preds = %419
  %432 = load ptr, ptr %32, align 8, !tbaa !5
  %433 = icmp eq ptr %432, null
  br i1 %433, label %435, label %434

434:                                              ; preds = %431
  call void @_ZdaPv(ptr noundef %432) #14
  br label %435

435:                                              ; preds = %434, %431
  store i1 true, ptr %7, align 1
  store i32 1, ptr %26, align 4
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %46) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #11
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %444

436:                                              ; preds = %401, %397
  call void @llvm.lifetime.end.p0(i64 56, ptr %46) #11
  br label %437

437:                                              ; preds = %436, %383
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %45) #11
  br label %438

438:                                              ; preds = %437, %379
  call void @llvm.lifetime.end.p0(i64 56, ptr %45) #11
  br label %439

439:                                              ; preds = %438, %365
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  br label %440

440:                                              ; preds = %439, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  br label %441

441:                                              ; preds = %440, %256
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #11
  br label %442

442:                                              ; preds = %441, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #11
  br label %443

443:                                              ; preds = %442, %228
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  br label %446

444:                                              ; preds = %435, %190, %175
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #11
  %445 = load i1, ptr %7, align 1
  ret i1 %445

446:                                              ; preds = %443, %177, %106
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #11
  br label %447

447:                                              ; preds = %446, %102
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  br label %448

448:                                              ; preds = %447, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %449

449:                                              ; preds = %448, %94
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #11
  br label %450

450:                                              ; preds = %449
  %451 = load ptr, ptr %15, align 8
  %452 = load i32, ptr %16, align 4
  %453 = insertvalue { ptr, i32 } poison, ptr %451, 0
  %454 = insertvalue { ptr, i32 } %453, i32 %452, 1
  resume { ptr, i32 } %454
}

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

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

declare noundef i32 @_ZN2tw2IO12ExtractLinesEPKcRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #3

declare i32 @__gxx_personality_v0(...)

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

declare noundef i64 @_ZN2tw2IO11GetAvailMemEv() #3

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112RandomSampleEmm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, i64 noundef, i64 noundef) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

declare void @_ZN2tw2IO12SplitPathExtENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot8SiftData12ReadSiftFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot8SiftData15ReadOpenmvgDescIhLm128EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #7

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #8

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

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

declare void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

declare noundef zeroext i1 @_ZN3vot9VocabTree9BuildTreeEmiiiPPhi(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #3

declare noundef zeroext i1 @_ZNK3vot9VocabTree9WriteTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #3

declare noundef zeroext i1 @_ZN3vot9VocabTree8ReadTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #3

declare noundef zeroext i1 @_ZNK3vot9VocabTree7CompareERS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #3

declare noundef zeroext i1 @_ZN3vot9VocabTree9ClearTreeEv(ptr noundef nonnull align 8 dereferenceable(56)) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #10

; Function Attrs: nounwind
declare void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nobuiltin allocsize(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 #9 = { 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 #10 = { nobuiltin 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 #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { noreturn nounwind }
attributes #14 = { builtin 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN3vot8SiftTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl" }
%"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl" = type { %"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl_data" }
%"struct.std::_Vector_base<vot::SiftData, std::allocator<vot::SiftData>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.std::pair" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.vot::VocabTree" = type { i32, i32, i32, i64, i64, i64, i32, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [33 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [77 x i8], align 1
@__PRETTY_FUNCTION__._ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi = external hidden unnamed_addr constant [78 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca %"class.std::vector.5", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.vot::VocabTree", align 8
  %14 = alloca %"class.vot::VocabTree", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #12
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #12
  %15 = invoke noundef i32 @_ZN2tw2IO12ExtractLinesEPKcRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EE(ptr noundef %0, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %16 unwind label %59

16:                                               ; preds = %6
  %17 = call noundef i64 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #12
  %18 = invoke noundef i64 @_ZN2tw2IO11GetAvailMemEv()
          to label %19 unwind label %61

19:                                               ; preds = %16
  %20 = lshr i64 %18, 20
  %21 = sitofp i32 %3 to double
  %22 = add nsw i32 %2, 1
  %23 = sitofp i32 %22 to double
  %24 = call double @pow(double noundef %21, double noundef %23) #12
  %25 = fptoui double %24 to i64
  %26 = lshr i64 %25, 13
  %27 = and i64 %26, 17592186044415
  %28 = sub nsw i64 %20, %27
  %29 = lshr i64 %28, 1
  %30 = call i64 @llvm.umin.i64(i64 %17, i64 %29)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #12
  invoke void @_ZN12_GLOBAL__N_112RandomSampleEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.0") align 8 %8, i64 noundef %17, i64 noundef %30)
          to label %31 unwind label %63

31:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #12
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #12
  invoke void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %30)
          to label %32 unwind label %65

32:                                               ; preds = %31
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %34 unwind label %65

34:                                               ; preds = %32
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %33, i32 noundef %4)
          to label %36 unwind label %65

36:                                               ; preds = %34
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.1)
          to label %.preheader159 unwind label %65

.preheader159:                                    ; preds = %36
  %.not175.not = icmp eq i64 %30, 0
  br i1 %.not175.not, label %.critedge155, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader159
  %38 = getelementptr inbounds i8, ptr %11, i64 32
  %switch = icmp ult i32 %4, 2
  br i1 %switch, label %.lr.ph.split, label %74

.lr.ph.split:                                     ; preds = %.lr.ph
  %cond = icmp eq i32 %4, 0
  br i1 %cond, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %51
  %.0125177.us = phi i64 [ %55, %51 ], [ 0, %.lr.ph.split ]
  %.0128176.us = phi i64 [ %56, %51 ], [ 0, %.lr.ph.split ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #12
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #12
  %39 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0128176.us) #12
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %39)
          to label %40 unwind label %.split.us

40:                                               ; preds = %.lr.ph.split.split.us
  invoke void @_ZN2tw2IO12SplitPathExtENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull %12)
          to label %41 unwind label %.split179.us

41:                                               ; preds = %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %38) #12
  call void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #12
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #12
  %42 = invoke noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.2)
          to label %43 unwind label %.loopexit161.split.us

43:                                               ; preds = %41
  br i1 %42, label %.split183.us, label %44

44:                                               ; preds = %43
  %45 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0128176.us) #12
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorImSaImEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %.0128176.us) #12
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %47) #12
  %49 = invoke noundef zeroext i1 @_ZN3vot8SiftData12ReadSiftFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %45, ptr noundef nonnull align 8 dereferenceable(32) %48)
          to label %50 unwind label %.loopexit161.split.us

50:                                               ; preds = %44
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br i1 %49, label %51, label %.loopexit166

51:                                               ; preds = %50
  %52 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0128176.us) #12
  %53 = call noundef i32 @_ZNK3vot8SiftData13getFeatureNumEv(ptr noundef nonnull align 8 dereferenceable(40) %52)
  %54 = sext i32 %53 to i64
  %55 = add i64 %.0125177.us, %54
  %56 = add nuw nsw i64 %.0128176.us, 1
  %exitcond211.not = icmp eq i64 %56, %30
  br i1 %exitcond211.not, label %.critedge155, label %.lr.ph.split.split.us, !llvm.loop !9

.split.us:                                        ; preds = %.lr.ph.split.split.us
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %71

.split179.us:                                     ; preds = %40
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #12
  br label %71

.loopexit161.split.us:                            ; preds = %44, %41
  %lpad.loopexit163.us = landingpad { ptr, i32 }
          cleanup
  br label %72

59:                                               ; preds = %6
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %209

61:                                               ; preds = %16
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %209

63:                                               ; preds = %19
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %208

65:                                               ; preds = %89, %85, %83, %.critedge155, %36, %34, %32, %31
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %207

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %76
  %.0125177 = phi i64 [ %80, %76 ], [ 0, %.lr.ph.split ]
  %.0128176 = phi i64 [ %81, %76 ], [ 0, %.lr.ph.split ]
  %67 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0128176) #12
  %68 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %.0128176) #12
  %69 = invoke noundef zeroext i1 @_ZN3vot8SiftData15ReadOpenmvgDescIhLm128EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40) %67, ptr noundef nonnull align 8 dereferenceable(32) %68)
          to label %76 unwind label %.loopexit160

.split183.us:                                     ; preds = %43
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %.critedge unwind label %.loopexit.split-lp162

71:                                               ; preds = %.split179.us, %.split.us
  %.pn = phi { ptr, i32 } [ %58, %.split179.us ], [ %57, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #12
  br label %73

.loopexit.split-lp162:                            ; preds = %.split183.us
  %lpad.loopexit.split-lp164 = landingpad { ptr, i32 }
          cleanup
  br label %72

72:                                               ; preds = %.loopexit.split-lp162, %.loopexit161.split.us
  %lpad.phi165 = phi { ptr, i32 } [ %lpad.loopexit163.us, %.loopexit161.split.us ], [ %lpad.loopexit.split-lp164, %.loopexit.split-lp162 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  br label %73

73:                                               ; preds = %72, %71
  %.pn136 = phi { ptr, i32 } [ %lpad.phi165, %72 ], [ %.pn, %71 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br label %207

.loopexit160:                                     ; preds = %.lr.ph.split.split
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %207

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

74:                                               ; preds = %.lr.ph
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %.loopexit166 unwind label %.loopexit.split-lp

76:                                               ; preds = %.lr.ph.split.split
  %77 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.0128176) #12
  %78 = call noundef i32 @_ZNK3vot8SiftData13getFeatureNumEv(ptr noundef nonnull align 8 dereferenceable(40) %77)
  %79 = sext i32 %78 to i64
  %80 = add i64 %.0125177, %79
  %81 = add nuw nsw i64 %.0128176, 1
  %exitcond.not = icmp eq i64 %81, %30
  br i1 %exitcond.not, label %.critedge155, label %.lr.ph.split.split, !llvm.loop !9

.critedge:                                        ; preds = %.split183.us
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #12
  br label %.loopexit166

.critedge155:                                     ; preds = %76, %51, %.preheader159
  %.0125.lcssa = phi i64 [ 0, %.preheader159 ], [ %55, %51 ], [ %80, %76 ]
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %83 unwind label %65

83:                                               ; preds = %.critedge155
  %84 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %82, i64 noundef %.0125.lcssa)
          to label %85 unwind label %65

85:                                               ; preds = %83
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %84, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %87 unwind label %65

87:                                               ; preds = %85
  %88 = icmp eq i64 %.0125.lcssa, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %87
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.6)
          to label %.loopexit166 unwind label %65

91:                                               ; preds = %87
  %92 = shl i64 %.0125.lcssa, 7
  %93 = lshr i64 %92, 23
  %94 = and i64 %.0125.lcssa, 65535
  %95 = icmp ne i64 %94, 0
  %96 = zext i1 %95 to i64
  %97 = add nuw nsw i64 %93, %96
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %99 unwind label %111

99:                                               ; preds = %91
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %98, i64 noundef %92)
          to label %101 unwind label %111

101:                                              ; preds = %99
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.8)
          to label %103 unwind label %111

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %102, i64 noundef %97)
          to label %105 unwind label %111

105:                                              ; preds = %103
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.9)
          to label %107 unwind label %111

107:                                              ; preds = %105
  %108 = shl nuw nsw i64 %97, 3
  %109 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %108) #13
          to label %.preheader158 unwind label %113

.preheader158:                                    ; preds = %107
  %.not204 = icmp eq i64 %97, 0
  br i1 %.not204, label %._crit_edge, label %.lr.ph187

._crit_edge:                                      ; preds = %117, %.preheader158
  %.0127.lcssa = phi i64 [ %92, %.preheader158 ], [ %119, %117 ]
  %110 = icmp eq i64 %.0127.lcssa, 0
  br i1 %110, label %124, label %123

111:                                              ; preds = %105, %103, %101, %99, %91
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %207

113:                                              ; preds = %107
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %207

.lr.ph187:                                        ; preds = %.preheader158, %117
  %.0126186 = phi i64 [ %120, %117 ], [ 0, %.preheader158 ]
  %.0127185 = phi i64 [ %119, %117 ], [ %92, %.preheader158 ]
  %115 = call i64 @llvm.umin.i64(i64 %.0127185, i64 8388608)
  %116 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %115) #13
          to label %117 unwind label %121

117:                                              ; preds = %.lr.ph187
  %118 = getelementptr inbounds ptr, ptr %109, i64 %.0126186
  store ptr %116, ptr %118, align 8, !tbaa !11
  %119 = sub i64 %.0127185, %115
  %120 = add nuw nsw i64 %.0126186, 1
  %exitcond212.not = icmp eq i64 %120, %97
  br i1 %exitcond212.not, label %._crit_edge, label %.lr.ph187, !llvm.loop !13

121:                                              ; preds = %.lr.ph187
  %122 = landingpad { ptr, i32 }
          cleanup
  br label %207

123:                                              ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, i32 noundef 192, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3vot14BuildVocabTreeEPKcS1_iiNS_8SiftTypeEi) #14
  unreachable

124:                                              ; preds = %._crit_edge
  %125 = icmp ugt i64 %.0125.lcssa, 2305843009213693951
  %126 = shl i64 %.0125.lcssa, 3
  %127 = select i1 %125, i64 -1, i64 %126
  %128 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %127) #13
          to label %.preheader157 unwind label %129

.preheader157:                                    ; preds = %124
  br i1 %.not175.not, label %._crit_edge199, label %.lr.ph198

._crit_edge199:                                   ; preds = %.loopexit, %.preheader157
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %13) #12
  invoke void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %175 unwind label %180

129:                                              ; preds = %124
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %207

.lr.ph198:                                        ; preds = %.preheader157, %.loopexit
  %.099197 = phi i64 [ %174, %.loopexit ], [ 0, %.preheader157 ]
  %.0100196 = phi i32 [ %.3103, %.loopexit ], [ 0, %.preheader157 ]
  %.0104195 = phi i64 [ %.2106, %.loopexit ], [ 0, %.preheader157 ]
  %.0107194 = phi i64 [ %.3110, %.loopexit ], [ 0, %.preheader157 ]
  %131 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.099197) #12
  %132 = call noundef i32 @_ZNK3vot8SiftData13getFeatureNumEv(ptr noundef nonnull align 8 dereferenceable(40) %131)
  %133 = icmp sgt i32 %132, 0
  br i1 %133, label %134, label %.loopexit

134:                                              ; preds = %.lr.ph198
  %135 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN3vot8SiftDataESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.099197) #12
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3vot8SiftData13getDesPointerEv(ptr noundef nonnull align 8 dereferenceable(40) %135)
  %137 = load ptr, ptr %136, align 8, !tbaa !11
  %138 = ptrtoint ptr %137 to i64
  %wide.trip.count = zext nneg i32 %132 to i64
  br label %.preheader

.preheader:                                       ; preds = %134, %middle.block
  %indvars.iv215 = phi i64 [ 0, %134 ], [ %indvars.iv.next216, %middle.block ]
  %.1101192 = phi i32 [ %.0100196, %134 ], [ %spec.select156, %middle.block ]
  %.1105191 = phi i64 [ %.0104195, %134 ], [ %162, %middle.block ]
  %.1108190 = phi i64 [ %.0107194, %134 ], [ %spec.select, %middle.block ]
  %139 = shl nsw i64 %indvars.iv215, 7
  %140 = sext i32 %.1101192 to i64
  %141 = getelementptr inbounds ptr, ptr %109, i64 %140
  %.pre = load ptr, ptr %141, align 8, !tbaa !11
  %invariant.gep = getelementptr inbounds i8, ptr %137, i64 %139
  %142 = getelementptr i8, ptr %.pre, i64 %.1108190
  %.pre230 = ptrtoint ptr %.pre to i64
  %143 = mul nsw i64 %indvars.iv215, -128
  %144 = sub i64 %143, %138
  %145 = add i64 %.1108190, %.pre230
  %146 = add i64 %145, %144
  %diff.check = icmp ult i64 %146, 32
  br i1 %diff.check, label %scalar.ph, label %vector.body

vector.body:                                      ; preds = %.preheader
  %147 = getelementptr inbounds i8, ptr %invariant.gep, i64 16
  %wide.load = load <16 x i8>, ptr %invariant.gep, align 1, !tbaa !14
  %wide.load231 = load <16 x i8>, ptr %147, align 1, !tbaa !14
  %148 = getelementptr i8, ptr %142, i64 16
  store <16 x i8> %wide.load, ptr %142, align 1, !tbaa !14
  store <16 x i8> %wide.load231, ptr %148, align 1, !tbaa !14
  %149 = getelementptr inbounds i8, ptr %invariant.gep, i64 32
  %150 = getelementptr inbounds i8, ptr %invariant.gep, i64 48
  %wide.load.1 = load <16 x i8>, ptr %149, align 1, !tbaa !14
  %wide.load231.1 = load <16 x i8>, ptr %150, align 1, !tbaa !14
  %151 = getelementptr i8, ptr %142, i64 32
  %152 = getelementptr i8, ptr %142, i64 48
  store <16 x i8> %wide.load.1, ptr %151, align 1, !tbaa !14
  store <16 x i8> %wide.load231.1, ptr %152, align 1, !tbaa !14
  %153 = getelementptr inbounds i8, ptr %invariant.gep, i64 64
  %154 = getelementptr inbounds i8, ptr %invariant.gep, i64 80
  %wide.load.2 = load <16 x i8>, ptr %153, align 1, !tbaa !14
  %wide.load231.2 = load <16 x i8>, ptr %154, align 1, !tbaa !14
  %155 = getelementptr i8, ptr %142, i64 64
  %156 = getelementptr i8, ptr %142, i64 80
  store <16 x i8> %wide.load.2, ptr %155, align 1, !tbaa !14
  store <16 x i8> %wide.load231.2, ptr %156, align 1, !tbaa !14
  %157 = getelementptr inbounds i8, ptr %invariant.gep, i64 96
  %158 = getelementptr inbounds i8, ptr %invariant.gep, i64 112
  %wide.load.3 = load <16 x i8>, ptr %157, align 1, !tbaa !14
  %wide.load231.3 = load <16 x i8>, ptr %158, align 1, !tbaa !14
  %159 = getelementptr i8, ptr %142, i64 96
  %160 = getelementptr i8, ptr %142, i64 112
  store <16 x i8> %wide.load.3, ptr %159, align 1, !tbaa !14
  store <16 x i8> %wide.load231.3, ptr %160, align 1, !tbaa !14
  br label %middle.block

middle.block:                                     ; preds = %scalar.ph, %vector.body
  %161 = getelementptr inbounds ptr, ptr %128, i64 %.1105191
  store ptr %142, ptr %161, align 8, !tbaa !11
  %162 = add i64 %.1105191, 1
  %163 = add i64 %.1108190, 128
  %164 = icmp eq i64 %163, 8388608
  %spec.select = select i1 %164, i64 0, i64 %163
  %165 = zext i1 %164 to i32
  %spec.select156 = add nsw i32 %.1101192, %165
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215, 1
  %exitcond218.not = icmp eq i64 %indvars.iv.next216, %wide.trip.count
  br i1 %exitcond218.not, label %.loopexit, label %.preheader, !llvm.loop !15

scalar.ph:                                        ; preds = %.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ 0, %.preheader ]
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
  %166 = load i8, ptr %gep, align 1, !tbaa !14
  %167 = getelementptr i8, ptr %142, i64 %indvars.iv
  store i8 %166, ptr %167, align 1, !tbaa !14
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next
  %168 = load i8, ptr %gep.1, align 1, !tbaa !14
  %169 = getelementptr i8, ptr %142, i64 %indvars.iv.next
  store i8 %168, ptr %169, align 1, !tbaa !14
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %gep.2 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next.1
  %170 = load i8, ptr %gep.2, align 1, !tbaa !14
  %171 = getelementptr i8, ptr %142, i64 %indvars.iv.next.1
  store i8 %170, ptr %171, align 1, !tbaa !14
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %gep.3 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next.2
  %172 = load i8, ptr %gep.3, align 1, !tbaa !14
  %173 = getelementptr i8, ptr %142, i64 %indvars.iv.next.2
  store i8 %172, ptr %173, align 1, !tbaa !14
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond214.not.3 = icmp eq i64 %indvars.iv.next.3, 128
  br i1 %exitcond214.not.3, label %middle.block, label %scalar.ph, !llvm.loop !16

.loopexit:                                        ; preds = %middle.block, %.lr.ph198
  %.3110 = phi i64 [ %.0107194, %.lr.ph198 ], [ %spec.select, %middle.block ]
  %.2106 = phi i64 [ %.0104195, %.lr.ph198 ], [ %162, %middle.block ]
  %.3103 = phi i32 [ %.0100196, %.lr.ph198 ], [ %spec.select156, %middle.block ]
  %174 = add nuw nsw i64 %.099197, 1
  %exitcond219.not = icmp eq i64 %174, %30
  br i1 %exitcond219.not, label %._crit_edge199, label %.lr.ph198, !llvm.loop !18

175:                                              ; preds = %._crit_edge199
  %176 = invoke noundef zeroext i1 @_ZN3vot9VocabTree9BuildTreeEmiiiPPhi(ptr noundef nonnull align 8 dereferenceable(56) %13, i64 noundef %.0125.lcssa, i32 noundef 128, i32 noundef %2, i32 noundef %3, ptr noundef nonnull %128, i32 noundef %5)
          to label %177 unwind label %182

177:                                              ; preds = %175
  br i1 %176, label %178, label %184

178:                                              ; preds = %177
  %179 = invoke noundef zeroext i1 @_ZNK3vot9VocabTree9WriteTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef %1)
          to label %184 unwind label %182

180:                                              ; preds = %._crit_edge199
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %206

182:                                              ; preds = %178, %175
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %205

184:                                              ; preds = %178, %177
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %14) #12
  invoke void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %185 unwind label %191

185:                                              ; preds = %184
  %186 = invoke noundef zeroext i1 @_ZN3vot9VocabTree8ReadTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef %1)
          to label %187 unwind label %193

187:                                              ; preds = %185
  %188 = invoke noundef zeroext i1 @_ZNK3vot9VocabTree7CompareERS0_(ptr noundef nonnull align 8 dereferenceable(56) %14, ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %.invoke unwind label %193

.invoke:                                          ; preds = %187
  %189 = select i1 %188, ptr @.str.12, ptr @.str.13
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %189)
          to label %195 unwind label %193

191:                                              ; preds = %184
  %192 = landingpad { ptr, i32 }
          cleanup
  br label %204

193:                                              ; preds = %.invoke, %195, %187, %185
  %194 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #12
  br label %204

195:                                              ; preds = %.invoke
  %196 = invoke noundef zeroext i1 @_ZN3vot9VocabTree9ClearTreeEv(ptr noundef nonnull align 8 dereferenceable(56) %13)
          to label %197 unwind label %193

197:                                              ; preds = %195
  call void @_ZdaPv(ptr noundef nonnull %128) #15
  br i1 %.not204, label %._crit_edge203, label %.lr.ph202

.lr.ph202:                                        ; preds = %197, %202
  %.0200 = phi i64 [ %203, %202 ], [ 0, %197 ]
  %198 = getelementptr inbounds ptr, ptr %109, i64 %.0200
  %199 = load ptr, ptr %198, align 8, !tbaa !11
  %200 = icmp eq ptr %199, null
  br i1 %200, label %202, label %201

201:                                              ; preds = %.lr.ph202
  call void @_ZdaPv(ptr noundef nonnull %199) #15
  br label %202

202:                                              ; preds = %.lr.ph202, %201
  %203 = add nuw nsw i64 %.0200, 1
  %exitcond220.not = icmp eq i64 %203, %97
  br i1 %exitcond220.not, label %._crit_edge203, label %.lr.ph202, !llvm.loop !19

._crit_edge203:                                   ; preds = %202, %197
  call void @_ZdaPv(ptr noundef nonnull %109) #15
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #12
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #12
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #12
  br label %.loopexit166

204:                                              ; preds = %193, %191
  %.pn140 = phi { ptr, i32 } [ %194, %193 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %14) #12
  br label %205

205:                                              ; preds = %204, %182
  %.pn140.pn = phi { ptr, i32 } [ %.pn140, %204 ], [ %183, %182 ]
  call void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56) %13) #12
  br label %206

206:                                              ; preds = %205, %180
  %.pn140.pn.pn = phi { ptr, i32 } [ %.pn140.pn, %205 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %13) #12
  br label %207

.loopexit166:                                     ; preds = %50, %.critedge, %74, %89, %._crit_edge203
  %.4 = phi i1 [ true, %._crit_edge203 ], [ false, %89 ], [ false, %74 ], [ false, %.critedge ], [ false, %50 ]
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #12
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #12
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #12
  ret i1 %.4

207:                                              ; preds = %.loopexit160, %.loopexit.split-lp, %111, %121, %206, %129, %113, %73, %65
  %.pn149 = phi { ptr, i32 } [ %66, %65 ], [ %.pn136, %73 ], [ %112, %111 ], [ %114, %113 ], [ %122, %121 ], [ %.pn140.pn.pn, %206 ], [ %130, %129 ], [ %lpad.loopexit, %.loopexit160 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #12
  call void @_ZNSt6vectorImSaImEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #12
  br label %208

208:                                              ; preds = %207, %63
  %.pn149.pn = phi { ptr, i32 } [ %.pn149, %207 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #12
  br label %209

209:                                              ; preds = %61, %208, %59
  %.pn149.pn.pn.pn = phi { ptr, i32 } [ %60, %59 ], [ %.pn149.pn, %208 ], [ %62, %61 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #12
  resume { ptr, i32 } %.pn149.pn.pn.pn
}

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

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

declare noundef i32 @_ZN2tw2IO12ExtractLinesEPKcRSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

declare noundef i64 @_ZN2tw2IO11GetAvailMemEv() local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_112RandomSampleEmm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.0") align 8, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN3vot8SiftDataESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

declare void @_ZN2tw2IO12SplitPathExtENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ED2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot8SiftData12ReadSiftFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3vot8SiftData15ReadOpenmvgDescIhLm128EEEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #7

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

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

declare void @_ZN3vot9VocabTreeC1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3

declare noundef zeroext i1 @_ZN3vot9VocabTree9BuildTreeEmiiiPPhi(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK3vot9VocabTree9WriteTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3vot9VocabTree8ReadTreeEPKc(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZNK3vot9VocabTree7CompareERS0_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN3vot9VocabTree9ClearTreeEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #9

; Function Attrs: nounwind
declare void @_ZN3vot9VocabTreeD1Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #10

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { nobuiltin allocsize(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 = { 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 #9 = { nobuiltin 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 #10 = { 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 #11 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #12 = { nounwind }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { noreturn nounwind }
attributes #15 = { builtin nounwind }

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

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


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