; LLVM IR from facebook/redex :: libredex (BalancedPartitioning)

; 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.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl" }
%"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl" = type { %"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.18" = type { i8 }
%class.BalancedPartitioning = type { ptr, [16384 x double], i32, i32 }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK20BalancedPartitioning14run_iterationsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(5000) %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector.16", align 8
  %15 = alloca %"class.std::allocator.18", align 1
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store ptr %5, ptr %12, align 8, !tbaa !5
  %21 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = call noundef i32 @_ZNK20BalancedPartitioning16update_documentsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_(ptr noundef nonnull align 8 dereferenceable(131088) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  store i32 %24, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #3
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = add i32 %25, 1
  %27 = zext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #3
  call void @_ZNSaI13KmerSignatureEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  invoke void @_ZNSt6vectorI13KmerSignatureSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %28 unwind label %39

28:                                               ; preds = %6
  call void @_ZNSt15__new_allocatorI13KmerSignatureED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_ZNK20BalancedPartitioning21initialize_signaturesERSt6vectorI13KmerSignatureSaIS1_EERKN9__gnu_cxx17__normal_iteratorIPP8DocumentS0_IS8_SaIS8_EEEESE_j(ptr noundef nonnull align 8 dereferenceable(131088) %21, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30, i32 noundef %31)
          to label %32 unwind label %43

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %66, %32
  %34 = load i32, ptr %18, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.BalancedPartitioning, ptr %21, i32 0, i32 3
  %36 = load i32, ptr %35, align 4, !tbaa !11
  %37 = icmp ult i32 %34, %36
  br i1 %37, label %47, label %38

38:                                               ; preds = %33
  store i32 2, ptr %19, align 4
  br label %69

39:                                               ; preds = %6
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %16, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %17, align 4
  call void @_ZNSt15__new_allocatorI13KmerSignatureED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  br label %72

43:                                               ; preds = %28
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %16, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %17, align 4
  br label %71

47:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = invoke noundef i32 @_ZNK20BalancedPartitioning13run_iterationERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRS5_I13KmerSignatureSaISB_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088) %21, ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull align 8 dereferenceable(8) %49, i32 noundef %50, i32 noundef %51, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(5000) %52)
          to label %54 unwind label %58

54:                                               ; preds = %47
  store i32 %53, ptr %20, align 4, !tbaa !9
  %55 = load i32, ptr %20, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %62

57:                                               ; preds = %54
  store i32 2, ptr %19, align 4
  br label %63

58:                                               ; preds = %47
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %16, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %71

62:                                               ; preds = %54
  store i32 0, ptr %19, align 4
  br label %63

63:                                               ; preds = %62, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  %64 = load i32, ptr %19, align 4
  switch i32 %64, label %69 [
    i32 0, label %65
  ]

65:                                               ; preds = %63
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %18, align 4, !tbaa !9
  %68 = add i32 %67, 1
  store i32 %68, ptr %18, align 4, !tbaa !9
  br label %33, !llvm.loop !13

69:                                               ; preds = %63, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %70

70:                                               ; preds = %69
  call void @_ZNSt6vectorI13KmerSignatureSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  ret void

71:                                               ; preds = %58, %43
  call void @_ZNSt6vectorI13KmerSignatureSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  br label %72

72:                                               ; preds = %71, %39
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %16, align 8
  %75 = load i32, ptr %17, align 4
  %76 = insertvalue { ptr, i32 } poison, ptr %74, 0
  %77 = insertvalue { ptr, i32 } %76, i32 %75, 1
  resume { ptr, i32 } %77
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK20BalancedPartitioning16update_documentsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_(ptr noundef nonnull align 8 dereferenceable(131088), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK20BalancedPartitioning13run_iterationERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRS5_I13KmerSignatureSaISB_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(5000)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI13KmerSignatureED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 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 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 131084}
!12 = !{!"_ZTS20BalancedPartitioning", !6, i64 0, !7, i64 8, !10, i64 131080, !10, i64 131084}
!13 = distinct !{!13, !14}
!14 = !{!"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.16" = type { %"struct.std::_Vector_base.17" }
%"struct.std::_Vector_base.17" = type { %"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl" }
%"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl" = type { %"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl_data" }
%"struct.std::_Vector_base<KmerSignature, std::allocator<KmerSignature>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.18" = type { i8 }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK20BalancedPartitioning14run_iterationsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(5000) %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector.16", align 8
  %8 = alloca %"class.std::allocator.18", align 1
  %9 = tail call noundef i32 @_ZNK20BalancedPartitioning16update_documentsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_(ptr noundef nonnull align 8 dereferenceable(131088) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #3
  %10 = add i32 %9, 1
  %11 = zext i32 %10 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #3
  call void @_ZNSaI13KmerSignatureEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  invoke void @_ZNSt6vectorI13KmerSignatureSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %12 unwind label %19

12:                                               ; preds = %6
  call void @_ZNSt15__new_allocatorI13KmerSignatureED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  invoke void @_ZNK20BalancedPartitioning21initialize_signaturesERSt6vectorI13KmerSignatureSaIS1_EERKN9__gnu_cxx17__normal_iteratorIPP8DocumentS0_IS8_SaIS8_EEEESE_j(ptr noundef nonnull align 8 dereferenceable(131088) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3)
          to label %.preheader unwind label %21

.preheader:                                       ; preds = %12
  %13 = getelementptr inbounds i8, ptr %0, i64 131084
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %.not25 = icmp eq i32 %14, 0
  br i1 %.not25, label %._crit_edge, label %.lr.ph

15:                                               ; preds = %24
  %16 = add nuw i32 %.01823, 1
  %17 = load i32, ptr %13, align 4, !tbaa !5
  %18 = icmp ult i32 %16, %17
  br i1 %18, label %.lr.ph, label %._crit_edge, !llvm.loop !11

19:                                               ; preds = %6
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI13KmerSignatureED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #3
  br label %28

21:                                               ; preds = %12
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %27

.lr.ph:                                           ; preds = %.preheader, %15
  %.01823 = phi i32 [ %16, %15 ], [ 0, %.preheader ]
  %23 = invoke noundef i32 @_ZNK20BalancedPartitioning13run_iterationERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRS5_I13KmerSignatureSaISB_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3, i32 noundef %4, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(5000) %5)
          to label %24 unwind label %25

24:                                               ; preds = %.lr.ph
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %._crit_edge, label %15

25:                                               ; preds = %.lr.ph
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %27

._crit_edge:                                      ; preds = %24, %15, %.preheader
  call void @_ZNSt6vectorI13KmerSignatureSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  ret void

27:                                               ; preds = %25, %21
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %22, %21 ]
  call void @_ZNSt6vectorI13KmerSignatureSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  br label %28

28:                                               ; preds = %27, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %27 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #3
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK20BalancedPartitioning16update_documentsERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_(ptr noundef nonnull align 8 dereferenceable(131088), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK20BalancedPartitioning13run_iterationERKN9__gnu_cxx17__normal_iteratorIPP8DocumentSt6vectorIS3_SaIS3_EEEESA_jjRS5_I13KmerSignatureSaISB_EERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EE(ptr noundef nonnull align 8 dereferenceable(131088), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(5000)) local_unnamed_addr #1 align 2

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

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

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 = { 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 #3 = { 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, !10, i64 131084}
!6 = !{!"_ZTS20BalancedPartitioning", !7, i64 0, !8, i64 8, !10, i64 131080, !10, i64 131084}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass