; LLVM IR from TheAlgorithms/C-Plus-Plus :: hashing/double_hash_hash_table.ll (ZN14double_hashing10doubleHashEib)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.double_hashing::Entry" = type { i32 }

@_ZN14double_hashing10notPresentE = external dso_local global i32, align 4
@_ZN14double_hashing5tableE = external dso_local global %"class.std::vector", align 8
@_ZN14double_hashing9totalSizeE = external dso_local global i32, align 4
@_ZN14double_hashing9rehashingE = external dso_local global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14double_hashing7hashFxnEi(i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14double_hashing10doubleHashEib(i32 noundef %0, i1 noundef zeroext %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.double_hashing::Entry", align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  %11 = zext i1 %1 to i8
  store i8 %11, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = call noundef i64 @_ZN14double_hashing7hashFxnEi(i32 noundef %12)
  %14 = trunc i64 %13 to i32
  store i32 %14, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %15 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  call void @_ZN14double_hashing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %15)
  br label %16

16:                                               ; preds = %99, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = load i32, ptr %7, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = call noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef %21)
  %23 = mul i64 %20, %22
  %24 = add i64 %18, %23
  %25 = trunc i64 %24 to i32
  %26 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %27 = srem i32 %25, %26
  store i32 %27, ptr %9, align 4, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14double_hashing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14double_hashing5tableE, i64 noundef %29) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %30, i64 4, i1 false), !tbaa.struct !11
  %31 = load i8, ptr %5, align 1, !tbaa !9, !range !12, !noundef !13
  %32 = trunc i8 %31 to i1
  br i1 %32, label %33, label %52

33:                                               ; preds = %16
  %34 = getelementptr inbounds %"struct.double_hashing::Entry", ptr %8, i32 0, i32 0
  %35 = load i32, ptr %34, align 4, !tbaa !14
  %36 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  %39 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  store i32 %39, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %96

40:                                               ; preds = %33
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = call noundef zeroext i1 @_ZN14double_hashing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %41)
  br i1 %42, label %43, label %47

43:                                               ; preds = %40
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %46 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %46, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %96

47:                                               ; preds = %40
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %7, align 4, !tbaa !5
  br label %86

52:                                               ; preds = %16
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = call noundef zeroext i1 @_ZN14double_hashing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %53)
  br i1 %54, label %55, label %63

55:                                               ; preds = %52
  %56 = load i8, ptr @_ZN14double_hashing9rehashingE, align 1, !tbaa !9, !range !12, !noundef !13
  %57 = trunc i8 %56 to i1
  br i1 %57, label %61, label %58

58:                                               ; preds = %55
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %59, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %61

61:                                               ; preds = %58, %55
  %62 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %62, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %96

63:                                               ; preds = %52
  %64 = load i8, ptr @_ZN14double_hashing9rehashingE, align 1, !tbaa !9, !range !12, !noundef !13
  %65 = trunc i8 %64 to i1
  br i1 %65, label %83, label %66

66:                                               ; preds = %63
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @.str.5)
  %69 = load i32, ptr %6, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = load i32, ptr %7, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = call noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef %73)
  %75 = mul i64 %72, %74
  %76 = add i64 %70, %75
  %77 = trunc i64 %76 to i32
  %78 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %79 = srem i32 %77, %78
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef %79)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef @.str.6)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %83

83:                                               ; preds = %66, %63
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %7, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %83, %47
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %89 = mul nsw i32 %88, 100
  %90 = icmp eq i32 %87, %89
  br i1 %90, label %91, label %95

91:                                               ; preds = %86
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %94 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  store i32 %94, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %96

95:                                               ; preds = %86
  store i32 0, ptr %10, align 4
  br label %96

96:                                               ; preds = %95, %91, %61, %43, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %97 = load i32, ptr %10, align 4
  switch i32 %97, label %106 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = getelementptr inbounds %"struct.double_hashing::Entry", ptr %8, i32 0, i32 0
  %101 = load i32, ptr %100, align 4, !tbaa !14
  %102 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  %103 = icmp ne i32 %101, %102
  br i1 %103, label %16, label %104, !llvm.loop !16

104:                                              ; preds = %99
  %105 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  store i32 %105, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %106

106:                                              ; preds = %104, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %107 = load i32, ptr %3, align 4
  ret i32 %107
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14double_hashing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #0 align 2

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

; 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) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN14double_hashing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN14double_hashing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i64 0, i64 4, !5}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !6, i64 0}
!15 = !{!"_ZTSN14double_hashing5EntryE", !6, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double_hashing::Entry, std::allocator<double_hashing::Entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.double_hashing::Entry" = type { i32 }

@_ZN14double_hashing10notPresentE = external dso_local local_unnamed_addr global i32, align 4
@_ZN14double_hashing5tableE = external dso_local global %"class.std::vector", align 8
@_ZN14double_hashing9totalSizeE = external dso_local local_unnamed_addr global i32, align 4
@_ZN14double_hashing9rehashingE = external dso_local local_unnamed_addr global i8, align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14double_hashing7hashFxnEi(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN14double_hashing10doubleHashEib(i32 noundef %0, i1 noundef zeroext %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.double_hashing::Entry", align 4
  %4 = tail call noundef i64 @_ZN14double_hashing7hashFxnEi(i32 noundef %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  %5 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  call void @_ZN14double_hashing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %5)
  br i1 %1, label %.split.us, label %.split

.split.us:                                        ; preds = %2, %26
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %26 ], [ 0, %2 ]
  %6 = call noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef %0)
  %7 = mul i64 %6, %indvars.iv44
  %8 = add i64 %7, %4
  %9 = trunc i64 %8 to i32
  %10 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %11 = srem i32 %9, %10
  %12 = sext i32 %11 to i64
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14double_hashing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14double_hashing5tableE, i64 noundef %12) #5
  %14 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %14, ptr %3, align 4, !tbaa !5
  %15 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  %16 = icmp eq i32 %14, %15
  br i1 %16, label %.thread, label %17

17:                                               ; preds = %.split.us
  %18 = call noundef zeroext i1 @_ZN14double_hashing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %0)
  br i1 %18, label %.split31.us, label %19

19:                                               ; preds = %17
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %22 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %23 = mul nsw i32 %22, 100
  %24 = zext i32 %23 to i64
  %25 = icmp eq i64 %indvars.iv.next45, %24
  br i1 %25, label %.split34.us, label %26

26:                                               ; preds = %19
  %27 = load i32, ptr %3, align 4, !tbaa !9
  %28 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  %.not.us = icmp eq i32 %27, %28
  br i1 %.not.us, label %.thread, label %.split.us, !llvm.loop !11

.split:                                           ; preds = %2, %68
  %indvars.iv = phi i64 [ %indvars.iv.next, %68 ], [ 0, %2 ]
  %29 = call noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef %0)
  %30 = mul i64 %29, %indvars.iv
  %31 = add i64 %30, %4
  %32 = trunc i64 %31 to i32
  %33 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %34 = srem i32 %32, %33
  %35 = sext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14double_hashing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14double_hashing5tableE, i64 noundef %35) #5
  %37 = load i32, ptr %36, align 4, !tbaa !5
  store i32 %37, ptr %3, align 4, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN14double_hashing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %0)
  %39 = load i8, ptr @_ZN14double_hashing9rehashingE, align 1, !tbaa !13, !range !15, !noundef !16
  %40 = trunc nuw i8 %39 to i1
  br i1 %38, label %43, label %47

.split31.us:                                      ; preds = %17
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.thread

43:                                               ; preds = %.split
  br i1 %40, label %.thread, label %44

44:                                               ; preds = %43
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.thread

47:                                               ; preds = %.split
  br i1 %40, label %60, label %48

48:                                               ; preds = %47
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.5)
  %51 = call noundef i64 @_ZN14double_hashing12otherHashFxnEi(i32 noundef %0)
  %52 = mul i64 %51, %indvars.iv
  %53 = add i64 %52, %4
  %54 = trunc i64 %53 to i32
  %55 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %56 = srem i32 %54, %55
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %56)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str.6)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %60

60:                                               ; preds = %47, %48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = load i32, ptr @_ZN14double_hashing9totalSizeE, align 4, !tbaa !5
  %62 = mul nsw i32 %61, 100
  %63 = zext i32 %62 to i64
  %64 = icmp eq i64 %indvars.iv.next, %63
  br i1 %64, label %.split34.us, label %68

.split34.us:                                      ; preds = %60, %19
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %67 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  br label %.thread

68:                                               ; preds = %60
  %69 = load i32, ptr %3, align 4, !tbaa !9
  %70 = load i32, ptr @_ZN14double_hashing10notPresentE, align 4, !tbaa !5
  %.not = icmp eq i32 %69, %70
  br i1 %.not, label %.thread, label %.split, !llvm.loop !11

.thread:                                          ; preds = %68, %26, %.split.us, %43, %44, %.split34.us, %.split31.us
  %.2 = phi i32 [ %34, %43 ], [ %34, %44 ], [ %67, %.split34.us ], [ %11, %.split31.us ], [ %14, %.split.us ], [ %27, %26 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  ret i32 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14double_hashing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN14double_hashing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN14double_hashing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN14double_hashing5EntryE", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


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