; LLVM IR from TheAlgorithms/C-Plus-Plus :: hashing/linear_probing_hash_table.ll (ZN14linear_probing11linearProbeEib)

; 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<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::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.linear_probing::Entry" = type { i32 }

@_ZN14linear_probing10notPresentE = external dso_local global i32, align 4
@_ZN14linear_probing5tableE = external dso_local global %"class.std::vector", align 8
@_ZN14linear_probing9totalSizeE = external dso_local global i32, align 4
@_ZN14linear_probing9rehashingE = 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 [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14linear_probing7hashFxnEi(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 uwtable
define dso_local noundef i32 @_ZN14linear_probing11linearProbeEib(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.linear_probing::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) #5
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = call noundef i64 @_ZN14linear_probing7hashFxnEi(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) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %15 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  call void @_ZN14linear_probing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %15)
  br label %16

16:                                               ; preds = %78, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = add nsw i32 %17, %18
  %20 = load i32, ptr @_ZN14linear_probing9totalSizeE, align 4, !tbaa !5
  %21 = srem i32 %19, %20
  store i32 %21, ptr %9, align 4, !tbaa !5
  %22 = load i32, ptr %9, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14linear_probing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14linear_probing5tableE, i64 noundef %23) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %24, i64 4, i1 false), !tbaa.struct !11
  %25 = load i8, ptr %5, align 1, !tbaa !9, !range !12, !noundef !13
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %46

27:                                               ; preds = %16
  %28 = getelementptr inbounds %"struct.linear_probing::Entry", ptr %8, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !14
  %30 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %34

32:                                               ; preds = %27
  %33 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  store i32 %33, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %75

34:                                               ; preds = %27
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = call noundef zeroext i1 @_ZN14linear_probing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %35)
  br i1 %36, label %37, label %41

37:                                               ; preds = %34
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %40 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %40, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %75

41:                                               ; preds = %34
  %42 = 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)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !5
  br label %66

46:                                               ; preds = %16
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN14linear_probing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 noundef %47)
  br i1 %48, label %49, label %57

49:                                               ; preds = %46
  %50 = load i8, ptr @_ZN14linear_probing9rehashingE, align 1, !tbaa !9, !range !12, !noundef !13
  %51 = trunc i8 %50 to i1
  br i1 %51, label %55, label %52

52:                                               ; preds = %49
  %53 = 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)
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %53, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %55

55:                                               ; preds = %52, %49
  %56 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %56, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %75

57:                                               ; preds = %46
  %58 = load i8, ptr @_ZN14linear_probing9rehashingE, align 1, !tbaa !9, !range !12, !noundef !13
  %59 = trunc i8 %58 to i1
  br i1 %59, label %63, label %60

60:                                               ; preds = %57
  %61 = 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)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %63

63:                                               ; preds = %60, %57
  %64 = load i32, ptr %7, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %7, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %63, %41
  %67 = load i32, ptr %7, align 4, !tbaa !5
  %68 = load i32, ptr @_ZN14linear_probing9totalSizeE, align 4, !tbaa !5
  %69 = icmp eq i32 %67, %68
  br i1 %69, label %70, label %74

70:                                               ; preds = %66
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %73 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  store i32 %73, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %75

74:                                               ; preds = %66
  store i32 0, ptr %10, align 4
  br label %75

75:                                               ; preds = %74, %70, %55, %37, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %76 = load i32, ptr %10, align 4
  switch i32 %76, label %85 [
    i32 0, label %77
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77
  %79 = getelementptr inbounds %"struct.linear_probing::Entry", ptr %8, i32 0, i32 0
  %80 = load i32, ptr %79, align 4, !tbaa !14
  %81 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  %82 = icmp ne i32 %80, %81
  br i1 %82, label %16, label %83, !llvm.loop !16

83:                                               ; preds = %78
  %84 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  store i32 %84, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %85

85:                                               ; preds = %83, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %86 = load i32, ptr %3, align 4
  ret i32 %86
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14linear_probing5EntryC2Ei(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 @_ZNSt6vectorIN14linear_probing5EntryESaIS1_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 @_ZN14linear_probing15searchingProberERKNS_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 @_ZN14linear_probing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #0

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 = { 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 = !{!"_ZTSN14linear_probing5EntryE", !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<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<linear_probing::Entry, std::allocator<linear_probing::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.linear_probing::Entry" = type { i32 }

@_ZN14linear_probing10notPresentE = external dso_local local_unnamed_addr global i32, align 4
@_ZN14linear_probing5tableE = external dso_local global %"class.std::vector", align 8
@_ZN14linear_probing9totalSizeE = external dso_local local_unnamed_addr global i32, align 4
@_ZN14linear_probing9rehashingE = 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 [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN14linear_probing7hashFxnEi(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 uwtable
define dso_local noundef i32 @_ZN14linear_probing11linearProbeEib(i32 noundef %0, i1 noundef zeroext %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.linear_probing::Entry", align 4
  %4 = tail call noundef i64 @_ZN14linear_probing7hashFxnEi(i32 noundef %0)
  %5 = trunc i64 %4 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %6 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  call void @_ZN14linear_probing5EntryC2Ei(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %6)
  %.pre39 = load i32, ptr @_ZN14linear_probing9totalSizeE, align 4, !tbaa !5
  br i1 %1, label %.split.us, label %.split

.split.us:                                        ; preds = %2, %22
  %7 = phi i32 [ %20, %22 ], [ %.pre39, %2 ]
  %.015.us = phi i32 [ %.116.us, %22 ], [ 0, %2 ]
  %8 = add nsw i32 %.015.us, %5
  %9 = srem i32 %8, %7
  %10 = sext i32 %9 to i64
  %11 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14linear_probing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14linear_probing5tableE, i64 noundef %10) #4
  %12 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %12, ptr %3, align 4, !tbaa !5
  %13 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  %14 = icmp eq i32 %12, %13
  br i1 %14, label %.thread, label %15

15:                                               ; preds = %.split.us
  %16 = call noundef zeroext i1 @_ZN14linear_probing15searchingProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %0)
  br i1 %16, label %.split27.us, label %17

17:                                               ; preds = %15
  %18 = 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)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %.116.us = add nuw nsw i32 %.015.us, 1
  %20 = load i32, ptr @_ZN14linear_probing9totalSizeE, align 4, !tbaa !5
  %21 = icmp eq i32 %.116.us, %20
  br i1 %21, label %.split30.us, label %22

22:                                               ; preds = %17
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  %.not.us = icmp eq i32 %23, %24
  br i1 %.not.us, label %.thread, label %.split.us, !llvm.loop !11

.split:                                           ; preds = %2, %50
  %25 = phi i32 [ %45, %50 ], [ %.pre39, %2 ]
  %.015 = phi i32 [ %.116, %50 ], [ 0, %2 ]
  %26 = add nsw i32 %.015, %5
  %27 = srem i32 %26, %25
  %28 = sext i32 %27 to i64
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIN14linear_probing5EntryESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @_ZN14linear_probing5tableE, i64 noundef %28) #4
  %30 = load i32, ptr %29, align 4, !tbaa !5
  store i32 %30, ptr %3, align 4, !tbaa !5
  %31 = call noundef zeroext i1 @_ZN14linear_probing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4) %3, i32 noundef %0)
  %32 = load i8, ptr @_ZN14linear_probing9rehashingE, align 1, !tbaa !13, !range !15, !noundef !16
  %33 = trunc nuw i8 %32 to i1
  br i1 %31, label %36, label %40

.split27.us:                                      ; preds = %15
  %34 = 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)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.thread

36:                                               ; preds = %.split
  br i1 %33, label %.thread, label %37

37:                                               ; preds = %36
  %38 = 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)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %.thread

40:                                               ; preds = %.split
  br i1 %33, label %44, label %41

41:                                               ; preds = %40
  %42 = 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)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %44

44:                                               ; preds = %40, %41
  %.116 = add nuw nsw i32 %.015, 1
  %45 = load i32, ptr @_ZN14linear_probing9totalSizeE, align 4, !tbaa !5
  %46 = icmp eq i32 %.116, %45
  br i1 %46, label %.split30.us, label %50

.split30.us:                                      ; preds = %44, %17
  %47 = 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.5)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %49 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  br label %.thread

50:                                               ; preds = %44
  %51 = load i32, ptr %3, align 4, !tbaa !9
  %52 = load i32, ptr @_ZN14linear_probing10notPresentE, align 4, !tbaa !5
  %.not = icmp eq i32 %51, %52
  br i1 %.not, label %.thread, label %.split, !llvm.loop !11

.thread:                                          ; preds = %50, %22, %.split.us, %36, %37, %.split30.us, %.split27.us
  %.2 = phi i32 [ %27, %36 ], [ %27, %37 ], [ %49, %.split30.us ], [ %9, %.split27.us ], [ %12, %.split.us ], [ %23, %22 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret i32 %.2
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN14linear_probing5EntryC2Ei(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 @_ZNSt6vectorIN14linear_probing5EntryESaIS1_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 @_ZN14linear_probing15searchingProberERKNS_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 @_ZN14linear_probing9putProberERKNS_5EntryEi(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #0

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 = { 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 = !{!"_ZTSN14linear_probing5EntryE", !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,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass