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

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

%"class.wordembedding::Dictionary" = type { i32, %"class.std::vector", %"class.__gnu_cxx::__normal_iterator", %"class.std::unordered_map", %"class.std::unordered_set" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<wordembedding::WordInfo, std::allocator<wordembedding::WordInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<wordembedding::WordInfo, std::allocator<wordembedding::WordInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<wordembedding::WordInfo, std::allocator<wordembedding::WordInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<wordembedding::WordInfo, std::allocator<wordembedding::WordInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_set" = type { %"class.std::_Hashtable.5" }
%"class.std::_Hashtable.5" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i64 noundef) #1 align 2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #2

declare i32 @fclose(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding10Dictionary21LoadTriLetterFromFileEPKcjj(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [901 x i8], align 16
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca [903 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca [901 x i8], align 16
  %17 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call noalias ptr @fopen(ptr noundef %19, ptr noundef @.str.1)
  store ptr %20, ptr %9, align 8, !tbaa !5
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %133

23:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 901, ptr %10) #5
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 901, i1 false)
  br label %24

24:                                               ; preds = %129, %127, %23
  %25 = load ptr, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds [901 x i8], ptr %10, i64 0, i64 0
  %27 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %25, ptr noundef @.str.2, ptr noundef %26, i32 noundef 901)
  %28 = icmp ne i32 %27, -1
  br i1 %28, label %29, label %130

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %30, ptr noundef @.str.4, ptr noundef %11)
  %32 = load i64, ptr %11, align 8, !tbaa !11
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = icmp slt i64 %32, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %29
  store i32 2, ptr %12, align 4
  br label %127, !llvm.loop !13

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %38 = getelementptr inbounds [901 x i8], ptr %10, i64 0, i64 0
  %39 = call i64 @strlen(ptr noundef %38) #6
  store i64 %39, ptr %13, align 8, !tbaa !11
  %40 = load i64, ptr %13, align 8, !tbaa !11
  %41 = icmp ugt i64 %40, 901
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  call void (ptr, ...) @_ZN10multiverso3Log4InfoEPKcz(ptr noundef @.str.5)
  store i32 2, ptr %12, align 4
  br label %126, !llvm.loop !13

43:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 903, ptr %14) #5
  %44 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 0
  store i8 35, ptr %44, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %60, %43
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [901 x i8], ptr %10, i64 0, i64 0
  %49 = call i64 @strlen(ptr noundef %48) #6
  %50 = icmp ult i64 %47, %49
  br i1 %50, label %51, label %63

51:                                               ; preds = %45
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [901 x i8], ptr %10, i64 0, i64 %53
  %55 = load i8, ptr %54, align 1, !tbaa !15
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 %58
  store i8 %55, ptr %59, align 1, !tbaa !15
  br label %60

60:                                               ; preds = %51
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %15, align 4, !tbaa !9
  br label %45, !llvm.loop !16

63:                                               ; preds = %45
  %64 = load i32, ptr %15, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 %66
  store i8 35, ptr %67, align 1, !tbaa !15
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = add nsw i32 %68, 2
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 %70
  store i8 0, ptr %71, align 1, !tbaa !15
  %72 = getelementptr inbounds %"class.wordembedding::Dictionary", ptr %18, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !17
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %63
  %76 = getelementptr inbounds [901 x i8], ptr %10, i64 0, i64 0
  %77 = load i64, ptr %11, align 8, !tbaa !11
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef %76, i64 noundef %77)
  br label %78

78:                                               ; preds = %75, %63
  %79 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 0
  %80 = call i64 @strlen(ptr noundef %79) #6
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = icmp ule i64 %80, %82
  br i1 %83, label %84, label %87

84:                                               ; preds = %78
  %85 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 0
  %86 = load i64, ptr %11, align 8, !tbaa !11
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef %85, i64 noundef %86)
  br label %125

87:                                               ; preds = %78
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %121, %87
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 0
  %92 = call i64 @strlen(ptr noundef %91) #6
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = sub i64 %92, %94
  %96 = icmp ule i64 %90, %95
  br i1 %96, label %97, label %124

97:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 901, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %112, %97
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = icmp ult i32 %99, %100
  br i1 %101, label %102, label %115

102:                                              ; preds = %98
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = add i32 %103, %104
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds [903 x i8], ptr %14, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !15
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [901 x i8], ptr %16, i64 0, i64 %110
  store i8 %108, ptr %111, align 1, !tbaa !15
  br label %112

112:                                              ; preds = %102
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = add i32 %113, 1
  store i32 %114, ptr %17, align 4, !tbaa !9
  br label %98, !llvm.loop !31

115:                                              ; preds = %98
  %116 = load i32, ptr %17, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [901 x i8], ptr %16, i64 0, i64 %117
  store i8 0, ptr %118, align 1, !tbaa !15
  %119 = getelementptr inbounds [901 x i8], ptr %16, i64 0, i64 0
  %120 = load i64, ptr %11, align 8, !tbaa !11
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %18, ptr noundef %119, i64 noundef %120)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 901, ptr %16) #5
  br label %121

121:                                              ; preds = %115
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %15, align 4, !tbaa !9
  br label %88, !llvm.loop !32

124:                                              ; preds = %88
  br label %125

125:                                              ; preds = %124, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 903, ptr %14) #5
  store i32 0, ptr %12, align 4
  br label %126

126:                                              ; preds = %125, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %127

127:                                              ; preds = %126, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %128 = load i32, ptr %12, align 4
  switch i32 %128, label %134 [
    i32 0, label %129
    i32 2, label %24
  ]

129:                                              ; preds = %127
  br label %24, !llvm.loop !13

130:                                              ; preds = %24
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = call i32 @fclose(ptr noundef %131)
  call void @llvm.lifetime.end.p0(i64 901, ptr %10) #5
  br label %133

133:                                              ; preds = %130, %4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void

134:                                              ; preds = %127
  unreachable
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !14}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN13wordembedding10DictionaryE", !10, i64 0, !19, i64 8, !23, i64 32, !24, i64 40, !29, i64 96}
!19 = !{!"_ZTSSt6vectorIN13wordembedding8WordInfoESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN13wordembedding8WordInfoESt6vectorIS2_SaIS2_EEEE", !6, i64 0}
!24 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !25, i64 0}
!25 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !12, i64 8, !26, i64 16, !12, i64 24, !27, i64 32, !6, i64 48}
!26 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!27 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !28, i64 0, !12, i64 8}
!28 = !{!"float", !7, i64 0}
!29 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !6, i64 0, !12, i64 8, !26, i64 16, !12, i64 24, !27, i64 32, !6, i64 48}
!31 = distinct !{!31, !14}
!32 = distinct !{!32, !14}


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

@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13wordembedding10Dictionary21LoadTriLetterFromFileEPKcjj(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = alloca [901 x i8], align 16
  %6 = alloca i64, align 8
  %7 = alloca [903 x i8], align 16
  %8 = alloca [901 x i8], align 16
  %9 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.1)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %92, label %10

10:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 901, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(901) %5, i8 0, i64 901, i1 false)
  %11 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.2, ptr noundef nonnull %5, i32 noundef 901)
  %.not2839 = icmp eq i32 %11, -1
  br i1 %.not2839, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %10
  %12 = zext i32 %2 to i64
  %13 = zext i32 %3 to i64
  %.not43 = icmp eq i32 %3, 0
  %scevgep = getelementptr inbounds i8, ptr %7, i64 1
  %14 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %13
  %15 = add nsw i64 %13, -1
  %min.iters.check = icmp ult i32 %3, 8
  %16 = trunc i64 %15 to i32
  %17 = icmp ugt i64 %15, 4294967295
  %min.iters.check57 = icmp ult i32 %3, 32
  %n.vec = and i64 %13, 4294967264
  %cmp.n = icmp eq i64 %n.vec, %13
  %n.vec.remaining = and i64 %13, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  %n.vec60 = and i64 %13, 4294967288
  %cmp.n64 = icmp eq i64 %n.vec60, %13
  %xtraiter = and i64 %13, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %18

18:                                               ; preds = %.lr.ph41, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %19 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.4, ptr noundef nonnull %6)
  %20 = load i64, ptr %6, align 8, !tbaa !5
  %21 = icmp slt i64 %20, %12
  br i1 %21, label %89, label %22, !llvm.loop !9

22:                                               ; preds = %18
  %23 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %5) #8
  %24 = icmp ugt i64 %23, 901
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  call void (ptr, ...) @_ZN10multiverso3Log4InfoEPKcz(ptr noundef nonnull @.str.5)
  br label %89, !llvm.loop !9

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 903, ptr nonnull %7) #7
  store i8 35, ptr %7, align 16, !tbaa !11
  %.not44 = icmp eq i64 %23, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %26
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %scevgep, ptr nonnull align 16 %5, i64 %23, i1 false), !tbaa !11
  %27 = trunc nuw nsw i64 %23 to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %26
  %.024.lcssa = phi i32 [ 0, %26 ], [ %27, %.lr.ph.preheader ]
  %28 = add nuw nsw i32 %.024.lcssa, 1
  %29 = zext nneg i32 %28 to i64
  %30 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %29
  store i8 35, ptr %30, align 1, !tbaa !11
  %31 = add nuw nsw i32 %.024.lcssa, 2
  %32 = zext nneg i32 %31 to i64
  %33 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %32
  store i8 0, ptr %33, align 1, !tbaa !11
  %34 = load i32, ptr %0, align 8, !tbaa !12
  %.not29 = icmp eq i32 %34, 0
  br i1 %.not29, label %36, label %35

35:                                               ; preds = %._crit_edge
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %5, i64 noundef %20)
  br label %36

36:                                               ; preds = %35, %._crit_edge
  %37 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #8
  %.not30 = icmp ugt i64 %37, %13
  br i1 %.not30, label %.preheader, label %84

.preheader:                                       ; preds = %36
  br i1 %.not43, label %.preheader.split, label %iter.check

iter.check:                                       ; preds = %.preheader, %._crit_edge36.us
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %._crit_edge36.us ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 901, ptr nonnull %8) #7
  br i1 %min.iters.check, label %vec.epilog.scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %iter.check
  %38 = trunc i64 %indvars.iv49 to i32
  %39 = xor i32 %38, -1
  %40 = icmp ult i32 %39, %16
  %41 = or i1 %40, %17
  br i1 %41, label %vec.epilog.scalar.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.scevcheck
  br i1 %min.iters.check57, label %vec.epilog.ph, label %vector.body

vector.body:                                      ; preds = %vector.main.loop.iter.check, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.main.loop.iter.check ]
  %42 = add nuw i64 %index, %indvars.iv49
  %43 = and i64 %42, 4294967295
  %44 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %43
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load = load <16 x i8>, ptr %44, align 1, !tbaa !11
  %wide.load58 = load <16 x i8>, ptr %45, align 1, !tbaa !11
  %46 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <16 x i8> %wide.load, ptr %46, align 16, !tbaa !11
  store <16 x i8> %wide.load58, ptr %47, align 16, !tbaa !11
  %index.next = add nuw i64 %index, 32
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge36.us, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  br i1 %min.epilog.iters.check, label %vec.epilog.scalar.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index61 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next63, %vec.epilog.vector.body ]
  %49 = add nuw i64 %index61, %indvars.iv49
  %50 = and i64 %49, 4294967295
  %51 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %50
  %wide.load62 = load <8 x i8>, ptr %51, align 1, !tbaa !11
  %52 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %index61
  store <8 x i8> %wide.load62, ptr %52, align 8, !tbaa !11
  %index.next63 = add nuw i64 %index61, 8
  %53 = icmp eq i64 %index.next63, %n.vec60
  br i1 %53, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !31

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  br i1 %cmp.n64, label %._crit_edge36.us, label %vec.epilog.scalar.ph.preheader

vec.epilog.scalar.ph.preheader:                   ; preds = %vec.epilog.middle.block, %vector.scevcheck, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ 0, %iter.check ], [ 0, %vector.scevcheck ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec60, %vec.epilog.middle.block ]
  br i1 %lcmp.mod.not, label %vec.epilog.scalar.ph.prol.loopexit, label %vec.epilog.scalar.ph.prol

vec.epilog.scalar.ph.prol:                        ; preds = %vec.epilog.scalar.ph.preheader, %vec.epilog.scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %vec.epilog.scalar.ph.prol ], [ %indvars.iv.ph, %vec.epilog.scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %vec.epilog.scalar.ph.prol ], [ 0, %vec.epilog.scalar.ph.preheader ]
  %54 = add nuw i64 %indvars.iv.prol, %indvars.iv49
  %55 = and i64 %54, 4294967295
  %56 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !11
  %58 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %indvars.iv.prol
  store i8 %57, ptr %58, align 1, !tbaa !11
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %vec.epilog.scalar.ph.prol.loopexit, label %vec.epilog.scalar.ph.prol, !llvm.loop !32

vec.epilog.scalar.ph.prol.loopexit:               ; preds = %vec.epilog.scalar.ph.prol, %vec.epilog.scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %vec.epilog.scalar.ph.preheader ], [ %indvars.iv.next.prol, %vec.epilog.scalar.ph.prol ]
  %59 = sub nsw i64 %indvars.iv.ph, %13
  %60 = icmp ugt i64 %59, -4
  br i1 %60, label %._crit_edge36.us, label %vec.epilog.scalar.ph

vec.epilog.scalar.ph:                             ; preds = %vec.epilog.scalar.ph.prol.loopexit, %vec.epilog.scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %vec.epilog.scalar.ph ], [ %indvars.iv.unr, %vec.epilog.scalar.ph.prol.loopexit ]
  %61 = add nuw i64 %indvars.iv, %indvars.iv49
  %62 = and i64 %61, 4294967295
  %63 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %indvars.iv
  store i8 %64, ptr %65, align 1, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = add nuw i64 %indvars.iv.next, %indvars.iv49
  %67 = and i64 %66, 4294967295
  %68 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %67
  %69 = load i8, ptr %68, align 1, !tbaa !11
  %70 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %indvars.iv.next
  store i8 %69, ptr %70, align 1, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %71 = add nuw i64 %indvars.iv.next.1, %indvars.iv49
  %72 = and i64 %71, 4294967295
  %73 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %72
  %74 = load i8, ptr %73, align 1, !tbaa !11
  %75 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %indvars.iv.next.1
  store i8 %74, ptr %75, align 1, !tbaa !11
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %76 = add nuw i64 %indvars.iv.next.2, %indvars.iv49
  %77 = and i64 %76, 4294967295
  %78 = getelementptr inbounds [903 x i8], ptr %7, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = getelementptr inbounds [901 x i8], ptr %8, i64 0, i64 %indvars.iv.next.2
  store i8 %79, ptr %80, align 1, !tbaa !11
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %13
  br i1 %exitcond.not.3, label %._crit_edge36.us, label %vec.epilog.scalar.ph, !llvm.loop !34

._crit_edge36.us:                                 ; preds = %vec.epilog.scalar.ph.prol.loopexit, %vec.epilog.scalar.ph, %vec.epilog.middle.block, %middle.block
  store i8 0, ptr %14, align 1, !tbaa !11
  %81 = load i64, ptr %6, align 8, !tbaa !5
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %8, i64 noundef %81)
  call void @llvm.lifetime.end.p0(i64 901, ptr nonnull %8) #7
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %82 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #8
  %83 = sub i64 %82, %13
  %.not31.us.not = icmp ugt i64 %83, %indvars.iv49
  br i1 %.not31.us.not, label %iter.check, label %.loopexit, !llvm.loop !35

84:                                               ; preds = %36
  %85 = load i64, ptr %6, align 8, !tbaa !5
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %7, i64 noundef %85)
  br label %.loopexit

.preheader.split:                                 ; preds = %.preheader, %.preheader.split
  %indvars.iv52 = phi i64 [ %indvars.iv.next53, %.preheader.split ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 901, ptr nonnull %8) #7
  store i8 0, ptr %8, align 16, !tbaa !11
  %86 = load i64, ptr %6, align 8, !tbaa !5
  call void @_ZN13wordembedding10Dictionary6InsertEPKcl(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %8, i64 noundef %86)
  call void @llvm.lifetime.end.p0(i64 901, ptr nonnull %8) #7
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %87 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #8
  %88 = sub nuw nsw i64 %87, %13
  %.not31.not = icmp ugt i64 %88, %indvars.iv52
  br i1 %.not31.not, label %.preheader.split, label %.loopexit, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge36.us, %.preheader.split, %84
  call void @llvm.lifetime.end.p0(i64 903, ptr nonnull %7) #7
  br label %89

89:                                               ; preds = %25, %.loopexit, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %90 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.2, ptr noundef nonnull %5, i32 noundef 901)
  %.not28 = icmp eq i32 %90, -1
  br i1 %.not28, label %._crit_edge42, label %18

._crit_edge42:                                    ; preds = %89, %10
  %91 = call i32 @fclose(ptr noundef nonnull %9)
  call void @llvm.lifetime.end.p0(i64 901, ptr nonnull %5) #7
  br label %92

92:                                               ; preds = %._crit_edge42, %4
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

declare void @_ZN10multiverso3Log4InfoEPKcz(ptr noundef, ...) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN13wordembedding10DictionaryE", !14, i64 0, !15, i64 8, !20, i64 32, !21, i64 40, !26, i64 96}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN13wordembedding8WordInfoESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN13wordembedding8WordInfoESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!"_ZTSN9__gnu_cxx17__normal_iteratorIPN13wordembedding8WordInfoESt6vectorIS2_SaIS2_EEEE", !19, i64 0}
!21 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !19, i64 0, !6, i64 8, !23, i64 16, !6, i64 24, !24, i64 32, !19, i64 48}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !19, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !25, i64 0, !6, i64 8}
!25 = !{!"float", !7, i64 0}
!26 = !{!"_ZTSSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE", !19, i64 0, !6, i64 8, !23, i64 16, !6, i64 24, !24, i64 32, !19, i64 48}
!28 = distinct !{!28, !10, !29, !30}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}
!31 = distinct !{!31, !10, !29, !30}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !10, !29}
!35 = distinct !{!35, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass