; LLVM IR from microsoft/Multiverso :: Applications/WordEmbedding/src (wordembedding)

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

%"struct.std::pair.15" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"class.wordembedding::WordEmbedding" = type { float, i64, ptr, ptr, ptr, ptr, %"class.std::unordered_set", %"class.std::unordered_set", i32, ptr }
%"class.std::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.wordembedding::Option" = type <{ ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, [2 x i8], float, [4 x i8], i64, i32, i32, i32, i32, i32, i32, i64, i64, float, [4 x i8] }>
%"class.wordembedding::DataBlock" = type <{ %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::unordered_set", %"class.std::vector.5", ptr, ptr, ptr, ptr, i8, i8, [6 x i8] }>
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<wordembedding::DataBlock::Sentence, std::allocator<wordembedding::DataBlock::Sentence>>::_Vector_impl" }
%"struct.std::_Vector_base<wordembedding::DataBlock::Sentence, std::allocator<wordembedding::DataBlock::Sentence>>::_Vector_impl" = type { %"struct.std::_Vector_base<wordembedding::DataBlock::Sentence, std::allocator<wordembedding::DataBlock::Sentence>>::_Vector_impl_data" }
%"struct.std::_Vector_base<wordembedding::DataBlock::Sentence, std::allocator<wordembedding::DataBlock::Sentence>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.wordembedding::HuffLabelInfo" = type <{ %"class.std::vector", %"class.std::vector.22", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.22" = type { %"struct.std::_Vector_base.23" }
%"struct.std::_Vector_base.23" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

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

declare noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226)) #2

declare void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding13WordEmbedding11PrepareDataEPNS_9DataBlockE(ptr noundef nonnull align 8 dereferenceable(176) %0, ptr noundef %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.15", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %"struct.std::pair.15", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %"struct.std::pair.15", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %25 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"struct.std::pair.15", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %"struct.std::pair.15", align 8
  %31 = alloca %"struct.std::pair.15", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %33 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %32, i32 0, i32 2
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds %"struct.wordembedding::Option", ptr %34, i32 0, i32 5
  %36 = load i8, ptr %35, align 8, !tbaa !18, !range !21, !noundef !22
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %121

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !23
  br label %39

39:                                               ; preds = %70, %38
  %40 = load i32, ptr %9, align 4, !tbaa !23
  %41 = sext i32 %40 to i64
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = call noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226) %42)
  %44 = icmp ult i64 %41, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %73

46:                                               ; preds = %39
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load i32, ptr %9, align 4, !tbaa !23
  call void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226) %47, i32 noundef %48, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !23
  br label %49

49:                                               ; preds = %66, %46
  %50 = load i32, ptr %11, align 4, !tbaa !23
  %51 = load i32, ptr %5, align 4, !tbaa !23
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %69

54:                                               ; preds = %49
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %11, align 4, !tbaa !23
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %56, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %62 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 0
  %63 = extractvalue { ptr, i8 } %61, 0
  store ptr %63, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i8 }, ptr %12, i32 0, i32 1
  %65 = extractvalue { ptr, i8 } %61, 1
  store i8 %65, ptr %64, align 8
  br label %66

66:                                               ; preds = %54
  %67 = load i32, ptr %11, align 4, !tbaa !23
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %11, align 4, !tbaa !23
  br label %49, !llvm.loop !24

69:                                               ; preds = %53
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %9, align 4, !tbaa !23
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %9, align 4, !tbaa !23
  br label %39, !llvm.loop !26

73:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %74, i32 0, i32 0
  store ptr %75, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %76) #4
  %78 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %14, i32 0, i32 0
  %79 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %78, i32 0, i32 0
  store ptr %77, ptr %79, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %80) #4
  %82 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %15, i32 0, i32 0
  %83 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %82, i32 0, i32 0
  store ptr %81, ptr %83, align 8
  br label %84

84:                                               ; preds = %118, %73
  %85 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #4
  br i1 %85, label %87, label %86

86:                                               ; preds = %84
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %120

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %88 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail14_Node_iteratorIiLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %89 = load i32, ptr %88, align 4, !tbaa !23
  store i32 %89, ptr %16, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %90 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %32, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !27
  %92 = load i32, ptr %16, align 4, !tbaa !23
  %93 = call noundef ptr @_ZN13wordembedding14HuffmanEncoder12GetLabelInfoEi(ptr noundef nonnull align 8 dereferenceable(32) %91, i32 noundef %92)
  store ptr %93, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !23
  br label %94

94:                                               ; preds = %114, %87
  %95 = load i32, ptr %18, align 4, !tbaa !23
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 8, !tbaa !28
  %99 = icmp slt i32 %95, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %94
  store i32 10, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %117

101:                                              ; preds = %94
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %104, i32 0, i32 0
  %106 = load i32, ptr %18, align 4, !tbaa !23
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #4
  %109 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %103, ptr noundef nonnull align 4 dereferenceable(4) %108)
  %110 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 0
  %111 = extractvalue { ptr, i8 } %109, 0
  store ptr %111, ptr %110, align 8
  %112 = getelementptr inbounds { ptr, i8 }, ptr %19, i32 0, i32 1
  %113 = extractvalue { ptr, i8 } %109, 1
  store i8 %113, ptr %112, align 8
  br label %114

114:                                              ; preds = %101
  %115 = load i32, ptr %18, align 4, !tbaa !23
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %18, align 4, !tbaa !23
  br label %94, !llvm.loop !38

117:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %118

118:                                              ; preds = %117
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIiLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  br label %84

120:                                              ; preds = %86
  br label %224

121:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !23
  br label %122

122:                                              ; preds = %153, %121
  %123 = load i32, ptr %20, align 4, !tbaa !23
  %124 = sext i32 %123 to i64
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = call noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226) %125)
  %127 = icmp ult i64 %124, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %122
  store i32 13, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %156

129:                                              ; preds = %122
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = load i32, ptr %20, align 4, !tbaa !23
  call void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226) %130, i32 noundef %131, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !23
  br label %132

132:                                              ; preds = %149, %129
  %133 = load i32, ptr %21, align 4, !tbaa !23
  %134 = load i32, ptr %5, align 4, !tbaa !23
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %132
  store i32 16, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %152

137:                                              ; preds = %132
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %21, align 4, !tbaa !23
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %140, i64 %142
  %144 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %139, ptr noundef nonnull align 4 dereferenceable(4) %143)
  %145 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 0
  %146 = extractvalue { ptr, i8 } %144, 0
  store ptr %146, ptr %145, align 8
  %147 = getelementptr inbounds { ptr, i8 }, ptr %22, i32 0, i32 1
  %148 = extractvalue { ptr, i8 } %144, 1
  store i8 %148, ptr %147, align 8
  br label %149

149:                                              ; preds = %137
  %150 = load i32, ptr %21, align 4, !tbaa !23
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %21, align 4, !tbaa !23
  br label %132, !llvm.loop !39

152:                                              ; preds = %136
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %20, align 4, !tbaa !23
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %20, align 4, !tbaa !23
  br label %122, !llvm.loop !40

156:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %157, i32 0, i32 0
  store ptr %158, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %159 = load ptr, ptr %23, align 8, !tbaa !5
  %160 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %159) #4
  %161 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %24, i32 0, i32 0
  %162 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %161, i32 0, i32 0
  store ptr %160, ptr %162, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %163 = load ptr, ptr %23, align 8, !tbaa !5
  %164 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %163) #4
  %165 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %25, i32 0, i32 0
  %166 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %165, i32 0, i32 0
  store ptr %164, ptr %166, align 8
  br label %167

167:                                              ; preds = %180, %156
  %168 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #4
  br i1 %168, label %170, label %169

169:                                              ; preds = %167
  store i32 19, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %182

170:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %171 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail14_Node_iteratorIiLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  %172 = load i32, ptr %171, align 4, !tbaa !23
  store i32 %172, ptr %26, align 4, !tbaa !23
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %173, i32 0, i32 1
  %175 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %174, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %176 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 0
  %177 = extractvalue { ptr, i8 } %175, 0
  store ptr %177, ptr %176, align 8
  %178 = getelementptr inbounds { ptr, i8 }, ptr %27, i32 0, i32 1
  %179 = extractvalue { ptr, i8 } %175, 1
  store i8 %179, ptr %178, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %180

180:                                              ; preds = %170
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIiLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  br label %167

182:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !23
  br label %183

183:                                              ; preds = %220, %182
  %184 = load i32, ptr %28, align 4, !tbaa !23
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %32, i32 0, i32 2
  %187 = load ptr, ptr %186, align 8, !tbaa !9
  %188 = getelementptr inbounds %"struct.wordembedding::Option", ptr %187, i32 0, i32 18
  %189 = load i32, ptr %188, align 4, !tbaa !41
  %190 = sext i32 %189 to i64
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %191, i32 0, i32 0
  %193 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %192) #4
  %194 = mul i64 %190, %193
  %195 = icmp ult i64 %185, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %183
  store i32 21, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %223

197:                                              ; preds = %183
  %198 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %32, i32 0, i32 5
  %199 = load ptr, ptr %198, align 8, !tbaa !42
  %200 = load i64, ptr %8, align 8, !tbaa !43
  %201 = call noundef i64 @_ZN13wordembedding7Sampler13GetNextRandomEm(ptr noundef nonnull align 8 dereferenceable(8) %199, i64 noundef %200)
  store i64 %201, ptr %8, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %202 = getelementptr inbounds %"class.wordembedding::WordEmbedding", ptr %32, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !42
  %204 = load i64, ptr %8, align 8, !tbaa !43
  %205 = call noundef i32 @_ZN13wordembedding7Sampler16NegativeSamplingEm(ptr noundef nonnull align 8 dereferenceable(8) %203, i64 noundef %204)
  store i32 %205, ptr %29, align 4, !tbaa !23
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %206, i32 0, i32 1
  %208 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %207, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %209 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 0
  %210 = extractvalue { ptr, i8 } %208, 0
  store ptr %210, ptr %209, align 8
  %211 = getelementptr inbounds { ptr, i8 }, ptr %30, i32 0, i32 1
  %212 = extractvalue { ptr, i8 } %208, 1
  store i8 %212, ptr %211, align 8
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %213, i32 0, i32 2
  %215 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %214, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %216 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %217 = extractvalue { ptr, i8 } %215, 0
  store ptr %217, ptr %216, align 8
  %218 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %219 = extractvalue { ptr, i8 } %215, 1
  store i8 %219, ptr %218, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %220

220:                                              ; preds = %197
  %221 = load i32, ptr %28, align 4, !tbaa !23
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %28, align 4, !tbaa !23
  br label %183, !llvm.loop !44

223:                                              ; preds = %196
  br label %224

224:                                              ; preds = %223, %120
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %225, i32 0, i32 0
  %227 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %226) #4
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %"class.wordembedding::DataBlock", ptr %228, i32 0, i32 1
  %230 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %229) #4
  call void (ptr, ...) @_ZN10multiverso3Log5DebugEPKcz(ptr noundef @.str.7, i64 noundef %227, i64 noundef %230)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

declare noundef ptr @_ZN13wordembedding14HuffmanEncoder12GetLabelInfoEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

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

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

declare noundef i64 @_ZN13wordembedding7Sampler13GetNextRandomEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare noundef i32 @_ZN13wordembedding7Sampler16NegativeSamplingEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2

declare void @_ZN10multiverso3Log5DebugEPKcz(ptr noundef, ...) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #4 = { 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, !6, i64 16}
!10 = !{!"_ZTSN13wordembedding13WordEmbeddingE", !11, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !13, i64 104, !17, i64 160, !6, i64 168}
!11 = !{!"float", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !12, i64 8, !15, i64 16, !12, i64 24, !16, i64 32, !6, i64 48}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !12, i64 8}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !20, i64 40}
!19 = !{!"_ZTSN13wordembedding6OptionE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !20, i64 40, !20, i64 41, !20, i64 42, !20, i64 43, !20, i64 44, !20, i64 45, !11, i64 48, !12, i64 56, !17, i64 64, !17, i64 68, !17, i64 72, !17, i64 76, !17, i64 80, !17, i64 84, !12, i64 88, !12, i64 96, !11, i64 104}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!17, !17, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!10, !6, i64 32}
!28 = !{!29, !17, i64 48}
!29 = !{!"_ZTSN13wordembedding13HuffLabelInfoE", !30, i64 0, !34, i64 24, !17, i64 48}
!30 = !{!"_ZTSSt6vectorIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIcSaIcEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = distinct !{!38, !25}
!39 = distinct !{!39, !25}
!40 = distinct !{!40, !25}
!41 = !{!19, !17, i64 76}
!42 = !{!10, !6, i64 40}
!43 = !{!12, !12, i64 0}
!44 = distinct !{!44, !25}


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

%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@.str.7 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

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

declare noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226)) local_unnamed_addr #2

declare void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226), i32 noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding13WordEmbedding11PrepareDataEPNS_9DataBlockE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(176) %0, ptr noundef nonnull %1) local_unnamed_addr #3 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %8 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 40
  %16 = load i8, ptr %15, align 8, !tbaa !17, !range !20, !noundef !21
  %17 = trunc nuw i8 %16 to i1
  %18 = tail call noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226) %1)
  %.not80 = icmp eq i64 %18, 0
  br i1 %17, label %.preheader, label %.preheader54

.preheader54:                                     ; preds = %2
  br i1 %.not80, label %._crit_edge58, label %.lr.ph57

.preheader:                                       ; preds = %2
  br i1 %.not80, label %._crit_edge71, label %.lr.ph70

._crit_edge71:                                    ; preds = %._crit_edge68, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %19 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  store ptr %19, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %20 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  store ptr %20, ptr %8, align 8
  %21 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %21, label %.lr.ph77, label %._crit_edge78

.lr.ph77:                                         ; preds = %._crit_edge71
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = getelementptr inbounds i8, ptr %1, i64 56
  br label %35

.lr.ph70:                                         ; preds = %.preheader, %._crit_edge68
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %._crit_edge68 ], [ 0, %.preheader ]
  %24 = trunc nuw nsw i64 %indvars.iv91 to i32
  call void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226) %1, i32 noundef %24, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %25 = load i32, ptr %3, align 4, !tbaa !22
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph67, label %._crit_edge68

._crit_edge68:                                    ; preds = %.lr.ph67, %.lr.ph70
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %27 = call noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226) %1)
  %28 = icmp ugt i64 %27, %indvars.iv.next92
  br i1 %28, label %.lr.ph70, label %._crit_edge71, !llvm.loop !23

.lr.ph67:                                         ; preds = %.lr.ph70, %.lr.ph67
  %indvars.iv88 = phi i64 [ %indvars.iv.next89, %.lr.ph67 ], [ 0, %.lr.ph70 ]
  %29 = load ptr, ptr %5, align 8, !tbaa !25
  %30 = getelementptr inbounds i32, ptr %29, i64 %indvars.iv88
  %31 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %indvars.iv.next89 = add nuw nsw i64 %indvars.iv88, 1
  %32 = load i32, ptr %3, align 4, !tbaa !22
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next89, %33
  br i1 %34, label %.lr.ph67, label %._crit_edge68, !llvm.loop !26

._crit_edge78:                                    ; preds = %._crit_edge75, %._crit_edge71
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %.loopexit

35:                                               ; preds = %.lr.ph77, %._crit_edge75
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail14_Node_iteratorIiLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %37 = load i32, ptr %36, align 4, !tbaa !22
  %38 = load ptr, ptr %22, align 8, !tbaa !27
  %39 = call noundef ptr @_ZN13wordembedding14HuffmanEncoder12GetLabelInfoEi(ptr noundef nonnull align 8 dereferenceable(32) %38, i32 noundef %37)
  %40 = getelementptr inbounds i8, ptr %39, i64 48
  %41 = load i32, ptr %40, align 8, !tbaa !28
  %42 = icmp sgt i32 %41, 0
  br i1 %42, label %.lr.ph74, label %._crit_edge75

._crit_edge75:                                    ; preds = %.lr.ph74, %35
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIiLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %44 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #4
  br i1 %44, label %35, label %._crit_edge78

.lr.ph74:                                         ; preds = %35, %.lr.ph74
  %indvars.iv94 = phi i64 [ %indvars.iv.next95, %.lr.ph74 ], [ 0, %35 ]
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv94) #4
  %46 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %indvars.iv.next95 = add nuw nsw i64 %indvars.iv94, 1
  %47 = load i32, ptr %40, align 8, !tbaa !28
  %48 = sext i32 %47 to i64
  %49 = icmp slt i64 %indvars.iv.next95, %48
  br i1 %49, label %.lr.ph74, label %._crit_edge75, !llvm.loop !38

._crit_edge58:                                    ; preds = %._crit_edge, %.preheader54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %50 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  store ptr %50, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %51 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  store ptr %51, ptr %10, align 8
  %52 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %52, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %._crit_edge58
  %53 = getelementptr inbounds i8, ptr %1, i64 56
  br label %74

.lr.ph57:                                         ; preds = %.preheader54, %._crit_edge
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %._crit_edge ], [ 0, %.preheader54 ]
  %54 = trunc nuw nsw i64 %indvars.iv82 to i32
  call void @_ZN13wordembedding9DataBlock11GetSentenceEiRPiRiRlRm(ptr noundef nonnull align 8 dereferenceable(226) %1, i32 noundef %54, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %55 = load i32, ptr %3, align 4, !tbaa !22
  %56 = icmp sgt i32 %55, 0
  br i1 %56, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph57
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %57 = call noundef i64 @_ZN13wordembedding9DataBlock4SizeEv(ptr noundef nonnull align 8 dereferenceable(226) %1)
  %58 = icmp ugt i64 %57, %indvars.iv.next83
  br i1 %58, label %.lr.ph57, label %._crit_edge58, !llvm.loop !39

.lr.ph:                                           ; preds = %.lr.ph57, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph57 ]
  %59 = load ptr, ptr %5, align 8, !tbaa !25
  %60 = getelementptr inbounds i32, ptr %59, i64 %indvars.iv
  %61 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %1, ptr noundef nonnull align 4 dereferenceable(4) %60)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = load i32, ptr %3, align 4, !tbaa !22
  %63 = sext i32 %62 to i64
  %64 = icmp slt i64 %indvars.iv.next, %63
  br i1 %64, label %.lr.ph, label %._crit_edge, !llvm.loop !40

._crit_edge61:                                    ; preds = %74, %._crit_edge58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 76
  %67 = load i32, ptr %66, align 4, !tbaa !41
  %68 = sext i32 %67 to i64
  %69 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  %70 = mul i64 %69, %68
  %.not79 = icmp eq i64 %70, 0
  br i1 %.not79, label %.loopexit, label %.lr.ph64

.lr.ph64:                                         ; preds = %._crit_edge61
  %71 = getelementptr inbounds i8, ptr %0, i64 40
  %72 = getelementptr inbounds i8, ptr %1, i64 56
  %73 = getelementptr inbounds i8, ptr %1, i64 112
  br label %80

74:                                               ; preds = %.lr.ph60, %74
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt8__detail14_Node_iteratorIiLb1ELb0EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %76 = load i32, ptr %75, align 4, !tbaa !22
  store i32 %76, ptr %11, align 4, !tbaa !22
  %77 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 4 dereferenceable(4) %11)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8__detail14_Node_iteratorIiLb1ELb0EEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  %79 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  br i1 %79, label %74, label %._crit_edge61

80:                                               ; preds = %.lr.ph64, %80
  %indvars.iv85 = phi i64 [ 0, %.lr.ph64 ], [ %indvars.iv.next86, %80 ]
  %81 = load ptr, ptr %71, align 8, !tbaa !42
  %82 = load i64, ptr %6, align 8, !tbaa !43
  %83 = call noundef i64 @_ZN13wordembedding7Sampler13GetNextRandomEm(ptr noundef nonnull align 8 dereferenceable(8) %81, i64 noundef %82)
  store i64 %83, ptr %6, align 8, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %84 = load ptr, ptr %71, align 8, !tbaa !42
  %85 = call noundef i32 @_ZN13wordembedding7Sampler16NegativeSamplingEm(ptr noundef nonnull align 8 dereferenceable(8) %84, i64 noundef %83)
  store i32 %85, ptr %12, align 4, !tbaa !22
  %86 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %72, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %87 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) %73, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %88 = load ptr, ptr %13, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i64 76
  %90 = load i32, ptr %89, align 4, !tbaa !41
  %91 = sext i32 %90 to i64
  %92 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  %93 = mul i64 %92, %91
  %94 = icmp ugt i64 %93, %indvars.iv.next86
  br i1 %94, label %80, label %.loopexit, !llvm.loop !44

.loopexit:                                        ; preds = %80, %._crit_edge61, %._crit_edge78
  %95 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %1) #4
  %96 = getelementptr inbounds i8, ptr %1, i64 56
  %97 = call noundef i64 @_ZNKSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %96) #4
  call void (ptr, ...) @_ZN10multiverso3Log5DebugEPKcz(ptr noundef nonnull @.str.7, i64 noundef %95, i64 noundef %97)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

declare noundef ptr @_ZN13wordembedding14HuffmanEncoder12GetLabelInfoEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2

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

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

declare noundef i64 @_ZN13wordembedding7Sampler13GetNextRandomEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2

declare noundef i32 @_ZN13wordembedding7Sampler16NegativeSamplingEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2

declare void @_ZN10multiverso3Log5DebugEPKcz(ptr noundef, ...) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { 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 #4 = { 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, !11, i64 16}
!6 = !{!"_ZTSN13wordembedding13WordEmbeddingE", !7, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 104, !16, i64 160, !11, i64 168}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !11, i64 0, !10, i64 8, !14, i64 16, !10, i64 24, !15, i64 32, !11, i64 48}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !11, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !10, i64 8}
!16 = !{!"int", !8, i64 0}
!17 = !{!18, !19, i64 40}
!18 = !{!"_ZTSN13wordembedding6OptionE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !19, i64 40, !19, i64 41, !19, i64 42, !19, i64 43, !19, i64 44, !19, i64 45, !7, i64 48, !10, i64 56, !16, i64 64, !16, i64 68, !16, i64 72, !16, i64 76, !16, i64 80, !16, i64 84, !10, i64 88, !10, i64 96, !7, i64 104}
!19 = !{!"bool", !8, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!16, !16, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!11, !11, i64 0}
!26 = distinct !{!26, !24}
!27 = !{!6, !11, i64 32}
!28 = !{!29, !16, i64 48}
!29 = !{!"_ZTSN13wordembedding13HuffLabelInfoE", !30, i64 0, !34, i64 24, !16, i64 48}
!30 = !{!"_ZTSSt6vectorIiSaIiEE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!34 = !{!"_ZTSSt6vectorIcSaIcEE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!38 = distinct !{!38, !24}
!39 = distinct !{!39, !24}
!40 = distinct !{!40, !24}
!41 = !{!18, !16, i64 76}
!42 = !{!6, !11, i64 40}
!43 = !{!10, !10, i64 0}
!44 = distinct !{!44, !24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass