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

; 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::nothrow_t" = type { i8 }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i64 }
%"class.__gnu_cxx::__normal_iterator.38" = type { ptr }
%"struct.wordembedding::HuffLabelInfo" = type <{ %"class.std::vector.0", %"class.std::vector.5", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }
%"class.wordembedding::HuffmanEncoder" = type { %"class.std::vector", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<wordembedding::HuffLabelInfo, std::allocator<wordembedding::HuffLabelInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<wordembedding::HuffLabelInfo, std::allocator<wordembedding::HuffLabelInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<wordembedding::HuffLabelInfo, std::allocator<wordembedding::HuffLabelInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<wordembedding::HuffLabelInfo, std::allocator<wordembedding::HuffLabelInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.wordembedding::WordInfo" = type { %"class.std::__cxx11::basic_string", i64 }
%"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] }

@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.7 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv = external hidden unnamed_addr constant [63 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 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 noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare noundef ptr @_ZN13wordembedding10Dictionary11GetWordInfoEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.33", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.38", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca [100 x i32], align 16
  %15 = alloca [100 x i32], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %"struct.wordembedding::HuffLabelInfo", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #11
  call void @_ZNSt6vectorISt4pairIilESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %33 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = invoke noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152) %34)
          to label %36 unwind label %47

36:                                               ; preds = %1
  %37 = sext i32 %35 to i64
  invoke void @_ZNSt6vectorISt4pairIilESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %37)
          to label %38 unwind label %47

38:                                               ; preds = %36
  call void @_ZNSt6vectorISt4pairIilESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #11
  store i32 0, ptr %6, align 4, !tbaa !15
  br label %39

39:                                               ; preds = %64, %38
  %40 = load i32, ptr %6, align 4, !tbaa !15
  %41 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = invoke noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152) %42)
          to label %44 unwind label %51

44:                                               ; preds = %39
  %45 = icmp slt i32 %40, %43
  br i1 %45, label %55, label %46

46:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  br label %72

47:                                               ; preds = %72, %36, %1
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %4, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %5, align 4
  br label %481

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %4, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %5, align 4
  br label %71

55:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #11
  %56 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !15
  %59 = invoke noundef ptr @_ZN13wordembedding10Dictionary11GetWordInfoEi(ptr noundef nonnull align 8 dereferenceable(152) %57, i32 noundef %58)
          to label %60 unwind label %67

60:                                               ; preds = %55
  %61 = getelementptr inbounds %"struct.wordembedding::WordInfo", ptr %59, i32 0, i32 1
  invoke void @_ZNSt4pairIilEC2IRiRKlTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %61)
          to label %62 unwind label %67

62:                                               ; preds = %60
  invoke void @_ZNSt6vectorISt4pairIilESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %63 unwind label %67

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #11
  br label %64

64:                                               ; preds = %63
  %65 = load i32, ptr %6, align 4, !tbaa !15
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %6, align 4, !tbaa !15
  br label %39, !llvm.loop !17

67:                                               ; preds = %62, %60, %55
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %4, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #11
  br label %71

71:                                               ; preds = %67, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #11
  br label %481

72:                                               ; preds = %46
  %73 = call ptr @_ZNSt6vectorISt4pairIilESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %74 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %8, i32 0, i32 0
  store ptr %73, ptr %74, align 8
  %75 = call ptr @_ZNSt6vectorISt4pairIilESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %9, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %8, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.38", ptr %9, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIilESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %78, ptr %80, ptr noundef @_ZN13wordembedding7compareERKSt4pairIilES3_)
          to label %81 unwind label %47

81:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #11
  %82 = call noundef i64 @_ZNKSt6vectorISt4pairIilESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #11
  %84 = load i32, ptr %10, align 4, !tbaa !15
  %85 = mul i32 %84, 2
  %86 = add i32 %85, 1
  %87 = zext i32 %86 to i64
  %88 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %87, i64 8)
  %89 = extractvalue { i64, i1 } %88, 1
  %90 = extractvalue { i64, i1 } %88, 0
  %91 = select i1 %89, i64 -1, i64 %90
  %92 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %91, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  store ptr %92, ptr %11, align 8, !tbaa !5
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  br i1 %94, label %95, label %96

95:                                               ; preds = %81
  br label %98

96:                                               ; preds = %81
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.7, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

97:                                               ; No predecessors!
  br label %98

98:                                               ; preds = %97, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #11
  %99 = load i32, ptr %10, align 4, !tbaa !15
  %100 = mul i32 %99, 2
  %101 = add i32 %100, 1
  %102 = zext i32 %101 to i64
  %103 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %102, i64 4)
  %104 = extractvalue { i64, i1 } %103, 1
  %105 = extractvalue { i64, i1 } %103, 0
  %106 = select i1 %104, i64 -1, i64 %105
  %107 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %106, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  store ptr %107, ptr %12, align 8, !tbaa !5
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %111

110:                                              ; preds = %98
  br label %113

111:                                              ; preds = %98
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.7, i32 noundef 102, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

112:                                              ; No predecessors!
  br label %113

113:                                              ; preds = %112, %110
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load i32, ptr %10, align 4, !tbaa !15
  %116 = mul i32 %115, 2
  %117 = add i32 %116, 1
  %118 = zext i32 %117 to i64
  %119 = mul i64 4, %118
  call void @llvm.memset.p0.i64(ptr align 4 %114, i8 0, i64 %119, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #11
  %120 = load i32, ptr %10, align 4, !tbaa !15
  %121 = mul i32 %120, 2
  %122 = add i32 %121, 1
  %123 = zext i32 %122 to i64
  %124 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %123, i64 4)
  %125 = extractvalue { i64, i1 } %124, 1
  %126 = extractvalue { i64, i1 } %124, 0
  %127 = select i1 %125, i64 -1, i64 %126
  %128 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %127, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  store ptr %128, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = icmp ne ptr %129, null
  br i1 %130, label %131, label %132

131:                                              ; preds = %113
  br label %134

132:                                              ; preds = %113
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.7, i32 noundef 106, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %131
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load i32, ptr %10, align 4, !tbaa !15
  %137 = mul i32 %136, 2
  %138 = add i32 %137, 1
  %139 = zext i32 %138 to i64
  %140 = mul i64 4, %139
  call void @llvm.memset.p0.i64(ptr align 4 %135, i8 0, i64 %140, i1 false)
  call void @llvm.lifetime.start.p0(i64 400, ptr %14) #11
  call void @llvm.lifetime.start.p0(i64 400, ptr %15) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #11
  store i32 0, ptr %16, align 4, !tbaa !15
  br label %141

141:                                              ; preds = %156, %134
  %142 = load i32, ptr %16, align 4, !tbaa !15
  %143 = load i32, ptr %10, align 4, !tbaa !15
  %144 = icmp ult i32 %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #11
  br label %159

146:                                              ; preds = %141
  %147 = load i32, ptr %16, align 4, !tbaa !15
  %148 = zext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIilESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %148) #11
  %150 = getelementptr inbounds %"struct.std::pair", ptr %149, i32 0, i32 1
  %151 = load i64, ptr %150, align 8, !tbaa !19
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load i32, ptr %16, align 4, !tbaa !15
  %154 = zext i32 %153 to i64
  %155 = getelementptr inbounds i64, ptr %152, i64 %154
  store i64 %151, ptr %155, align 8, !tbaa !22
  br label %156

156:                                              ; preds = %146
  %157 = load i32, ptr %16, align 4, !tbaa !15
  %158 = add i32 %157, 1
  store i32 %158, ptr %16, align 4, !tbaa !15
  br label %141, !llvm.loop !23

159:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #11
  %160 = load i32, ptr %10, align 4, !tbaa !15
  store i32 %160, ptr %17, align 4, !tbaa !15
  br label %161

161:                                              ; preds = %172, %159
  %162 = load i32, ptr %17, align 4, !tbaa !15
  %163 = load i32, ptr %10, align 4, !tbaa !15
  %164 = mul i32 %163, 2
  %165 = icmp ult i32 %162, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #11
  br label %175

167:                                              ; preds = %161
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load i32, ptr %17, align 4, !tbaa !15
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i64, ptr %168, i64 %170
  store i64 1000000000000000, ptr %171, align 8, !tbaa !22
  br label %172

172:                                              ; preds = %167
  %173 = load i32, ptr %17, align 4, !tbaa !15
  %174 = add i32 %173, 1
  store i32 %174, ptr %17, align 4, !tbaa !15
  br label %161, !llvm.loop !24

175:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  %176 = load i32, ptr %10, align 4, !tbaa !15
  %177 = sub i32 %176, 1
  store i32 %177, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  %178 = load i32, ptr %10, align 4, !tbaa !15
  store i32 %178, ptr %19, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  store i32 0, ptr %22, align 4, !tbaa !15
  br label %179

179:                                              ; preds = %316, %175
  %180 = load i32, ptr %22, align 4, !tbaa !15
  %181 = load i32, ptr %10, align 4, !tbaa !15
  %182 = sub i32 %181, 1
  %183 = icmp ult i32 %180, %182
  br i1 %183, label %185, label %184

184:                                              ; preds = %179
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  br label %319

185:                                              ; preds = %179
  %186 = load i32, ptr %19, align 4, !tbaa !15
  %187 = load i32, ptr %10, align 4, !tbaa !15
  %188 = mul nsw i32 %187, 2
  %189 = sub nsw i32 %188, 1
  %190 = icmp slt i32 %186, %189
  br i1 %190, label %191, label %192

191:                                              ; preds = %185
  br label %194

192:                                              ; preds = %185
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.7, i32 noundef 119, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

193:                                              ; No predecessors!
  br label %194

194:                                              ; preds = %193, %191
  %195 = load i32, ptr %18, align 4, !tbaa !15
  %196 = icmp sge i32 %195, 0
  br i1 %196, label %197, label %218

197:                                              ; preds = %194
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load i32, ptr %18, align 4, !tbaa !15
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i64, ptr %198, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !22
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load i32, ptr %19, align 4, !tbaa !15
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i64, ptr %203, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !22
  %208 = icmp slt i64 %202, %207
  br i1 %208, label %209, label %213

209:                                              ; preds = %197
  %210 = load i32, ptr %18, align 4, !tbaa !15
  store i32 %210, ptr %20, align 4, !tbaa !15
  %211 = load i32, ptr %18, align 4, !tbaa !15
  %212 = add nsw i32 %211, -1
  store i32 %212, ptr %18, align 4, !tbaa !15
  br label %217

213:                                              ; preds = %197
  %214 = load i32, ptr %19, align 4, !tbaa !15
  store i32 %214, ptr %20, align 4, !tbaa !15
  %215 = load i32, ptr %19, align 4, !tbaa !15
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %19, align 4, !tbaa !15
  br label %217

217:                                              ; preds = %213, %209
  br label %222

218:                                              ; preds = %194
  %219 = load i32, ptr %19, align 4, !tbaa !15
  store i32 %219, ptr %20, align 4, !tbaa !15
  %220 = load i32, ptr %19, align 4, !tbaa !15
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %19, align 4, !tbaa !15
  br label %222

222:                                              ; preds = %218, %217
  %223 = load i32, ptr %18, align 4, !tbaa !15
  %224 = icmp sge i32 %223, 0
  br i1 %224, label %225, label %246

225:                                              ; preds = %222
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load i32, ptr %18, align 4, !tbaa !15
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds i64, ptr %226, i64 %228
  %230 = load i64, ptr %229, align 8, !tbaa !22
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load i32, ptr %19, align 4, !tbaa !15
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i64, ptr %231, i64 %233
  %235 = load i64, ptr %234, align 8, !tbaa !22
  %236 = icmp slt i64 %230, %235
  br i1 %236, label %237, label %241

237:                                              ; preds = %225
  %238 = load i32, ptr %18, align 4, !tbaa !15
  store i32 %238, ptr %21, align 4, !tbaa !15
  %239 = load i32, ptr %18, align 4, !tbaa !15
  %240 = add nsw i32 %239, -1
  store i32 %240, ptr %18, align 4, !tbaa !15
  br label %245

241:                                              ; preds = %225
  %242 = load i32, ptr %19, align 4, !tbaa !15
  store i32 %242, ptr %21, align 4, !tbaa !15
  %243 = load i32, ptr %19, align 4, !tbaa !15
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %19, align 4, !tbaa !15
  br label %245

245:                                              ; preds = %241, %237
  br label %250

246:                                              ; preds = %222
  %247 = load i32, ptr %19, align 4, !tbaa !15
  store i32 %247, ptr %21, align 4, !tbaa !15
  %248 = load i32, ptr %19, align 4, !tbaa !15
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %19, align 4, !tbaa !15
  br label %250

250:                                              ; preds = %246, %245
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = load i32, ptr %20, align 4, !tbaa !15
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds i64, ptr %251, i64 %253
  %255 = load i64, ptr %254, align 8, !tbaa !22
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = load i32, ptr %21, align 4, !tbaa !15
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds i64, ptr %256, i64 %258
  %260 = load i64, ptr %259, align 8, !tbaa !22
  %261 = add nsw i64 %255, %260
  %262 = load ptr, ptr %11, align 8, !tbaa !5
  %263 = load i32, ptr %10, align 4, !tbaa !15
  %264 = load i32, ptr %22, align 4, !tbaa !15
  %265 = add i32 %263, %264
  %266 = zext i32 %265 to i64
  %267 = getelementptr inbounds i64, ptr %262, i64 %266
  store i64 %261, ptr %267, align 8, !tbaa !22
  %268 = load i32, ptr %20, align 4, !tbaa !15
  %269 = icmp sge i32 %268, 0
  br i1 %269, label %270, label %271

270:                                              ; preds = %250
  br label %273

271:                                              ; preds = %250
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.7, i32 noundef 154, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

272:                                              ; No predecessors!
  br label %273

273:                                              ; preds = %272, %270
  %274 = load i32, ptr %20, align 4, !tbaa !15
  %275 = load i32, ptr %10, align 4, !tbaa !15
  %276 = mul nsw i32 %275, 2
  %277 = sub nsw i32 %276, 1
  %278 = icmp slt i32 %274, %277
  br i1 %278, label %279, label %280

279:                                              ; preds = %273
  br label %282

280:                                              ; preds = %273
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.7, i32 noundef 155, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

281:                                              ; No predecessors!
  br label %282

282:                                              ; preds = %281, %279
  %283 = load i32, ptr %21, align 4, !tbaa !15
  %284 = icmp sge i32 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %282
  br label %288

286:                                              ; preds = %282
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.7, i32 noundef 156, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

287:                                              ; No predecessors!
  br label %288

288:                                              ; preds = %287, %285
  %289 = load i32, ptr %21, align 4, !tbaa !15
  %290 = load i32, ptr %10, align 4, !tbaa !15
  %291 = mul nsw i32 %290, 2
  %292 = sub nsw i32 %291, 1
  %293 = icmp slt i32 %289, %292
  br i1 %293, label %294, label %295

294:                                              ; preds = %288
  br label %297

295:                                              ; preds = %288
  call void @__assert_fail(ptr noundef @.str.19, ptr noundef @.str.7, i32 noundef 157, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

296:                                              ; No predecessors!
  br label %297

297:                                              ; preds = %296, %294
  %298 = load i32, ptr %10, align 4, !tbaa !15
  %299 = load i32, ptr %22, align 4, !tbaa !15
  %300 = add i32 %298, %299
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = load i32, ptr %20, align 4, !tbaa !15
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds i32, ptr %301, i64 %303
  store i32 %300, ptr %304, align 4, !tbaa !15
  %305 = load i32, ptr %10, align 4, !tbaa !15
  %306 = load i32, ptr %22, align 4, !tbaa !15
  %307 = add i32 %305, %306
  %308 = load ptr, ptr %13, align 8, !tbaa !5
  %309 = load i32, ptr %21, align 4, !tbaa !15
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds i32, ptr %308, i64 %310
  store i32 %307, ptr %311, align 4, !tbaa !15
  %312 = load ptr, ptr %12, align 8, !tbaa !5
  %313 = load i32, ptr %21, align 4, !tbaa !15
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds i32, ptr %312, i64 %314
  store i32 1, ptr %315, align 4, !tbaa !15
  br label %316

316:                                              ; preds = %297
  %317 = load i32, ptr %22, align 4, !tbaa !15
  %318 = add i32 %317, 1
  store i32 %318, ptr %22, align 4, !tbaa !15
  br label %179, !llvm.loop !25

319:                                              ; preds = %184
  %320 = load i32, ptr %18, align 4, !tbaa !15
  %321 = icmp slt i32 %320, 0
  br i1 %321, label %322, label %323

322:                                              ; preds = %319
  br label %325

323:                                              ; preds = %319
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.7, i32 noundef 162, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

324:                                              ; No predecessors!
  br label %325

325:                                              ; preds = %324, %322
  %326 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  call void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %326) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  store i32 0, ptr %23, align 4, !tbaa !15
  br label %327

327:                                              ; preds = %336, %325
  %328 = load i32, ptr %23, align 4, !tbaa !15
  %329 = load i32, ptr %10, align 4, !tbaa !15
  %330 = icmp ult i32 %328, %329
  br i1 %330, label %332, label %331

331:                                              ; preds = %327
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %348

332:                                              ; preds = %327
  %333 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 56, ptr %24) #11
  invoke void @_ZN13wordembedding13HuffLabelInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %24)
          to label %334 unwind label %339

334:                                              ; preds = %332
  invoke void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %333, ptr noundef nonnull align 8 dereferenceable(52) %24)
          to label %335 unwind label %343

335:                                              ; preds = %334
  call void @_ZN13wordembedding13HuffLabelInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %24) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #11
  br label %336

336:                                              ; preds = %335
  %337 = load i32, ptr %23, align 4, !tbaa !15
  %338 = add i32 %337, 1
  store i32 %338, ptr %23, align 4, !tbaa !15
  br label %327, !llvm.loop !26

339:                                              ; preds = %332
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %4, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %5, align 4
  br label %347

343:                                              ; preds = %334
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %4, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %5, align 4
  call void @_ZN13wordembedding13HuffLabelInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %24) #11
  br label %347

347:                                              ; preds = %343, %339
  call void @llvm.lifetime.end.p0(i64 56, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  br label %480

348:                                              ; preds = %331
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #11
  store i32 0, ptr %25, align 4, !tbaa !15
  br label %349

349:                                              ; preds = %463, %348
  %350 = load i32, ptr %25, align 4, !tbaa !15
  %351 = load i32, ptr %10, align 4, !tbaa !15
  %352 = icmp ult i32 %350, %351
  br i1 %352, label %354, label %353

353:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %467

354:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #11
  %355 = load i32, ptr %25, align 4, !tbaa !15
  store i32 %355, ptr %26, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #11
  store i32 0, ptr %27, align 4, !tbaa !15
  br label %356

356:                                              ; preds = %389, %354
  br label %357

357:                                              ; preds = %356
  %358 = load i32, ptr %27, align 4, !tbaa !15
  %359 = icmp ult i32 %358, 100
  br i1 %359, label %360, label %361

360:                                              ; preds = %357
  br label %363

361:                                              ; preds = %357
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.7, i32 noundef 171, ptr noundef @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

362:                                              ; No predecessors!
  br label %363

363:                                              ; preds = %362, %360
  %364 = load ptr, ptr %12, align 8, !tbaa !5
  %365 = load i32, ptr %26, align 4, !tbaa !15
  %366 = zext i32 %365 to i64
  %367 = getelementptr inbounds i32, ptr %364, i64 %366
  %368 = load i32, ptr %367, align 4, !tbaa !15
  %369 = load i32, ptr %27, align 4, !tbaa !15
  %370 = zext i32 %369 to i64
  %371 = getelementptr inbounds [100 x i32], ptr %14, i64 0, i64 %370
  store i32 %368, ptr %371, align 4, !tbaa !15
  %372 = load i32, ptr %26, align 4, !tbaa !15
  %373 = load i32, ptr %27, align 4, !tbaa !15
  %374 = zext i32 %373 to i64
  %375 = getelementptr inbounds [100 x i32], ptr %15, i64 0, i64 %374
  store i32 %372, ptr %375, align 4, !tbaa !15
  %376 = load i32, ptr %27, align 4, !tbaa !15
  %377 = add i32 %376, 1
  store i32 %377, ptr %27, align 4, !tbaa !15
  %378 = load ptr, ptr %13, align 8, !tbaa !5
  %379 = load i32, ptr %26, align 4, !tbaa !15
  %380 = zext i32 %379 to i64
  %381 = getelementptr inbounds i32, ptr %378, i64 %380
  %382 = load i32, ptr %381, align 4, !tbaa !15
  store i32 %382, ptr %26, align 4, !tbaa !15
  %383 = load i32, ptr %26, align 4, !tbaa !15
  %384 = load i32, ptr %10, align 4, !tbaa !15
  %385 = mul i32 %384, 2
  %386 = sub i32 %385, 2
  %387 = icmp eq i32 %383, %386
  br i1 %387, label %388, label %389

388:                                              ; preds = %363
  br label %390

389:                                              ; preds = %363
  br label %356, !llvm.loop !27

390:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #11
  %391 = load i32, ptr %25, align 4, !tbaa !15
  %392 = zext i32 %391 to i64
  %393 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIilESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %392) #11
  %394 = getelementptr inbounds %"struct.std::pair", ptr %393, i32 0, i32 0
  %395 = load i32, ptr %394, align 8, !tbaa !28
  store i32 %395, ptr %28, align 4, !tbaa !15
  %396 = load i32, ptr %27, align 4, !tbaa !15
  %397 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  %398 = load i32, ptr %28, align 4, !tbaa !15
  %399 = zext i32 %398 to i64
  %400 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %397, i64 noundef %399) #11
  %401 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %400, i32 0, i32 2
  store i32 %396, ptr %401, align 8, !tbaa !29
  %402 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  %403 = load i32, ptr %28, align 4, !tbaa !15
  %404 = zext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %402, i64 noundef %404) #11
  %406 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %405, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #11
  %407 = load i32, ptr %10, align 4, !tbaa !15
  %408 = sub i32 %407, 2
  store i32 %408, ptr %29, align 4, !tbaa !15
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %406, ptr noundef nonnull align 4 dereferenceable(4) %29)
          to label %409 unwind label %446

409:                                              ; preds = %390
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  store i32 0, ptr %26, align 4, !tbaa !15
  br label %410

410:                                              ; preds = %459, %409
  %411 = load i32, ptr %26, align 4, !tbaa !15
  %412 = load i32, ptr %27, align 4, !tbaa !15
  %413 = icmp ult i32 %411, %412
  br i1 %413, label %414, label %462

414:                                              ; preds = %410
  %415 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  %416 = load i32, ptr %28, align 4, !tbaa !15
  %417 = zext i32 %416 to i64
  %418 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %415, i64 noundef %417) #11
  %419 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %418, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #11
  %420 = load i32, ptr %27, align 4, !tbaa !15
  %421 = load i32, ptr %26, align 4, !tbaa !15
  %422 = sub i32 %420, %421
  %423 = sub i32 %422, 1
  %424 = zext i32 %423 to i64
  %425 = getelementptr inbounds [100 x i32], ptr %14, i64 0, i64 %424
  %426 = load i32, ptr %425, align 4, !tbaa !15
  %427 = trunc i32 %426 to i8
  store i8 %427, ptr %30, align 1, !tbaa !39
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %419, ptr noundef nonnull align 1 dereferenceable(1) %30)
          to label %428 unwind label %450

428:                                              ; preds = %414
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #11
  %429 = load i32, ptr %26, align 4, !tbaa !15
  %430 = icmp ne i32 %429, 0
  br i1 %430, label %431, label %458

431:                                              ; preds = %428
  %432 = getelementptr inbounds %"class.wordembedding::HuffmanEncoder", ptr %32, i32 0, i32 0
  %433 = load i32, ptr %28, align 4, !tbaa !15
  %434 = zext i32 %433 to i64
  %435 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %432, i64 noundef %434) #11
  %436 = getelementptr inbounds %"struct.wordembedding::HuffLabelInfo", ptr %435, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  %437 = load i32, ptr %27, align 4, !tbaa !15
  %438 = load i32, ptr %26, align 4, !tbaa !15
  %439 = sub i32 %437, %438
  %440 = zext i32 %439 to i64
  %441 = getelementptr inbounds [100 x i32], ptr %15, i64 0, i64 %440
  %442 = load i32, ptr %441, align 4, !tbaa !15
  %443 = load i32, ptr %10, align 4, !tbaa !15
  %444 = sub i32 %442, %443
  store i32 %444, ptr %31, align 4, !tbaa !15
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %436, ptr noundef nonnull align 4 dereferenceable(4) %31)
          to label %445 unwind label %454

445:                                              ; preds = %431
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  br label %458

446:                                              ; preds = %390
  %447 = landingpad { ptr, i32 }
          cleanup
  %448 = extractvalue { ptr, i32 } %447, 0
  store ptr %448, ptr %4, align 8
  %449 = extractvalue { ptr, i32 } %447, 1
  store i32 %449, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #11
  br label %466

450:                                              ; preds = %414
  %451 = landingpad { ptr, i32 }
          cleanup
  %452 = extractvalue { ptr, i32 } %451, 0
  store ptr %452, ptr %4, align 8
  %453 = extractvalue { ptr, i32 } %451, 1
  store i32 %453, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #11
  br label %466

454:                                              ; preds = %431
  %455 = landingpad { ptr, i32 }
          cleanup
  %456 = extractvalue { ptr, i32 } %455, 0
  store ptr %456, ptr %4, align 8
  %457 = extractvalue { ptr, i32 } %455, 1
  store i32 %457, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  br label %466

458:                                              ; preds = %445, %428
  br label %459

459:                                              ; preds = %458
  %460 = load i32, ptr %26, align 4, !tbaa !15
  %461 = add i32 %460, 1
  store i32 %461, ptr %26, align 4, !tbaa !15
  br label %410, !llvm.loop !40

462:                                              ; preds = %410
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %25, align 4, !tbaa !15
  %465 = add i32 %464, 1
  store i32 %465, ptr %25, align 4, !tbaa !15
  br label %349, !llvm.loop !41

466:                                              ; preds = %454, %450, %446
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %480

467:                                              ; preds = %353
  %468 = load ptr, ptr %11, align 8, !tbaa !5
  %469 = icmp eq ptr %468, null
  br i1 %469, label %471, label %470

470:                                              ; preds = %467
  call void @_ZdaPv(ptr noundef %468) #14
  br label %471

471:                                              ; preds = %470, %467
  store ptr null, ptr %11, align 8, !tbaa !5
  %472 = load ptr, ptr %12, align 8, !tbaa !5
  %473 = icmp eq ptr %472, null
  br i1 %473, label %475, label %474

474:                                              ; preds = %471
  call void @_ZdaPv(ptr noundef %472) #14
  br label %475

475:                                              ; preds = %474, %471
  store ptr null, ptr %12, align 8, !tbaa !5
  %476 = load ptr, ptr %13, align 8, !tbaa !5
  %477 = icmp eq ptr %476, null
  br i1 %477, label %479, label %478

478:                                              ; preds = %475
  call void @_ZdaPv(ptr noundef %476) #14
  br label %479

479:                                              ; preds = %478, %475
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #11
  call void @_ZNSt6vectorISt4pairIilESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #11
  ret void

480:                                              ; preds = %466, %347
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #11
  br label %481

481:                                              ; preds = %480, %71, %47
  call void @_ZNSt6vectorISt4pairIilESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #11
  br label %482

482:                                              ; preds = %481
  %483 = load ptr, ptr %4, align 8
  %484 = load i32, ptr %5, align 4
  %485 = insertvalue { ptr, i32 } poison, ptr %483, 0
  %486 = insertvalue { ptr, i32 } %485, i32 %484, 1
  resume { ptr, i32 } %486
}

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

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

declare noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIilESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

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

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

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

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

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

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

; Function Attrs: nobuiltin nounwind allocsize(0)
declare noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(52)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nobuiltin nounwind 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 nounwind 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, !6, i64 24}
!10 = !{!"_ZTSN13wordembedding14HuffmanEncoderE", !11, i64 0, !6, i64 24}
!11 = !{!"_ZTSSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !21, i64 8}
!20 = !{!"_ZTSSt4pairIilE", !16, i64 0, !21, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = !{!21, !21, i64 0}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = !{!20, !16, i64 0}
!29 = !{!30, !16, i64 48}
!30 = !{!"_ZTSN13wordembedding13HuffLabelInfoE", !31, i64 0, !35, i64 24, !16, i64 48}
!31 = !{!"_ZTSSt6vectorIiSaIiEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorIcSaIcEE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!7, !7, i64 0}
!40 = distinct !{!40, !18}
!41 = distinct !{!41, !18}


; 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::nothrow_t" = type { i8 }
%"class.std::vector.33" = type { %"struct.std::_Vector_base.34" }
%"struct.std::_Vector_base.34" = type { %"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, long>, std::allocator<std::pair<int, long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i64 }
%"struct.wordembedding::HuffLabelInfo" = type <{ %"class.std::vector.0", %"class.std::vector.5", i32, [4 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.7 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv = external hidden unnamed_addr constant [63 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 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 noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare noundef ptr @_ZN13wordembedding10Dictionary11GetWordInfoEi(ptr noundef nonnull align 8 dereferenceable(152), i32 noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv(ptr noundef nonnull align 8 dereferenceable(32) %0) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.33", align 8
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca [100 x i32], align 16
  %6 = alloca [100 x i32], align 16
  %7 = alloca %"struct.wordembedding::HuffLabelInfo", align 8
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #11
  call void @_ZNSt6vectorISt4pairIilESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = invoke noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152) %12)
          to label %14 unwind label %25

14:                                               ; preds = %1
  %15 = sext i32 %13 to i64
  invoke void @_ZNSt6vectorISt4pairIilESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %15)
          to label %16 unwind label %25

16:                                               ; preds = %14
  call void @_ZNSt6vectorISt4pairIilESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  br label %17

17:                                               ; preds = %35, %16
  %storemerge = phi i32 [ 0, %16 ], [ %37, %35 ]
  store i32 %storemerge, ptr %3, align 4, !tbaa !14
  %18 = load ptr, ptr %11, align 8, !tbaa !5
  %19 = invoke noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152) %18)
          to label %20 unwind label %27

20:                                               ; preds = %17
  %21 = icmp slt i32 %storemerge, %19
  br i1 %21, label %29, label %22

22:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  %23 = call ptr @_ZNSt6vectorISt4pairIilESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %24 = call ptr @_ZNSt6vectorISt4pairIilESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIilESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %23, ptr %24, ptr noundef nonnull @_ZN13wordembedding7compareERKSt4pairIilES3_)
          to label %41 unwind label %25

25:                                               ; preds = %22, %14, %1
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %195

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %40

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #11
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = load i32, ptr %3, align 4, !tbaa !14
  %32 = invoke noundef ptr @_ZN13wordembedding10Dictionary11GetWordInfoEi(ptr noundef nonnull align 8 dereferenceable(152) %30, i32 noundef %31)
          to label %33 unwind label %38

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %32, i64 32
  call void @_ZNSt4pairIilEC2IRiRKlTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(8) %34)
  invoke void @_ZNSt6vectorISt4pairIilESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %35 unwind label %38

35:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  %36 = load i32, ptr %3, align 4, !tbaa !14
  %37 = add nsw i32 %36, 1
  br label %17, !llvm.loop !16

38:                                               ; preds = %33, %29
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  br label %40

40:                                               ; preds = %38, %27
  %.pn150 = phi { ptr, i32 } [ %39, %38 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  br label %195

41:                                               ; preds = %22
  %42 = call noundef i64 @_ZNKSt6vectorISt4pairIilESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  %43 = trunc i64 %42 to i32
  %44 = shl i32 %43, 1
  %45 = or disjoint i32 %44, 1
  %46 = zext i32 %45 to i64
  %47 = shl nuw nsw i64 %46, 3
  %48 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %47, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  %.not = icmp eq ptr %48, null
  br i1 %.not, label %49, label %50

49:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.7, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

50:                                               ; preds = %41
  %51 = shl nuw nsw i64 %46, 2
  %52 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %51, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  %.not143 = icmp eq ptr %52, null
  br i1 %.not143, label %53, label %54

53:                                               ; preds = %50
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.7, i32 noundef 102, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

54:                                               ; preds = %50
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %52, i8 0, i64 %51, i1 false)
  %55 = call noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef %51, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #12
  %.not144 = icmp eq ptr %55, null
  br i1 %.not144, label %56, label %57

56:                                               ; preds = %54
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.7, i32 noundef 106, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

57:                                               ; preds = %54
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %55, i8 0, i64 %51, i1 false)
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #11
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %6) #11
  %.not191 = icmp eq i32 %43, 0
  br i1 %.not191, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %57
  %wide.trip.count = and i64 %42, 4294967295
  br label %.lr.ph

.preheader169:                                    ; preds = %.lr.ph
  %58 = icmp sgt i32 %43, 0
  br i1 %58, label %.lr.ph178.preheader, label %._crit_edge.thread

.lr.ph178.preheader:                              ; preds = %.preheader169
  %59 = and i64 %42, 2147483647
  %60 = zext i32 %44 to i64
  %61 = add nuw nsw i64 %59, 1
  %umax = call i64 @llvm.umax.i64(i64 %60, i64 %61)
  %62 = sub nsw i64 %umax, %59
  %min.iters.check = icmp ult i64 %62, 4
  br i1 %min.iters.check, label %.lr.ph178.preheader261, label %vector.ph

.lr.ph178.preheader261:                           ; preds = %middle.block, %.lr.ph178.preheader
  %indvars.iv201.ph = phi i64 [ %59, %.lr.ph178.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph178

vector.ph:                                        ; preds = %.lr.ph178.preheader
  %n.vec = and i64 %62, -4
  %ind.end = add nsw i64 %59, %n.vec
  %63 = getelementptr i64, ptr %48, i64 %59
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %64 = getelementptr i64, ptr %63, i64 %index
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  store <2 x i64> <i64 1000000000000000, i64 1000000000000000>, ptr %64, align 8, !tbaa !18
  store <2 x i64> <i64 1000000000000000, i64 1000000000000000>, ptr %65, align 8, !tbaa !18
  %index.next = add nuw i64 %index, 4
  %66 = icmp eq i64 %index.next, %n.vec
  br i1 %66, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %62, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph178.preheader261

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIilESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #11
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load i64, ptr %68, align 8, !tbaa !23
  %70 = getelementptr inbounds i64, ptr %48, i64 %indvars.iv
  store i64 %69, ptr %70, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader169, label %.lr.ph, !llvm.loop !25

._crit_edge.thread:                               ; preds = %.preheader169, %57
  %71 = add i32 %43, -1
  br label %.lr.ph183

._crit_edge:                                      ; preds = %.lr.ph178, %middle.block
  %72 = add nsw i32 %43, -1
  %.not192 = icmp eq i32 %72, 0
  br i1 %.not192, label %._crit_edge184.thread, label %.lr.ph183

.lr.ph183:                                        ; preds = %._crit_edge.thread, %._crit_edge
  %73 = phi i32 [ %71, %._crit_edge.thread ], [ %72, %._crit_edge ]
  %74 = add nsw i32 %44, -1
  %wide.trip.count207 = zext i32 %73 to i64
  br label %78

.lr.ph178:                                        ; preds = %.lr.ph178.preheader261, %.lr.ph178
  %indvars.iv201 = phi i64 [ %indvars.iv.next202, %.lr.ph178 ], [ %indvars.iv201.ph, %.lr.ph178.preheader261 ]
  %75 = getelementptr inbounds i64, ptr %48, i64 %indvars.iv201
  store i64 1000000000000000, ptr %75, align 8, !tbaa !18
  %indvars.iv.next202 = add nuw nsw i64 %indvars.iv201, 1
  %76 = icmp ult i64 %indvars.iv.next202, %60
  br i1 %76, label %.lr.ph178, label %._crit_edge, !llvm.loop !26

._crit_edge184:                                   ; preds = %128
  %77 = icmp slt i32 %.2128, 0
  br i1 %77, label %132, label %._crit_edge184.thread

78:                                               ; preds = %.lr.ph183, %128
  %indvars.iv204 = phi i64 [ 0, %.lr.ph183 ], [ %indvars.iv.next205, %128 ]
  %.0123180 = phi i32 [ %43, %.lr.ph183 ], [ %.2125, %128 ]
  %.0126179 = phi i32 [ %73, %.lr.ph183 ], [ %.2128, %128 ]
  %79 = icmp slt i32 %.0123180, %74
  br i1 %79, label %81, label %80

80:                                               ; preds = %78
  call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.7, i32 noundef 119, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

81:                                               ; preds = %78
  %82 = icmp sgt i32 %.0126179, -1
  br i1 %82, label %83, label %.thread160

83:                                               ; preds = %81
  %84 = zext nneg i32 %.0126179 to i64
  %85 = getelementptr inbounds i64, ptr %48, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !18
  %87 = sext i32 %.0123180 to i64
  %88 = getelementptr inbounds i64, ptr %48, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !18
  %90 = icmp slt i64 %86, %89
  br i1 %90, label %93, label %.thread

.thread:                                          ; preds = %83
  %91 = add nsw i32 %.0123180, 1
  %.pre236 = sext i32 %91 to i64
  %.phi.trans.insert237 = getelementptr inbounds i64, ptr %48, i64 %.pre236
  %.pre238 = load i64, ptr %.phi.trans.insert237, align 8, !tbaa !18
  br label %95

.thread160:                                       ; preds = %81
  %92 = add nsw i32 %.0123180, 1
  br label %103

93:                                               ; preds = %83
  %.not167 = icmp eq i32 %.0126179, 0
  br i1 %.not167, label %103, label %._crit_edge234

._crit_edge234:                                   ; preds = %93
  %94 = add nsw i32 %.0126179, -1
  %.phi.trans.insert = zext nneg i32 %94 to i64
  %.phi.trans.insert235 = getelementptr inbounds i64, ptr %48, i64 %.phi.trans.insert
  %.pre = load i64, ptr %.phi.trans.insert235, align 8, !tbaa !18
  br label %95

95:                                               ; preds = %._crit_edge234, %.thread
  %96 = phi i64 [ %89, %._crit_edge234 ], [ %.pre238, %.thread ]
  %97 = phi i64 [ %.pre, %._crit_edge234 ], [ %86, %.thread ]
  %.0122159 = phi i32 [ %.0126179, %._crit_edge234 ], [ %.0123180, %.thread ]
  %.1124157 = phi i32 [ %.0123180, %._crit_edge234 ], [ %91, %.thread ]
  %.1127156 = phi i32 [ %94, %._crit_edge234 ], [ %.0126179, %.thread ]
  %98 = icmp slt i64 %97, %96
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = add nsw i32 %.1127156, -1
  br label %105

101:                                              ; preds = %95
  %102 = add nsw i32 %.1124157, 1
  br label %105

103:                                              ; preds = %.thread160, %93
  %.0122166 = phi i32 [ %.0123180, %.thread160 ], [ 0, %93 ]
  %.1124165 = phi i32 [ %92, %.thread160 ], [ %.0123180, %93 ]
  %.1127164 = phi i32 [ %.0126179, %.thread160 ], [ -1, %93 ]
  %104 = add nsw i32 %.1124165, 1
  br label %105

105:                                              ; preds = %99, %101, %103
  %.0122158 = phi i32 [ %.0122159, %99 ], [ %.0122159, %101 ], [ %.0122166, %103 ]
  %.2128 = phi i32 [ %100, %99 ], [ %.1127156, %101 ], [ %.1127164, %103 ]
  %.2125 = phi i32 [ %.1124157, %99 ], [ %102, %101 ], [ %104, %103 ]
  %.0121 = phi i32 [ %.1127156, %99 ], [ %.1124157, %101 ], [ %.1124165, %103 ]
  %106 = sext i32 %.0122158 to i64
  %107 = getelementptr inbounds i64, ptr %48, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !18
  %109 = sext i32 %.0121 to i64
  %110 = getelementptr inbounds i64, ptr %48, i64 %109
  %111 = load i64, ptr %110, align 8, !tbaa !18
  %112 = add nsw i64 %111, %108
  %113 = trunc nuw i64 %indvars.iv204 to i32
  %114 = add i32 %113, %43
  %115 = zext i32 %114 to i64
  %116 = getelementptr inbounds i64, ptr %48, i64 %115
  store i64 %112, ptr %116, align 8, !tbaa !18
  %117 = icmp sgt i32 %.0122158, -1
  br i1 %117, label %119, label %118

118:                                              ; preds = %105
  call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.7, i32 noundef 154, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

119:                                              ; preds = %105
  %120 = icmp slt i32 %.0122158, %74
  br i1 %120, label %122, label %121

121:                                              ; preds = %119
  call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.7, i32 noundef 155, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

122:                                              ; preds = %119
  %123 = icmp sgt i32 %.0121, -1
  br i1 %123, label %125, label %124

124:                                              ; preds = %122
  call void @__assert_fail(ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.7, i32 noundef 156, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

125:                                              ; preds = %122
  %126 = icmp ult i32 %.0121, %74
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  call void @__assert_fail(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.7, i32 noundef 157, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

128:                                              ; preds = %125
  %129 = getelementptr inbounds i32, ptr %55, i64 %106
  store i32 %114, ptr %129, align 4, !tbaa !14
  %130 = getelementptr inbounds i32, ptr %55, i64 %109
  store i32 %114, ptr %130, align 4, !tbaa !14
  %131 = getelementptr inbounds i32, ptr %52, i64 %109
  store i32 1, ptr %131, align 4, !tbaa !14
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %._crit_edge184, label %78, !llvm.loop !27

._crit_edge184.thread:                            ; preds = %._crit_edge, %._crit_edge184
  call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.7, i32 noundef 162, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

132:                                              ; preds = %._crit_edge184
  call void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #11
  br i1 %.not191, label %._crit_edge190, label %.lr.ph187

.preheader.lr.ph:                                 ; preds = %135
  %133 = add i32 %44, -2
  %134 = add i32 %43, -2
  %wide.trip.count232 = and i64 %42, 4294967295
  br label %.preheader

.lr.ph187:                                        ; preds = %132, %135
  %.0119185 = phi i32 [ %136, %135 ], [ 0, %132 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %7) #11
  call void @_ZN13wordembedding13HuffLabelInfoC2Ev(ptr noundef nonnull align 8 dereferenceable(52) %7)
  invoke void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(52) %7)
          to label %135 unwind label %137

135:                                              ; preds = %.lr.ph187
  call void @_ZN13wordembedding13HuffLabelInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %7) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #11
  %136 = add nuw i32 %.0119185, 1
  %exitcond209.not = icmp eq i32 %136, %43
  br i1 %exitcond209.not, label %.preheader.lr.ph, label %.lr.ph187, !llvm.loop !28

137:                                              ; preds = %.lr.ph187
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13wordembedding13HuffLabelInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(52) %7) #11
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %7) #11
  br label %194

.preheader:                                       ; preds = %.preheader.lr.ph, %.loopexit228
  %indvars.iv229 = phi i64 [ 0, %.preheader.lr.ph ], [ %indvars.iv.next230, %.loopexit228 ]
  %139 = trunc nuw i64 %indvars.iv229 to i32
  br label %140

140:                                              ; preds = %151, %.preheader
  %indvars.iv217 = phi i32 [ 1, %.preheader ], [ %indvars.iv.next218.1, %151 ]
  %indvars.iv210 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next211.1, %151 ]
  %.0116 = phi i32 [ %139, %.preheader ], [ %158, %151 ]
  %exitcond213.not = icmp eq i64 %indvars.iv210, 100
  br i1 %exitcond213.not, label %141, label %142

141:                                              ; preds = %140
  call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.7, i32 noundef 171, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN13wordembedding14HuffmanEncoder24BuildHuffmanTreeFromDictEv) #13
  unreachable

142:                                              ; preds = %140
  %143 = zext i32 %.0116 to i64
  %144 = getelementptr inbounds i32, ptr %52, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !14
  %146 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv210
  store i32 %145, ptr %146, align 8, !tbaa !14
  %147 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv210
  store i32 %.0116, ptr %147, align 8, !tbaa !14
  %indvars.iv.next211 = or disjoint i64 %indvars.iv210, 1
  %148 = getelementptr inbounds i32, ptr %55, i64 %143
  %149 = load i32, ptr %148, align 4, !tbaa !14
  %150 = icmp eq i32 %149, %133
  br i1 %150, label %.split.loop.exit266, label %151, !llvm.loop !29

151:                                              ; preds = %142
  %152 = zext i32 %149 to i64
  %153 = getelementptr inbounds i32, ptr %52, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !14
  %155 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv.next211
  store i32 %154, ptr %155, align 4, !tbaa !14
  %156 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %indvars.iv.next211
  store i32 %149, ptr %156, align 4, !tbaa !14
  %indvars.iv.next211.1 = add nuw nsw i64 %indvars.iv210, 2
  %157 = getelementptr inbounds i32, ptr %55, i64 %152
  %158 = load i32, ptr %157, align 4, !tbaa !14
  %159 = icmp eq i32 %158, %133
  %indvars.iv.next218.1 = add nuw nsw i32 %indvars.iv217, 2
  br i1 %159, label %.split.loop.exit, label %140, !llvm.loop !29

.split.loop.exit:                                 ; preds = %151
  %indvars.iv.next218.le = add nuw nsw i32 %indvars.iv217, 1
  br label %.split.loop.exit266

.split.loop.exit266:                              ; preds = %142, %.split.loop.exit
  %indvars.iv.next211.lcssa = phi i64 [ %indvars.iv.next211.1, %.split.loop.exit ], [ %indvars.iv.next211, %142 ]
  %indvars.iv217.lcssa256 = phi i32 [ %indvars.iv.next218.le, %.split.loop.exit ], [ %indvars.iv217, %142 ]
  %indvars.iv210.lcssa255 = phi i64 [ %indvars.iv.next211, %.split.loop.exit ], [ %indvars.iv210, %142 ]
  %160 = trunc nuw nsw i64 %indvars.iv.next211.lcssa to i32
  %161 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorISt4pairIilESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv229) #11
  %162 = load i32, ptr %161, align 8, !tbaa !30
  %163 = zext i32 %162 to i64
  %164 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %163) #11
  %165 = getelementptr inbounds i8, ptr %164, i64 48
  store i32 %160, ptr %165, align 8, !tbaa !31
  %166 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %163) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #11
  store i32 %134, ptr %8, align 4, !tbaa !14
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %166, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %.peel.begin unwind label %189

.peel.begin:                                      ; preds = %.split.loop.exit266
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  %167 = and i64 %indvars.iv.next211.lcssa, 4294967295
  %wide.trip.count220 = zext nneg i32 %indvars.iv217.lcssa256 to i64
  %168 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %163) #11
  %169 = getelementptr inbounds i8, ptr %168, i64 24
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #11
  %170 = and i64 %indvars.iv210.lcssa255, 4294967295
  %171 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !14
  %173 = trunc i32 %172 to i8
  store i8 %173, ptr %9, align 1, !tbaa !41
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %174 unwind label %.loopexit.split-lp

174:                                              ; preds = %.peel.begin
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #11
  %exitcond221.peel.not = icmp eq i32 %indvars.iv217.lcssa256, 1
  br i1 %exitcond221.peel.not, label %.loopexit228, label %.peel.next

.peel.next:                                       ; preds = %174, %193
  %indvars.iv214 = phi i64 [ %indvars.iv.next215, %193 ], [ 1, %174 ]
  %175 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %163) #11
  %176 = getelementptr inbounds i8, ptr %175, i64 24
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #11
  %177 = sub nsw i64 %167, %indvars.iv214
  %178 = add i64 %177, 4294967295
  %179 = and i64 %178, 4294967295
  %180 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !14
  %182 = trunc i32 %181 to i8
  store i8 %182, ptr %9, align 1, !tbaa !41
  invoke void @_ZNSt6vectorIcSaIcEE9push_backEOc(ptr noundef nonnull align 8 dereferenceable(24) %176, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %183 unwind label %.loopexit

183:                                              ; preds = %.peel.next
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #11
  %184 = call noundef nonnull align 8 dereferenceable(52) ptr @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %163) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #11
  %185 = and i64 %177, 4294967295
  %186 = getelementptr inbounds [100 x i32], ptr %6, i64 0, i64 %185
  %187 = load i32, ptr %186, align 4, !tbaa !14
  %188 = sub i32 %187, %43
  store i32 %188, ptr %10, align 4, !tbaa !14
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %184, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %193 unwind label %192

189:                                              ; preds = %.split.loop.exit266
  %190 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #11
  br label %194

.loopexit:                                        ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %191

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

191:                                              ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #11
  br label %194

192:                                              ; preds = %183
  %lpad.loopexit225 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  br label %194

193:                                              ; preds = %183
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %exitcond221.not = icmp eq i64 %indvars.iv.next215, %wide.trip.count220
  br i1 %exitcond221.not, label %.loopexit228, label %.peel.next, !llvm.loop !42

.loopexit228:                                     ; preds = %193, %174
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %exitcond233.not = icmp eq i64 %indvars.iv.next230, %wide.trip.count232
  br i1 %exitcond233.not, label %._crit_edge190, label %.preheader, !llvm.loop !44

._crit_edge190:                                   ; preds = %.loopexit228, %132
  call void @_ZdaPv(ptr noundef %48) #14
  call void @_ZdaPv(ptr noundef %52) #14
  call void @_ZdaPv(ptr noundef %55) #14
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #11
  call void @_ZNSt6vectorISt4pairIilESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #11
  ret void

194:                                              ; preds = %189, %191, %192, %137
  %.pn148 = phi { ptr, i32 } [ %138, %137 ], [ %lpad.loopexit225, %192 ], [ %lpad.phi, %191 ], [ %190, %189 ]
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #11
  br label %195

195:                                              ; preds = %194, %40, %25
  %.pn150.pn = phi { ptr, i32 } [ %.pn150, %40 ], [ %.pn148, %194 ], [ %26, %25 ]
  call void @_ZNSt6vectorISt4pairIilESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn150.pn
}

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

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

declare noundef i32 @_ZN13wordembedding10Dictionary4SizeEv(ptr noundef nonnull align 8 dereferenceable(152)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIilESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIilESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #6

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

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

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

; Function Attrs: nobuiltin nounwind allocsize(0)
declare noalias noundef ptr @_ZnamRKSt9nothrow_t(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(52)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5 align 2

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

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

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

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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nounwind }
attributes #12 = { builtin nounwind 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, !11, i64 24}
!6 = !{!"_ZTSN13wordembedding14HuffmanEncoderE", !7, i64 0, !11, i64 24}
!7 = !{!"_ZTSSt6vectorIN13wordembedding13HuffLabelInfoESaIS1_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding13HuffLabelInfoESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"long", !12, i64 0}
!20 = distinct !{!20, !17, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = !{!24, !19, i64 8}
!24 = !{!"_ZTSSt4pairIilE", !15, i64 0, !19, i64 8}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !17, !22, !21}
!27 = distinct !{!27, !17}
!28 = distinct !{!28, !17}
!29 = distinct !{!29, !17}
!30 = !{!24, !15, i64 0}
!31 = !{!32, !15, i64 48}
!32 = !{!"_ZTSN13wordembedding13HuffLabelInfoE", !33, i64 0, !37, i64 24, !15, i64 48}
!33 = !{!"_ZTSSt6vectorIiSaIiEE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!37 = !{!"_ZTSSt6vectorIcSaIcEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!41 = !{!12, !12, i64 0}
!42 = distinct !{!42, !17, !43}
!43 = !{!"llvm.loop.peeled.count", i32 1}
!44 = distinct !{!44, !17}


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